joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c217
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x4ab2e5
call fcn.004a9438
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
call fcn.004489dd
pop ecx
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x46c248
add eax, 0xfffffff0
call fcn.00405bc5
jmp 0x46c356
push esi
push 0x5c
lea esi, [ebp - 0x10]
call fcn.00406516
cmp eax, 0xffffffff
jne 0x46c268
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405bc5
jmp 0x46c355
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx - 0xc]
sub ecx, eax
push ebx
lea eax, [ebp - 0x18]
push eax
dec ecx
lea eax, [ebp - 0x10]
call fcn.004065d0
mov byte [ebp - 4], 1
mov ebx, dword [ebp - 0x18]
cmp dword [ebx - 0xc], 0
je 0x46c29f
push str..exe
xor ecx, ecx
lea esi, [ebp - 0x18]
call fcn.004099a2
cmp eax, 0xffffffff
jne 0x46c2b7
lea eax, [ebx - 0x10]
call fcn.00405bc5
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405bc5
jmp 0x46c354
mov ecx, eax
push edi
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x18]
call fcn.00406620
mov byte [ebp - 4], 2
mov edi, dword [ebp + 8]
call fcn.00405107
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405bc5
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00405e35
push str..exe
xor ecx, ecx
lea esi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004099a2
cmp eax, 0xffffffff
je 0x46c335
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx - 0xc]
sub ecx, eax
lea eax, [ebp + 8]
push eax
sub ecx, 5
mov eax, esi
call fcn.004065d0
mov edi, dword [ebp + 0xc]
mov byte [ebp - 4], 4
call fcn.00405107
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405bc5
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405bc5
lea eax, [ebx - 0x10]
call fcn.00405bc5
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405bc5
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8
Function at 0x46c734
Capabilities:
Create thread

Disassembly:
push ecx
push ecx
and dword [esp], 0
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0x2c]
push eax
mov dword [esp + 0x14], eax
call edi
mov ecx, esi
call sym.installer.exe_public:_bool___thiscall_kbase::kxThreadBase_class_kbase::Locker_::IsRunning_void_
test al, al
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
je 0x46c767
or dword [esp + 0xc], 0xffffffff
jmp 0x46c7d5
push ebp
push 8
call fcn.00417e77
mov ebp, eax
xor eax, eax
cmp ebp, eax
pop ecx
jne 0x46c782
mov dword [esp + 0x10], 0xfffffffa
jmp 0x46c7d4
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 4], ecx
lea ecx, [esi + 0xc]
push ecx
push eax
push ebp
push sym.installer.exe_private:_static_unsigned_int___stdcall_kbase::kxThreadBase_class_kbase::Locker_::threadFun_void__
push eax
push eax
mov dword [ebp], esi
call fcn.0048f9df
add esp, 0x18
test eax, eax
mov dword [esi + 8], eax
je 0x46c7c5
lea ebp, [esi + 0x14]
jmp 0x46c7b7
call ebx
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
call edi
cmp byte [esi + 4], 0
push ebp
je 0x46c7ad
call ebx
jmp 0x46c7d4
push ebp
call fcn.0048c580
pop ecx
mov dword [esp + 0x10], 0xfffffffe
pop ebp
push dword [esp + 0x10]
call ebx
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
ret 4

Function at 0x46c847
Capabilities:
Terminate thread

Disassembly:
push ecx
and dword [esp], 0
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebp, [esi + 0x2c]
push ebp
call edi
lea ebx, [esi + 0x14]
push ebx
call edi
cmp byte [esi + 4], 0
jne 0x46c874
mov dword [esp + 0x10], 0xfffffffd
jmp 0x46c88c
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 4], 0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call esi
push ebp
call esi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x46c8f3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x14]
push dword [ebp + 0x20]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
je 0x46c918
call fcn.0048f9df
add esp, 0x18
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x46daaf
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 2
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x46dad1
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
leave
ret
push edi
push esi
push esi
push esi
push esi
push dword [ebp + 0x18]
push dword [ebp + 8]
push 1
push 2
push 0x10
push 0x32
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
cmp edi, esi
jne 0x46db52
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x431
je 0x46db18
call edi
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
jmp 0x46dace
push 2
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
jne 0x46db34
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46db08
push dword [ebp + 0x14]
push esi
push esi
push esi
push esi
push dword [ebp + 0x18]
push dword [ebp + 8]
push 1
push 2
push 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x46db2c
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x46db0a

Function at 0x46db6e
Capabilities:
Delete service

Disassembly:
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x46db88
pop edi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push esi
push 0x10000
push dword [esp + 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x46dbb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call ebx
mov eax, esi
pop esi
pop ebx
pop edi
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x46dbda
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call edi
push esi
call edi
mov eax, ebx
jmp 0x46dbb3
push esi
call ebx
xor esi, esi
jmp 0x46dbae
Function at 0x46dbe1
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push 0x40000000
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x46dc06
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46dc53
push ebx
push esi
push 0x14
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
cmp ebx, edi
jne 0x46dc2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push dword [ebp - 4]
jmp 0x46dc79
push 6
mov dword [ebp - 0x20], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x46dc56
cmp dword [ebp - 0x1c], 4
jne 0x46dc56
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
xor edi, edi
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x46dc7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
mov eax, edi
jmp 0x46dc51
push ebx
call esi
jmp 0x46dc28

Function at 0x46dc84
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push 0x40000000
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x46dca9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46dcd2
push ebx
push edi
push 0x24
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, esi
jne 0x46dcd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop ebx
pop esi
leave
ret
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x40], esi
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x46dd0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
mov eax, edi
jmp 0x46dcd0
push 6
mov dword [ebp - 0x24], esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
mov dword [ebp - 8], esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
rep stosd dword es:[edi], eax
jmp 0x46dd33
cmp dword [ebp - 0x20], 1
je 0x46dd47
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
test eax, eax
jne 0x46dd25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 8]
jmp 0x46dcc5
Function at 0x471b10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4ac346
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4d7160]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], 0x4c1d7c
push 0x400
mov dword [esi + 8], 0x400
call fcn.004894f5
xor edi, edi
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
mov dword [esp + 0x18], edi
push 0x400
mov dword [esi + 0x14], 0x400
call fcn.004894f5
add esp, 8
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov word [esi + 0x2c], di
mov dword [esi + 0x30], 1
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x471c50
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4aa376
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push esi
push edi
mov eax, dword [0x4d7160]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov eax, dword [0x4dc00c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4dc00c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0xb0]
push 0xfde9
push ecx
lea edx, [esp + 0x20]
xor ebx, ebx
lea eax, [esp + 0x24]
mov dword [esp + 0xac], ebx
push edx
mov dword [esp + 0x24], eax
call fcn.00406f58
mov byte [esp + 0xa4], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov esi, eax
jne 0x471cd0
xor eax, eax
jmp 0x471cd9
push eax
call fcn.00489cd0
add esp, 4
push eax
push esi
lea eax, [esp + 0x1c]
call fcn.00407f8d
mov byte [esp + 0xa4], bl
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
cmp eax, ecx
je 0x471d00
push eax
call fcn.0048c580
add esp, 4
mov edi, dword [esp + 0x14]
mov eax, dword [edi - 0xc]
movzx ecx, ax
movzx edx, ax
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x10], edx
jle 0x471d22
xor byte [eax + edi], 0x88
add eax, 1
cmp eax, ecx
jl 0x471d17
mov esi, dword [esp + 0xac]
lea eax, [esp + 0x10]
add esi, 4
push eax
mov ebx, 2
call fcn.00473120
movzx ebx, word [esp + 0x10]
push edi
call fcn.00473120
lea eax, [edi - 0x10]
mov dword [esp + 0xa4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x471d6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x98
ret 8
Function at 0x473b20
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4d7160]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x473b70
mov ax, word [esp]
cmp al, 2
jne 0x473b6a
cmp ah, al
jne 0x473b6a
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004921f3
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.004921f3
add esp, 0x194
ret
Function at 0x47d880
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x47d8b2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0x39
add eax, 0xffffffff
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x47da10
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x140]
test ecx, ecx
je 0x47da2b
mov edx, dword [esi + 0xe4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x47da5f
cmp eax, 2
jg 0x47da5f
mov ecx, dword [esi + 0xe0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x4b0ab8]
push 2
push edx
call fcn.0048e981
mov eax, dword [esi + 0xe0]
push eax
push 1
push edi
push ebx
call fcn.0048e981
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
mov eax, dword [edi + eax*4 + 0xd4]
push esi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x47dcd5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x47dcbb
xor eax, eax
pop esi
ret
push eax
push edi
call fcn.004882e0
push eax
mov eax, dword [edi]
push str.Send_failure:__s
push eax
call fcn.0047dbf0
add esp, 0x14
mov eax, esi
pop esi
ret
Function at 0x47e340
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
movzx eax, byte [esi + 0x286]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x47e384
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004882e0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0047db60
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0047db60
add esp, 8
pop esi
pop ecx
ret
Function at 0x47e7d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x458]
cmp eax, 0xffffffff
je 0x47e836
mov ecx, dword [ecx + 0x44c]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x47e836
mov ecx, dword [esp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x47e7fc
mov dword [ecx], eax
mov ecx, dword [eax + 0xd4]
push esi
mov esi, dword [esp + 0xc]
mov dword [esi], ecx
cmp byte [eax + 0xdc], 0
jne 0x47e82c
mov eax, dword [eax + 0xd4]
push 2
push 1
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x47e832
mov dword [esi], 0xffffffff
pop esi
xor eax, eax
ret
mov ecx, dword [esp + 8]
mov dword [ecx], 0xffffffff
xor eax, eax
ret
Function at 0x480290
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push ebx
push esi
push 1
push 0x24
call dword [0x4d7010]
xor ebx, ebx
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
jne 0x4802c2
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
mov eax, dword [edi + 0x2bc]
push ebp
lea ebp, [edi + 0x2bc]
push eax
mov dword [esp + 0x10], ebp
call fcn.00474db0
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x4d700c]
add esp, 8
cmp eax, ebx
mov dword [ebp], eax
jne 0x480309
push esi
call dword [0x4d7004]
add esp, 4
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
mov edx, dword [esp + 0x20]
push ebx
push 1
mov dword [edi + 0x2c0], edx
mov byte [edi + 0x2c8], bl
mov dword [edi + 0x2cc], ebx
mov dword [edi + 0x2c4], ebx
mov dword [edi + 0x2d0], esi
push ebx
mov dword [esi + 0xc], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x480346
push ebp
jmp 0x480399
mov ebp, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x480394
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi + 0x1c], eax
jne 0x480371
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x480399
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x20], eax
jne 0x480386
mov edx, dword [esp + 0xc]
push edx
jmp 0x480399
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x4803b2
mov eax, dword [esp + 0xc]
push eax
call fcn.004801b0
add esp, 4
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
lea ecx, [esi + 4]
push ecx
push ebx
push edi
push 0x4800e0
push ebx
push ebx
call fcn.0048f9df
add esp, 0x18
cmp eax, ebx
mov dword [esi], eax
jne 0x4803f1
call fcn.00493210
mov edx, dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0xc]
push eax
call fcn.004801b0
add esp, 4
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x18]
push edx
push 2
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push ebx
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
pop ebp
mov dword [esi + 0xc], eax
pop esi
mov al, 1
pop ebx
add esp, 0xc
ret
Function at 0x480430
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ecx, dword [edi]
mov eax, dword [ecx + 0x174]
test eax, eax
mov esi, dword [edi + 0x2d0]
mov dword [esp + 0x14], ecx
jne 0x48045d
mov eax, dword [ecx + 0x170]
test eax, eax
jne 0x48045d
mov eax, 0x493e0
push eax
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x10]
push ecx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [esi + 0x14]
push eax
mov dword [esi + 0x10], 0
call ebx
test ebp, ebp
mov dword [esi + 0x14], 0
mov bl, 1
jne 0x4804b9
mov ecx, dword [esi]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x48050f
mov edx, dword [esi]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ebp, [esi + 8]
mov byte [edi + 0x2c8], bl
mov dword [ebp], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4804d9
mov edx, dword [edi + 0x2c4]
mov dword [eax], edx
xor esi, esi
cmp dword [edi + 0x2c4], esi
jne 0x4805c0
mov ebp, dword [ebp]
cmp ebp, 0x1b
jne 0x48052b
push ebp
mov esi, ebp
call fcn.004879a0
push eax
mov eax, dword [esp + 0x1c]
push str.Could_not_resolve_host:__s
push eax
call fcn.0047dbf0
add esp, 0x10
jmp 0x4805c0
mov eax, dword [edi + 0x2cc]
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esi]
lea ebp, [esi + 8]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
jmp 0x4804c9
cmp byte [edi + 0x2c8], 0
je 0x480591
cmp byte [edi + 0x12b], 0
mov ecx, dword [edi + 0x2cc]
push ecx
push edi
je 0x48056b
call fcn.004882e0
mov edx, dword [edi + 0xa0]
push eax
mov eax, dword [esp + 0x20]
push edx
push str.Could_not_resolve_proxy:__s___s
push eax
call fcn.0047dbf0
add esp, 0x18
mov esi, 5
jmp 0x4805c0
call fcn.004882e0
mov edx, dword [edi + 0x8c]
push eax
mov eax, dword [esp + 0x20]
push edx
push str.Could_not_resolve_host:__s___s
push eax
call fcn.0047dbf0
add esp, 0x18
mov esi, 6
jmp 0x4805c0
cmp ebp, 0xffffffff
je 0x4805a2
cmp dword [edi + 0x2cc], 0x2afc
jne 0x4805bb
mov ecx, dword [edi + 0x8c]
mov edx, dword [esp + 0x14]
push ecx
push str.Resolving_host_timed_out:__s
push edx
call fcn.0047dbf0
add esp, 0xc
mov esi, 0x1c
lea eax, [edi + 0x2bc]
push eax
call fcn.004801b0
add esp, 4
cmp dword [edi + 0x2c4], 0
mov eax, esi
jne 0x4805e0
mov byte [edi + 0x128], bl
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x480690
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
mov ebx, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push esi
push 2
mov dword [eax], 0
call fcn.00488500
add esp, 0xc
test eax, eax
jle 0x4806d4
mov edx, dword [esp + 0x18]
push edx
push esi
lea eax, [esp + 0x18]
push eax
push 2
call fcn.0047ff00
add esp, 0x10
pop edi
pop esi
pop ebx
ret
push ebp
mov ebp, dword [esp + 0x1c]
push ebp
push esi
call fcn.00480290
add esp, 8
test al, al
je 0x4806f8
mov ecx, dword [esp + 0x20]
pop ebp
pop edi
pop esi
mov dword [ecx], 1
xor eax, eax
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.004882e0
push eax
push esi
push str.init_resolve_thread___failed_for__s___s_n
push ebx
call fcn.0047db60
add esp, 0x18
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x480745
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004882e0
push eax
push ebp
push esi
push str.gethostbyname_2__failed_for__s:_d___s_n
push ebx
call fcn.0047db60
add esp, 0x1c
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebp
push eax
call fcn.0047fdd0
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret