joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481461
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4814a3
call fcn.0048719d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4814a3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48149a
xor eax, eax
jmp 0x4814ab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004814b1
pop edi
pop esi
pop ebx
ret 4

Function at 0x4876cd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4876fb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x487719
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00487633
jmp 0x487719
mov eax, dword [esi + 0x14]
test eax, eax
je 0x487719
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00487633
test edi, edi
mov eax, edi
jne 0x487703
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401470
Capabilities:
Set registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x443d3c]
xor eax, esp
mov dword [esp + 0x20c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
shl ecx, 0x10
xor ecx, eax
and ecx, 0x3fffffff
mov dword [esp + 4], ecx
ja 0x4014a5
mov dword [esp + 4], 0x18705
push 0x1ff
lea edx, [esp + 0x11]
push 0
push edx
mov byte [esp + 0x18], 0
call fcn.00420550
add esp, 0xc
push str.RegPath_VHLD
call fcn.00412ad0
mov ecx, eax
call fcn.004127c0
push eax
lea eax, [esp + 0x10]
push str.Software_sMACHINE_ID
push eax
call fcn.004200a5
add esp, 0xc
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40152e
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0042050e
add esp, 0x210
ret
mov eax, dword [esp]
push 4
lea edx, [esp + 8]
push edx
push 4
push 0
push str.MACHINE_ID
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40150d
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20c]
mov eax, dword [esp + 4]
xor ecx, esp
call fcn.0042050e
add esp, 0x210
ret
Function at 0x401590
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x418
mov eax, dword [0x443d3c]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x428]
push edi
push 0x1ff
lea eax, [esp + 0x29]
push 0
xor bl, bl
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 4
mov byte [esp + 0x30], bl
call fcn.00420550
add esp, 0xc
push str.RegPath_VHLD
call fcn.00412ad0
mov ecx, eax
call fcn.004127c0
push eax
lea ecx, [esp + 0x28]
push str.Software_sMACHINE_ID
push ecx
call fcn.004200a5
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
lea eax, [esp + 0x30]
push eax
push connect
call edi
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4016d3
push 0x1ff
lea ecx, [esp + 0x229]
push 0
push ecx
mov byte [esp + 0x230], bl
call fcn.00420550
add esp, 0xc
push str.RegPath_Installer
call fcn.00412ad0
mov ecx, eax
call fcn.004127c0
mov esi, eax
push esi
lea edx, [esp + 0x228]
push str._sMACHINE_ID
push edx
call fcn.004200a5
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
mov bl, 1
call ebp
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push esi
push connect
call edi
test eax, eax
je 0x4016cf
mov edx, dword [esp + 0x10]
push edx
call ebp
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.Software_reefclubinstallerMACHINE_ID
push connect
call edi
test eax, eax
je 0x4016cf
mov ecx, dword [esp + 0x10]
push ecx
call ebp
call fcn.00401470
mov edx, dword [esp + 0x1c]
mov dword [edx], eax
jmp 0x401765
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.MACHINE_ID
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401704
mov eax, dword [esp + 0x10]
push eax
call ebp
call fcn.00401470
mov dword [esi], eax
jmp 0x401765
test bl, bl
je 0x40175e
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [esp + 0x40]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov ecx, dword [esp + 0x10]
je 0x40173a
push ecx
jmp 0x401763
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push esi
push eax
push 0
push str.MACHINE_ID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40175e
mov edx, dword [esp + 0x10]
push edx
jmp 0x401763
mov eax, dword [esp + 0x10]
push eax
call ebp
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042050e
add esp, 0x418
ret
Function at 0x401780
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x435b48
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x443d3c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.00402030
xor edi, edi
push 0x3ae0
mov dword [esp + 0x1c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
call fcn.00415a8a
push 0x3ae0
mov dword [esi + 0x20], eax
call fcn.00415a8a
push 0x64
mov dword [esi + 0x1c], eax
call fcn.00415a8a
push 0x3ae0
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x20]
push edi
push eax
call fcn.00420550
mov ecx, dword [esi + 0x1c]
push 0x3ae0
push edi
push ecx
call fcn.00420550
mov edx, dword [esi + 0x24]
push 0x64
push edi
push edx
call fcn.00420550
add esp, 0x30
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x401940
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x28], 0
push edi
lea edi, [esi + 0x28]
jne 0x4019b0
push edi
call fcn.0040d410
add esp, 4
test al, al
jne 0x40196c
push str.Failed_in_CClientReq::CreateTcpSocket__
call fcn.00404f70
add esp, 4
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x24]
push 0x2710
push eax
push ecx
push edi
call fcn.0040d5d0
add esp, 0x10
test al, al
jne 0x4019b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2748
je 0x4019b0
push str.Failed_in_CClientReq::SyncConnectWithTimeOut__
call fcn.00404f70
add esp, 4
push str.ERROR_:_Cant_connect_to_SDL___ClientReq_line_110_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor al, al
pop esi
ret
pop edi
mov al, 1
pop esi
ret

Function at 0x4019c0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
push edi
push 4
lea eax, [esp + 0xc]
push eax
mov esi, ecx
mov ecx, dword [esi + 0x28]
push 0x1005
lea edi, [esi + 0x28]
push 0xffff
push ecx
mov dword [esp + 0x1c], 0x1388
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
je 0x4019f5
pop edi
xor al, al
pop esi
pop ecx
ret
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x20]
push edx
push eax
push edi
call fcn.0040d460
add esp, 0xc
test al, al
pop edi
setne al
pop esi
pop ecx
ret
Function at 0x401a10
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ebx
push ebp
push 4
lea eax, [esp + 0xc]
push eax
mov ebx, ecx
mov ecx, dword [ebx + 0x28]
push 0x1006
lea ebp, [ebx + 0x28]
push 0xffff
push ecx
mov dword [esp + 0x1c], 0x2710
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
je 0x401a45
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
xor esi, esi
push edi
lea esp, [esp]
mov eax, dword [ebx + 0x1c]
mov edx, 0x3ae0
sub edx, esi
push edx
add eax, esi
push eax
push ebp
call fcn.0040d430
add esp, 0xc
test al, al
je 0x401a9c
mov ecx, dword [ebx + 0x1c]
add ecx, esi
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401a75
sub eax, edi
push 0x4387f4
push ecx
add esi, eax
call fcn.00420e52
add esp, 8
test eax, eax
je 0x401a50
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret

Function at 0x401f00
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
push esi
mov esi, 1
jne 0x401f15
mov eax, 2
pop esi
ret
mov edx, dword [esp + 0xc]
test edx, edx
je 0x401f0e
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x401f0e
cmp eax, 0xffffffff
jne 0x401f31
mov eax, 7
pop esi
ret
push edi
mov edi, dword [esp + 0x18]
push 0
push edi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop edi
jne 0x401f4c
mov esi, 2
mov eax, esi
pop esi
ret

Function at 0x401f50
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push edi
mov edi, dword [esp + 0x14]
test edi, edi
mov dword [esp + 8], 0
mov ebx, 1
jne 0x401f6f
pop edi
lea eax, [ebx + 1]
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [esp + 0x1c]
mov eax, ebp
sub eax, 1
je 0x401fa2
sub eax, 1
je 0x401f96
sub eax, 1
je 0x401f8f
pop ebp
pop edi
mov eax, 5
pop ebx
pop ecx
ret
mov eax, 0x40000000
jmp 0x401fa7
mov eax, 0x40000000
mov ecx, 2
jmp 0x401fac
mov eax, connect
mov ecx, 3
push esi
push 0
push 0x80
push ecx
push 0
push 3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, dword [esp + 0x18]
mov dword [esi], eax
jne 0x401fdf
push 2
push edi
push esi
call fcn.00401e70
mov ebx, eax
add esp, 0xc
cmp ebx, 1
jne 0x402022
cmp ebp, 3
jne 0x402022
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x40200a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
lea eax, [ebp + 4]
pop ebp
pop edi
pop ebx
pop ecx
ret
mov edx, dword [esi]
push 0
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x402022
mov ebx, 7
pop esi
pop ebp
pop edi
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x402b60
Capabilities:
Connect to http server

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov esi, ecx
push eax
push esi
call fcn.004217d7
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0
push 0
push 3
push 0x438897
push 0x438897
push ecx
mov byte [edi + esi], 0
mov edx, dword [esi + 0x108]
push esi
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 0x10c], eax
jne 0x402bbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x110], eax
pop edi
mov eax, 0xd
pop esi
ret 0xc
pop edi
mov eax, 1
pop esi
ret 0xc

Function at 0x402c00
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push edi
mov edi, dword [esp + 0x44]
test edi, edi
jne 0x402c14
lea eax, [edi + 0xa]
pop edi
add esp, 0x3c
ret
push esi
push 0x3c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00420550
mov esi, dword [esp + 0x58]
mov eax, dword [esi]
add esp, 0xc
test eax, eax
mov dword [esp + 8], 0x3c
mov dword [esp + 0x1c], 1
je 0x402c44
mov dword [esp + 0x18], eax
push edi
call fcn.00421a30
add esp, 4
lea ecx, [esp + 8]
push ecx
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x402c6b
pop esi
mov eax, 0xa
pop edi
add esp, 0x3c
ret
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x54]
mov cx, word [esp + 0x20]
mov dword [esi], edx
mov edx, dword [esp + 0x50]
mov word [eax], cx
mov eax, dword [esp + 0x1c]
pop esi
mov dword [edx], eax
mov eax, 1
pop edi
add esp, 0x3c
ret

Function at 0x402ca0
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push edi
mov edi, dword [esp + 0x44]
test edi, edi
jne 0x402cb4
lea eax, [edi + 0xa]
pop edi
add esp, 0x3c
ret
push esi
push 0x3c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00420550
mov esi, dword [esp + 0x58]
mov eax, dword [esi]
add esp, 0xc
test eax, eax
mov dword [esp + 8], 0x3c
mov dword [esp + 0x38], 1
je 0x402ce4
mov dword [esp + 0x34], eax
push edi
call fcn.00421a30
add esp, 4
lea ecx, [esp + 8]
push ecx
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x402d0b
pop esi
mov eax, 0xa
pop edi
add esp, 0x3c
ret
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x38]
mov dword [esi], edx
pop esi
mov dword [eax], ecx
mov eax, 1
pop edi
add esp, 0x3c
ret

Function at 0x402ec0
Capabilities:
Check http status code

Disassembly:
sub esp, 0x108
mov eax, dword [0x443d3c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
lea edx, [esp]
push edx
push 0x13
push eax
call fcn.00402d50
cmp eax, 1
jne 0x402f10
lea eax, [esp]
push eax
call fcn.00420120
add esp, 4
cmp eax, 0xc8
je 0x402f0b
cmp eax, 0xce
mov eax, 0x14
jne 0x402f10
mov eax, 1
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0042050e
add esp, 0x108
ret 4
Function at 0x402f30
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 0x414
mov eax, dword [0x443d3c]
xor eax, esp
mov dword [esp + 0x410], eax
mov eax, dword [esp + 0x41c]
push esi
push edi
mov edi, dword [esp + 0x420]
push 2
push eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.00401f50
mov esi, eax
add esp, 0xc
cmp esi, 1
jne 0x402ffb
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [esp + 0xc]
push ecx
push 0x400
lea edx, [esp + 0x24]
push edx
push edi
call ebx
test eax, eax
je 0x402ffa
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402ffa
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.00401f00
mov esi, eax
add esp, 0x10
cmp esi, 1
jne 0x402ffa
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00402d30
test eax, eax
je 0x402ff5
lea edx, [esp + 0xc]
push edx
push 0x400
lea eax, [esp + 0x24]
push eax
push edi
call ebx
test eax, eax
jne 0x402fa4
jmp 0x402ffa
mov esi, 0x12
pop ebx
lea ecx, [esp + 0xc]
push ecx
call fcn.00401ed0
mov ecx, dword [esp + 0x41c]
add esp, 4
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0042050e
add esp, 0x414
ret 8

Function at 0x403030
Capabilities:
Send data
Send http request

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
push ebx
lea eax, [esp + 0x10]
mov ebx, ecx
push eax
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x14], 0x7530
mov dword [esp + 0x10], 0
call fcn.00402ca0
add esp, 0xc
cmp eax, 1
jne 0x40312d
mov eax, dword [esp + 4]
mov ecx, dword [ebx + 0x10c]
push esi
push 0
push 0x4480000
push 0
push 0
push 0
push eax
push 0x438e44
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
jne 0x4030a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x110], eax
lea eax, [esi + 0xf]
pop esi
pop ebx
add esp, 8
ret 0xc
push edi
push 4
lea edx, [esp + 0x14]
push edx
push 6
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4030df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x110], eax
mov edi, 0xf
jmp 0x40310b
push esi
mov ecx, ebx
call fcn.00402ec0
mov edi, eax
cmp edi, 1
jne 0x40310b
cmp dword [esp + 0x20], 0
jne 0x4030fc
mov eax, dword [esp + 0x1c]
push eax
jmp 0x403101
mov ecx, dword [esp + 0x1c]
push ecx
push esi
mov ecx, ebx
call fcn.00402f30
mov edi, eax
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpEndRequestA]
cmp edi, 7
je 0x403129
cmp edi, 8
je 0x403129
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc
Function at 0x405260
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0x21], 0
je 0x405271
xor al, al
pop esi
pop ecx
ret 4
push edi
lea edi, [esi + 0x24]
push edi
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 8]
push 0
lea eax, [esp + 0xc]
push eax
push 0x64
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4052b9
mov eax, dword [esi + 8]
test eax, eax
je 0x4052b5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov byte [esi + 0x21], 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esi + 0x21], 0
pop edi
sete al
pop esi
pop ecx
ret 4
Function at 0x405bf0
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x78], ecx
mov ecx, esi
mov dword [esi + 0x6c], eax
call fcn.00405910
test eax, eax
jne 0x405c18
xor al, al
pop esi
add esp, 0xc
ret 8
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call edi
push 0xfffffffffffffff6
mov dword [esi + 0x18], eax
call edi
push 0
lea edx, [esp + 0x10]
push edx
lea edi, [esi + 0x10]
push edi
lea ebx, [esi + 0xc]
push ebx
mov dword [esi + 0x14], eax
mov dword [esp + 0x1c], 0xc
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x405c6a
pop edi
pop ebx
xor al, al
pop esi
add esp, 0xc
ret 8
push ebp
push 0
lea ecx, [esp + 0x14]
push ecx
lea ebp, [esi + 8]
lea eax, [esi + 4]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x405d3d
mov edx, dword [edi]
mov edi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
push edx
push 0xfffffffffffffff5
call edi
test eax, eax
je 0x405d3d
mov eax, dword [esi + 4]
push eax
push 0xfffffffffffffff6
call edi
test eax, eax
je 0x405d3d
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
push 0
call edi
mov ecx, dword [ebx]
push eax
push ecx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x405d3d
push 2
push 0
push 0
push 0
call edi
mov edx, dword [ebp]
push eax
push edx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 0
mov edi, eax
mov eax, dword [ebp]
mov ebp, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 1
push eax
call ebp
mov ecx, dword [ebx]
push 0
push 1
push ecx
call ebp
test edi, edi
je 0x405d3d
push esi
push esi
push 0x4059f0
call fcn.0040cc90
add esp, 0xc
test eax, eax
mov dword [esi + 0x3c], eax
je 0x405d3d
lea edx, [esp + 0x20]
push edx
push esi
push 0x405af0
mov dword [esp + 0x2c], 0
call fcn.0040cc90
add esp, 0xc
test eax, eax
mov dword [esi + 0x1c], eax
jne 0x405d49
pop ebp
pop edi
pop ebx
xor al, al
pop esi
add esp, 0xc
ret 8
add esi, 0x24
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
pop ebp
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0xc
ret 8
Function at 0x406280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406299
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4062d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4062d0
lea ebx, [ebx]
cmp esi, eax
jae 0x4062d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4062c0
cmp esi, eax
jb 0x4062da
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x406430
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x435d9e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x443d3c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
mov eax, 1
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], al
mov byte [esi + 0x31], al
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov byte [esi + 0x8c], al
mov byte [esi + 0x8d], al
mov dword [esi + 0x90], eax
lea ecx, [esi + 0xd8]
mov dword [esi + 0xd4], ebx
call fcn.0040c770
push 0x3a98
mov dword [esp + 0x1c], ebx
call fcn.00415a8a
push 0x3a98
mov dword [esi + 0x80], eax
call fcn.00415a8a
push 0x3a98
mov dword [esi + 0x88], eax
call fcn.00415a8a
push 0x3a98
mov dword [esi + 0x4c], eax
call fcn.00415a8a
push 0x3a98
mov dword [esi + 0x84], eax
call fcn.00415a8a
push 0x14
mov dword [esi + 0x94], eax
call fcn.00415a8a
push 0x14
mov dword [esi + 0xc4], eax
call fcn.00415a8a
push 0x14
mov dword [esi + 0xe8], eax
call fcn.00415a8a
push 0x3a98
mov dword [esi + 0xec], eax
mov eax, dword [esi + 0x80]
push ebx
push eax
call fcn.00420550
mov ecx, dword [esi + 0x88]
push 0x3a98
push ebx
push ecx
call fcn.00420550
mov edx, dword [esi + 0x84]
push 0x3a98
push ebx
push edx
call fcn.00420550
mov eax, dword [esi + 0x94]
add esp, 0x44
push 0x3a98
push ebx
push eax
call fcn.00420550
mov ecx, dword [esi + 0xc4]
add esp, 0xc
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [esi + 0xf0], ebx
call fcn.00401d90
cmp dword [eax], ebx
mov eax, dword [esi + 0xe8]
jne 0x4065de
mov ecx, dword [str.exep]
mov dword [eax], ecx
movzx edx, byte [0x4395e8]
mov byte [eax + 4], dl
mov eax, dword [esi + 0xec]
mov ecx, dword [str.smdp]
mov dword [eax], ecx
movzx edx, byte [0x4395e0]
mov byte [eax + 4], dl
jmp 0x4065f0
mov dword [eax], 0x657865
mov ecx, dword [esi + 0xec]
mov dword [ecx], 0x646d73
mov byte [esi + 0xb0], bl
mov dword [0x449fb4], ebx
call fcn.00401d90
mov dword [eax + 4], 0x9c40
call fcn.00401d90
cmp dword [eax], ebx
jne 0x40661d
call fcn.00401d90
mov dword [eax + 4], 0x4e20
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret