joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402510
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x278
mov eax, dword [0x436260]
xor eax, esp
mov dword [esp + 0x274], eax
push ebp
mov ebp, dword [esp + 0x280]
push esi
push edi
xor esi, esi
push 0x1fe
lea eax, [esp + 0x86]
push esi
push eax
mov edi, ecx
mov dword [esp + 0x88], esi
mov word [esp + 0x8c], si
call fcn.004192c0
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x402562
mov edi, dword [edi + 4]
jmp 0x402565
add edi, 4
push ebx
push edi
push 0x200
lea ecx, [esp + 0x8c]
push ecx
push 0x42c550
push 0x42c564
push 0x42c528
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
mov edi, 7
jne 0x4025bd
push esi
push 0x42c550
lea ecx, [esp + 0x6c]
lea ebx, [edi - 6]
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], esi
mov word [esp + 0x70], si
call fcn.004022d0
lea eax, [esp + 0x64]
jmp 0x402638
lea eax, [esp + 0x84]
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
mov word [esp + 0x14], si
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4025d4
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x88]
push edx
lea ecx, [esp + 0x18]
call fcn.004022d0
push edi
push str.aliSOFT
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], esi
mov word [esp + 0x54], si
call fcn.004022d0
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
mov ebx, 0xe
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], esi
mov word [esp + 0x3c], si
call fcn.004020e0
lea eax, [esp + 0x2c]
push 0xffffffffffffffff
push esi
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x14], esi
push eax
mov ecx, ebp
mov word [ebp + 4], si
call fcn.004020e0
test bl, 8
je 0x402676
and ebx, 0xfffffff7
cmp dword [esp + 0x44], 8
jb 0x402669
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00418bdb
add esp, 4
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], esi
mov word [esp + 0x30], si
test bl, 4
je 0x40269f
and ebx, 0xfffffffb
cmp dword [esp + 0x60], 8
jb 0x402692
mov edx, dword [esp + 0x4c]
push edx
call fcn.00418bdb
add esp, 4
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], esi
mov word [esp + 0x4c], si
test bl, 2
je 0x4026c8
and ebx, 0xfffffffd
cmp dword [esp + 0x28], 8
jb 0x4026bb
mov eax, dword [esp + 0x14]
push eax
call fcn.00418bdb
add esp, 4
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
mov word [esp + 0x14], si
test bl, 1
pop ebx
je 0x4026e2
cmp dword [esp + 0x78], 8
jb 0x4026e2
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00418bdb
add esp, 4
mov ecx, dword [esp + 0x280]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.004192a2
add esp, 0x278
ret 4
Function at 0x402700
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x278
mov eax, dword [0x436260]
xor eax, esp
mov dword [esp + 0x274], eax
push ebp
mov ebp, dword [esp + 0x280]
push esi
push edi
xor esi, esi
push 0x1fe
lea eax, [esp + 0x86]
push esi
push eax
mov edi, ecx
mov dword [esp + 0x88], esi
mov word [esp + 0x8c], si
call fcn.004192c0
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x402752
mov edi, dword [edi + 4]
jmp 0x402755
add edi, 4
push ebx
push edi
push 0x200
lea ecx, [esp + 0x8c]
push ecx
push 0x42c550
push str.usertype
push 0x42c528
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
mov edi, 7
jne 0x4027ad
push esi
push 0x42c550
lea ecx, [esp + 0x6c]
lea ebx, [edi - 6]
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], esi
mov word [esp + 0x70], si
call fcn.004022d0
lea eax, [esp + 0x64]
jmp 0x402828
lea eax, [esp + 0x84]
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
mov word [esp + 0x14], si
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4027c4
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x88]
push edx
lea ecx, [esp + 0x18]
call fcn.004022d0
push edi
push str.aliSOFT
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], esi
mov word [esp + 0x54], si
call fcn.004022d0
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
mov ebx, 0xe
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], esi
mov word [esp + 0x3c], si
call fcn.004020e0
lea eax, [esp + 0x2c]
push 0xffffffffffffffff
push esi
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x14], esi
push eax
mov ecx, ebp
mov word [ebp + 4], si
call fcn.004020e0
test bl, 8
je 0x402866
and ebx, 0xfffffff7
cmp dword [esp + 0x44], 8
jb 0x402859
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00418bdb
add esp, 4
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], esi
mov word [esp + 0x30], si
test bl, 4
je 0x40288f
and ebx, 0xfffffffb
cmp dword [esp + 0x60], 8
jb 0x402882
mov edx, dword [esp + 0x4c]
push edx
call fcn.00418bdb
add esp, 4
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], esi
mov word [esp + 0x4c], si
test bl, 2
je 0x4028b8
and ebx, 0xfffffffd
cmp dword [esp + 0x28], 8
jb 0x4028ab
mov eax, dword [esp + 0x14]
push eax
call fcn.00418bdb
add esp, 4
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
mov word [esp + 0x14], si
test bl, 1
pop ebx
je 0x4028d2
cmp dword [esp + 0x78], 8
jb 0x4028d2
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00418bdb
add esp, 4
mov ecx, dword [esp + 0x280]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.004192a2
add esp, 0x278
ret 4
Function at 0x402cd0
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 0x402ce9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402d24
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402d20
lea ebx, [ebx]
cmp esi, eax
jae 0x402d24
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402d10
cmp esi, eax
jb 0x402d2a
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 0x402ef0
Capabilities:
Query or enumerate registry value

Disassembly:
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x402f03
push 0x80004005
call fcn.00402c00
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x402f7d
mov ecx, dword [edi]
test ecx, ecx
jbe 0x402f78
mov edx, dword [esp + 0x14]
test edx, edx
jbe 0x402f73
cmp edx, 2
jbe 0x402f64
cmp edx, 7
jne 0x402f73
test cl, 1
jne 0x402f73
shr ecx, 1
cmp ecx, 1
jb 0x402f73
cmp word [esi + ecx*2 - 2], 0
jne 0x402f73
cmp ecx, 1
jbe 0x402f7d
cmp word [esi + ecx*2 - 4], 0
jmp 0x402f71
test cl, 1
jne 0x402f73
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x402f7d
mov eax, 0xd
mov word [esi], 0
pop esi
pop edi
ret 0xc
Function at 0x4037a0
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x2c4
mov eax, dword [0x436260]
xor eax, esp
mov dword [esp + 0x2c0], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2d4]
push edi
xor ebx, ebx
push 0x44
lea eax, [esp + 0x34]
push ebx
push eax
mov edi, ecx
mov dword [esp + 0xd0], 0xf
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
call fcn.004192c0
add esp, 0xc
cmp dword [0x435160], ebx
mov dword [esp + 0x30], 0x44
lea ebp, [ebx + 8]
jne 0x40390e
push 0x206
lea ecx, [esp + 0xce]
push ebx
push ecx
mov word [esp + 0xd4], bx
call fcn.004192c0
add esp, 0xc
push 0x208
lea edx, [esp + 0xcc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0xc8]
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], bx
lea edx, [eax + 2]
jmp 0x403860
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403860
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x98]
call fcn.004022d0
push 1
push ebx
push 0x42c5a4
lea ecx, [esp + 0x9c]
call fcn.00402fc0
add eax, 1
push eax
push ebx
lea ecx, [esp + 0x98]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
call fcn.004020e0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x43514c
call fcn.004020e0
cmp dword [esp + 0x2c], ebp
jb 0x4038e4
mov eax, dword [esp + 0x18]
push eax
call fcn.00418bdb
add esp, 4
push 0x2c
push str.Program_FilesInternet_ExplorerIEXPLORE.EXE
mov ecx, 0x43514c
call fcn.004021d0
cmp dword [esp + 0xa8], ebp
jb 0x40390e
mov ecx, dword [esp + 0x94]
push ecx
call fcn.00418bdb
add esp, 4
push 5
push str.open
lea ecx, [esp + 0x7c]
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
call fcn.004022d0
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403940
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x7c]
call fcn.004021d0
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403960
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, edi
call fcn.004022d0
cmp dword [esp + 0x8c], ebp
mov ecx, dword [esp + 0x78]
jae 0x403989
lea ecx, [esp + 0x78]
cmp dword [0x435164], ebp
mov eax, dword [0x435150]
jae 0x40399b
mov eax, 0x435150
push 0x43751c
lea edx, [esp + 0x34]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne byte [esp + 0x13]
cmp dword [esp + 0x8c], ebp
jb 0x4039d0
mov eax, dword [esp + 0x78]
push eax
call fcn.00418bdb
add esp, 4
cmp dword [esp + 0xc4], 0x10
pop edi
pop esi
pop ebp
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], bx
mov dword [esp + 0x80], 7
pop ebx
jb 0x403a02
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.00418bdb
add esp, 4
mov ecx, dword [esp + 0x2c0]
mov al, byte [esp + 3]
xor ecx, esp
call fcn.004192a2
add esp, 0x2c4
ret 4
Function at 0x4044c0
Capabilities:
Create process on windows
Initialize iwebbrowser2

