joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a9624
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 8], ebx
jne 0x4a9668
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 4]
push eax
push 4
push esi
push 0x4a95fb
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp byte [esp + 0xc], bl
mov dword [esi + 8], eax
jne 0x4a9668
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ebx
ret 4

Function at 0x4a966d
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4b59cc
call fcn.0049f0d0
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x14]
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.xl::win32::net::asyn_tcp_socket.0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor edi, edi
lea ecx, [esi + 0x34]
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov eax, dword [ebp + 8]
or dword [esi + 0x10], 0xffffffff
or dword [esi + 0x70], 0xffffffff
push 0x400
mov dword [esi + 8], eax
lea eax, [esi + 0x74]
push edi
push eax
mov dword [esi + 0xc], edi
mov dword [esi + 4], edi
mov dword [esi + 0x30], edi
mov word [esi + 0x6c], di
call sub.MSVCR71.dll_memset
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi + 0x474], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4a97b7
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4f0dd0]
push ebx
push esi
push edi
push 0x10
pop edi
xor eax, ebp
xor ebx, ebx
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call sub.MSVCR71.dll_memset
push edi
lea eax, [ebp - 0x14]
push ebx
push eax
call sub.MSVCR71.dll_memset
add esp, 0x18
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x10]
mov dword [ebp - 0x28], edi
call sub.WS2_32.dll_getpeername
test eax, eax
jne 0x4a981b
push dword [ebp - 0x12]
call sub.WS2_32.dll_ntohs
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x10]
mov dword [ebp - 0x28], edi
call sub.WS2_32.dll_getsockname
test eax, eax
jne 0x4a9840
push dword [ebp - 0x22]
call sub.WS2_32.dll_ntohs
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x30]
mov ecx, dword [esi + 8]
push dword [ebp - 0x2c]
mov dword [esi + 4], 3
push dword [ebp - 0x34]
mov eax, dword [ecx]
push ebx
call dword [eax + 4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049f127
leave
ret

Function at 0x4a99ba
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4f0dd0]
push esi
xor eax, ebp
push 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push 0
push eax
mov esi, ecx
call sub.MSVCR71.dll_memset
mov eax, dword [esi + 0x70]
mov dword [ebp - 0x10], eax
xor eax, eax
mov ax, word [esi + 0x6c]
add esp, 0xc
mov word [ebp - 0x14], 2
push eax
call sub.WS2_32.dll_htons
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x10]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x4a9a24
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4a9a24
push 1
push eax
mov ecx, esi
call fcn.004a9868
jmp 0x4a9a2b
mov dword [esi + 4], 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0049f127
leave
ret
Function at 0x4a9a38
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4a9ab2
push ebx
lea ebx, [esi + 0x14]
push edi
cmp dword [ebx + 0x18], 0x10
jb 0x4a9a52
mov edx, dword [ebx + 4]
jmp 0x4a9a55
lea edx, [ebx + 4]
mov ecx, dword [esi + 0x30]
push 0
sub eax, ecx
push eax
add ecx, edx
push ecx
push dword [esi + 0x10]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x4a9a9a
add dword [esi + 0x30], eax
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x28]
cmp edi, eax
jne 0x4a9a47
mov eax, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
push dword [eax]
mov ecx, ebx
push 0
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_int__unsigned_int_]
mov ecx, dword [esi + 8]
and dword [esi + 0x30], 0
mov eax, dword [ecx]
push edi
call dword [eax + 8]
jmp 0x4a9ab0
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4a9ab0
push 0
push eax
mov ecx, esi
call fcn.004a9868
pop edi
pop ebx
pop esi
ret
Function at 0x4a9ab4
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov eax, 0xa00c
lea ebp, [esp - 0x9f8c]
call fcn.0049f1f0
mov eax, dword [0x4f0dd0]
push esi
xor eax, ebp
push 0
mov dword [ebp + 0x9f88], eax
push 0xa000
lea eax, [ebp - 0x78]
mov esi, ecx
push eax
push dword [esi + 0x10]
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
jne 0x4a9b0a
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4a9b84
push 0
push eax
mov ecx, esi
call fcn.004a9868
jmp 0x4a9b84
test eax, eax
jne 0x4a9b1f
mov ecx, esi
call fcn.004a973c
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x4a9b84
push edi
push eax
lea eax, [ebp - 0x78]
lea edi, [esi + 0x34]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
cmp dword [edi + 0x18], 0x10
mov eax, dword [esi + 0x48]
mov dword [ebp - 0x7c], eax
jb 0x4a9b41
mov ecx, dword [edi + 4]
jmp 0x4a9b44
lea ecx, [edi + 4]
push ebx
lea ebx, [ebp - 0x7c]
push ebx
mov dword [ebp - 0x80], ecx
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
push eax
push dword [ebp - 0x80]
call dword [edx + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
pop ebx
jne 0x4a9b83
cmp dword [esi + 0x10], 0xffffffff
je 0x4a9b83
cmp dword [esi + 4], 3
jne 0x4a9b83
mov eax, dword [ebp - 0x7c]
cmp dword [esi + 0x48], eax
jb 0x4a9b83
push eax
push 0
mov ecx, edi
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_int__unsigned_int_]
pop edi
mov ecx, dword [ebp + 0x9f88]
xor ecx, ebp
pop esi
call fcn.0049f127
add ebp, 0x9f8c
leave
ret
Function at 0x4a9c7f
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x68], 0x10
jb 0x4a9979
mov eax, dword [esi + 0x54]
jmp 0x4a997c
lea eax, [esi + 0x54]
push 0x400
lea ecx, [esi + 0x74]
push ecx
push eax
mov eax, dword [esi + 0xc]
push 0x402
push dword [eax + 4]
call sub.WS2_32.dll_WSAAsyncGetHostByName
test eax, eax
mov dword [esi + 0x474], eax
jne 0x4a99b1
call sub.WS2_32.dll_WSAGetLastError
push 1
push eax
mov ecx, esi
call fcn.004a9868
pop esi
ret
mov dword [esi + 4], 1
pop esi
ret
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x4a9ced
push eax
push 1
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
je 0x4a9cb3
mov ecx, dword [esi + 0xc]
push 0x3f
push 0x401
push dword [ecx + 4]
push eax
call sub.WS2_32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
jne 0x4a9cc4
call sub.WS2_32.dll_WSAGetLastError
push 1
push eax
mov ecx, esi
call fcn.004a9868
pop esi
ret
cmp dword [esi + 0x68], 0x10
jb 0x4a9ccf
mov eax, dword [esi + 0x54]
jmp 0x4a9cd2
lea eax, [esi + 0x54]
push eax
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esi + 0x70], eax
mov ecx, esi
pop esi
jne 0x4a9ce8
jmp 0x4a996b
jmp fcn.004a99ba
cmp eax, 3
jne 0x4a9cc2
mov ecx, esi
pop esi
jmp fcn.004a9a38
Function at 0x40723a
Capabilities:
Encode data using xor

Disassembly:
sbb byte [ecx], bh
pushal
cmp dword [eax - 0x6fc677c7], eax
cmp dword [eax - 0x57c65fc7], ebx
cmp dword [ecx + edi + 0x39e039d4], esi
add byte [edx], bh
or byte [edx], bh
adc al, 0x3a
xor al, 0x3a
inc eax
cmp ah, byte [eax + 0x3a]
insb byte es:[edi], dx
cmp cl, byte [edx + edi + 0x3ab83a98]
les edi, [edx]
call 0x107b7aa5
cmp ebx, dword [eax]
cmp esp, dword [eax]
cmp ebp, dword [eax]
cmp esi, dword [eax]
cmp edi, dword [eax]
cmp eax, dword [eax + 0x3b]
dec eax
cmp edx, dword [eax + 0x3b]
pop eax
cmp esp, dword [eax + 0x3b]
push 0x743b703b
cmp edi, dword [ebx + edi - 0x70]
cmp ebx, dword [eax - 0x3fc453c5]
cmp edx, eax
cmp esp, eax
cmp ebp, eax
cmp edi, eax
cmp eax, dword [esp + edi]
or al, 0x3c
xor byte [eax + edi], bh
cmp al, 0x40
cmp al, 0x50
cmp al, 0x60
cmp al, 0x68
cmp al, 0x7c
cmp al, 0x84
cmp al, 0x9c
cmp al, 0xa8
cmp al, 0xc8
cmp al, 0xd4
cmp al, 8
cmp eax, 0x3d443d28
dec eax
cmp eax, 0x3d683d64
test byte [0x3d903d88], bh
cwde
cmp eax, 0x3da43da0
test al, 0x3d
mov al, 0x3d
les edi, [0x3de83de0]
in al, dx
cmp eax, 0x3e103e08
adc al, 0x3e
sub al, 0x3e
xor byte [esi], bh
dec esp
push eax
pushal
test byte ds:[esi], bh
nop
cwde
les edi, ds:[esi]
enter 0xffffffffffffd03e, 0x3e
fdivr dword [esi]
loopne 0x407336
in al, 0x3e
in al, dx
add byte ds:[edi], bh
and byte [edi], bh
cmp al, 0x3f
inc eax
aas
pushal
aas
push 0x883f6c3f
aas
test al, 0x3f
enter 0xffffffffffffe83f, 0x3f
add byte [eax], al
add byte [eax + 0x340003], al
add byte [eax], al
or byte [eax], dh
sub byte [eax], dh
dec eax
xor byte [eax + 0x30], ch
mov byte [eax], dh
test al, 0x30
enter 0xffffffffffffe830, 0x30
or byte [ecx], dh
sub byte [ecx], dh
dec eax
xor dword [eax + 0x31], ebp
je fcn.00407367
invalid
Function at 0x402a60
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x37c
lea eax, [esp]
push ebx
push esi
push edi
push 0x64
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x4001
lea ecx, [esp + 0xd8]
push 0x2b4
push ecx
lea edx, [esp + 0x18]
push 0
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push eax
lea ecx, [esi + 0xc0]
call fcn.0043907a
call fcn.00444bd1
mov eax, dword [eax + 0xc]
mov edi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x95
push eax
call edi
mov ebx, dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push eax
mov eax, dword [esi + 0xc4]
push 0
push eax
call ebx
call fcn.00444bd1
mov eax, dword [eax + 0xc]
push 0x94
push eax
call edi
mov ecx, dword [esi + 0xc4]
push eax
push 1
push ecx
call ebx
call fcn.00444bd1
mov eax, dword [eax + 0xc]
push 0x93
push eax
call edi
mov edx, dword [esi + 0xc4]
push eax
push 2
push edx
call ebx
pop edi
pop esi
pop ebx
add esp, 0x37c
ret

Function at 0x402b80
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x4481ea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
mov eax, dword [esp + 0x1a4]
push esi
push edi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0x10], esi
call fcn.0043e1db
lea ecx, [esi + 0x64]
mov dword [esp + 0x1a4], 0
call fcn.0041ac50
lea ecx, [esi + 0x284]
mov byte [esp + 0x1a4], 1
call fcn.0041ac50
lea ecx, [esi + 0x4a4]
mov byte [esp + 0x1a4], 2
call fcn.0041ac50
lea ecx, [esi + 0x6c4]
mov byte [esp + 0x1a4], 3
call fcn.0041ac50
lea ecx, [esi + 0x8e4]
mov byte [esp + 0x1a4], 4
call fcn.0041ac50
lea ecx, [esi + 0xb04]
mov byte [esp + 0x1a4], 5
call fcn.0041ac50
lea ecx, [esi + 0xd24]
mov byte [esp + 0x1a4], 6
call fcn.0041ac50
lea ecx, [esi + 0xf44]
mov byte [esp + 0x1a4], 7
call fcn.0041ac50
lea ecx, [esi + 0x1164]
mov byte [esp + 0x1a4], 8
call fcn.0041ac50
lea ecx, [esi + 0x1384]
mov byte [esp + 0x1a4], 9
call fcn.004179f0
lea edi, [esi + 0x1444]
mov byte [esp + 0x1a4], 0xa
mov ecx, edi
call fcn.0043a17c
mov dword [edi], vtable.CListCtrl.0
lea ecx, [esp + 0xc]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esi + 0x1484]
mov byte [esp + 0x1a4], 0xc
call fcn.00412710
lea ecx, [esi + 0x14f8]
mov byte [esp + 0x1a4], 0xd
call fcn.00415240
push 0
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x1554], eax
lea edi, [esi + 0x1564]
mov byte [esp + 0x1a4], 0xf
mov ecx, edi
call fcn.0043a17c
mov dword [edi], vtable.CStatusBarCtrl.0
lea ecx, [esi + 0x15a0]
mov byte [esp + 0x1a4], 0x10
call fcn.00438f8d
lea ecx, [esi + 0x15a8]
mov byte [esp + 0x1a4], 0x11
call fcn.00438f8d
mov byte [esp + 0x1a4], 0x12
mov dword [esi], method.CDialog.virtual_0
call fcn.00444bd1
call fcn.00444bd1
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov ecx, dword [esp + 0x19c]
mov dword [esi + 0x1560], eax
mov dword [esi + 0x5c], 0x7d8
mov dword [esi + 0x60], 0x7d0
mov dword [esi + 0x1558], 0
mov dword [esi + 0x155c], 0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1a0
ret 4
Function at 0x4063c0
Capabilities:
Create thread

Disassembly:
push 8
call fcn.0043d571
add esp, 4
test eax, eax
je 0x4063dd
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x4063df
xor eax, eax
push 0
push 0
push eax
push 0x4113e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret

Function at 0x406b90
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b4
mov ecx, 0xad
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2c0]
pop edi
test eax, eax
mov eax, dword [esp + 0x2c0]
je 0x406bd2
neg eax
sbb eax, eax
lea ecx, [esp]
and eax, 2
or eax, 0x4011
push eax
push 0x2b4
push ecx
push 0x10
jmp 0x406bee
neg eax
sbb eax, eax
lea ecx, [esp]
and eax, 2
or eax, 0x4011
push eax
push 0x2b4
push ecx
push 0x80
mov edx, dword [esp + 0x2c8]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 4]
add esp, 0x2b4
ret 0xc

Function at 0x409570
Capabilities:
Create thread

Disassembly:
push 0x10
call fcn.0043d571
add esp, 4
test eax, eax
je 0x409594
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [eax], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
jmp 0x409596
xor eax, eax
push 0
push 0
push eax
push 0x409660
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret

Function at 0x4095b0
Capabilities:
Create thread

Disassembly:
push 0x18
call fcn.0043d571
add esp, 4
test eax, eax
je 0x4095db
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 4]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 8]
mov dword [eax], edx
mov edx, dword [esp + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
jmp 0x4095dd
xor eax, eax
push 0
push 0
push eax
push 0x409680
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret

Function at 0x40a0a0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4010
call fcn.00424d20
push ebx
push ebp
mov ebp, dword [esp + 0x401c]
push esi
push edi
mov esi, ecx
push ebp
call fcn.0040a180
xor edi, edi
mov dword [esp + 0x1c], eax
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40a0ec
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x4010
ret 8
mov dword [esp + 0x14], edi
mov byte [esp + 0x13], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x28]
push 0x4000
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40a155
lea edx, [esp + 0x20]
push eax
push edx
mov ecx, esi
call fcn.004138c0
cmp eax, 0xffffffff
je 0x40a15c
mov ecx, dword [esi + 0xc]
add edi, eax
test ecx, ecx
je 0x40a0ff
mov edx, dword [esp + 0x18]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x20]
push edi
push edx
mov edx, dword [esp + 0x4034]
push edx
push ebp
call dword [eax + 4]
jmp 0x40a0ff
mov byte [esp + 0x13], 1
jmp 0x40a163
mov ecx, esi
call fcn.004139d0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4010
ret 8
Function at 0x40a180
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a1aa
pop edi
or eax, eax
pop esi
ret 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push esi
cmp edi, 0xffffffff
jne 0x40a1c9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
or eax, 0xffffffff
pop esi
ret 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x40bad0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x448fd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x46566c]
test eax, eax
jne 0x40bb7b
mov eax, dword [0x4613b8]
push esi
mov dword [esp + 4], eax
push 0x104
push 0x104
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.0043dc7d
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call fcn.0043dccd
push str.winhlp32.exe
lea ecx, [esp + 8]
call fcn.0043dc29
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40bb62
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorW]
test eax, eax
je 0x40bb62
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [0x46566c], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.0043d838
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40bd90
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push 0
push 0
push ecx
push 0x45f3d8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x40ed70
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x449458
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push edi
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x18], edi
mov eax, dword [edi + 0x78]
push ebp
push ebp
push 0xb
push eax
call ebx
mov ecx, dword [edi + 0x78]
push ebp
push ebp
push 0x1009
push ecx
call ebx
mov edx, dword [0x4613b8]
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], ebp
lea esi, [edi + 0x6f4]
mov dword [esp + 0x10], ebp
mov eax, dword [esi + 4]
test eax, eax
je 0x40ef36
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ebp, edx
jae 0x40ef36
mov ecx, dword [edi + 0x78]
push 0
push 0
push 0x1004
push ecx
call ebx
push 0
push 0xd
push 0
push 0
add edi, 0x5c
push 0x465578
push eax
push 3
mov ecx, edi
call fcn.00438c66
mov ebx, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x40ee3e
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, ebp
ja 0x40ee45
mov ecx, esi
call fcn.00410ef0
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x10]
lea eax, [ecx + edx + 8]
mov ecx, edi
push eax
push 0
push ebx
call fcn.00438d00
mov eax, dword [esi + 4]
test eax, eax
je 0x40ee7c
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, ebp
ja 0x40ee83
mov ecx, esi
call fcn.00410ef0
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + edx]
lea edx, [esp + 0x14]
push ecx
push 0x4602d4
push edx
call fcn.00438358
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, edi
push eax
push 1
push ebx
call fcn.00438d00
mov eax, dword [esi + 4]
test eax, eax
je 0x40eed0
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, ebp
ja 0x40eed7
mov ecx, esi
call fcn.00410ef0
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + edx + 4]
lea edx, [esp + 0x14]
push ecx
push 0x4602d4
push edx
call fcn.00438358
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, edi
push eax
push 2
push ebx
call fcn.00438d00
push ebp
push 0
push 0
push 0
push 0
push 4
push 0
push ebx
mov ecx, edi
call fcn.00438cb2
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [esp + 0x18]
inc ebp
add eax, 0x210
mov dword [esp + 0x10], eax
jmp 0x40edc9
mov ecx, dword [edi + 0x78]
push 0
push 1
push 0xb
push ecx
call ebx
mov edx, dword [edi + 0x78]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [edi + 0x78]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [edi + 0x78]
push 0
push 0
push 0x1004
push ecx
call ebx
push eax
push 0x4602dc
push 1
push edi
call fcn.0040dc30
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.0043d838
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret