joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402794
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403760
test esi, esi
jne 0x4027ca
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403850
jmp 0x4027e8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402648
mov edi, eax
test esi, esi
je 0x4027e8
cmp dword [ebx], 0
je 0x4027e8
dec esi
jmp 0x4027d1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40800c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402d38
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402d18
xor eax, eax
push ebp
push 0x402d11
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402d54
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402d18
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40800c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40800c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4035e4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x409044], 0
je 0x403645
cmp word [0x409218], 0xd7b2
jne 0x40360d
cmp dword [0x409220], 0
jbe 0x40360d
mov eax, 0x409214
call dword [0x409230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40804c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40366c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x408018], 0
jne 0x403661
push 0
push 0x40806c
push 0x40804c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4040b8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4042e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40413b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4042e8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40413b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404304
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4041c4
xor eax, eax
push ebp
push 0x4041bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00403f00
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4041a2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404324
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4041a2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4041c4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4042de
cmp byte [ebp - 0xd], 0
jne 0x40420b
cmp byte [ebp - 0x12], 0
je 0x4042de
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404224
dec ebx
cmp byte [ebx], 0x2e
je 0x404233
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404223
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4042de
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404270
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4042de
cmp byte [ebp - 0xd], 0
je 0x4042de
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4042de
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4041c4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4042e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40413b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4042e8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40413b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404304
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4041c4
xor eax, eax
push ebp
push 0x4041bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00403f00
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4041a2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404324
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4041a2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4041c4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4042de
cmp byte [ebp - 0xd], 0
jne 0x40420b
cmp byte [ebp - 0x12], 0
je 0x4042de
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404224
dec ebx
cmp byte [ebx], 0x2e
je 0x404233
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404223
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4042de
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404270
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4042de
cmp byte [ebp - 0xd], 0
je 0x4042de
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4042de
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406194
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4061cd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403850
jmp 0x4061d6
mov eax, ebx
mov edx, esi
call fcn.004037b4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4061e0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406201
mov al, byte [esp]
jmp 0x406203
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406888
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406700
mov eax, dword [0x408390]
cmp byte [eax], 0
je 0x4068f0
mov eax, dword [0x4082f0]
call fcn.0040283c
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004055ec
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406938
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x406926
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4082d4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x409710]
call fcn.00403ec4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x4072b8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40731c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004039a4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040548c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407323
lea eax, [ebp - 0xc]
call fcn.00403760
ret
Function at 0x407e5c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, 0x407e14
call fcn.00404600
xor eax, eax
push ebp
push 0x407f58
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00402794
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.0040550c
mov edx, dword [ebp - 0x14]
mov eax, 0x409850
call fcn.004037b4
mov ebx, 1
mov eax, 0x40984c
call fcn.00403760
jmp 0x407ee4
push dword [0x40984c]
push 0x407f70
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00402794
push dword [ebp - 0x1c]
mov eax, 0x40984c
mov edx, 3
call fcn.00403a90
inc ebx
call fcn.00402734
cmp ebx, eax
jle 0x407ebc
mov eax, 0x40984c
mov ecx, dword [0x40984c]
mov edx, 0x407f7c
call fcn.00403a1c
push 1
push 0
mov eax, dword [0x40984c]
call fcn.00403b14
push eax
lea eax, [ebp - 0x20]
mov ecx, 0x407f90
mov edx, dword [0x409850]
call fcn.00403a1c
mov eax, dword [ebp - 0x20]
call fcn.00403b14
push eax
push 0x407fa0
call sub.user32.dll_GetActiveWindow
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407f5f
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00403784
ret
Function at 0x4097e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.0040d8e0
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp word [esi], bx
je 0x4099fb
push esi
call fcn.0040d86a
pop ecx
cmp eax, 0x7f6
jae 0x4099fb
push edi
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.0040d7f0
movzx ecx, word [esi]
add esp, 0xc
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0x1c0
cmp cx, 0x22
jne 0x40983b
lea eax, [esi + 2]
mov dword [ebp - 0x38], eax
jmp 0x40983e
mov dword [ebp - 0x38], esi
xor eax, eax
cmp cx, bx
je 0x409894
mov ecx, esi
cmp word [ecx], 0x22
jne 0x409866
jmp 0x409856
cmp word [esi + eax*2], 0x22
je 0x40985f
inc eax
cmp word [esi + eax*2], bx
jne 0x40984f
jmp 0x409866
push 0x20
pop ecx
mov word [esi + eax*2], cx
cmp word [esi + eax*2], 0x20
je 0x409880
cmp word [esi + eax*2 + 2], 0x2f
je 0x409880
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x409847
jmp 0x409894
lea eax, [esi + eax*2]
cmp word [eax], 0x20
jne 0x40988e
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x4098a0
cmp word [eax], bx
jne 0x4098b5
cmp byte [ebp + 0xc], bl
jne 0x4098b5
cmp word [0x4314fa], bx
je 0x4098b5
mov dword [ebp - 0x34], 0x4314fa
push dword [ebp - 0x38]
mov dword [ebp - 0x2c], 1
call fcn.004064a1
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x4098e1
push str..inf
push eax
call fcn.0040c226
test eax, eax
jne 0x4098e1
mov dword [ebp - 0x3c], str.Install
push dword [ebp - 0x38]
call fcn.00403ac2
test al, al
je 0x40990a
push 0x800
lea eax, [ebp - 0x1048]
push eax
push dword [ebp - 0x38]
call fcn.004067e5
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4099fa
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], bl
mov edi, 0x3e8
cmp byte [0x4304f0], bl
jne 0x40993f
cmp byte [ebp + 0xc], bl
jne 0x40993f
cmp byte [0x4304dd], bl
je 0x40999c
cmp dword [ebp + 8], ebx
je 0x40995b
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40995b
push ebx
push dword [ebp + 8]
call esi
mov byte [ebp - 1], 1
push 0x7d0
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x10]
call fcn.00408c3e
cmp byte [0x4304dd], bl
je 0x40999c
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40999c
mov eax, dword [ebp - 0xc]
add eax, edi
cmp eax, dword [0x4304e0]
jbe 0x40999c
mov dword [0x4304e0], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x4099bb
push 0x41d864
push dword [ebp - 8]
call fcn.0040c226
test eax, eax
je 0x4099e9
cmp byte [0x4304f0], bl
je 0x4099d4
cmp byte [ebp + 0xc], bl
jne 0x4099d4
mov dword [0x4304e4], 0x1b58
jmp 0x4099e9
xor eax, eax
cmp byte [ebp + 0xc], bl
sete al
dec eax
and eax, 0xfffffce0
add eax, edi
mov dword [0x4304e4], eax
cmp byte [ebp - 1], bl
je 0x4099fa
cmp byte [ebp + 0xc], bl
je 0x4099fa
push 1
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4012f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [edx + 0x3c]
add esi, edx
push edi
mov edi, ecx
movzx eax, word [esi + 0x14]
add eax, 0x18
add eax, esi
mov dword [ebp - 4], eax
cmp edi, dword [eax + 0x14]
jae 0x401318
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
movzx ebx, word [esi + 6]
xor eax, eax
xor ecx, ecx
mov dword [ebp - 8], ebx
cmp ax, bx
jae 0x401357
nop dword [eax]
mov esi, dword [ebp - 4]
movzx edx, cx
lea eax, [edx + edx*4]
mov esi, dword [esi + eax*8 + 0xc]
cmp edi, esi
jb 0x401351
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + eax*8 + 0x10]
mov ebx, dword [ebp - 8]
add eax, esi
cmp edi, eax
jb 0x401360
inc ecx
cmp cx, bx
jb 0x401330
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
lea eax, [edx + edx*4]
pop ebx
mov eax, dword [ecx + eax*8 + 0x14]
sub eax, esi
add eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, 0x10b
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x3c]
cmp word [ecx + edi + 0x18], ax
jne 0x4013f9
mov ecx, dword [ecx + edi + 0x78]
mov edx, edi
call fcn.004012f0
mov ecx, dword [edi + eax + 0x20]
mov edx, edi
lea ebx, [edi + eax]
mov dword [ebp - 8], ebx
call fcn.004012f0
mov ecx, dword [ebx + 0x24]
mov edx, edi
lea esi, [edi + eax]
call fcn.004012f0
mov ebx, dword [ebx + 0x18]
lea ecx, [edi + eax]
mov dword [ebp - 4], ecx
test ebx, ebx
je 0x4013f9
mov ecx, dword [esi]
mov edx, edi
dec ebx
call fcn.004012f0
add eax, edi
push str.ReflectiveLoader
push eax
call fcn.004021f0
add esp, 8
test eax, eax
jne 0x401402
add dword [ebp - 4], 2
add esi, 4
test ebx, ebx
jne 0x4013d0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov edx, edi
mov ecx, dword [ecx + 0x1c]
call fcn.004012f0
mov ecx, dword [ebp - 4]
add eax, edi
mov edx, edi
movzx ecx, word [ecx]
mov ecx, dword [eax + ecx*4]
call fcn.004012f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401430
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x418c78
push 0x402090
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x41a004]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, edx
mov dword [ebp - 0x1c], eax
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
test edi, edi
je 0x4014e5
test eax, eax
je 0x4014e5
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4014e5
mov ecx, eax
call fcn.00401380
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4014e5
push 0x40
push 0x3000
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp + 8], eax
test eax, eax
je 0x4014e5
push esi
push ebx
push dword [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4014e5
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
push ecx
push esi
push dword [ebp + 0xc]
push eax
push 0x100000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
jmp 0x4014e2
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404015
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push 4
mov esi, ecx
call fcn.00429cd2
mov edx, dword [esp + 0x14]
lea edi, [esi + 4]
push edi
xor ebx, ebx
push ebx
push eax
push 0x404656
push ebx
push ebx
mov dword [eax], edx
call fcn.004388ce
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x40404a
pop edi
pop esi
pop ebx
ret 4
push 6
mov dword [edi], ebx
call fcn.00404eee
int3

Function at 0x40687e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40689f
jl 0x406896
test edi, edi
jne 0x40689f
xor eax, eax
xor edx, edx
jmp 0x406960
cmp dword [ebx + 0x38], 0
je 0x4068b4
push eax
push edi
push dword [ebp + 8]
call fcn.00406966
jmp 0x406960
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4068fb
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4068fb
cmp eax, edi
jb 0x4068d5
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0042b920
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x406901
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x406955
mov ecx, ebx
call fcn.00405f54
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x406940
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0043c17a
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x406955
jmp 0x406913
test edx, edx
je 0x406955
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0043c17a
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x419a1f
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x419a42
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x419a30
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x429714
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0043ef43
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x429753
sub eax, 1
je 0x42974e
sub eax, 1
je 0x42974a
xor eax, eax
leave
ret
push 3
jmp 0x429755
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x42af8e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42afcd
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42afcd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42afcd
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42afcd
cmp dword [ecx + 0x74], 0xe
jbe 0x42afcd
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x467f3f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48aa0c
push 0x48aa04
push str.FlsAlloc
push 0x1e
call fcn.00467c0f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x467f73
push dword [ebp + 8]
mov ecx, esi
call dword [0x485208]
call esi
jmp 0x467f79
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x467fbd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48aa1c
push 0x48aa14
push str.FlsGetValue
push 0x20
call fcn.00467c0f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x467ff4
push dword [ebp + 8]
mov ecx, esi
call dword [0x485208]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]