joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e1ff8
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
lea rdx, [0x140137688]
mov ebx, r8d
mov rsi, rcx
call fcn.1400e1c3c
mov rdx, qword [rsi + 0x208]
mov rcx, rsi
call fcn.1400e1c3c
lea rdx, [0x14013d40c]
mov rcx, rsi
call fcn.1400e1c3c
mov rdx, rsi
mov rcx, rsi
call fcn.1400e1c3c
lea rdx, [0x140137690]
mov rcx, rsi
call fcn.1400e1c3c
mov rdx, rdi
mov rcx, rsi
call fcn.1400e1dd4
lea rdx, [0x140137680]
mov rcx, rsi
call fcn.1400e1c3c
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400e2094
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
lea edi, [r8 + 1]
mov rbp, rdx
mov rbx, rcx
cmp edi, 0x104
jae 0x1400e219b
mov eax, r8d
mov ecx, 0x5c
mov r13d, edi
mov word [rbx + rax*2], cx
xor eax, eax
lea rsi, [rbx + 0xc38]
lea r12, [rbx + 0xd3c]
lea r15, [rbx + 0xa30]
xor edx, edx
mov r14d, eax
jmp 0x1400e215e
test eax, eax
jne 0x1400e2156
mov edx, 0x104
lea rcx, [rbx + rdi*2]
mov r8, r15
sub rdx, r13
call qword [sym.imp.MSVCR120.dll_wcscpy_s]
lea rax, [rsp + 0x88]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r15
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400e2156
mov r8d, dword [rsi]
mov rdx, qword [rsp + 0x88]
mov rcx, rbx
add r8d, edi
call fcn.1400e1ff8
mov rcx, qword [rsp + 0x88]
call qword [0x14011e0c8]
inc r14d
xor eax, eax
mov edx, r14d
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov r9, rsi
mov r8, r15
mov rcx, rbp
mov qword [rsp + 0x20], rax
mov dword [rsi], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x1400e20f3
lea ecx, [rdi - 1]
xor eax, eax
mov word [rbx + rcx*2], ax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400e2094
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
lea rdx, [0x140137688]
mov ebx, r8d
mov rsi, rcx
call fcn.1400e1c3c
mov rdx, qword [rsi + 0x208]
mov rcx, rsi
call fcn.1400e1c3c
lea rdx, [0x14013d40c]
mov rcx, rsi
call fcn.1400e1c3c
mov rdx, rsi
mov rcx, rsi
call fcn.1400e1c3c
lea rdx, [0x140137690]
mov rcx, rsi
call fcn.1400e1c3c
mov rdx, rdi
mov rcx, rsi
call fcn.1400e1dd4
lea rdx, [0x140137680]
mov rcx, rsi
call fcn.1400e1c3c
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400e2094
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
lea edi, [r8 + 1]
mov rbp, rdx
mov rbx, rcx
cmp edi, 0x104
jae 0x1400e219b
mov eax, r8d
mov ecx, 0x5c
mov r13d, edi
mov word [rbx + rax*2], cx
xor eax, eax
lea rsi, [rbx + 0xc38]
lea r12, [rbx + 0xd3c]
lea r15, [rbx + 0xa30]
xor edx, edx
mov r14d, eax
jmp 0x1400e215e
test eax, eax
jne 0x1400e2156
mov edx, 0x104
lea rcx, [rbx + rdi*2]
mov r8, r15
sub rdx, r13
call qword [sym.imp.MSVCR120.dll_wcscpy_s]
lea rax, [rsp + 0x88]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r15
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400e2156
mov r8d, dword [rsi]
mov rdx, qword [rsp + 0x88]
mov rcx, rbx
add r8d, edi
call fcn.1400e1ff8
mov rcx, qword [rsp + 0x88]
call qword [0x14011e0c8]
inc r14d
xor eax, eax
mov edx, r14d
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov r9, rsi
mov r8, r15
mov rcx, rbp
mov qword [rsp + 0x20], rax
mov dword [rsi], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x1400e20f3
lea ecx, [rdi - 1]
xor eax, eax
mov word [rbx + rcx*2], ax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400e3fe8
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
mov rax, qword [0x14017da30]
xor rax, rsp
mov qword [rbp + 0x590], rax
mov rbx, rcx
mov rdx, rcx
lea r8, [0x1401377b4]
lea rcx, [rbp + 0x380]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400e40e7
test byte [rsp + 0x20], 0x10
je 0x1400e40a2
lea rdx, [0x1401423ac]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.MSVCR120.dll_wcscmp]
test eax, eax
je 0x1400e40c8
lea rdx, [0x1401377b8]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.MSVCR120.dll_wcscmp]
test eax, eax
je 0x1400e40c8
lea r8, [rsp + 0x4c]
lea rcx, [rbp + 0x170]
mov rdx, rbx
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rbp + 0x170]
call fcn.1400e3fe8
jmp 0x1400e40c4
lea r8, [rsp + 0x4c]
lea rcx, [rbp + 0x170]
mov rdx, rbx
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1400e40de
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400e404c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.14010a480
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x1400e411c
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14017da30]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
call qword [sym.imp.SHLWAPI.dll_PathSkipRootW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400e4157
xor eax, eax
jmp 0x1400e41cb
mov r9, rax
lea rcx, [rsp + 0x20]
mov r8, rdi
sub r9, rdi
mov edx, 0x104
sar r9, 1
call qword [sym.imp.MSVCR120.dll_wcsncpy_s]
cmp word [rbx], si
je 0x1400e41c6
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindNextComponentW]
lea rcx, [rsp + 0x20]
mov r8, rbx
mov r9, rax
mov edx, 0x104
mov rdi, rax
sub r9, rbx
sar r9, 1
call qword [sym.imp.MSVCR120.dll_wcsncat_s]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400e41be
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400e4153
cmp word [rdi], si
mov rbx, rdi
jmp 0x1400e4176
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14010a480
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400e4258
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x14017da30]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rdx
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov dword [rsp + 0x20], eax
jmp 0x1400e42be
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400e430f
inc ebx
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x30]
lea r8, str._sTEMP_lu
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.MSVCR120.dll_swprintf_s]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400e42ab
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14010a480
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
xor eax, eax
jmp 0x1400e42ea

Function at 0x1400e449c
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x660
mov rax, qword [0x14017da30]
xor rax, rsp
mov qword [rsp + 0x650], rax
xor r15d, r15d
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x1400e44fc
cmp word [rdx], r15w
je 0x1400e44fc
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x1400e44fc
mov r8, rbx
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.MSVCR120.dll_wcscpy_s]
mov eax, 1
jmp 0x1400e45d7
mov r9d, 1
lea rdx, [rsp + 0x440]
xor ecx, ecx
lea r8d, [r9 + 0x19]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1400e45d5
lea rcx, [rsp + 0x20]
mov edx, 0x104
mov r8d, 1
call fcn.1400e431c
test rax, rax
je 0x1400e45d5
lea rdx, [rsp + 0x230]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400e45d5
lea rcx, [rsp + 0x230]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rcx, rax
mov r14, rax
call qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
cmp word [rsp + 0x20], r15w
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x440]
cmove r8, r14
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
test rbx, rbx
je 0x1400e45ac
cmp word [rbx], r15w
je 0x1400e45ac
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x1400e44f2
test rbp, rbp
je 0x1400e45d5
cmp word [rbp], 0x2e
jne 0x1400e45d5
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
jmp 0x1400e44f2
xor eax, eax
mov rcx, qword [rsp + 0x650]
xor rcx, rsp
call fcn.14010a480
add rsp, 0x660
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400e4a70
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, rcx
lea r8, [fcn.1400e6810]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.MSVCR120.dll__beginthreadex]
add rsp, 0x38
ret
Function at 0x1400e5454
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [0x140194438], 0
je 0x1400e5509
cmp qword [0x140194648], 0
je 0x1400e5509
cmp dword [0x14017d960], 1
jne 0x1400e54c6
mov dword [0x140192f6c], 1
call fcn.1400e6bc0
mov ecx, 0xa0
mov rbx, rax
call fcn.14010a29c
test rax, rax
je 0x1400e54b4
mov rdx, rbx
mov rcx, rax
call fcn.1400ea5d8
mov qword [0x140194018], rax
jmp 0x1400e54bc
and qword [0x140194018], 0
mov rcx, rbx
call fcn.1400e6c2c
jmp 0x1400e54cd
and dword [0x140192f6c], 0
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x1400e6ba8]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.MSVCR120.dll__beginthreadex]
mov rbx, rax
test rax, rax
je 0x1400e5509
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [0x14011e328]
add rsp, 0x30
pop rbx
ret
Function at 0x1400e5518
Capabilities:
Delete file
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x14017da30]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r12, rcx
xor ecx, ecx
call qword [0x14011e600]
mov ebx, 0x104
mov r8d, ebx
lea rdx, [rsp + 0x50]
mov rcx, qword [0x140192f90]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, [0x140138070]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
jne 0x1400e55ab
lea rcx, [0x140138070]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rsi, rsi
je 0x1400e569f
lea rdx, str.MiniDumpWriteDump
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x1400e5696
lea rdx, [rsp + 0x260]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, str.BugTrap_1.3.3718.38316.dmp
lea rcx, [rsp + 0x260]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x1400e5696
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x44], r12
mov r9d, 1
mov dword [rsp + 0x4c], r9d
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8, r15
mov edx, ebx
mov rcx, rdi
call r14
mov ebx, eax
mov rcx, r15
call qword [0x14011e328]
test ebx, ebx
jne 0x1400e5696
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400e56a1
xor eax, eax
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14010a480
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x1400e6980
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14017da30]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rcx, [rsp + 0x20]
call fcn.1400f5288
cmp dword [0x140192f6c], 0
je 0x1400e69be
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.1400f51e0
mov rbx, qword [0x140194438]
call fcn.1400f18a8
lea r8, [rsp + 0x40]
mov rdx, rax
mov r9d, 0x104
mov rcx, rbx
call fcn.1400f18f0
lea rdi, [0x140194230]
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r8, [rsp + 0x40]
lea rcx, [0x140194440]
mov rdx, rdi
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ebx, 1
test byte [0x1401931a8], bl
je 0x1400e6a5c
mov edx, 0x104
mov rcx, rdi
call fcn.1400e4258
mov r8, qword [0x140194648]
mov rcx, qword [0x140194438]
mov rdx, rdi
call fcn.1400f155c
test eax, eax
je 0x1400e6a58
mov rcx, qword [0x140194438]
lea r8, [0x140194440]
mov rdx, rdi
call fcn.1400f1234
test eax, eax
jne 0x1400e6a78
xor ebx, ebx
jmp 0x1400e6a78
mov r8, qword [0x140194648]
mov rcx, qword [0x140194438]
lea rdx, [0x140194440]
call fcn.1400f167c
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.1400f5230
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14010a480
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x1400e6aac
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
test byte [0x1401931a8], 1
je 0x1400e6ad0
lea rcx, [0x140194230]
call fcn.1400e3fe8
mov word [0x140194230], bx
lea rcx, [0x140194440]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov word [0x140194440], bx
add rsp, 0x20
pop rbx
ret

Function at 0x1400e6af0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x38
cmp dword [0x14017d960], 2
jne 0x1400e6b08
xor ecx, ecx
add rsp, 0x38
jmp fcn.1400e51ac
call fcn.1400e6980
test eax, eax
je 0x1400e6b96
mov ecx, dword [0x14017d960]
dec ecx
je 0x1400e6b3a
sub ecx, 2
je 0x1400e6b31
dec ecx
jne 0x1400e6b96
xor ecx, ecx
call fcn.1400e5008
jmp 0x1400e6b96
xor ecx, ecx
call fcn.1400e5718
jmp 0x1400e6b96
cmp qword [0x140194018], 0
je 0x1400e6b96
and qword [rsp + 0x20], 0
mov rcx, qword [0x140192f90]
xor r8d, r8d
test byte [0x1401931a8], 0x10
jne 0x1400e6b84
lea r9, [0x1400f5f68]
lea edx, [r8 + 0x6f]
call qword [sym.imp.USER32.dll_DialogBoxParamW]
cmp rax, 1
jne 0x1400e6b96
and qword [rsp + 0x20], 0
mov rcx, qword [0x140192f90]
xor r8d, r8d
lea r9, [0x1400f54a0]
mov edx, 0x65
call qword [sym.imp.USER32.dll_DialogBoxParamW]
add rsp, 0x38
jmp fcn.1400e6aac
Function at 0x1400e8118
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov ebx, dword [rcx + 0x214]
mov rbp, r9
mov r14, r8
mov r15d, edx
mov rdi, rcx
call fcn.1400e80ec
shr ebx, 2
mov rsi, rax
and ebx, 1
test rax, rax
jne 0x1400e8159
test ebx, ebx
je 0x1400e81b2
mov r9, qword [rsp + 0x60]
mov r8, r14
mov edx, r15d
mov rcx, rdi
call fcn.1400e7f58
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
je 0x1400e8185
mov rdx, rsi
mov rcx, rdi
call fcn.1400e80a8
test ebx, ebx
je 0x1400e81a4
mov rdx, qword [rdi + 0x248]
lea rcx, [0x140121374]
test rdx, rdx
cmovne rcx, rdx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400eb3ec
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, str.MAPI
lea rcx, str.MAIL
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetProfileIntW]
test eax, eax
je 0x1400eb4bf
lea rcx, str.MAPI32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x1400eb4bf
lea rdx, str.MAPILogon
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.MAPILogoff
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.MAPISendMail
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.MAPIResolveName
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.MAPIFreeBuffer
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [rbx + 0x18], 0
mov qword [rbx + 0x38], rax
je 0x1400eb4b7
cmp qword [rbx + 0x20], 0
je 0x1400eb4b7
cmp qword [rbx + 0x28], 0
je 0x1400eb4b7
cmp qword [rbx + 0x30], 0
je 0x1400eb4b7
test rax, rax
jne 0x1400eb4bf
mov rcx, rbx
call fcn.1400eb4cc
add rsp, 0x20
pop rbx
ret
Function at 0x1400ecd2c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14017da30]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r8d, dword [rcx + 8]
xor ebx, ebx
mov r15, rdx
mov rdi, rcx
test r8d, r8d
je 0x1400ece95
mov r14, qword [rdi]
lea rsi, [rbx + rbx*2]
cmp qword [r14 + rsi*8], 0
je 0x1400ecec5
mov r9, r15
mov edx, 0x104
lea rcx, [rsp + 0x60]
cmp r8d, 1
jbe 0x1400ecdae
lea eax, [rbx + 1]
lea r8, str._s_d.bmp
mov dword [rsp + 0x20], eax
call qword [sym.imp.MSVCR120.dll_swprintf_s]
jmp 0x1400ecdbb
lea r8, str._s.bmp
call qword [sym.imp.MSVCR120.dll_swprintf_s]
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1400ecec5
xor edx, edx
lea rcx, [rsp + 0x48]
lea r8d, [rdx + 0xe]
call sub.MSVCR120.dll_memset
and qword [rsp + 0x20], 0
mov eax, 0x4d42
mov word [rsp + 0x48], ax
mov ecx, dword [r14 + rsi*8 + 0x10]
lea r9, [rsp + 0x40]
add ecx, 0xe
lea rdx, [rsp + 0x48]
mov r8d, 0xe
mov dword [rsp + 0x52], ecx
add ecx, dword [r14 + rsi*8 + 0x14]
mov dword [rsp + 0x4a], ecx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [r14 + rsi*8 + 0x10]
mov rdx, qword [r14 + rsi*8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [r14 + rsi*8 + 0x14]
mov rdx, qword [r14 + rsi*8 + 8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r12
call qword [0x14011e328]
mov r8d, dword [rdi + 8]
inc ebx
cmp ebx, r8d
jb 0x1400ecd73
mov eax, 1
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14010a480
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
xor eax, eax
jmp 0x1400ece9a
Function at 0x1400ed3b0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x14017da30]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor ebx, ebx
lea rax, [rsp + 0x60]
mov rdi, rdx
mov qword [rsp + 0x38], rbx
mov r15, rcx
mov qword [rsp + 0x30], rbx
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea r8d, [rbx + 3]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400ed504
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, 0x19000
cmp eax, esi
cmovb esi, eax
mov ecx, esi
call fcn.140109e80
mov rbp, rax
test rax, rax
je 0x1400ed4f9
mov dword [rsp + 0x48], 9
mov dword [rsp + 0x40], 8
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
lea rdx, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call fcn.1400fc5b4
test eax, eax
jne 0x1400ed4f1
jmp 0x1400ed4bf
mov r8d, dword [rsp + 0x50]
test r8d, r8d
je 0x1400ed4e2
mov rdx, rbp
mov rcx, r15
call fcn.1400fcd00
mov edi, ebx
test eax, eax
sete dil
test edi, edi
je 0x1400ed4e2
lea r9, [rsp + 0x50]
mov r8d, esi
mov rdx, rbp
mov rcx, r14
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x50], ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test eax, eax
jne 0x1400ed49e
mov rcx, r15
call fcn.1400fce28
test eax, eax
cmovne edi, ebx
mov ebx, edi
mov rcx, rbp
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, r14
call qword [0x14011e328]
jmp 0x1400ed525
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
cmp eax, 1
jbe 0x1400ed520
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400ed525
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14010a480
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x180
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret