joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b9b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4fc848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xa8]
mov ecx, dword [esi + 0xa4]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4 + 0x58]
lea ecx, [esi + 0x60]
push edx
call fcn.004dc008
mov ebx, 1
xor edi, edi
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], 2
mov dword [esi + 0x6c], 4
mov dword [esi + 0x70], edi
mov eax, dword [0x574900]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0xa8]
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x1c], edi
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0xa4]
mov ecx, dword [eax + edx*4 + 0x50]
push ecx
call fcn.0050bcb0
add esp, 8
lea edx, [esp + 0xc]
lea ecx, [esi + 0x78]
push edx
call fcn.004dc008
mov ecx, dword [esi + 0x40]
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
call fcn.004b671f
mov ecx, dword [esi + 0x40]
push eax
call fcn.004b671f
push eax
lea eax, [esi + 0x90]
push str._08X___d_
push eax
call fcn.004d3af7
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
add esp, 0x10
lea ecx, [esi + 0x5c]
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
push 3
push ecx
push edx
push eax
lea ecx, [esi + 0x48]
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], edi
call fcn.0041c740
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.004dbec1
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x42ef60
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4fcc18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x574900]
xor edx, edx
mov dword [esp + 4], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov dword [esp], method.CCommandLineInfo.virtual_0
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], edx
add eax, 0xfffffffe
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
add eax, 2
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x60]
cmp eax, edx
je 0x42efdd
mov eax, dword [eax + 8]
cmp eax, edx
je 0x42efdd
mov eax, dword [eax + 0x3c]
lea ecx, [esp]
push ecx
push 0x43
push edx
mov ecx, eax
call fcn.004e1688
mov dword [esp + 0x30], 1
lea edx, [esp + 0x14]
mov dword [esp + 0x38], edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 3
call fcn.004dbec1
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call fcn.004dbec1
lea eax, [esp + 4]
mov dword [esp + 0x38], eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 4
call fcn.004dbec1
lea ecx, [esp + 4]
mov byte [esp + 0x30], 1
call fcn.004dbec1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
Function at 0x440e00
Capabilities:
Access peb ldr_data
Get number of processors
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x4fe34e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.004d8070
lea edi, [esi + 0x3c]
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], edi
push fcn.004dbec1
push 0x441580
push 4
lea eax, [edi + 4]
push 4
push eax
mov byte [esp + 0x38], 1
call fcn.004c0503
mov dword [edi], method.CCommandLineInfo.virtual_0
mov ecx, dword [0x574900]
lea ebx, [esi + 0x64]
mov dword [ebx], ecx
mov eax, dword [esp + 0x34]
mov dword [esi], method.CWnd.virtual_0
test eax, eax
je 0x440e75
mov dword [esi + 0x60], eax
jmp 0x440e78
mov dword [esi + 0x60], edi
mov edx, dword [esp + 0x30]
mov dword [esi + 0x68], edx
mov eax, dword [0x574900]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 4
push ecx
push 0x64
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0x63
call fcn.004dc306
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.004dc356
mov edx, dword [esp + 0x2c]
mov ecx, ebx
push edx
call fcn.004dc058
lea eax, [esp + 0xc]
mov ecx, ebx
push eax
call fcn.004dc2ee
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 3
call fcn.004dbec1
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x450270
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5003be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor edi, edi
mov eax, 0x50db74
mov dword [esp + 0x10], esi
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], eax
mov dword [esp + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], eax
mov eax, dword [0x574900]
lea ebp, [esi + 0x3c]
mov dword [ebp], eax
lea ecx, [esi + 0x4c]
mov byte [esp + 0x30], 2
call fcn.004d549e
mov dword [esi + 0x54], 0x510acc
mov dword [esi + 0x58], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x5c], edi
lea ecx, [esi + 0x68]
mov byte [esp + 0x30], 4
call fcn.004d66b9
lea ecx, [esi + 0x7c]
mov byte [esp + 0x30], 5
call fcn.004d66b9
lea ebx, [esi + 0x90]
mov dword [esp + 0x14], ebx
lea ecx, [ebx + 0x10]
mov dword [ecx], method.CCommandLineInfo.virtual_0
mov dword [ecx + 4], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0xc], edi
mov dword [ecx + 8], edi
push 0xa
push edi
mov byte [esp + 0x38], 8
mov dword [ebx], method.CCommandLineInfo.virtual_0
call fcn.00490de0
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], edi
mov dword [ebx + 4], edi
mov dword [ebx + 0x24], edi
mov ecx, dword [esp + 0x38]
push edi
push 1
push edi
mov dword [esi], ecx
push 0x10
push 0x10
lea ecx, [esi + 0x4c]
mov byte [esp + 0x44], 9
mov dword [esi + 0x30], 0x16
call fcn.004d5563
mov eax, dword [esi]
mov edx, dword [eax + 8]
push edx
call dword [sym.imp.GDI32.dll_GetBkColor]
push eax
mov eax, dword [esi + 0x50]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
call fcn.004f0976
push 0x7f03
push edi
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
mov ecx, dword [esi + 0x50]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push 0x64
push edi
lea ecx, [esi + 0x90]
call fcn.00429c30
lea edx, [esp + 0x18]
mov dword [esi + 0x1c], edi
push edx
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x44], edi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0xc8
push 0x579a88
lea eax, [esp + 0x20]
push edi
push eax
push 1
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push 0x579a88
mov ecx, ebp
call fcn.004dc058
push 0x53c0ec
mov ecx, ebp
call fcn.004dc2b2
push 0xc8
push 0x579a88
lea ecx, [esp + 0x20]
push edi
push ecx
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push 0x579a88
mov ecx, ebp
call fcn.004dc2b2
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x46bad0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5017e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004db6cc
xor edi, edi
mov dword [esi + 0x5c], 0x5162a4
mov dword [esp + 0x1c], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], 0xa
mov dword [esi + 0x78], 0x516298
mov dword [esi + 0x7c], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x80], edi
lea ecx, [esi + 0x90]
mov byte [esp + 0x1c], 2
call fcn.004709a0
lea ebx, [esi + 0xc4]
mov dword [esp + 0x10], ebx
lea ecx, [ebx + 0x10]
mov dword [ecx], method.CCommandLineInfo.virtual_0
mov dword [ecx + 4], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0xc], edi
mov dword [ecx + 8], edi
push 0xa
push edi
mov byte [esp + 0x24], 5
mov dword [ebx], method.CCommandLineInfo.virtual_0
call fcn.00490de0
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], edi
mov dword [ebx + 4], edi
mov dword [ebx + 0x24], edi
lea ecx, [esi + 0xec]
mov byte [esp + 0x1c], 6
call fcn.004d5ee2
lea ecx, [esi + 0x100]
mov byte [esp + 0x1c], 7
call fcn.004d5ee2
lea ecx, [esi + 0x114]
mov byte [esp + 0x1c], 8
call fcn.004d5ee2
mov dword [esi], 0x516200
mov dword [esi + 0x28], 0xfffffffb
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], 4
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], 0x10
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov eax, dword [ebx + 0xc]
cmp eax, edi
mov byte [esp + 0x1c], 9
jg 0x46bc05
mov dword [ebx + 0xc], 0x1000
cmp dword [ebx + 0x24], edi
jle 0x46bc11
mov ecx, ebx
call fcn.00429b80
mov ecx, dword [esp + 0x14]
mov dword [ebx + 8], edi
mov dword [ebx + 4], edi
mov dword [esi + 0x128], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x12c], edi
mov dword [esi + 0x1c], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x496630
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x503f09
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
xor eax, eax
mov edx, 0x11
mov ecx, 0xa
mov dword [esp + 0x10], eax
mov dword [esi + 4], 0x518754
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], 0x518748
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], 0x518748
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ecx
mov dword [esi + 0x58], eax
mov byte [esi + 0x5c], al
mov eax, dword [esp + 0x18]
mov ecx, esi
push eax
mov byte [esp + 0x14], 3
mov dword [esi], 0x51873c
call fcn.00497150
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4994d0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x50427f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x20]
push 0
push edi
mov dword [esp + 0x10], 0
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov esi, eax
lea eax, [edi - 0x21]
shl esi, 0x10
cmp eax, 0xd
ja case.0x499512.34
xor ecx, ecx
mov cl, byte [eax + 0x499598]
jmp dword [ecx*4 + 0x499590]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x499527
or esi, 0x1000000
mov edx, dword [0x574900]
mov dword [esp + 0x20], edx
mov edi, 1
push 0x63
push 0x64
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], edi
call fcn.004dc306
push eax
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call fcn.004dc356
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.004dbc2e
mov dword [esp + 8], edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], 0
call fcn.004dbec1
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4998d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x50430e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov eax, dword [0x574900]
lea ecx, [esi + 8]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [ecx], eax
mov dword [esi + 0xc], 0x518a98
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 0xa
mov eax, dword [esp + 0x30]
mov dx, word [esp + 0x28]
push eax
mov byte [esp + 0x20], 2
mov dword [esi], 0x518a8c
mov word [esi + 4], dx
call fcn.004dc058
push 0xc
call fcn.004dbbfa
add esp, 4
cmp eax, edi
je 0x499963
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push ecx
mov ecx, eax
call fcn.00499460
mov ebp, eax
jmp 0x499965
xor ebp, ebp
mov eax, dword [esi + 0x1c]
mov ebx, dword [esi + 0x14]
cmp eax, edi
jne 0x49999f
mov edx, dword [esi + 0x24]
push 0xc
lea eax, [esi + 0x20]
push edx
push eax
call fcn.004d65ec
mov ecx, dword [esi + 0x24]
add eax, 4
lea edx, [ecx + ecx*2]
dec ecx
cmp ecx, edi
lea eax, [eax + edx*4 - 0xc]
jl 0x49999f
inc ecx
mov edx, dword [esi + 0x1c]
mov dword [eax], edx
mov dword [esi + 0x1c], eax
sub eax, 0xc
dec ecx
jne 0x499991
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
mov dword [esi + 0x1c], ecx
mov dword [eax + 4], ebx
mov dword [eax], edi
mov ebx, dword [esi + 0x18]
inc ebx
mov dword [esi + 0x18], ebx
mov dword [eax + 8], edi
mov dword [eax + 8], ebp
mov ecx, dword [esi + 0x14]
cmp ecx, edi
je 0x4999c4
mov dword [ecx], eax
jmp 0x4999c7
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x14], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14

Function at 0x49a488
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x518c60
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x49a4e0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x5798f0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x49a4d3
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x49a4e2
xor eax, eax
pop esi
leave
ret 4
Function at 0x4ddc6d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x4ddc80
xor eax, eax
jmp 0x4ddd23
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0x78]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
jmp 0x4ddcbf
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x18]
jae 0x4ddd21
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.004ddc1d
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4ddd1f
mov edx, dword [ebp - 8]
jmp 0x4ddcb6
xor eax, eax
Function at 0x4ddeed
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 8], 0x574916
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
push 0
call fcn.004dde3d
add esp, 8
mov dword [ebp - 0x40], eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call fcn.004dde3d
add esp, 8
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x4ddfb7
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004ddbed
add esp, 4
mov byte [ebp - 1], al
movzx edx, byte [ebp - 1]
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax]
cmp edx, ecx
je 0x4ddf71
movzx edx, byte [ebp - 1]
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 1]
cmp edx, ecx
je 0x4ddf71
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [ebp - 0x30]
push edx
call fcn.004ddd8d
add esp, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [eax + edx]
je 0x4ddfb7
mov edx, 4
shl edx, 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [eax + edx]
je 0x4ddfb7
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], 0
push 4
push 0x1000
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x3c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0xc], 0
jmp 0x4de01c
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x28]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
cmp dword [ebp - 0xc], edx
jae 0x4de040
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + edx]
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0xc]
mov dword [ecx], eax
jmp 0x4de010
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.004ddc6d
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4de063
jmp 0x4de11e
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x40]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], 8
Function at 0x4f1598
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.004f0976
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4f15d5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4f15d5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4f15d9
xor eax, eax
jmp 0x4f1657
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.004dbbfa
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x4f1611
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x4f15fb
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.004f1748
push ebx
mov edi, eax
call fcn.004dbc23
test edi, edi
pop ecx
je 0x4f1653
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.004f1511
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.004f165c
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x4f28f9
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 0x4f2927
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f2945
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004f285f
jmp 0x4f2945
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4f2945
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004f285f
test edi, edi
mov eax, edi
jne 0x4f292f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401430
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be8d6
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4f6108]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CXElement.0
call fcn.004047a0
mov ecx, eax
test ecx, ecx
jne 0x401477
push 0x80004005
call fcn.00404500
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 4], eax
mov dword [ebp - 4], 0
call fcn.004047a0
mov ecx, eax
test ecx, ecx
jne 0x40149e
push 0x80004005
call fcn.00404500
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0xc], eax
lea esi, [edi + 0x10]
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00402a10
mov dword [esi], eax
xorps xmm0, xmm0
mov eax, dword fs:[0x2c]
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov ecx, dword [eax]
movq qword [edi + 0x28], xmm0
mov dword [edi + 0x28], edi
mov dword [edi + 0x24], vtable.TGeneralObserverObj_class_CXElement_.0
mov eax, dword [0x4fc620]
cmp eax, dword [ecx + 4]
jle 0x40154b
push 0x4fc620
call fcn.0047ab4f
add esp, 4
cmp dword [0x4fc620], 0xffffffff
jne 0x40154b
push 0x4c74d0
mov dword [0x4f6df0], 0x64
mov dword [0x4f6df4], 0x64
mov byte [0x4f6df8], 0
call fcn.0047aa06
push 0x4fc620
call fcn.0047ab10
add esp, 8
mov dword [edi + 0x30], 0x4f6df0
mov eax, edi
mov dword [edi + 8], 0
mov dword [edi + 0x2c], 0x401a50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403d80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403d95
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403dd6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x403dd2
nop word [eax + eax]
cmp esi, edx
jae 0x403dd6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x403dc0
cmp esi, edx
jb 0x403ddb
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret