joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402500
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x4213fc]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x460], ax
lea eax, [ebp - 0x45e]
push eax
mov dword [ebp - 0x474], 1
mov dword [ebp - 0x478], 0x100
call fcn.0040be10
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.0040be10
add esp, 0x18
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x474]
push eax
push str.9E_PID
push str.SOFTWARE9ENetwork
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x208]
lea ecx, [ebp - 0x460]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4025bc
test dx, dx
je 0x4025b8
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4025bc
add ecx, 4
add eax, 4
test dx, dx
jne 0x402596
xor eax, eax
jmp 0x4025c1
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4026a1
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x4026a1
push 0x256
push eax
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push eax
call fcn.0040be10
movzx eax, byte [ebp - 0x461]
push eax
movzx eax, byte [ebp - 0x462]
push eax
movzx eax, byte [ebp - 0x463]
push eax
movzx eax, byte [ebp - 0x464]
push eax
movzx eax, byte [ebp - 0x465]
push eax
movzx eax, byte [ebp - 0x466]
push eax
movzx eax, byte [ebp - 0x467]
push eax
movzx eax, byte [ebp - 0x468]
push eax
movzx eax, word [ebp - 0x46a]
push eax
movzx eax, word [ebp - 0x46c]
push eax
push dword [ebp - 0x470]
lea eax, [ebp - 0x260]
push str._08X_04X_04x_02X_02X_02X_02X_02X_02X_02X_02X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x260]
add esp, 0x40
lea edx, [ecx + 2]
jmp 0x402670
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402670
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x260]
push eax
push 1
push str.9E_PID
push str.SOFTWARE9ENetwork
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408043
mov esp, ebp
pop ebp
ret
Function at 0x402730
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4176a8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4213fc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 8]
push eax
movzx eax, dx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push dword [ebp - 0x34]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea ecx, [ebp - 0x30]
push ecx
push edi
push esi
push eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402820
push 0x1f
push str.9eError:mReleaseRes__WriteFile
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
call fcn.004031c0
push dword [ebp - 0x34]
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.004036f0
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
call fcn.004030c0
cmp dword [ebp - 0x3c], 8
jb 0x40280f
push dword [ebp - 0x50]
call fcn.0040880d
add esp, 4
cmp dword [ebp - 0x18], 8
jb 0x402820
push dword [ebp - 0x2c]
call fcn.0040880d
add esp, 4
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00408043
mov esp, ebp
pop ebp
ret
Function at 0x402860
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4175eb
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x4213fc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push 0x40
lea eax, [ebp - 0x2c8]
push 0
push eax
call fcn.0040be10
xor eax, eax
push 0x256
push eax
mov word [ebp - 0x29c], ax
mov word [ebp - 0x26c], ax
lea eax, [ebp - 0x26a]
xorps xmm0, xmm0
push eax
mov dword [ebp - 0x2dc], 0
movq qword [ebp - 0x2d8], xmm0
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2cc], 0x44
mov dword [ebp - 0x2a0], 1
call fcn.0040be10
mov ecx, edi
add esp, 0x18
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402900
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea eax, [ebp - 0x26c]
push 0x12c
push eax
call fcn.004088ac
add esp, 0x10
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x26c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4029d1
push 0x14
push str.9eError:CretateProc
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x270], 7
mov dword [ebp - 0x274], eax
mov word [ebp - 0x284], ax
call fcn.004031c0
push edi
lea edx, [ebp - 0x284]
lea ecx, [ebp - 0x2f4]
mov dword [ebp - 4], 0
call fcn.004036f0
add esp, 4
lea ecx, [ebp - 0x284]
push eax
call fcn.004030c0
cmp dword [ebp - 0x2e0], 8
jb 0x4029ba
push dword [ebp - 0x2f4]
call fcn.0040880d
add esp, 4
cmp dword [ebp - 0x270], 8
jb 0x4029d1
push dword [ebp - 0x284]
call fcn.0040880d
add esp, 4
cmp esi, 0xfa1
je 0x4029e6
push esi
push dword [ebp - 0x2d8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00408043
mov esp, ebp
pop ebp
ret
Function at 0x402a10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4175ab
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x4213fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push 0x40
lea eax, [ebp - 0x2c4]
push 0
push eax
call fcn.0040be10
xor eax, eax
push 0x256
push eax
mov word [ebp - 0x298], ax
mov word [ebp - 0x268], ax
lea eax, [ebp - 0x266]
xorps xmm0, xmm0
push eax
mov dword [ebp - 0x2d8], 0
movq qword [ebp - 0x2d4], xmm0
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0x44
mov dword [ebp - 0x29c], 1
call fcn.0040be10
mov ecx, esi
add esp, 0x18
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402ab0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea eax, [ebp - 0x268]
push 0x12c
push eax
call fcn.004088ac
add esp, 0x10
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 0x2c8]
push eax
push edi
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x268]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402b80
push 0x14
push str.9eError:CretateProc
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x26c], 7
mov dword [ebp - 0x270], eax
mov word [ebp - 0x280], ax
call fcn.004031c0
push esi
lea edx, [ebp - 0x280]
lea ecx, [ebp - 0x2f0]
mov dword [ebp - 4], 0
call fcn.004036f0
add esp, 4
lea ecx, [ebp - 0x280]
push eax
call fcn.004030c0
cmp dword [ebp - 0x2dc], 8
jb 0x402b69
push dword [ebp - 0x2f0]
call fcn.0040880d
add esp, 4
cmp dword [ebp - 0x26c], 8
jb 0x402b80
push dword [ebp - 0x280]
call fcn.0040880d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408043
mov esp, ebp
pop ebp
ret
Function at 0x402ba0
Capabilities:
Acquire debug privileges
Enumerate processes
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4213fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402bd9
push str._fProcessMonitor_:_INVALID_HANDLE_VALUE
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor esi, esi
jmp 0x402cdb
lea eax, [ebp - 0x250]
push eax
push esi
mov dword [ebp - 0x250], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ecx]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x22c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402c37
test dx, dx
je 0x402c33
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402c37
add eax, 4
add ecx, 4
test dx, dx
jne 0x402c11
xor eax, eax
jmp 0x402c3c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x402cc2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402ca6
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push 0
call ebx
test eax, eax
je 0x402ca1
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x248]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x402c00
lea esi, [eax + 1]
cmp dword [ebp + 0x1c], 8
jb 0x402cec
push dword [ebp + 8]
call fcn.0040880d
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408043
mov esp, ebp
pop ebp
ret
Function at 0x404650
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4176db
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x4213fc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x3ff
lea eax, [ebp - 0x413]
push 0
push eax
mov byte [ebp - 0x414], 0
call fcn.0040be10
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4046a2
sub ecx, edx
sar ecx, 1
push ecx
push esi
push 0x400
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00409415
add esp, 0x14
cmp byte [ebp - 0x414], 0
mov byte [ebp - 0x43c], 0
mov dword [ebp - 0x490], 0
mov dword [ebp - 0x494], 0
mov dword [ebp - 0x4a4], 0x67452301
mov dword [ebp - 0x4a0], 0xefcdab89
mov dword [ebp - 0x49c], 0x98badcfe
mov dword [ebp - 0x498], 0x10325476
mov dword [ebp - 0x4a8], 0xf
mov dword [ebp - 0x4ac], 0
mov byte [ebp - 0x4bc], 0
jne 0x404739
xor ecx, ecx
jmp 0x40474b
lea ecx, [ebp - 0x414]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404742
sub ecx, edx
push ecx
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x4bc]
call fcn.00401730
cmp dword [ebp - 0x4a8], 0x10
push dword [ebp - 0x4ac]
lea eax, [ebp - 0x4bc]
cmovae eax, dword [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x4a4]
call fcn.00403b70
cmp dword [ebp - 0x4a8], 0x10
jb 0x40479b
push dword [ebp - 0x4bc]
call fcn.0040880d
add esp, 4
lea eax, [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x4a4]
call fcn.00404610
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
jb 0x4047be
mov edx, dword [edx]
mov dword [ebp - 0x41c], 0xf
mov dword [ebp - 0x420], 0
mov byte [ebp - 0x430], 0
cmp byte [edx], 0
jne 0x4047e2
xor ecx, ecx
jmp 0x4047f0
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4047e7
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x430]
call fcn.00401730
cmp dword [ebp - 0x4a8], 0x10
jb 0x404814
push dword [ebp - 0x4bc]
call fcn.0040880d
add esp, 4
mov edx, dword [ebp - 0x41c]
mov esi, dword [ebp - 0x430]
lea ecx, [ebp - 0x430]
cmp edx, 0x10
cmovae ecx, esi
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404830
sub ecx, edi
push ecx
cmp edx, 0x10
lea eax, [ebp - 0x430]
cmovae eax, esi
push eax
push 0x400
lea eax, [ebp - 0x418]
push 0x423b58
push eax
call fcn.0040966e
add esp, 0x14
cmp dword [ebp - 0x41c], 0x10
jb 0x404877
push dword [ebp - 0x430]
call fcn.0040880d
add esp, 4
mov eax, 0x423b58
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00408043
mov esp, ebp
pop ebp
ret 4
Function at 0x405e40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4213fc]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.00401c40
mov edx, eax
cmp word [edx], 0
jne 0x405e6b
xor ecx, ecx
jmp 0x405e7f
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405e70
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, 0x422654
call fcn.004031c0
cmp dword [ebp + 0xc], 0
jne 0x405ea1
mov ecx, esi
call fcn.00405d90
test ax, ax
je 0x405f73
push 0
push esi
push 0
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0xcf0000
push 0
push 0x41e338
push 0x200
mov dword [0x424358], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x405f73
push dword [ebp + 0x14]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
xorps xmm0, xmm0
mov dword [esp + 0x10], 0
movq qword [esp + 0x14], xmm0
movq qword [esp + 0x1c], xmm0
movq qword [esp + 0x24], xmm0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call esi
test eax, eax
je 0x405f23
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
je 0x405f5b
lea eax, [esp + 0x10]
push eax
call ebx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x405f23
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00408043
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00408043
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407530
Capabilities:
Connect to wmi namespace via wbemlocator
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test eax, eax
je 0x40754e
push str.WMI_DeviceQuery_Init:faild
call edi
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
je 0x407571
push str.WMI_DeviceQuery_Init:faild
call edi
push 0x424360
push 0x41d7a8
push 1
push 0
push 0x41d878
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [0x424360], 0
jne 0x4075a4
push str.WMI_DeviceQuery_Init:faild
call edi
mov eax, 0xfffffffe
pop edi
mov esp, ebp
pop ebp
ret
push ecx
lea ecx, [ebp - 4]
call fcn.00406f10
mov edx, dword [eax]
test edx, edx
je 0x4075b7
mov edx, dword [edx]
jmp 0x4075b9
xor edx, edx
mov eax, dword [0x424360]
push esi
mov ecx, dword [eax]
push 0x42435c
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
mov esi, dword [ebp - 4]
test esi, esi
je 0x407623
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x407623
test esi, esi
je 0x407623
mov eax, dword [esi]
test eax, eax
je 0x407603
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40761a
push eax
call fcn.004087de
add esp, 4
mov dword [esi + 4], 0
push esi
call fcn.0040880d
add esp, 4
mov eax, dword [0x42435c]
pop esi
test eax, eax
je 0x407593
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
je 0x407651
push str.WMI_DeviceQuery_Init:faild
call edi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41331e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4213fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040c0ba
mov dword [ebp - 0x14], eax
cmp dword [0x423658], edi
jne 0x41340f
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41339c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4134ef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4134ef
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4134ef
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x423658], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x42365c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x423660], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x423668], eax
test eax, eax
je 0x41340c
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x423664], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x413434
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x413427
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x413449
push 4
pop eax
jmp 0x4134f1
cmp dword [ebp - 0x14], edi
je 0x413449
push dword [0x423658]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41342e
mov eax, dword [0x423664]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4134a7
cmp dword [0x423668], esi
je 0x4134a7
push eax
call ebx
push dword [0x423668]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4134a7
test eax, eax
je 0x4134a7
call ecx
test eax, eax
je 0x41349c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41349c
test byte [ebp - 8], 1
jne 0x4134a7
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4134d7
mov eax, dword [0x42365c]
cmp eax, esi
je 0x4134d4
push eax
call ebx
test eax, eax
je 0x4134d4
call eax
mov edi, eax
test edi, edi
je 0x4134d4
mov eax, dword [0x423660]
cmp eax, esi
je 0x4134d4
push eax
call ebx
test eax, eax
je 0x4134d4
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x423658]
call ebx
test eax, eax
je 0x4134ef
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4134f1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408043
leave
ret
Function at 0x401460
Capabilities:
Create thread

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x34
call sym.___main
mov dword [ebp - 0x18], 0
mov eax, dword [0x423838]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x3000
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._VirtualAlloc_16
sub esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [0x423838]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x404020
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._memmove
mov eax, dword [0x423838]
lea edx, [ebp - 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x20
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x401542
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateThread_24
sub esp, 0x18
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x401b90
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x426044
call sym._EnterCriticalSection_4
mov ebx, dword [0x42603c]
sub esp, 4
test ebx, ebx
je 0x401bdb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401bd4
test esi, esi
je 0x401bd4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401bb0
mov dword [esp], 0x426044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401dc0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401e10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401ee8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401e4e
cmp eax, 4
jne 0x401e70
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401e5e
cmp edx, 4
je 0x401e5e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401dc0
Function at 0x42b1a2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
bt cx, 7
add al, 0xf7
stc
not al
call fcn.00428615
lea esp, [esp + 8]
je 0x42a7c2
jmp 0x43c636
pushfd
mov dword [ebp - 4], eax
call fcn.0043863d
jmp 0x44b92e
ror al, 4
stc
jmp 0x42b193

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

Disassembly:
lea esp, [esp + 0x10]
jne 0x434d87
call fcn.0044c67d