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

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
xor edi, edi
mov eax, dword [esi + 0x324]
push ecx
push 0xf003f
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], SysReAllocStringLen
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x405906
mov ecx, dword [esi + 0x320]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ecx, edi
je 0x4058a2
push ecx
call ebx
mov dword [esi + 0x320], edi
mov edx, dword [esp + 0x10]
cmp eax, edi
mov dword [esi + 0x320], edx
jne 0x405906
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esi + 0x320]
lea edx, [esp + 0x18]
push ecx
push edx
push edi
push str.RegMaxTxPacketSize
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4058f1
mov byte [esi + 0x330], 1
mov dword [esp + 0xc], SysReAllocStringLen
mov eax, dword [esi + 0x320]
cmp eax, edi
je 0x40590d
push eax
call ebx
mov dword [esi + 0x320], edi
jmp 0x40590d
mov byte [esi + 0x330], 1
mov eax, dword [esp + 0xc]
pop edi
pop esi
cmp eax, 0x7fffffff
pop ebx
jne 0x40591e
or eax, 0xffffffff
add esp, 0xc
ret

Function at 0x405854
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
xor edi, edi
mov eax, dword [esi + 0x324]
push ecx
push 0xf003f
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], SysReAllocStringLen
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x405906
mov ecx, dword [esi + 0x320]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ecx, edi
je 0x4058a2
push ecx
call ebx
mov dword [esi + 0x320], edi
mov edx, dword [esp + 0x10]
cmp eax, edi
mov dword [esi + 0x320], edx
jne 0x405906
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esi + 0x320]
lea edx, [esp + 0x18]
push ecx
push edx
push edi
push str.RegMaxTxPacketSize
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4058f1
mov byte [esi + 0x330], 1
mov dword [esp + 0xc], SysReAllocStringLen
mov eax, dword [esi + 0x320]
cmp eax, edi
je 0x40590d
push eax
call ebx
mov dword [esi + 0x320], edi
jmp 0x40590d
mov byte [esi + 0x330], 1
mov eax, dword [esp + 0xc]
pop edi
pop esi
cmp eax, 0x7fffffff
pop ebx
jne 0x40591e
or eax, 0xffffffff
add esp, 0xc
ret
Function at 0x405930
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
xor edi, edi
mov eax, dword [esi + 0x324]
push ecx
push 0xf003f
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], SysReAllocStringLen
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x4059e6
mov ecx, dword [esi + 0x320]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ecx, edi
je 0x405982
push ecx
call ebx
mov dword [esi + 0x320], edi
mov edx, dword [esp + 0x10]
cmp eax, edi
mov dword [esi + 0x320], edx
jne 0x4059e6
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esi + 0x320]
lea edx, [esp + 0x18]
push ecx
push edx
push edi
push str.RegMaxRxPacketSize
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4059d1
mov byte [esi + 0x330], 1
mov dword [esp + 0xc], SysReAllocStringLen
mov eax, dword [esi + 0x320]
cmp eax, edi
je 0x4059ed
push eax
call ebx
mov dword [esi + 0x320], edi
jmp 0x4059ed
mov byte [esi + 0x330], 1
mov eax, dword [esp + 0xc]
pop edi
pop esi
cmp eax, 0x7fffffff
pop ebx
jne 0x4059fe
or eax, 0xffffffff
add esp, 0xc
ret

Function at 0x405934
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
xor edi, edi
mov eax, dword [esi + 0x324]
push ecx
push 0xf003f
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], SysReAllocStringLen
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x4059e6
mov ecx, dword [esi + 0x320]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ecx, edi
je 0x405982
push ecx
call ebx
mov dword [esi + 0x320], edi
mov edx, dword [esp + 0x10]
cmp eax, edi
mov dword [esi + 0x320], edx
jne 0x4059e6
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esi + 0x320]
lea edx, [esp + 0x18]
push ecx
push edx
push edi
push str.RegMaxRxPacketSize
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4059d1
mov byte [esi + 0x330], 1
mov dword [esp + 0xc], SysReAllocStringLen
mov eax, dword [esi + 0x320]
cmp eax, edi
je 0x4059ed
push eax
call ebx
mov dword [esi + 0x320], edi
jmp 0x4059ed
mov byte [esi + 0x330], 1
mov eax, dword [esp + 0xc]
pop edi
pop esi
cmp eax, 0x7fffffff
pop ebx
jne 0x4059fe
or eax, 0xffffffff
add esp, 0xc
ret
Function at 0x405a10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
xor edi, edi
mov eax, dword [esi + 0x324]
push ecx
push 0xf003f
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], SysReAllocStringLen
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x405ac6
mov ecx, dword [esi + 0x320]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ecx, edi
je 0x405a62
push ecx
call ebx
mov dword [esi + 0x320], edi
mov edx, dword [esp + 0x10]
cmp eax, edi
mov dword [esi + 0x320], edx
jne 0x405ac6
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esi + 0x320]
lea edx, [esp + 0x18]
push ecx
push edx
push edi
push str.RegUsbStatusMaxPolls
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405ab1
mov byte [esi + 0x330], 1
mov dword [esp + 0xc], SysReAllocStringLen
mov eax, dword [esi + 0x320]
cmp eax, edi
je 0x405acd
push eax
call ebx
mov dword [esi + 0x320], edi
jmp 0x405acd
mov byte [esi + 0x330], 1
mov eax, dword [esp + 0xc]
pop edi
pop esi
cmp eax, 0x7fffffff
pop ebx
jne 0x405ade
or eax, 0xffffffff
add esp, 0xc
ret

Function at 0x405a14
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
xor edi, edi
mov eax, dword [esi + 0x324]
push ecx
push 0xf003f
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], SysReAllocStringLen
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x405ac6
mov ecx, dword [esi + 0x320]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ecx, edi
je 0x405a62
push ecx
call ebx
mov dword [esi + 0x320], edi
mov edx, dword [esp + 0x10]
cmp eax, edi
mov dword [esi + 0x320], edx
jne 0x405ac6
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esi + 0x320]
lea edx, [esp + 0x18]
push ecx
push edx
push edi
push str.RegUsbStatusMaxPolls
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405ab1
mov byte [esi + 0x330], 1
mov dword [esp + 0xc], SysReAllocStringLen
mov eax, dword [esi + 0x320]
cmp eax, edi
je 0x405acd
push eax
call ebx
mov dword [esi + 0x320], edi
jmp 0x405acd
mov byte [esi + 0x330], 1
mov eax, dword [esp + 0xc]
pop edi
pop esi
cmp eax, 0x7fffffff
pop ebx
jne 0x405ade
or eax, 0xffffffff
add esp, 0xc
ret
Function at 0x405af0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
xor edi, edi
mov eax, dword [esi + 0x324]
push ecx
push 0xf003f
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], SysReAllocStringLen
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x405ba6
mov ecx, dword [esi + 0x320]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ecx, edi
je 0x405b42
push ecx
call ebx
mov dword [esi + 0x320], edi
mov edx, dword [esp + 0x10]
cmp eax, edi
mov dword [esi + 0x320], edx
jne 0x405ba6
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esi + 0x320]
lea edx, [esp + 0x18]
push ecx
push edx
push edi
push str.RegUsbReadMaxPolls
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405b91
mov byte [esi + 0x330], 1
mov dword [esp + 0xc], SysReAllocStringLen
mov eax, dword [esi + 0x320]
cmp eax, edi
je 0x405bad
push eax
call ebx
mov dword [esi + 0x320], edi
jmp 0x405bad
mov byte [esi + 0x330], 1
mov eax, dword [esp + 0xc]
pop edi
pop esi
cmp eax, 0x7fffffff
pop ebx
jne 0x405bbe
or eax, 0xffffffff
add esp, 0xc
ret

Function at 0x405af4
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
xor edi, edi
mov eax, dword [esi + 0x324]
push ecx
push 0xf003f
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], SysReAllocStringLen
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x405ba6
mov ecx, dword [esi + 0x320]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ecx, edi
je 0x405b42
push ecx
call ebx
mov dword [esi + 0x320], edi
mov edx, dword [esp + 0x10]
cmp eax, edi
mov dword [esi + 0x320], edx
jne 0x405ba6
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esi + 0x320]
lea edx, [esp + 0x18]
push ecx
push edx
push edi
push str.RegUsbReadMaxPolls
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405b91
mov byte [esi + 0x330], 1
mov dword [esp + 0xc], SysReAllocStringLen
mov eax, dword [esi + 0x320]
cmp eax, edi
je 0x405bad
push eax
call ebx
mov dword [esi + 0x320], edi
jmp 0x405bad
mov byte [esi + 0x330], 1
mov eax, dword [esp + 0xc]
pop edi
pop esi
cmp eax, 0x7fffffff
pop ebx
jne 0x405bbe
or eax, 0xffffffff
add esp, 0xc
ret
Function at 0x405bd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
xor edi, edi
mov eax, dword [esi + 0x324]
push ecx
push 0xf003f
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], SysReAllocStringLen
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x405c86
mov ecx, dword [esi + 0x320]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ecx, edi
je 0x405c22
push ecx
call ebx
mov dword [esi + 0x320], edi
mov edx, dword [esp + 0x10]
cmp eax, edi
mov dword [esi + 0x320], edx
jne 0x405c86
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esi + 0x320]
lea edx, [esp + 0x18]
push ecx
push edx
push edi
push str.RegEnableHwFlowControl
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405c71
mov byte [esi + 0x330], 1
mov dword [esp + 0xc], SysReAllocStringLen
mov eax, dword [esi + 0x320]
cmp eax, edi
je 0x405c8d
push eax
call ebx
mov dword [esi + 0x320], edi
jmp 0x405c8d
mov byte [esi + 0x330], 1
mov eax, dword [esp + 0xc]
pop edi
pop esi
cmp eax, 0x7fffffff
pop ebx
jne 0x405c9e
or eax, 0xffffffff
add esp, 0xc
ret

Function at 0x405bd4
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
xor edi, edi
mov eax, dword [esi + 0x324]
push ecx
push 0xf003f
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], SysReAllocStringLen
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x405c86
mov ecx, dword [esi + 0x320]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ecx, edi
je 0x405c22
push ecx
call ebx
mov dword [esi + 0x320], edi
mov edx, dword [esp + 0x10]
cmp eax, edi
mov dword [esi + 0x320], edx
jne 0x405c86
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esi + 0x320]
lea edx, [esp + 0x18]
push ecx
push edx
push edi
push str.RegEnableHwFlowControl
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405c71
mov byte [esi + 0x330], 1
mov dword [esp + 0xc], SysReAllocStringLen
mov eax, dword [esi + 0x320]
cmp eax, edi
je 0x405c8d
push eax
call ebx
mov dword [esi + 0x320], edi
jmp 0x405c8d
mov byte [esi + 0x330], 1
mov eax, dword [esp + 0xc]
pop edi
pop esi
cmp eax, 0x7fffffff
pop ebx
jne 0x405c9e
or eax, 0xffffffff
add esp, 0xc
ret
Function at 0x4148b1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x438af0
cmp edx, dword [eax]
je 0x4148d3
add eax, 8
inc ecx
cmp eax, 0x438b80
jl 0x4148c4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x438af0]
jne 0x414a01
mov eax, dword [0x43b944]
cmp eax, 1
je 0x4149db
test eax, eax
jne 0x414904
cmp dword [0x4385f4], 1
je 0x4149db
cmp edx, 0xfc
je 0x414a01
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41493b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00415b50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00413390
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41497e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00413390
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42f994
push edi
call fcn.00416cf0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00415b50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00415b60
lea eax, [ebp - 0xa0]
push 0x42f974
push eax
call fcn.00415b60
push dword [esi + 0x438af4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00415b60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00416c5b
add esp, 0x2c
pop edi
jmp 0x414a01
lea eax, [ebp + 8]
lea esi, [esi + 0x438af4]
push 0
push eax
push dword [esi]
call fcn.00413390
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x41c830
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004115a0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41c8fb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41c8fb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41c8ae
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41c8b9
or bh, 8
and edi, 0x8000000
je 0x41c8d4
mov eax, dword [0x43d0dc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41c8fb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ccd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41ccfb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41cd1f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41cd3a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41e091
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42ab48
call fcn.00410134
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004270ff
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x41e0d0
call fcn.004270ff
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41e0de
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41e0ec
or eax, 0xffffffff
jmp 0x41e1d4
mov ecx, esi
call fcn.0041e007
mov dword [ebp - 0x14], eax
call fcn.0041ee9c
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x41e123
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41e123
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0041ee50
push dword [ebp - 0x14]
call fcn.0041e99e
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0041dd94
cmp eax, edi
je 0x41e196
test byte [esi + 0x24], 0x10
je 0x41e164
push 4
mov ecx, esi
pop ebx
call fcn.0042103f
test ah, 1
je 0x41e15c
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004209d9
cmp dword [esi + 0x1c], edi
je 0x41e196
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00421187
jmp 0x41e196
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x41e1aa
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41e1c3
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41e1c3
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0041e041
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x420887
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 0x4208c9
call fcn.004270ff
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4208c9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4208c0
xor eax, eax
jmp 0x4208d1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004208d7
pop edi
pop esi
pop ebx
ret 4
Function at 0x427a94
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 0x427ac2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x427ae0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004279fa
jmp 0x427ae0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x427ae0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004279fa
test edi, edi
mov eax, edi
jne 0x427aca
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret