joyce8/EMBER2024-capa huggingface dataset:
Function at 0x756e20
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x1008
call fcn.0076ede0
push esi
push edi
mov edi, ecx
push str.WinsockInterface_init._n
call fcn.004068f0
mov al, byte [edi + 0x43868]
add esp, 4
test al, al
je 0x756e5d
push str.WinsockInterface_already_initialised_n
call fcn.004068f0
add esp, 4
mov al, 1
pop edi
pop esi
add esp, 0x1008
ret
mov eax, dword [0xb10510]
test eax, eax
jle 0x756e8e
mov al, byte [0xb1050c]
test al, al
jne 0x756e8e
mov eax, dword [0xb0de30]
push 0
push str.Note
push str.Warning___Packet_Loss_Simulation_mode_enabled
push eax
mov byte [0xb1050c], 1
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x590
call fcn.0076d5a7
mov edx, dword [edi]
mov esi, eax
add esp, 4
mov ecx, edi
mov dword [esp + 8], esi
mov dword [edi + 0x4386c], 0xffffffff
call dword [edx + 0x14]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
push str.About_to_call_WSAStartup_n
call fcn.004068f0
add esp, 4
push esi
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x756ef4
push eax
push str.Winsock_failed_to_initialise___error_code__d._n
call fcn.004068f0
push esi
call fcn.0076d2d5
add esp, 0xc
xor al, al
pop edi
pop esi
add esp, 0x1008
ret
push str.Winsock_initialised_OK_n
call fcn.004068f0
mov ax, word [esi]
add esp, 4
mov cl, al
xor cl, 1
jne 0x756fe8
and eax, 0xffff
mov edx, eax
xor edx, 0x100
test edx, 0xffffff00
jne 0x756fe8
mov ecx, eax
push ebp
shr ecx, 8
and eax, 0xff
push ecx
push eax
push str.Winsock_version_is__d._d_n
call fcn.004068f0
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
mov dword [edi + 4], 0x222
push edx
push eax
push 0x7e9044
mov dword [esp + 0x1c], 0x1000
call sub.WSOCK32.dll_EnumProtocolsA
cmp eax, 0xffffffff
je 0x756fd9
test eax, eax
mov ebp, SysReAllocString
jle 0x756fbd
push ebx
lea esi, [esp + 0x30]
mov ebx, eax
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push ecx
push edx
push str.Found_protocol__s__max_frame_size_is__d_n
call fcn.004068f0
mov eax, dword [esi]
add esp, 0xc
test eax, eax
je 0x756f9f
cmp eax, 0xffffffff
je 0x756f9f
cmp ebp, eax
jl 0x756f9f
mov ebp, eax
add esi, 0x20
dec ebx
jne 0x756f7a
cmp ebp, 0x7fffffff
pop ebx
je 0x756fb9
cmp ebp, 0x190
jle 0x756fb9
mov dword [edi + 4], ebp
mov esi, dword [esp + 0xc]
push esi
mov byte [edi + 0x43868], 1
call fcn.0076d2d5
add esp, 4
mov al, 1
pop ebp
pop edi
pop esi
add esp, 0x1008
ret
push str.Failed_to_get_protocol_enumeration_n
call fcn.004068f0
add esp, 4
jmp 0x756fbd
push str.Winsock_version_is_less_than_1.1_n
call fcn.004068f0
push esi
call fcn.0076d2d5
add esp, 8
xor al, al
pop edi
pop esi
add esp, 0x1008
ret
Function at 0x757620
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp esi, 0xffffffff
jne 0x757630
mov esi, dword [ecx + 0x4386c]
push 4
push 0x7e9054
push 0x1002
push 0xffff
push esi
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x757661
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.Failed_to_set_socket_option_SO_RCVBUF___error_code__d._n
call fcn.004068f0
add esp, 8
jmp 0x75766e
push str.Socket_option_SO_RCVBUF_set_OK_n
call fcn.004068f0
add esp, 4
push 4
push 0x7e9050
push 0x1001
push 0xffff
push esi
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
pop esi
jne 0x7576a3
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.Failed_to_set_socket_option_SO_SNDBUF___error_code__d._n
call fcn.004068f0
add esp, 8
mov al, 1
ret 4
push str.Socket_option_SO_SNDBUF_set_OK_n
call fcn.004068f0
add esp, 4
mov al, 1
ret 4
Function at 0x75cd80
Capabilities:
Check mutex on windows
Create thread

Disassembly:
mov eax, dword [0xb105d0]
sub esp, 0x400
push esi
xor esi, esi
cmp eax, esi
jne 0x75cda0
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0xb105d0], eax
cmp dword [0xb105d4], esi
jne 0x75ce8e
cmp eax, esi
je 0x75ce8e
mov dword [0xb105a0], esi
mov dword [0xb105a8], esi
mov dword [0xb105b8], esi
mov dword [0xb105b0], 0x10
mov dword [0xb105b4], esi
mov dword [0xb105a4], esi
push 0xb105c0
push esi
push 0xb105a0
push 0x75cea0
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0xb105bc], eax
je 0x75ce8e
push 0xf
push eax
mov dword [0xb105d4], 1
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x75ce8e
push esi
lea eax, [esp + 8]
push 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea ecx, [esp + 4]
push ecx
push str.Unable_to_change_the_priority_of_the_mouse_thread____s_n
call fcn.004068f0
add esp, 8
mov eax, dword [0xb105a8]
cmp eax, esi
jne 0x75ce6a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call edi
mov eax, dword [0xb105a8]
cmp eax, esi
je 0x75ce5d
pop edi
mov edx, dword [0xb105bc]
push 0x1388
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0xb105bc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0xb105d4], esi
pop esi
add esp, 0x400
ret
Function at 0x760230
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x48
mov eax, dword [esp + 0x54]
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, dword [esp + 0x5c]
lea ecx, [eax + eax]
mov ebx, dword [esp + 0x58]
mov edx, ecx
mov ecx, 3
sub ecx, edx
mov edx, eax
push edi
mov dword [esp + 0x18], eax
xor edi, edi
mov dword [esp + 0x14], ecx
neg edx
add eax, ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x64], edx
mov dword [esp + 0x10], eax
jmp 0x760277
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x18]
lea eax, [edi + ebp]
add ecx, ebx
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ecx
lea ecx, [edx + ebx]
mov edx, dword [esi]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x5c]
push eax
push ecx
lea eax, [esp + 0x28]
lea ecx, [esp + 0x70]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x2c]
mov edx, dword [esp + 0x10]
lea eax, [edi + ebx]
neg edi
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x28]
lea eax, [edi + ebx]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov eax, edx
mov edx, dword [esi]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x78]
push eax
push ecx
lea eax, [esp + 0x38]
lea ecx, [esp + 0x70]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x2c]
mov edx, dword [esp + 0x18]
lea ecx, [edi + ebp]
mov dword [esp + 0x3c], ecx
lea ecx, [edi + ebp]
lea eax, [ebx + edx]
mov edx, dword [esi]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x64]
add eax, ebx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x38]
push eax
push ecx
lea eax, [esp + 0x48]
lea ecx, [esp + 0x70]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x2c]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x1c]
add ecx, ebx
add edi, ebx
lea eax, [edx + ebp]
mov edx, dword [esi]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x48]
push eax
push ecx
lea eax, [esp + 0x58]
lea ecx, [esp + 0x70]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x60], edi
call dword [edx + 0x2c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
test eax, eax
jge 0x760375
lea eax, [eax + edx*4 + 6]
mov dword [esp + 0x14], eax
jmp 0x76039a
mov ecx, dword [esp + 0x18]
sub edx, ecx
dec ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
lea eax, [eax + edx*4 + 0xa]
dec ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x64]
inc eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc eax
cmp ecx, eax
mov dword [esp + 0x1c], eax
jge 0x76026f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x20
Function at 0x778d50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x778d70
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00774e2b
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x778d93
test byte [esp + 8], 2
je 0x778d93
call fcn.00774e9e
mov dword [eax], 0xd
call fcn.00774ea7
mov dword [eax], 5
jmp 0x778d6c
xor eax, eax
ret

Function at 0x779bbf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x817bb0
cmp edx, dword [eax]
je 0x779be1
add eax, 8
inc ecx
cmp eax, 0x817c40
jl 0x779bd2
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x817bb0]
jne 0x779d0f
mov eax, dword [0xb10698]
cmp eax, 1
je 0x779ce9
test eax, eax
jne 0x779c12
cmp dword [0x817254], 1
je 0x779ce9
cmp edx, 0xfc
je 0x779d0f
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x779c49
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00778c60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00774db0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x779c8c
lea eax, [ebp - 0x1a4]
push eax
call fcn.00774db0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x79cbd8
push edi
call fcn.0076d960
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00778c60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00778c70
lea eax, [ebp - 0xa0]
push 0x7dd2d8
push eax
call fcn.00778c70
push dword [esi + 0x817bb4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00778c70
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0077f28f
add esp, 0x2c
pop edi
jmp 0x779d0f
lea eax, [ebp + 8]
lea esi, [esi + 0x817bb4]
push 0
push eax
push dword [esi]
call fcn.00774db0
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 0x401146
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40115d
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x40116f
xor eax, eax
jmp 0x4011a0
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401192
cmp edi, eax
jae 0x40116b
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401184
cmp edi, eax
jae 0x40116b
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x40127a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
shl eax, 1
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4012d3
cmp dword [ebp + 0xc], 1
je 0x4012b1
cmp dword [ebp + 0xc], 2
jne 0x4012c8
test edi, edi
mov eax, dword [ebp - 4]
je 0x4012cd
test al, 1
jne 0x4012c8
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x4012cd
push 0xd
pop eax
jmp 0x4012d3
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x4016e7
Capabilities:
Create directory
Get file attributes

Disassembly:
test ebx, ebx
je 0x40178b
cmp word [ebx], 0
je 0x40178b
push ebp
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_wcschr]
push 0x5c
pop ebp
push ebp
push ebx
call edi
pop ecx
pop ecx
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x40174d
mov ax, word [ebx + 2]
cmp ax, 0x3a
jne 0x401729
cmp word [ebx + 4], bp
je 0x401742
cmp word [ebx], bp
jne 0x40174d
cmp ax, bp
jne 0x40174d
push ebp
add esi, 4
push esi
call edi
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x401755
add esi, 2
push ebp
push esi
call edi
pop ecx
pop ecx
mov esi, eax
test esi, esi
je 0x401755
and word [esi], 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401772
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
test esi, esi
je 0x40177d
test eax, eax
mov word [esi], bp
jne 0x401742
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
pop esi
and eax, 0x10
pop ebp
ret
xor eax, eax
ret
Function at 0x403b7a
Capabilities:
Get system information on windows

Disassembly:
push 0x3c
push 0x4d7b48
call fcn.004c2224
mov ebx, ecx
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
mov edi, eax
mov dword [ebp - 0x20], edi
and dword [ebx], 0
push 4
push 0x2000
shl eax, 0xa
push eax
push 0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call esi
test eax, eax
je 0x403c1c
mov dword [ebp - 0x24], edi
push 4
push 0x1000
push edi
push eax
call esi
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x403c1c
and dword [ebp - 4], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.MSVCRT.dll_vswprintf]
add esp, 0xc
mov dword [ebp - 0x28], eax
or dword [ebp - 4], 0xffffffff
mov dword [ebx], esi
jmp 0x403c1e
xor eax, eax
call fcn.004c225f
ret

Function at 0x403c4e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test eax, eax
je 0x403c70
cmp word [eax], 0
je 0x403c70
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403c70
and al, 0x10
xor ecx, ecx
cmp al, 0x10
setne cl
mov eax, ecx
ret
xor eax, eax
ret

Function at 0x403d35
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 4], edi
jne 0x403d64
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 0xc]
push eax
push edi
push esi
push fcn.00403cec
push edi
push edi
mov dword [eax], edi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
xor eax, eax
pop edi
inc eax
pop esi
ret
Function at 0x403d8e
Capabilities:
Check for time delay via gettickcount
Terminate thread

Disassembly:
sub esp, 0x28
push ebx
push esi
mov ebx, ecx
push edi
lea esi, [ebx + 4]
xor edi, edi
cmp dword [esi], edi
mov dword [esp + 0x10], ebx
je 0x403eaf
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
push dword [ebx + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [esp + 0x3c]
push 0x14
push edi
push esi
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, edi
je 0x403eae
cmp eax, 1
jne 0x403e7f
push edi
push edi
push edi
push edi
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x403e7f
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_IsWindowUnicode]
push edi
push edi
mov ebx, eax
cmp ebx, edi
lea eax, [esp + 0x24]
push edi
push eax
je 0x403e19
call dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x403e1f
call dword [sym.imp.USER32.dll_GetMessageA]
cmp eax, edi
jle 0x403e45
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
cmp ebx, edi
lea eax, [esp + 0x1c]
push eax
je 0x403e3f
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x403e45
call dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x403e73
call ebp
sub eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x40]
jae 0x403e73
push edi
push edi
push edi
push edi
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x403df9
jmp 0x403e7b
mov dword [esp + 0x10], 1
mov ebx, dword [esp + 0x14]
call ebp
sub eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x40]
jb 0x403e93
mov dword [esp + 0x10], 1
cmp dword [esp + 0x10], edi
je 0x403dc1
mov eax, dword [esi]
cmp eax, edi
je 0x403eae
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi], edi
pop ebp
mov dword [ebx + 0xc], edi
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
add esp, 0x28
ret 8

Function at 0x40451b
Capabilities:
Suspend thread

Disassembly:
cmp dword [esi + 0x2c], 0
jne 0x404535
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi + 0x2c], ecx
mov eax, dword [esi + 0x2c]
ret

Function at 0x404539
Capabilities:
Resume thread

Disassembly:
cmp dword [esi + 0x2c], 0
je 0x404551
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
inc eax
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x2c], eax
xor eax, eax
cmp dword [esi + 0x2c], eax
sete al
ret
Function at 0x406285
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
neg esi
sbb esi, esi
lea ecx, [eax - 0x20]
and esi, ecx
cmp byte [eax + 0x1c], 0
je 0x4062c8
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 8], 2
jne 0x4062b9
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4062ce
cmp dword [ebp + 8], 0
jne 0x4062c8
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 8], 1
je 0x4062e6
mov eax, dword [ebp + 0xc]
shr eax, 0x10
movsx eax, ax
push eax
movsx eax, word [ebp + 0xc]
push eax
add esi, 0x20
push esi
call fcn.0048448b
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x408eb8
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4e7384]
push edi
push 0x44
mov dword [ebp + 0x94], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
je 0x408f08
cmp dword [ebp - 0x7c], 5
jae 0x408f04
cmp dword [ebp - 0x7c], 4
jne 0x408f08
cmp dword [ebp - 0x78], 0x5a
jb 0x408f08
xor eax, eax
jmp 0x408f0b
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x94]
call fcn.004c2215
add ebp, 0x98
leave
ret

Function at 0x408f8a
Capabilities:
Get system information on windows

Disassembly:
push 0x3c
push 0x4d7b18
call fcn.004c2224
mov ebx, ecx
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
mov edi, eax
mov dword [ebp - 0x20], edi
and dword [ebx], 0
push 4
push 0x2000
shl eax, 0xa
push eax
push 0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call esi
test eax, eax
je 0x40902c
mov dword [ebp - 0x24], edi
push 4
push 0x1000
push edi
push eax
call esi
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x40902c
and dword [ebp - 4], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0xc
mov dword [ebp - 0x28], eax
or dword [ebp - 4], 0xffffffff
mov dword [ebx], esi
jmp 0x40902e
xor eax, eax
call fcn.004c225f
ret
Function at 0x40b93b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, word [ebp + 0xc]
push ebx
push esi
mov esi, dword [0x4ea818]
push edi
push 0xf1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x40b97d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x40b97d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
jne 0x40b984
xor eax, eax
jmp 0x40bb1a
movzx esi, word [edi + 6]
lea eax, [esi + esi*4]
shl eax, 2
add eax, 3
and eax, 0xfffffffc
call fcn.004c2440
mov eax, esp
xor ecx, ecx
cmp esi, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
jle 0x40b9ee
add eax, 8
cmp word [edi + ecx*2 + 8], bx
je 0x40b9cb
mov edx, dword [ebp - 4]
inc dword [ebp - 4]
mov dword [eax - 8], edx
movzx edx, word [edi + ecx*2 + 8]
mov dword [eax - 4], edx
mov byte [eax], 4
mov byte [eax + 1], 0
jmp 0x40b9dc
mov dword [eax - 8], 8
mov dword [eax - 4], ebx
mov byte [eax], 0
mov byte [eax + 1], 1
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
movzx edx, word [edi + 6]
inc ecx
add eax, 0x14
cmp ecx, edx
jl 0x40b9aa
mov ebx, dword [ebp + 8]
push 0
push 0x14
push 0x41e
add ebx, 4
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 8]
mov eax, ebx
push esi
call fcn.00414792
movzx eax, word [edi + 4]
push eax
movzx eax, word [edi + 2]
push eax
push ebx
call fcn.004146ae
movzx eax, word [edi + 4]
add eax, 7
push eax
movzx eax, word [edi + 2]
add eax, 7
push eax
push ebx
call fcn.00414688
cmp dword [ebp + 0x10], 0
movzx eax, word [ebp + 0x10]
jne 0x40ba44
movzx eax, word [ebp + 0xc]
push dword [ebp + 0x1c]
push eax
movzx eax, word [edi + 4]
push eax
movzx eax, word [edi + 2]
push eax
call fcn.0040bb55
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x68], eax
push eax
lea esi, [ebp + 0x10]
mov eax, ebx
call fcn.004146d4
push dword [0x4ea818]
mov ebx, dword [ebp + 8]
call fcn.0040bba1
xor esi, esi
push esi
push esi
push 0x439
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
test ah, 0x10
je 0x40ba91
push 1
jmp 0x40ba92
push esi
call fcn.0040be7d
cmp dword [ebp + 0x14], 0
je 0x40bacd
push dword [ebp + 0x1c]
movzx eax, word [ebp + 0x14]
push eax
movzx eax, word [edi + 4]
push eax
movzx eax, word [edi + 2]
push eax
call fcn.0040bb55
test eax, eax
mov dword [ebx + 0x6c], eax
je 0x40bacd
push eax
mov eax, dword [ebp + 8]
lea esi, [ebp + 0x10]
add eax, 4
call fcn.00414708
mov ebx, dword [ebp + 8]
cmp dword [ebp + 0x18], 0
je 0x40bb03
push dword [ebp + 0x1c]
movzx eax, word [ebp + 0x18]
push eax
movzx eax, word [edi + 4]
push eax
movzx eax, word [edi + 2]
push eax
call fcn.0040bb55
test eax, eax
mov dword [ebx + 0x70], eax
je 0x40bb03
push eax
mov eax, dword [ebp + 8]
lea esi, [ebp + 0x1c]
add eax, 4
call fcn.004146ee
mov ebx, dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
lea esi, [ebx + 0x24]
inc eax
call fcn.00414a7f
xor eax, eax
inc eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x40c6e5
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x7a4]
sub esp, 0x824
mov eax, dword [0x4e7384]
push ebx
push esi
push edi
mov dword [ebp + 0x7a0], eax
push 0x400
mov edi, ecx
lea eax, [ebp - 0x60]
push eax
lea esi, [edi + 4]
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 0x80], eax
mov eax, dword [esi]
push eax
mov dword [ebp - 0x68], eax
call dword [sym.imp.USER32.dll_GetDC]
push dword [edi + 0x24]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
mov dword [ebp - 0x6c], eax
call edi
push 0x420
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
lea eax, [ebp - 0x60]
xor ebx, ebx
push eax
push dword [ebp - 0x6c]
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x64]
add dword [ebp - 0x70], 2
push dword [ebp - 0x6c]
call edi
push dword [esi]
call dword [sym.imp.USER32.dll_GetParent]
push 2
lea ecx, [ebp - 0x7c]
push ecx
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [esi]
call edi
push 0xffffffffffffffec
push dword [esi]
mov dword [ebp - 0x64], eax
call edi
push eax
push ebx
push dword [ebp - 0x64]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
push 0x16
push ebx
push esi
lea eax, [ebp - 0x7c]
call fcn.00403a68
lea esi, [ebp - 0x6c]
call fcn.00433d7b
mov ecx, dword [ebp + 0x7a0]
pop edi
pop esi
pop ebx
call fcn.004c2215
add ebp, 0x7a4
leave
ret

Function at 0x40c7d0
Capabilities:
Create process on windows

Disassembly:
test eax, eax
jne 0x40c7db
mov eax, dword [esi + 0x44]
test eax, eax
je 0x40c800
push 1
push 0
push 0
push eax
push 0x4ceec8
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x40c800
xor eax, eax
mov dword [esi + 0x38], 1
inc eax
ret
xor eax, eax
ret