joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408a38
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push connect
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x408a68
xor eax, eax
inc eax
jmp 0x408af1
push ebx
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp ebx, edi
jne 0x408a81
push 2
pop eax
jmp 0x408af0
push edi
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
push edi
mov ecx, esi
call fcn.00401862
push edi
mov ecx, esi
call fcn.004016bc
push edi
mov ecx, esi
call fcn.00407a1e
push edi
mov ecx, esi
call fcn.00401780
push edi
mov ecx, esi
call fcn.004085d5
push edi
mov ecx, esi
call fcn.004088c1
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.00405e4e
push eax
lea ecx, [esi + 0x108]
call dword [0x4192fc]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push dword [ebp + 8]
call esi
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x408e44
Capabilities:
Reference http user-agent string

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push 0x41ad48
lea ecx, [esi + 4]
call dword [0x4191bc]
and dword [esi + 0x20], 0
mov ebx, str.no_cache
push ebx
lea ecx, [esi + 0x28]
call dword [0x4191bc]
or dword [esi + 0x44], 0xffffffff
mov edi, 0x41ab4c
push edi
lea ecx, [esi + 0x48]
call dword [0x4191bc]
push edi
lea ecx, [esi + 0x80]
call dword [0x4191bc]
push edi
lea ecx, [esi + 0x9c]
call dword [0x4191bc]
push ebx
lea ecx, [esi + 0xb8]
call dword [0x4191bc]
and dword [esi + 0xd4], 0
or dword [esi + 0xd8], 0xffffffff
push str.http:__www.xunlei.com_
lea ecx, [esi + 0xdc]
call dword [0x4191bc]
push edi
lea ecx, [esi + 0xf8]
call dword [0x4191bc]
push str.Mozilla_5.0__Linux_2.6_
lea ecx, [esi + 0x114]
call dword [0x4191bc]
pop edi
mov dword [esi + 0x130], 1
pop esi
pop ebx
ret
Function at 0x409209
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x423694]
xor eax, ebp
push 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push 0
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
call fcn.0040e916
mov ecx, eax
call fcn.0040e7bf
mov cl, byte [eax]
cmp cl, 0x30
jl 0x40924a
jg 0x40924a
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
jmp 0x409268
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x409298
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call sub.MSVCR71.dll_memcpy
add esp, 0xc
call fcn.0040e916
mov ecx, eax
call fcn.0040e7d3
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
mov word [ebp - 0x14], 2
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40929c
xor al, al
jmp 0x4092be
push 4
lea eax, [ebp - 0x18]
push eax
push 0x1006
push 0xffff
push dword [ebp + 8]
mov dword [ebp - 0x18], 0x2710
call dword [sym.imp.WS2_32.dll_setsockopt]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417249
leave
ret 4
Function at 0x40dfd2
Capabilities:
Get graphical window text

Disassembly:
push ebp
push esi
push dword [esp + 0xc]
mov esi, ecx
call fcn.0040e027
mov ebp, eax
test ebp, ebp
je 0x40e020
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 0xa]
lea eax, [edi + edi]
push eax
call fcn.004170b0
pop ecx
push edi
mov ebx, eax
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push ebx
lea ecx, [esi + 0x8c]
call fcn.0040a386
push ebx
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
pop ecx
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
ret 4

Function at 0x40e2ee
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, ecx
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40e39b
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
call fcn.0040e916
mov ecx, eax
add ecx, 0x28
call fcn.00407271
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
pop ecx
lea edi, [eax + eax + 4]
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40e399
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
mov ebx, eax
push 0
push ebx
call sub.MSVCR71.dll_memset
add esp, 0xc
call fcn.0040e916
mov ecx, eax
add ecx, 0x28
call fcn.00407271
push eax
push ebx
call dword [sym.imp.MSVCR71.dll_wcscpy]
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push 0x13
call fcn.0040bbe7
mov ecx, eax
call fcn.0040bbc1
push 0
push 0x41b498
push eax
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x10

Function at 0x40e866
Capabilities:
Create process on windows

Disassembly:
cmp dword [ecx + 0x578], 0
ja 0x40e8aa
lea eax, [ecx + 0x5cc]
cmp dword [eax + 0x18], 8
jb 0x40e880
mov edx, dword [eax + 4]
jmp 0x40e883
lea edx, [eax + 4]
lea eax, [ecx + 0x5b0]
cmp dword [eax + 0x18], 8
jb 0x40e894
mov eax, dword [eax + 4]
jmp 0x40e897
add eax, 4
push 1
push 0
push edx
push eax
push 0x41aedc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x40ee24
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x423694]
push edi
xor eax, ebp
mov edi, ecx
push 0x41b780
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
call fcn.0040e916
add eax, 8
cmp dword [eax + 0x18], 8
jb 0x40ee58
mov eax, dword [eax + 4]
jmp 0x40ee5b
add eax, 4
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push 0x41aed8
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [ebp - 8], 8
mov ecx, dword [ebp - 0x1c]
jae 0x40ee7f
lea ecx, [ebp - 0x1c]
lea eax, [edi + 0x564]
cmp dword [eax + 0x18], 8
pop edi
jb 0x40ee91
mov eax, dword [eax + 4]
jmp 0x40ee94
add eax, 4
push 1
push 0
push ecx
push eax
push 0x41aedc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417249
leave
ret
Function at 0x4110fc
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 8]
call fcn.00410919
xor ebx, ebx
mov dword [esi + 0x548], ebx
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]
lea ecx, [esi + 0x54c]
push ebx
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_]
lea edi, [esi + 0x5a0]
mov eax, dword [edi]
cmp eax, 0xffffffff
mov dword [esi + 0x5a8], ebx
mov dword [esi + 0x5ac], ebx
mov dword [esi + 0x5b0], ebx
mov dword [esi + 0x5b4], ebx
je 0x411177
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi], 0xffffffff
cmp dword [esi + 0x598], ebx
je 0x411177
lea eax, [esi + 0x584]
cmp dword [eax + 0x18], 8
jb 0x41116d
mov eax, dword [eax + 4]
jmp 0x411170
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
push dword [eax]
lea ecx, [esi + 0x568]
push ebx
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::erase_unsigned_int__unsigned_int_]
mov eax, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
push dword [eax]
lea ecx, [esi + 0x584]
push ebx
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::erase_unsigned_int__unsigned_int_]
pop edi
pop esi
pop ebx
ret

Function at 0x4116ad
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [eax + 0x14], edi
je 0x411737
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x14], edi
je 0x411736
cmp dword [eax + 0x18], 0x10
jb 0x4116d2
mov eax, dword [eax + 4]
jmp 0x4116d5
add eax, 4
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.004113e8
test al, al
pop ecx
pop ecx
je 0x411736
cmp dword [esi + 0x18], 8
jb 0x4116f0
mov eax, dword [esi + 4]
jmp 0x4116f3
lea eax, [esi + 4]
push edi
push 0x80
push 3
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x411736
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x41172f
lea eax, [ebp - 8]
push eax
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
leave
ret 8
Function at 0x414fba
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41843a
call fcn.00417310
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
or dword [esi + 0x478], 0xffffffff
mov ecx, dword [ebp - 0xc]
add esp, 0xc
or dword [esi + 0x47c], 0xffffffff
mov dword [esi + 0x474], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4152f2
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x423694]
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 0x415356
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 0x41537b
push dword [ebp - 0x22]
call sub.WS2_32.dll_ntohs
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
push dword [esi + 0x478]
mov ecx, esi
mov dword [esi + 4], 3
call fcn.004150a4
push dword [ebp - 0x30]
mov ecx, dword [esi + 8]
push dword [ebp - 0x2c]
mov eax, dword [ecx]
push dword [ebp - 0x34]
push ebx
call dword [eax + 4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417249
leave
ret
Function at 0x415500
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x423694]
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 0x41556a
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x41556a
push 1
push eax
mov ecx, esi
call fcn.004153b0
jmp 0x415571
mov dword [esi + 4], 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00417249
leave
ret

