joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43af3a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x43af4d
push 0xd
pop eax
jmp 0x43af91
push esi
xor eax, eax
push edi
mov dword [ebp + 0xc], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0xc]
jne 0x43af60
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x43af58
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43af98
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x43afaa
push 0xd
pop eax
jmp 0x43afdc
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x43afb3
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x43f0ba
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x49f270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
lea ecx, [ebp - 0x1c]
mov ebx, edi
push str.wow.ucbrowser.marketing_service
mov dword [ebp - 0x38], ebx
call fcn.00406410
lea eax, [ebp - 0x1c]
push eax
call fcn.004195e0
pop ecx
push edi
push 1
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.004047d0
test esi, esi
je 0x43f10a
push esi
call fcn.0043ef2f
pop ecx
test al, al
jne 0x43f187
call fcn.0040ae90
test eax, eax
jg 0x43f13c
push edi
push 0xb7
xor ebx, ebx
lea ecx, [ebp - 0xe8]
push str.d:webapps_b_build_slave_repo_build_srcwow_tools_agentutilswow_single_process.cc
inc ebx
call fcn.0040af30
add eax, 8
push str.Failed_to_notify_running_UCAgent_process__attempt_to_kill_it.
push eax
call fcn.00405180
pop ecx
pop ecx
test bl, 1
je 0x43f14c
lea ecx, [ebp - 0xe8]
call fcn.0040af80
push str.SeDebugPrivilege
lea ecx, [ebp - 0x34]
call fcn.0043ee07
push 0x489f78
lea ecx, [ebp - 0x1c]
call fcn.00406410
push edi
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00419170
add esp, 0xc
lea ecx, [ebp - 0x1c]
push edi
push 1
call fcn.004047d0
lea ecx, [ebp - 0x34]
call fcn.0043eedb
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00467f35
mov esp, ebp
pop ebp
ret
Function at 0x43f9a8
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi], ebx
jne 0x43fa2d
push dword [esi + 8]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esi], eax
test eax, eax
jne 0x43fa2d
call fcn.0040ae90
cmp eax, 2
jg 0x43fa16
inc ebx
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0xd5
push str.d:webapps_b_build_slave_repo_build_srcwow_tools_servicepublicwow_launch_process_with_token.cc
lea ecx, [ebp - 0xbc]
call fcn.0040b720
push dword [esi + 8]
add eax, 0x10
push str.Failed_to_open_the_process
push eax
call fcn.00405180
pop ecx
pop ecx
mov ecx, eax
call fcn.004065b0
test bl, 1
je 0x43fa26
lea ecx, [ebp - 0xbc]
call fcn.0040b780
xor al, al
jmp 0x43faf1
cmp dword [esi + 4], ebx
jne 0x43fa90
push dword [esi + 0xc]
push ebx
push 0x1f03fb
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x43fa90
call fcn.0040ae90
cmp eax, 2
jg 0x43fa8b
push 2
pop ebx
call sub.KERNEL32.dll_GetLastError
push eax
push ebx
push 0xf0
push str.d:webapps_b_build_slave_repo_build_srcwow_tools_servicepublicwow_launch_process_with_token.cc
lea ecx, [ebp - 0xbc]
call fcn.0040b720
push dword [esi + 0xc]
add eax, 0x10
push str.Failed_to_open_the_thread
push eax
call fcn.00405180
pop ecx
pop ecx
mov ecx, eax
call fcn.004065b0
test bl, 2
jmp 0x43fa19
test byte [ebp + 8], 4
jne 0x43faef
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x43faef
call fcn.0040ae90
cmp eax, 2
jg 0x43fae7
push 4
pop ebx
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0xf9
push str.d:webapps_b_build_slave_repo_build_srcwow_tools_servicepublicwow_launch_process_with_token.cc
lea ecx, [ebp - 0xbc]
call fcn.0040b720
push dword [esi + 0xc]
add eax, 0x10
push str.Failed_to_resume_the_thread
push eax
call fcn.00405180
pop ecx
pop ecx
mov ecx, eax
call fcn.004065b0
test bl, 4
jmp 0x43fa19
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43faf7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push ebx
push eax
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43fb6a
call fcn.0040ae90
cmp eax, 2
jg 0x43fb56
inc ebx
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x110
push str.d:webapps_b_build_slave_repo_build_srcwow_tools_servicepublicwow_launch_process_with_token.cc
lea ecx, [ebp - 0xd8]
call fcn.0040b720
add eax, 0x10
push str.Failed_to_receive_CreateProcessAsUser_response
push eax
call fcn.00405180
pop ecx
pop ecx
test bl, 1
je 0x43fb66
lea ecx, [ebp - 0xd8]
call fcn.0040b780
xor al, al
jmp 0x43fb97
cmp dword [ebp - 4], 0x1c
je 0x43fb7d
push 0x2c3
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x43fb66
cmp dword [ebp - 0x1c], ebx
jne 0x43fb87
push dword [ebp - 0x18]
jmp 0x43fb75
push esi
push edi
mov edi, dword [ebp + 0xc]
lea esi, [ebp - 0x14]
mov al, 1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4430f7
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x49f270]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ebx
cmp dword [eax + 0x10], ebx
jne 0x443122
xor al, al
jmp 0x443235
cmp dword [eax + 0x14], 8
jb 0x44312a
mov eax, dword [eax]
movzx eax, word [eax]
push esi
push edi
mov esi, str..X:
lea edi, [ebp - 0x14]
push ebx
push ebx
push 3
movsd dword es:[edi], dword [esi]
push ebx
push 3
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x4c], esi
cmp esi, 0xffffffff
jne 0x443163
xor al, al
jmp 0x443233
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
push eax
push 0x28
lea eax, [ebp - 0x48]
mov dword [ebp - 0x20], ebx
push eax
push 0xc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
push eax
push 0x2d1400
push esi
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x44319c
mov edi, dword [ebp - 0x2c]
jmp 0x443224
call fcn.0040ae90
cmp eax, 2
jg 0x443214
push 4
pop ebx
push 2
push 0x93
push str.d:webapps_b_build_slave_repo_build_srcwow_basewinwow_machine_info_utils_win.cc
lea ecx, [ebp - 0x104]
call fcn.0040af30
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__DeviceIoControl_failed_with_error_code:
push dword [ebp - 0x50]
lea eax, [ebp - 0x14]
push str.__volume_path:
push eax
lea eax, [esi + 8]
push str.When_volume_access_path:
push eax
call fcn.00405180
pop ecx
pop ecx
push eax
call fcn.0040b800
pop ecx
pop ecx
push eax
call fcn.00405180
pop ecx
pop ecx
push eax
call fcn.00401ba0
pop ecx
pop ecx
push eax
call fcn.00405180
pop ecx
pop ecx
mov ecx, eax
call fcn.004065b0
mov esi, dword [ebp - 0x4c]
test bl, 4
je 0x443224
lea ecx, [ebp - 0x104]
call fcn.0040af80
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp edi, 7
sete al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00467f35
mov esp, ebp
pop ebp
ret
Function at 0x443f3a
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37c8
call fcn.00467f50
mov eax, dword [0x49f270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov ebx, edi
mov esi, edi
push esi
lea eax, [ebp - 0x104]
push str..PhysicalDrive_d
push eax
call fcn.0046a6f8
add esp, 0xc
lea eax, [ebp - 0x104]
push edi
push edi
push 3
push edi
push 3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x37c8], eax
cmp eax, 0xffffffff
je 0x444123
mov dword [ebp - 0x37c4], edi
xor eax, eax
lea edi, [ebp - 0x37c0]
stosd dword es:[edi], eax
push 0x2710
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x33cc]
xor edi, edi
push edi
push eax
mov dword [ebp - 0x37c0], edi
mov dword [ebp - 0x37bc], edi
call fcn.004685d0
add esp, 0xc
lea eax, [ebp - 0x37c4]
push edi
mov edi, dword [ebp - 0x37c8]
push eax
push 0x2710
lea eax, [ebp - 0x33cc]
push eax
push 0xc
lea eax, [ebp - 0x37c0]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x44411a
lea eax, [ebp - 0xcbc]
push eax
push 0
push dword [ebp - 0x33c0]
lea eax, [ebp - 0x33cc]
push eax
call fcn.00444140
lea eax, [ebp - 0x8d4]
push eax
push 0
push dword [ebp - 0x33bc]
lea eax, [ebp - 0x33cc]
push eax
call fcn.00444140
lea eax, [ebp - 0x37b4]
push eax
push 0
push dword [ebp - 0x33b8]
lea eax, [ebp - 0x33cc]
push eax
call fcn.00444140
lea eax, [ebp - 0x4ec]
push eax
push 1
push dword [ebp - 0x33b4]
lea eax, [ebp - 0x33cc]
push eax
call fcn.00444140
add esp, 0x40
cmp byte [0x4a1040], 0
jne 0x4440e0
movsx eax, byte [ebp - 0x4ec]
push eax
call fcn.0046c6e9
pop ecx
test eax, eax
jne 0x44409a
movsx eax, byte [ebp - 0x4d9]
push eax
call fcn.0046c6e9
pop ecx
test eax, eax
je 0x4440e0
xor eax, eax
cmp byte [ebp - 0x4ec], 0x20
jne 0x4440b0
inc eax
cmp byte [ebp + eax - 0x4ec], 0x20
je 0x4440a5
lea ecx, [ebp - 0x4ec]
mov edx, 0x4a1040
add ecx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x4440bf
xor ecx, ecx
mov al, byte [ebp + ecx - 0x8d4]
mov byte [ecx + 0x4a1440], al
inc ecx
test al, al
jne 0x4440cb
xor ebx, ebx
inc ebx
push 0x2710
lea eax, [ebp - 0x33cc]
push 0
push eax
call fcn.004685d0
add esp, 0xc
lea eax, [ebp - 0x37c4]
xor ecx, ecx
push ecx
push eax
push 0x2710
lea eax, [ebp - 0x33cc]
push eax
push ecx
push ecx
push 0x700a0
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc esi
cmp esi, 0x10
jl 0x443f5a
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00467f35
mov esp, ebp
pop ebp
ret

Function at 0x4442b4
Capabilities:
Hash data with md5

Disassembly:
push esi
push 0x40
mov esi, ecx
push 0
push esi
call fcn.004685d0
and dword [esi + 0x44], 0
add esp, 0xc
and dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x48], 0x67452301
mov dword [esi + 0x4c], 0xefcdab89
mov dword [esi + 0x50], 0x98badcfe
mov dword [esi + 0x54], 0x10325476
pop esi
ret
Function at 0x444d76
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x49f270]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4a1a54]
mov ecx, eax
inc eax
mov dword [0x4a1a54], eax
test ecx, ecx
je 0x444da1
xor eax, eax
jmp 0x444e27
push ebx
mov ebx, dword [ebp + 8]
mov dword [fcn.0046740d], 0x46740d
mov dword [fcn.004673d5], 0x4673d5
mov dword [fcn.0046d723], 0x46d723
mov dword [fcn.0046dadb], 0x46dadb
mov dword [fcn.0046de11], 0x46de11
test bl, 2
je 0x444e0b
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x444e14
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x444e03
shr eax, 8
cmp al, 2
je 0x444e0b
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x444e14
call fcn.00402e90
test eax, eax
je 0x444e19
push 2
pop eax
jmp 0x444e26
mov dword [0x4a1a58], ebx
call fcn.0044ea4c
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467f35
mov esp, ebp
pop ebp
ret

Function at 0x4466ec
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x48
push 1
call dword [0x49f0a0]
mov esi, dword [ebp + 8]
mov edi, eax
pop ecx
pop ecx
push 8
mov dword [esi + 0x3bc], edi
pop ebx
test edi, edi
je 0x4467ac
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [esi + 0x3b4], ecx
mov dword [esi + 0x3b8], ecx
mov dword [esi + 0x3b0], ecx
push eax
push dword [ebp + 0xc]
mov dword [esi + 0x3ac], eax
or dword [edi + 4], 0xffffffff
mov dword [edi], ecx
lea ecx, [edi + 0x10]
push ecx
call fcn.004467cc
add esp, 0x10
test eax, eax
je 0x4467ac
mov eax, dword [esi + 0x3a8]
test eax, eax
je 0x446767
push eax
call dword [0x49f094]
and dword [esi + 0x3a8], 0
pop ecx
push dword [ebp + 0xc]
call dword [0x49f09c]
mov dword [esi + 0x3a8], eax
pop ecx
test eax, eax
je 0x4467ac
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x4467ac
lea eax, [edi + 0x10]
push eax
push 0x44665f
call fcn.00451e25
mov dword [edi], eax
pop ecx
pop ecx
test eax, eax
jne 0x4467c7
call fcn.0046c8aa
mov ebx, dword [eax]
lea eax, [esi + 0x3a8]
push eax
call fcn.00446599
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
inc eax
jmp 0x4467c2

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [edi + eax*4 + 0x130]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov esi, eax
and dword [ebx], 0
cmp esi, 0xffffffff
jne 0x44dbce
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x44dba6
xor esi, esi
mov dword [ebx], 0x51
jmp 0x44dbce
push eax
push edi
call fcn.00450af4
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0044d89b
mov eax, dword [edi]
add esp, 0x14
mov ecx, dword [ebp + 8]
mov dword [eax + 0x856c], ecx
mov dword [ebx], 0x37
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x44dd57
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x164]
test eax, eax
je 0x44dd7f
push dword [esi + 0xf4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
jmp 0x44ddb7
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x44ddb5
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
push 2
add eax, 0x48bdb8
push eax
call fcn.0046b8d8
push dword [esi + 0xf0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0046b8d8
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

Function at 0x44df11
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov ecx, dword [eax + 0x530]
cmp ecx, edi
je 0x44df65
mov eax, dword [eax + 0x524]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x44df65
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x44df3e
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
mov esi, dword [eax + 0x130]
jne 0x44df65
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
cmove esi, edi
mov eax, esi
jmp 0x44df67
mov eax, edi
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x49f270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x19c], 0
mov ebx, dword [edi]
jne 0x44e1d8
lea eax, [ebp - 0x108]
mov esi, 0x80
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x44e12a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00450af4
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0044d89b
add esp, 0x18
jmp 0x44e1df
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], esi
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x44e163
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00450af4
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x44e11c
lea eax, [edi + 0xcc]
push eax
lea eax, [edi + 0x9e]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0044e53a
add esp, 0xc
test eax, eax
jne 0x44e19c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00450af4
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x44e11c
lea eax, [edi + 0x100]
push eax
lea eax, [edi + 0xd0]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0044e53a
add esp, 0xc
test eax, eax
jne 0x44e1d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00450af4
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x44e11c
push edi
call fcn.0044df6b
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00467f35
mov esp, ebp
pop ebp
ret
Function at 0x44e918
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 4
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x44e960
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00450af4
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0044d931
add esp, 0x14
jmp 0x44e96d
push str.TCP_NODELAY_set_n
push esi
call fcn.0044d931
pop ecx
pop ecx
pop edi
pop esi
pop ebp
ret

Function at 0x4503cf
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [ebp + 8]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4503e0
jmp dword [eax*4 + 0x450453]
mov al, 0x41
pop ebp
ret
mov al, 0x42
pop ebp
ret
mov al, 0x43
pop ebp
ret
mov al, 0x44
pop ebp
ret
mov al, 0x45
pop ebp
ret
mov al, 0x46
pop ebp
ret
mov al, 0x47
pop ebp
ret
mov al, 0x48
pop ebp
ret
mov al, 0x49
pop ebp
ret
mov al, 0x4a
pop ebp
ret
mov al, 0x4b
pop ebp
ret
mov al, 0x4c
pop ebp
ret
mov al, 0x4d
pop ebp
ret
mov al, 0x4e
pop ebp
ret
mov al, 0x4f
pop ebp
ret
mov al, 0x50
pop ebp
ret
mov al, 0x51
pop ebp
ret
mov al, 0x52
pop ebp
ret
mov al, 0x53
pop ebp
ret
mov al, 0x54
pop ebp
ret
mov al, 0x55
pop ebp
ret
mov al, 0x56
pop ebp
ret
mov al, 0x57
pop ebp
ret
mov al, 0x58
pop ebp
ret
mov al, 0x59
pop ebp
ret
mov al, 0x5a
pop ebp
ret
mov al, cl
pop ebp
ret
Function at 0x4506ec
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push edi
xor edi, edi
and dword [ebp - 0xc], edi
and dword [eax], edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x450856
push esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], esi
test esi, esi
je 0x450842
push ebx
cmp dword [esi + 4], 2
jne 0x4507e1
cmp dword [esi + 0x18], 0
je 0x4507e1
cmp dword [esi + 0x10], 0
jbe 0x4507e1
cmp dword [esi + 0x10], 0x10
jb 0x4507e1
push 0x20
call dword [0x49f090]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x450836
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov eax, dword [esi + 0xc]
and dword [ebx + 0x18], 0
and dword [ebx + 0x14], 0
and dword [ebx + 0x1c], 0
push 0x10
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 0x10
call dword [0x49f090]
mov dword [ebx + 0x18], eax
pop ecx
test eax, eax
je 0x45082a
mov esi, dword [esi + 0x18]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x14], 0
je 0x4507c9
push dword [esi + 0x14]
call dword [0x49f09c]
mov dword [ebx + 0x14], eax
pop ecx
test eax, eax
je 0x450813
mov edi, dword [ebp - 4]
test edi, edi
mov eax, dword [ebp - 0xc]
cmove edi, ebx
mov dword [ebp - 4], edi
test eax, eax
je 0x4507de
mov dword [eax + 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov esi, dword [esi + 0x1c]
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x45072e
mov esi, dword [ebp - 0x14]
cmp dword [ebp - 8], 0
pop ebx
je 0x450802
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x45083b
push dword [ebp - 4]
call fcn.004506ab
pop ecx
xor edi, edi
jmp 0x45084e
push 8
pop esi
push dword [ebx + 0x18]
call dword [0x49f094]
push ebx
call dword [0x49f094]
pop ecx
pop ecx
jmp 0x4507f2
push 8
pop esi
push ebx
call dword [0x49f094]
jmp 0x450827
push 8
pop esi
jmp 0x4507f2
mov edi, dword [ebp - 4]
test edi, edi
jne 0x45084e
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x451e25
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call fcn.0046f9df
add esp, 0x18
test eax, eax
je 0x451e45
cmp eax, 0xffffffff
jne 0x451e47
xor eax, eax
pop ebp
ret