Disassembly:
sub esp, 0x34
push ebx
push esi
mov ebx, ecx
call fcn.004032b0
mov esi, eax
lea eax, [esi - 1]
cmp eax, 5
ja 0x4044ea
push str.fi.alisoft.com
mov ecx, ebx
call fcn.00403aa0
test al, al
jne 0x404655
cmp esi, 7
jb 0x404503
push str.fi.alisoft.com
mov ecx, ebx
call fcn.00403d90
test al, al
jne 0x404655
mov esi, dword [esp + 0x40]
push ebp
mov ebp, 8
cmp dword [esi + 0x18], ebp
push edi
lea edi, [esi + 4]
jb 0x40451a
mov eax, dword [edi]
jmp 0x40451c
mov eax, edi
push eax
mov ecx, ebx
call fcn.004037a0
test al, al
jne 0x404653
cmp dword [esi + 0x18], ebp
jb 0x404535
mov eax, dword [edi]
jmp 0x404537
mov eax, edi
push 1
xor ebx, ebx
push ebx
push ebx
push eax
push 0x42c5a8
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x404653
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 0x10]
push ecx
push 0x42c5c4
push 0x17
push ebx
push 0x42e0e0
mov dword [esp + 0x24], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40463d
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [edx + 0xac]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xbc]
push 0xffffffffffffffff
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc4]
push 0xffffffffffffffff
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa4]
push 0xffffffffffffffff
push eax
call edx
lea eax, [esp + 0x14]
push eax
mov word [esp + 0x38], 3
mov dword [esp + 0x40], ebx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
cmp dword [esi + 0x18], ebp
mov word [esp + 0x24], bp
jb 0x4045e4
mov edi, dword [edi]
push edi
lea ecx, [esp + 0x4c]
call fcn.00403090
mov eax, dword [eax]
cmp eax, ebx
je 0x4045fc
mov ecx, dword [eax]
mov dword [esp + 0x2c], ecx
jmp 0x404600
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x48]
call fcn.004036c0
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0xd0]
lea ecx, [esp + 0x14]
push ecx
push ecx
push ecx
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x34]
push ecx
push eax
call edx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40463d
mov dword [esp + 0x10], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x404653
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
add esp, 0x34
ret 4

Function at 0x405300
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8
Function at 0x405320
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x405336
push 0x80004005
call fcn.00402c00
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x405360
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x405378
push 0x80004005
call fcn.00402c00
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x405385
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8

Function at 0x405980
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x436260]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x4059ee
test ecx, ecx
je 0x4059e0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x4059fc
test ecx, ecx
je 0x405aa1
push ecx
jmp 0x405a9b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x405a6e
jmp 0x405a30
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.00405980
mov edi, eax
test edi, edi
jne 0x405abd
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x405a30
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x405a85
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x405aa1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004192a2
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x405acc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x405aa3
Function at 0x407270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
call fcn.00407030
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push edi
push esi
mov dword [esp + 0x20], 0
call ebx
mov ebp, eax
test ebp, ebp
je 0x40734f
push pe_nt_image_headers32
push edi
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
test eax, eax
je 0x4072c4
push eax
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebp
push esi
mov dword [esp + 0x18], 0
call edi
test eax, eax
je 0x407328
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x407328
push ebx
push edi
call fcn.00404940
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
add esp, 8
mov ebx, eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
push edx
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov esi, eax
test esi, esi
jne 0x407314
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x407336
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x407336
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x407345
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x40c400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x414
mov eax, dword [0x436260]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x424]
push ebp
mov ebp, dword [esp + 0x424]
push esi
push edi
mov edi, dword [esp + 0x428]
mov esi, ecx
call dword [0x436154]
xor eax, eax
push 2
push eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c463
call fcn.004051d0
mov esi, eax
jmp 0x40c528
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40c47c
call fcn.004051d0
jmp 0x40c51f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
jne 0x40c494
call fcn.004051d0
jmp 0x40c51f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x40c4c8
lea eax, [esp + 0x20]
cmp dword [esp + 0x1c], eax
je 0x40c4b8
lea ecx, [esp + 0x1c]
call fcn.00405940
lea ecx, [esp + 0x10]
call fcn.00404b80
mov eax, 0x8007000e
jmp 0x40c542
push eax
lea ecx, [esp + 0x20]
call fcn.004063a0
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jne 0x40c4e1
mov esi, 0x8007000e
jmp 0x40c521
call dword [0x436154]
push esi
push ebx
push esi
push ebp
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40c4ff
call fcn.004051d0
jmp 0x40c51f
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x434]
mov word [ecx + eax*2], 0
mov eax, dword [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.00407360
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x20]
cmp dword [esp + 0x1c], ecx
je 0x40c540
lea ecx, [esp + 0x1c]
call fcn.00405940
jmp 0x40c540
mov eax, esi
mov ecx, dword [esp + 0x420]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004192a2
add esp, 0x414
ret 0x10

Function at 0x40da90
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push 1
push 0
push 0
push eax
push 0x42c5a8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x40f130
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, ecx
mov eax, dword [esi + 4]
push 0x3f9
push eax
call edi
cmp byte [esp + 0x10], 0
je 0x40f27b
push ebp
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call ebp
mov ecx, dword [esi + 4]
push 0x3f9
push ecx
call edi
mov ebx, dword [sym.imp.USER32.dll_MoveWindow]
push 0
push 0x51
push 0xdc
push 0xb4
push 0x23
push eax
call ebx
mov edx, dword [esi + 4]
push 0x3ef
push edx
call edi
push 0
push 0x16
push 0x46
push 0xb4
push 0x64
push eax
call ebx
mov eax, dword [esi + 4]
push 0x3f1
push eax
call edi
push 0
push 0x16
push 0x46
push 0xb4
push 0xb4
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x3f0
push ecx
call edi
push 0
push 0xc
push 0xc
push 0xd7
push 0x64
push eax
call ebx
mov edx, dword [esi + 4]
push 0x3fe
push edx
call edi
push 0
push 0xc
push 0x35
push 0xd7
push 0x70
push eax
call ebx
mov eax, dword [esi + 4]
push 0x3f3
push eax
call edi
push 0
push 0x18
push 0x3c
push 0xd7
push 0xab
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x3f4
push ecx
call edi
push 0
push 0x18
push 0x28
push 0xd7
push 0xe1
push eax
call ebx
mov edx, dword [esi + 4]
push 0x3eb
push edx
call edi
push 0
push 0x18
push 0x46
push 0xec
push 0x64
push eax
call ebx
mov eax, dword [esi + 4]
push 0x401
push eax
call edi
push 0
push 0x18
push 0x46
push 0xec
push 0xb4
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x3ef
push ecx
call edi
push 5
push eax
call ebp
pop ebp
jmp 0x40f389
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 4]
push 0x3f9
push edx
call edi
mov ebx, dword [sym.imp.USER32.dll_MoveWindow]
push 0
push 0
push 0
push 0xb4
push 0x23
push eax
call ebx
mov eax, dword [esi + 4]
push 0x3ef
push eax
call edi
push 0
push 0
push 0
push 0xb4
push 0x23
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x3f1
push ecx
call edi
push 0
push 0
push 0
push 0xc8
push 0x82
push eax
call ebx
mov edx, dword [esi + 4]
push 0x3fe
push edx
call edi
push 0
push 0xc
push 0x35
push 0xc3
push 0x70
push eax
call ebx
mov eax, dword [esi + 4]
push 0x3f0
push eax
call edi
push 0
push 0xc
push 0xc
push 0xc3
push 0x64
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x3f3
push ecx
call edi
push 0
push 0x18
push 0x3c
push 0xc3
push 0xab
push eax
call ebx
mov edx, dword [esi + 4]
push 0x3f4
push edx
call edi
push 0
push 0x18
push 0x28
push 0xc3
push 0xe1
push eax
call ebx
mov eax, dword [esi + 4]
push 0x3eb
push eax
call edi
push 0
push 0x18
push 0x46
push 0xd8
push 0x64
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x401
push ecx
call edi
push 0
push 0x18
push 0x46
push 0xd8
push 0xb4
push eax
call ebx
mov edx, dword [esi + 4]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi + 4]
push 0
push 1
push 0x466
push eax
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
mov dword [esi + 0x470], eax
pop esi
pop ebx
ret 4