Function at 0x41557e
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
test eax, eax
je 0x415618
push ebx
lea ebx, [esi + 0x14]
push edi
mov ecx, dword [esi + 0x30]
sub eax, ecx
cmp eax, 0x2000
jb 0x4155a2
mov eax, 0x2000
cmp dword [ebx + 0x18], 0x10
jb 0x4155ad
mov edx, dword [ebx + 4]
jmp 0x4155b0
lea edx, [ebx + 4]
push 0
push eax
add ecx, edx
push ecx
push dword [esi + 0x10]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x4155f0
add dword [esi + 0x30], eax
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x28]
cmp edi, eax
jne 0x415591
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 0x415616
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x41560c
push dword [esi + 0x28]
mov ecx, dword [esi + 8]
push dword [esi + 0x30]
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x415616
push 0
push eax
mov ecx, esi
call fcn.004153b0
pop edi
pop ebx
pop esi
ret
Function at 0x41561f
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov eax, 0xa00c
lea ebp, [esp - 0x9f8c]
call fcn.00417340
mov eax, dword [0x423694]
push ebx
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
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41567b
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x415702
push 0
push eax
mov ecx, esi
call fcn.004153b0
jmp 0x415702
test ebx, ebx
mov ecx, esi
jne 0x415690
call fcn.0041526e
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp 0x415702
push edi
push dword [esi + 0x478]
call fcn.004150a4
push ebx
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 0x4156bd
mov ecx, dword [edi + 4]
jmp 0x4156c0
lea ecx, [edi + 4]
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 + 0x10]
test eax, eax
jne 0x415701
push esi
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x415701
cmp dword [esi + 0x10], 0xffffffff
je 0x415701
cmp dword [esi + 4], 3
jne 0x415701
mov eax, dword [ebp - 0x7c]
cmp dword [esi + 0x48], eax
jb 0x415701
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]
pop esi
xor ecx, ebp
pop ebx
call fcn.00417249
add ebp, 0x9f8c
leave
ret
Function at 0x4158a6
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x68], 0x10
jb 0x4154bf
mov eax, dword [esi + 0x54]
jmp 0x4154c2
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 0x4154f7
call sub.WS2_32.dll_WSAGetLastError
push 1
push eax
mov ecx, esi
call fcn.004153b0
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 0x415914
push eax
push 1
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
je 0x4158da
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 0x4158eb
call sub.WS2_32.dll_WSAGetLastError
push 1
push eax
mov ecx, esi
call fcn.004153b0
pop esi
ret
cmp dword [esi + 0x68], 0x10
jb 0x4158f6
mov eax, dword [esi + 0x54]
jmp 0x4158f9
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 0x41590f
jmp 0x4154b1
jmp fcn.00415500
cmp eax, 3
jne 0x4158e9
mov ecx, esi
pop esi
jmp fcn.0041557e
Function at 0x10017263
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10017297
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10017295
push 0x162a
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x100172b3
push 0x1dd8
push 0x12f3
push 0x239
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_CheckRadioButton]
mov esp, ebp
pop ebp
ret

Function at 0x1001fb3c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1001fb7b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1001fb79
push 0x162a
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x1001fb83
push 0
call dword [sym.imp.COMDLG32.dll_FindTextW]
mov esp, ebp
pop ebp
ret
Function at 0x10031723
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp + 8]
push eax
push 0x348b
call fcn.10031459
add esp, 0x10
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10031758
xor eax, eax
jmp 0x1003187e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x10031776
xor eax, eax
jmp 0x1003187e
push 1
push 0x6f8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.100314b7
add esp, 0x10
cmp dword [ebp - 0xc], 0
jne 0x1003179a
xor eax, eax
jmp 0x1003187e
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10031533
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push 0x1b20
call fcn.100315b2
add esp, 0x14
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x1c], ecx
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
push eax
push 0x2bf3
call fcn.10031630
add esp, 0x10
push dword [ebp - 4]
call fcn.10031039
pop ecx
test eax, eax
jne 0x10031807
xor eax, eax
jmp 0x1003187e
push 0x5c21
lea eax, [ebp - 4]
push eax
push 1
push 0x7ef
push 0x5be
call fcn.100316b7
add esp, 0x14
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x10031866
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x14], ecx
jne 0x10031843
xor eax, eax
jmp 0x1003187e
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1003185c
xor eax, eax
jmp 0x1003187e
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x10031877
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
jmp 0x1003187b
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x10049ca7
Capabilities:
Create process on windows
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10049cdb
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10049cd9
push 0x162a
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x10049cf1
mov byte [ebp - 2], 0
movzx eax, byte [ebp - 2]
test eax, eax
je 0x10049cf1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov esp, ebp
pop ebp
ret

Function at 0x10049e7a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10049eab
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10049ea9
push 0
push 0x4bb
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x10049ee8
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov eax, dword [eax + 0x14]
add eax, dword [ecx + 0x10]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push dword [eax + 0x14]
call fcn.100461fb
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret