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

Disassembly:
push 0xffffffffffffffff
push 0x40f33f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x20]
lea ecx, [esp + 4]
push eax
push 0x416128
push ecx
push 8
push 2
push 0x68030004
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_CWnd::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.0040ed08
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x4015b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40f36f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x20]
lea ecx, [esp + 4]
push eax
push 0x41612c
push ecx
push 8
push 2
push 0x68030003
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_CWnd::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.0040ed08
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x402630
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x40f7f5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x412e60
mov eax, dword [esi + 0x394]
mov dword [esp + 0x10], 0x1f
test eax, eax
je 0x402686
mov eax, dword [eax + 0x2c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x402686
mov ecx, dword [esi + 0x394]
test ecx, ecx
je 0x402686
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov eax, dword [esi + 0x388]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x348]
mov byte [esp + 0x10], 0x1e
call fcn.0040ecfc
lea ecx, [esi + 0x308]
mov byte [esp + 0x10], 0x1d
call fcn.0040ecfc
lea ecx, [esi + 0x2c8]
mov byte [esp + 0x10], 0x1c
call fcn.0040ecfc
lea ecx, [esi + 0x288]
mov byte [esp + 0x10], 0x1b
call fcn.0040ecfc
lea ecx, [esi + 0x248]
mov byte [esp + 0x10], 0x1a
call fcn.0040ecfc
lea ecx, [esi + 0x208]
mov byte [esp + 0x10], 0x19
call fcn.0040ecfc
lea ecx, [esi + 0x1c8]
mov byte [esp + 0x10], 0x18
call fcn.0040ecfc
lea ecx, [esi + 0x188]
mov byte [esp + 0x10], 0x17
call fcn.0040ecfc
lea ecx, [esi + 0x148]
mov byte [esp + 0x10], 0x16
call fcn.0040ecfc
lea ecx, [esi + 0x108]
mov byte [esp + 0x10], 0x15
call fcn.0040ecfc
lea ecx, [esi + 0x104]
mov byte [esp + 0x10], 0x14
call fcn.0040ed08
lea ecx, [esi + 0x100]
mov byte [esp + 0x10], 0x13
call fcn.0040ed08
lea ecx, [esi + 0xfc]
mov byte [esp + 0x10], 0x12
call fcn.0040ed08
lea ecx, [esi + 0xf8]
mov byte [esp + 0x10], 0x11
call fcn.0040ed08
lea ecx, [esi + 0xf4]
mov byte [esp + 0x10], 0x10
call fcn.0040ed08
lea ecx, [esi + 0xf0]
mov byte [esp + 0x10], 0xf
call dword [sym.imp.Hookdll.dll_public_virtual:_void___thiscall_CHook::destructor_void_]
lea ecx, [esi + 0xec]
mov byte [esp + 0x10], 0xe
call fcn.0040ed08
lea ecx, [esi + 0xd4]
mov byte [esp + 0x10], 0xd
call fcn.0040ed08
lea ecx, [esi + 0xd0]
mov byte [esp + 0x10], 0xc
call fcn.0040ed08
lea ecx, [esi + 0xcc]
mov byte [esp + 0x10], 0xb
call fcn.0040ed08
lea ecx, [esi + 0xc8]
mov byte [esp + 0x10], 0xa
call fcn.0040ed08
lea ecx, [esi + 0xc4]
mov byte [esp + 0x10], 9
call fcn.0040ed08
lea ecx, [esi + 0xc0]
mov byte [esp + 0x10], 8
call fcn.0040ed08
lea ecx, [esi + 0xbc]
mov byte [esp + 0x10], 7
call fcn.0040ed08
lea ecx, [esi + 0xb8]
mov byte [esp + 0x10], 6
call fcn.0040ed08
lea ecx, [esi + 0xb4]
mov byte [esp + 0x10], 5
call fcn.0040ed08
lea ecx, [esi + 0xb0]
mov byte [esp + 0x10], 4
call fcn.0040ed08
lea ecx, [esi + 0xac]
mov byte [esp + 0x10], 3
call fcn.0040ed08
lea ecx, [esi + 0xa8]
mov byte [esp + 0x10], 2
call fcn.0040ed08
lea ecx, [esi + 0x64]
mov byte [esp + 0x10], 1
call fcn.0040ed08
lea ecx, [esi + 0x60]
mov byte [esp + 0x10], 0
call fcn.0040ed08
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CDialog::CDialog
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404d90
Capabilities:
Read file via mapping

Disassembly:
push esi
push str.mitesm
push 0
mov esi, ecx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
mov dword [esi + 0x38c], eax
jne 0x404db8
push eax
push eax
push 0x416ca4
call sub.MFC42.DLL_AfxMessageBox_1
mov eax, dword [esi + 0x38c]
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x390], eax
jne 0x404de3
push eax
push eax
push 0x416c7c
call sub.MFC42.DLL_AfxMessageBox_1
mov ecx, dword [esi + 0x390]
push 0
push 0
push 0
push 0
push 0x417448
push 0x404e30
mov dword [0x417448], ecx
mov dword [0x41744c], esi
call sub.MFC42.DLL_AfxBeginThread
mov dword [esi + 0x394], eax
pop esi
test eax, eax
jne 0x404e23
push eax
push eax
push 0x416c58
call sub.MFC42.DLL_AfxMessageBox_1
ret
Function at 0x40e680
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [edx + 4]
push esi
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8

Function at 0x40e6b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xd0
lea eax, [esp]
push esi
push eax
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0xe0]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
mov dword [esp + 0x1c], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x40e6f9
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xe0]
call sub.MFC42.DLL_CString::operator
mov eax, esi
pop esi
add esp, 0xd0
ret 8

Function at 0x40e890
Capabilities:
Get hostname
Get session user name
Resolve dns
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x41119b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov eax, dword [esp + 0x124]
push ebp
mov ebp, ecx
push 0x100
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc], 1
push ecx
mov dword [ebp + 0x1c], eax
call sub.WSOCK32.dll_gethostname
lea edx, [esp + 0x18]
push edx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x40e8e5
or eax, 0xffffffff
jmp 0x40e9e5
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
lea eax, [esp + 0xc]
push eax
mov edx, dword [ecx]
lea ecx, [esp + 0x1c]
push ecx
mov dword [ebp + 0x10], edx
mov dword [esp + 0x14], 0x40
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x40e968
push esi
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0xc]
mov ecx, ebp
push edx
mov dword [esp + 0x12c], 0
call fcn.0040ebb0
mov edi, dword [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x128], 0xffffffff
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
call fcn.0040ed08
pop edi
pop esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x27], 0
push ecx
lea ecx, [ebp + 0x14]
call sub.MFC42.DLL_CString::operator
mov edx, dword [ebp + 8]
push 0
push 0x3f
push 2
push edx
mov ecx, ebp
call sub.MFC42.DLL_CAsyncSocket::Create
test eax, eax
jne 0x40e994
or eax, 0xffffffff
jmp 0x40e9e5
mov eax, dword [ebp + 0xc]
push eax
call sub.WSOCK32.dll_inet_addr
mov ecx, dword [ebp + 4]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 8
push eax
push 5
push 0
push ecx
mov dword [esp + 0x28], 0
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x40e9c6
or eax, eax
jmp 0x40e9e5
mov eax, dword [ebp + 4]
lea edx, [esp + 8]
push 4
push edx
push 4
push 0xffff
push eax
call sub.WSOCK32.dll_setsockopt
inc eax
neg eax
sbb eax, eax
neg eax
dec eax
mov ecx, dword [esp + 0x118]
pop ebp
mov dword fs:[0], ecx
add esp, 0x120
ret 4
Function at 0x40ea30
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov dword [esp + 8], 7
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x40ea51
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x14
ret 0xc
xor eax, eax
mov edi, dword [esp + 0x28]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 8]
add edi, eax
jne 0x40ea70
mov edi, eax
mov edx, dword [esi + 4]
lea ecx, [esp + 8]
push 4
push ecx
push 3
push 0
push edx
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x40ea93
pop edi
or eax, eax
pop esi
add esp, 0x14
ret 0xc
push edi
mov word [esp + 0x10], 2
call sub.WSOCK32.dll_htons
mov word [esp + 0xe], ax
mov eax, dword [esi + 0xc]
push eax
call sub.WSOCK32.dll_inet_addr
mov edx, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x10]
push 0x10
push ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
push edx
push ecx
mov ecx, esi
call dword [eax + 0x44]
pop edi
pop esi
add esp, 0x14
ret 0xc
Function at 0x401110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40112b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401162
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40115e
jmp 0x401150
cmp esi, eax
jae 0x401162
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401150
cmp esi, eax
jb 0x401169
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4019b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4019e9
mov eax, 1
pop esi
pop ebp
ret 4
call esi
sub eax, 6
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 2
pop esi
pop ebp
ret 4

Function at 0x4021c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4021d9
lea eax, [esi + 0xd]
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x4021e3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push edi
push eax
mov eax, dword [edx]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x402850
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x551644]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
xor esi, esi
push eax
push edx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x108], esi
call fcn.004020b0
mov ebx, eax
cmp ebx, esi
je 0x4028ca
mov eax, dword [ebp - 0x110]
cmp eax, esi
je 0x4028b5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f4f8b
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x110]
push esi
push esi
push esi
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x104]
push edx
push esi
push eax
mov dword [ebp - 0x114], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40294c
mov edi, edi
lea ecx, [ebp - 0x104]
push ecx
lea ecx, [ebp - 0x110]
call fcn.00402850
mov ebx, eax
cmp ebx, esi
jne 0x4028a4
lea edx, [ebp - 0x120]
push edx
mov edx, dword [ebp - 0x110]
push esi
push esi
push esi
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x104]
push ecx
push esi
push edx
mov dword [ebp - 0x114], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x402900
mov eax, dword [ebp - 0x110]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x402965
push eax
call ebx
mov dword [ebp - 0x110], esi
mov eax, dword [ebp - 0x118]
push eax
mov ecx, edi
mov dword [ebp - 0x10c], esi
call fcn.00401f90
mov edi, eax
mov eax, dword [ebp - 0x110]
cmp eax, esi
je 0x402988
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4f8b
mov esp, ebp
pop ebp
ret 4
Function at 0x404f20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x58], 0
push edi
je 0x404f5b
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0x14]
push eax
call edi
cmp eax, 0xffffffff
jne 0x404f61
call ebx
cmp eax, 0x4d3
je 0x404f5b
cmp eax, 2
je 0x404f5b
cmp eax, 0x15
jne 0x404f5b
cmp dword [esi + 0x58], 0
jne 0x404f37
pop edi
pop esi
xor eax, eax
pop ebx
ret
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x408210
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 8]
call edx
test eax, eax
jne 0x408229
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi + 4]
test edx, edx
jne 0x408234
xor eax, eax
jmp 0x40824a
mov eax, dword [esi + 0xc]
test eax, eax
je 0x408240
mov ecx, dword [eax + 0xc]
jmp 0x408242
xor ecx, ecx
mov eax, dword [esi + 8]
imul eax, ecx
add eax, edx
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [eax]
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push edx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408281
call fcn.00401d70
xor ecx, ecx
test eax, eax
sete cl
pop esi
mov eax, ecx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
sub eax, esi
neg eax
sbb eax, eax
and eax, 0x80070026
xor ecx, ecx
test eax, eax
sete cl
pop esi
mov eax, ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x4082a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 8]
call edx
test eax, eax
jne 0x4082b6
pop esi
pop ebp
ret 0xc
mov edx, dword [esi + 4]
test edx, edx
jne 0x4082c1
xor eax, eax
jmp 0x4082d7
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4082cd
mov ecx, dword [eax + 0xc]
jmp 0x4082cf
xor ecx, ecx
mov eax, dword [esi + 8]
imul eax, ecx
add eax, edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push 0
push ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [eax]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408305
call fcn.00401d70
xor ecx, ecx
test eax, eax
sete cl
pop esi
mov eax, ecx
pop ebp
ret 0xc
xor eax, eax
xor ecx, ecx
test eax, eax
sete cl
pop esi
mov eax, ecx
pop ebp
ret 0xc
Function at 0x408320
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 8]
call edx
test eax, eax
jne 0x408336
pop esi
pop ebp
ret 8
mov edx, dword [esi + 4]
test edx, edx
jne 0x408341
xor eax, eax
jmp 0x408357
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40834d
mov ecx, dword [eax + 0xc]
jmp 0x40834f
xor ecx, ecx
mov eax, dword [esi + 8]
imul eax, ecx
add eax, edx
mov edx, dword [ebp + 0xc]
push 0
lea ecx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [eax]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x408385
call fcn.00401d70
xor ecx, ecx
test eax, eax
sete cl
pop esi
mov eax, ecx
pop ebp
ret 8
xor eax, eax
xor ecx, ecx
test eax, eax
sete cl
pop esi
mov eax, ecx
pop ebp
ret 8

Function at 0x408520
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5059e0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x551644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 8]
xor edi, edi
mov dword [ebp - 4], edi
call edx
cmp eax, edi
jne 0x408572
push 0x533160
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 1
call fcn.004f4775
mov edx, dword [esi + 4]
cmp edx, edi
jne 0x40857d
xor eax, eax
jmp 0x408593
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x408589
mov ecx, dword [eax + 0xc]
jmp 0x40858b
xor ecx, ecx
mov eax, dword [esi + 8]
imul eax, ecx
add eax, edx
mov edx, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
jne 0x4085b4
call fcn.00401d70
cmp eax, edi
jl 0x4085d5
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x533160
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x18], 2
call fcn.004f4775
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov eax, 0x4085bd
ret

Function at 0x4093b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x551644]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x90
lea eax, [ebp - 0x94]
push 0
push eax
mov dword [ebp - 0x98], 0x94
call fcn.004f55d0
add esp, 0xc
lea ecx, [ebp - 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40941d
mov eax, dword [ebp - 0x94]
cmp eax, 5
jae 0x40940d
cmp eax, 4
jne 0x40941d
cmp dword [ebp - 0x90], 0x5a
jb 0x40941d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f4f8b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.004f4f8b
mov esp, ebp
pop ebp
ret
Function at 0x40c940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebx, ebx
push edi
cmp eax, ebx
je 0x40c958
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov edx, dword [0x55392c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
mov eax, dword [0x55392c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x40c9c5
mov ecx, dword [0x55392c]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esi + 4]
push edx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi + 0xc], eax
cmp eax, ebx
jne 0x40c9c5
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40c9bc
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40cf00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
test ecx, ecx
je 0x40cf14
lea esi, [ecx - 0x54]
mov dword [ebp - 4], esi
jmp 0x40cf1e
mov dword [ebp - 4], 0
mov esi, dword [ebp - 4]
cmp dword [ebp + 0x14], 0
mov ecx, dword [esi + 4]
mov dword [ebp - 8], 1
je 0x40cfd8
mov eax, dword [ebp + 8]
push ebx
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, eax
mov dword [ebp - 0xc], 0xffffffff
test esi, esi
jns 0x40cf5e
push 0x80070057
call fcn.00401000
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or edx, eax
jge 0x40cf7c
push esi
mov ecx, edi
call fcn.00401a60
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x40cf54
mov dword [eax - 0xc], esi
mov ecx, dword [edi]
mov byte [esi + ecx], 0
test eax, eax
je 0x40cfc6
lea edx, [esi + 1]
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40cfb6
push ecx
push eax
call fcn.004f4a27
add esp, 8
test eax, eax
js 0x40cf54
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x40cf54
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
mov byte [eax + ecx], 0
pop ebx
cmp dword [ebp - 0xc], esi
jge 0x40d024
mov esi, dword [ebp - 4]
mov dword [ebp - 8], 0
jmp 0x40cff0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov dword [ebp - 8], eax
test eax, eax
jne 0x40d052
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
add esi, 0x54
je 0x40d002
lea eax, [esi - 0x54]
jmp 0x40d004
xor eax, eax
mov edx, dword [ebp + 8]
mov eax, dword [eax + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
cmp dword [ebp + 0x18], 0
je 0x40d052
mov ecx, dword [edi]
mov edx, dword [ecx - 0xc]
cmp edx, dword [ebp + 0x1c]
jle 0x40d052
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
push edx
add ecx, 0x54
push eax
call fcn.0040d2a0
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18