joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180012bfc
Capabilities:
Delete registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x180033018]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rdx
mov qword [rsp + 0x20], r9
xor edi, edi
lea rdx, [rsp + 0x40]
mov ebx, edi
movzx r9d, r8w
mov qword [rsp + 0x30], rbx
call fcn.180012654
lea rax, [rsp + 0x38]
mov qword [rsp + 0x38], rdi
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x180012c9d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.180022654
mov rbx, qword [rsp + 0x30]
test eax, eax
jne 0x180012c9d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
jne 0x180012c9d
lea edi, [rax + 1]
lea rcx, [rsp + 0x30]
call fcn.180022590
mov eax, edi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180024570
add rsp, 0x250
pop rdi
pop rsi
pop rbx
ret

Function at 0x180012ccc
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x180033018]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rsp + 0x2a0]
mov rdi, rdx
xor ebx, ebx
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x40], rbx
mov rsi, r8
call fcn.180012654
lea r8, [rsp + 0x50]
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x40]
call fcn.1800225c0
test eax, eax
jne 0x180012d56
mov rcx, qword [rsp + 0x40]
lea r9d, [rbx + 3]
mov dword [rsp + 0x28], 0x24
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x180012d56
lea ebx, [rax + 1]
lea rcx, [rsp + 0x40]
call fcn.180022590
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180024570
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x18001bf30
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x470
mov rax, qword [0x180033018]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rax, r9
mov r14d, 0x80004005
neg rax
mov rdi, r9
mov rbp, r8
mov rsi, rcx
sbb ebx, ebx
not ebx
and ebx, r14d
test r9, r9
je 0x18001c05d
and qword [r9], 0
lea rdx, [rsp + 0x40]
call fcn.18001c0a0
mov ebx, eax
test eax, eax
js 0x18001c061
mov r8d, 0x104
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
dec eax
cmp eax, 0x103
jbe 0x18001bfbd
mov ebx, r14d
jmp 0x18001c061
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
nop dword [rax + rax]
mov rcx, rax
neg rax
sbb ebx, ebx
not ebx
and ebx, r14d
test rcx, rcx
je 0x18001c05d
lea rdx, str.DllGetClassObject
mov qword [rdi], rcx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov rdx, rax
neg rdx
sbb ebx, ebx
not ebx
and ebx, r14d
test rax, rax
je 0x18001c05d
lea r8, [rsp + 0x30]
mov rcx, rsi
lea rdx, [0x180029020]
call qword [case.0x180004b4f.0]
mov ebx, eax
test eax, eax
js 0x18001c061
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18001c05d
mov rax, qword [rcx]
lea r8, [0x18002ffd0]
mov r9, rbp
xor edx, edx
mov rax, qword [rax + 0x18]
call qword [case.0x180004b4f.0]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x180004b4f.0]
test ebx, ebx
jns 0x18001c079
mov rcx, qword [rdi]
test rcx, rcx
je 0x18001c079
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
and qword [rdi], 0
mov eax, ebx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.180024570
add rsp, 0x470
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x18001e50c
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor eax, eax
mov rdi, rdx
mov rbx, rcx
cmp word [rdx], ax
jne 0x18001e52d
mov dword [rcx + 0xc], eax
jmp 0x18001e56d
mov rcx, rdi
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
nop dword [rax + rax]
mov ecx, dword [rbx + 8]
lea r9, [rsp + 0x30]
movsxd r8, eax
mov rdx, rdi
call fcn.1800220c4
mov rax, qword [rsp + 0x30]
lea rdx, [rbx + 0xc]
lea rcx, [rdi + rax*2]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
nop dword [rax + rax]
mov qword [rbx + 0x10], rax
mov rax, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800214d4
Capabilities:
Get file size
Query environment variable

Disassembly:
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
mov rbp, rdx
mov r12d, r8d
mov rsi, rcx
xor r8d, r8d
mov rcx, rbp
xor edx, edx
mov r15d, r9d
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
je 0x18002160f
lea r14d, [rax + 1]
mov r9d, r14d
lea eax, [rbx + 2]
mul r9
lea r13, [rbx - 1]
cmovo rax, r13
mov rcx, rax
call fcn.180024008
mov rdi, rax
test rax, rax
je 0x18002160f
mov r8d, r14d
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
nop dword [rax + rax]
test eax, eax
je 0x180021603
lea ebp, [rax + 1]
mov ecx, ebp
lea eax, [rbx + 2]
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.180024008
mov qword [rsi + 0x30], rax
test rax, rax
je 0x180021603
lea r9, [rsp + 0x98]
mov r8, rax
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
nop dword [rax + rax]
mov r8d, dword [rsp + 0x90]
xor r9d, r9d
mov rcx, qword [rsi + 0x30]
mov edx, r12d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [rsi + 0x18], rax
cmp rax, r13
je 0x180021603
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov eax, eax
lea ebx, [r13 + 2]
mov qword [rsi + 0x10], rax
mov rcx, rdi
call fcn.180023ffc
mov eax, ebx
jmp 0x180021611
xor eax, eax
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 0x180022694
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x180033018]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rdi, rcx
lea rax, [rsp + 0x50]
mov rcx, qword [rcx]
xor r14d, r14d
mov r9d, 0x2001f
mov qword [rsp + 0x40], r14
xor r8d, r8d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x20], rax
mov rsi, rdx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x18002270e
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.180022654
mov ebx, eax
test ebx, ebx
jmp 0x18002272d
lea rdx, [rsp + 0x60]
mov word [rbp + 0x15e], r14w
lea rcx, [rsp + 0x40]
call fcn.180022694
mov ebx, eax
test eax, eax
jne 0x1800227a0
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x48]
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], r14
xor edx, edx
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x48], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x180022712
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18002278c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov qword [rsp + 0x40], r14
mov rcx, qword [rdi]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop dword [rax + rax]
mov ebx, eax
lea rcx, [rsp + 0x40]
call fcn.180022590
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.180024570
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x1800227dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x30
mov eax, dword [r9]
mov rbx, r9
and dword [r9], 0
add eax, eax
mov rcx, qword [rcx]
lea r9, [r11 + 0x20]
mov dword [rsp + 0x40], eax
lea rax, [r11 + 8]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x180022836
mov eax, dword [rsp + 0x58]
dec eax
cmp eax, 1
jbe 0x18002282c
mov eax, 0xd
jmp 0x180022836
mov eax, dword [rsp + 0x40]
shr eax, 1
mov dword [rbx], eax
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x180022844
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rbx, r8
mov rcx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
nop dword [rax + rax]
mov rcx, qword [rsi]
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1800228b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [r11 + 0x20]
mov qword [r11 - 0x10], rax
lea r9, [r11 + 8]
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x58], 0x24
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1800228fc
cmp dword [rsp + 0x40], 3
jne 0x1800228f7
cmp dword [rsp + 0x58], 0x24
je 0x1800228fc
mov eax, 0xd
add rsp, 0x38
ret

Function at 0x180023ce0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x180033018]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rdi, qword [0x180033760]
mov edx, 0x3ed
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.USER32.dll_GetDlgItem]
nop dword [rax + rax]
xor ebx, ebx
test rax, rax
je 0x180023d50
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf2
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
test eax, eax
lea ecx, [rbx + 1]
cmovne ebx, ecx
movzx r9d, word [rdi + 0xc]
lea rax, [rdi + 0x10]
and qword [rsp + 0x48], 0
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.180012654
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov rdi, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov rcx, rdi
lea rdx, [rsp + 0x50]
mov r9d, 0x2001f
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x180023db9
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.180022654
test eax, eax
je 0x180023dcf
lea r8, [rsp + 0x50]
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.1800225c0
test eax, eax
jne 0x180023e03
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x28], r9d
lea rdx, str.EnableAssociatePhrase
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
lea rcx, [rsp + 0x48]
call fcn.180022590
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.180024570
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x401530
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r14d, r9d
mov r15, r8
mov rbp, rdx
mov rdi, rcx
mov ecx, dword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x20], 0x40
xor esi, esi
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8, rbp
mov r9d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
je 0x4015fb
mov rbx, rax
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffffffffffff
mov rdx, rbx
mov r8, rdi
mov r9, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4015f9
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
xor esi, esi
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [r15], rax
test rax, rax
je 0x4015fb
test r14d, r14d
je 0x4015f4
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rsi, rbx
jmp 0x4015fb
xor esi, esi
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x401610
Capabilities:
Check for outputdebugstring error
Print debug messages

Disassembly:
sub rsp, 0x38
mov ecx, 0x457
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str._api_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x457
jne 0x4016a3
call fcn.00438370
cmp byte [rax + 2], 0
jne 0x4016a3
test byte [rax + 0xbc], 0x70
jne 0x4016a3
call fcn.004389c0
mov qword [rsp + 0x30], 0xffffffffffffffff
mov rax, qword [0x0043c488]
mov edx, dword [rax]
mov rax, qword [0x0043c4e0]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov rcx, qword [0x0043c480]
lea r8, [rsp + 0x30]
mov r9d, 1
call fcn.00401530
test rax, rax
sete al
cmp qword [rsp + 0x30], 0xffffffffffffffff
sete cl
or cl, al
movzx eax, cl
neg eax
add rsp, 0x38
ret
xor ecx, ecx
call sub.msvcrt.dll_exit
int3
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
call fcn.004393c0
nop
add rsp, 0x20
pop rbp
jmp 0x401610

Function at 0x4016b0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x38
mov ecx, 0x457
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str._api_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x457
jne 0x4016a3
call fcn.00438370
cmp byte [rax + 2], 0
jne 0x4016a3
test byte [rax + 0xbc], 0x70
jne 0x4016a3
call fcn.004389c0
mov qword [rsp + 0x30], 0xffffffffffffffff
mov rax, qword [0x0043c488]
mov edx, dword [rax]
mov rax, qword [0x0043c4e0]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov rcx, qword [0x0043c480]
lea r8, [rsp + 0x30]
mov r9d, 1
call fcn.00401530
test rax, rax
sete al
cmp qword [rsp + 0x30], 0xffffffffffffffff
sete cl
or cl, al
movzx eax, cl
neg eax
add rsp, 0x38
ret
xor ecx, ecx
call sub.msvcrt.dll_exit
int3
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
call fcn.004393c0
nop
add rsp, 0x20
pop rbp
jmp 0x401610
Function at 0x438380
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
ret
Function at 0x438f20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r15, rdx
mov r12, rcx
movsxd r13, dword [rcx + 0x3c]
mov ebx, dword [rcx + r13 + 0x54]
mov r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x438f8a
lea r9, [rsp + 0x20]
mov rcx, r15
mov rdx, rbx
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x438f8a
mov rcx, r15
mov rdx, r12
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, word [r12 + r13 + 6]
test ax, ax
je 0x43902c
movsxd rcx, dword [r12 + 0x3c]
lea rbp, [rcx + r12]
add rbp, 0x110
xor r14d, r14d
jmp 0x438fc6
movzx eax, word [r12 + r13 + 6]
add r14, 1
movzx ecx, ax
add rbp, 0x28
cmp r14, rcx
jae 0x43902c
cmp dword [rbp + 0x1c], 0
js 0x438fb6
mov ebx, dword [rbp]
mov esi, dword [rbp + 4]
lea rdi, [r12 + rsi]
add rsi, r15
mov rcx, rdi
mov rdx, rsi
mov r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x438fb0
mov rcx, rsi
mov rdx, rbx
mov r8d, 0x40
lea r9, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x438fb0
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov r8d, dword [rsp + 0x24]
mov rcx, rsi
mov rdx, rbx
lea r9, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x438fb0
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x4390b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
test rcx, rcx
je 0x43927e
mov rsi, rdx
mov rbx, rcx
movsxd rax, dword [rcx + 0x3c]
mov edi, dword [rax + rcx + 0x88]
mov r13d, dword [rdi + rcx + 0x1c]
add r13, rcx
cmp esi, 0xffff
ja 0x439101
movzx eax, si
mov ecx, dword [rbx + rdi + 0x10]
sub rax, rcx
mov r12d, dword [r13 + rax*4]
add r12, rbx
jmp 0x439281
mov ebp, dword [rbx + rdi + 0x18]
test ebp, ebp
je 0x43927e
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r8
mov r14d, dword [rbx + rdi + 0x20]
mov r15d, dword [rbx + rdi + 0x24]
add r14, rbx
add r15, rbx
xor r12d, r12d
nop word [rax + rax]
mov ecx, dword [r14]
add rcx, rbx
mov rdx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x439156
add ebp, 0xffffffff
add r14, 4
add r15, 2
test ebp, ebp
jne 0x439130
jmp 0x439281
movzx eax, word [r15]
mov r12d, dword [r13 + rax*4]
cmp edi, r12d
ja 0x4390f9
mov rax, qword [rsp + 0x38]
add edi, dword [rbx + rax + 0x8c]
cmp r12d, edi
jae 0x4390f9
add r12, rbx
mov rcx, r12
mov edx, 0x2e
call sub.msvcrt.dll_strchr
mov r14, rax
add r14, 1
mov rsi, r14
sub rsi, r12
lea rcx, [rsi + 4]
mov edx, 2
call sub.msvcrt.dll_calloc
test rax, rax
je 0x43927e
mov rbx, rax
lea r8, [rsi + 1]
mov qword [rsp + 0x20], rsi
xor ecx, ecx
mov rdx, rax
mov r9, r12
call qword [sym.imp.msvcrt.dll_mbstowcs_s]
mov eax, dword [0x0043c016]
mov dword [rbx + rsi*2], eax
movzx eax, word [0x0043c01a]
mov word [rbx + rsi*2 + 4], ax
lea rdx, [0x0043c002]
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x43920c
lea rdx, str.ext_
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x43925a
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
call fcn.004383a0
test rax, rax
je 0x43925a
mov rsi, rax
mov rcx, rbx
call sub.msvcrt.dll_free
mov rdi, qword [rsp + 0x40]
lea rcx, [rdi + 1]
mov edx, 2
call sub.msvcrt.dll_calloc
test rax, rax
je 0x43927e
mov rbx, rax
add rdi, rdi
mov rcx, rax
mov rdx, rsi
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, r14
mov r8, rbx
call fcn.004390b0
mov r12, rax
mov rcx, rbx
call sub.msvcrt.dll_free
jmp 0x439281
xor r12d, r12d
mov rax, r12
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x4395e0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.0043a400
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.0043a400
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x439650
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x0043f0c4]
mov r12, rcx
test ebx, ebx
jle 0x439780
mov rax, qword [0x0043f0c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x43969c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x439723
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x439680
mov rcx, r12
call fcn.0043a000
mov rsi, rax
test rax, rax
je 0x4397a2
mov rax, qword [0x0043f0c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.0043a130
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0043f0c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x439787
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x43971c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x439730
add dword [0x0043f0c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x0043f0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x43971c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004395e0
nop dword [rax]
xor ebx, ebx
jmp 0x4396a7
mov rax, qword [0x0043f0c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.004395e0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.004395e0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x439c70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0043f120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0043f100]
test rbx, rbx
je 0x439cc4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x439cbb
test r12, r12
je 0x439cbb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x439ca0
lea rcx, [0x0043f120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x43a000
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x0043c360]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x43a020
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x43a028
ret
cmp word [r8 + 0x18], 0x20b
jne 0x43a020
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x43a075
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x43a06c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x43a020
add rax, 0x28
cmp rax, r9
jne 0x43a058
xor eax, eax
ret
Function at 0x43a080
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0043c360]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x43a0a0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x43a0a8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x43a0a0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x43a130
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0043c360]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x43a150
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x43a158
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret