joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4139e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x4a7f70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0xc]
push 0
push 2
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x240], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x413a3f
lea eax, [ebp - 0x230]
push eax
push ebx
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x413a53
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464acc
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x234], 0
push esi
mov edi, edi
mov ecx, dword [ebp - 0x238]
push 0x1fffff
push dword [ebp - 0x228]
call fcn.004126e0
mov esi, eax
test esi, esi
je 0x413a8a
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x228]
call fcn.00413b80
test eax, eax
je 0x413b40
lea eax, [edi - 2]
mov cx, word [eax + 2]
lea eax, [eax + 2]
test cx, cx
jne 0x413ab3
mov ecx, dword [str._____]
mov dword [eax], ecx
mov ecx, dword [0x48a974]
mov dword [eax + 4], ecx
mov ecx, dword [0x48a978]
lea edx, [ebp - 0x20c]
mov dword [eax + 8], ecx
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x413ae1
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x413af1
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x240]
lea ecx, [edi - 2]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x413b14
mov eax, dword [0x48a97c]
mov esi, dword [ebp - 0x234]
mov dword [ecx], eax
mov ax, word [0x48a980]
inc esi
mov word [ecx + 4], ax
mov dword [ebp - 0x234], esi
jmp 0x413b46
mov esi, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x413a60
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop esi
sete al
pop edi
xor ecx, ebp
pop ebx
call fcn.00464acc
mov esp, ebp
pop ebp
ret 8
Function at 0x413b80
Capabilities:
Acquire debug privileges
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x4a7f70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x440]
push eax
push 0x28
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x413be2
lea eax, [ebp - 0x14]
push eax
push str.SeDebugPrivilege
push dword [ebp - 0x440]
mov ecx, edi
call fcn.004109f0
push dword [ebp - 0x440]
call ebx
push esi
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x413c39
lea eax, [ebp - 0x43c]
push eax
push esi
mov dword [ebp - 0x43c], 0x428
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x413c36
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x444]
call edi
test eax, eax
je 0x413c4e
lea eax, [ebp - 0x43c]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x413c12
push esi
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464acc
mov esp, ebp
pop ebp
ret 0xc
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00464acc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41d1b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4864f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a7f70]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x41d2d5
cmp byte [ebx + 0x45], 0
je 0x41d2d5
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x41d204
xor al, al
jmp 0x41d2d7
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
cmp ecx, 0x10
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 8
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x41d26e
dec eax
je 0x41d272
sub eax, 2
je 0x41d2be
xor bl, bl
jmp 0x41d2c0
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edx
sub esi, eax
je 0x41d2a4
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [ebp - 0x28]
cmovae eax, edx
push 1
push eax
call fcn.0046652b
add esp, 0x10
cmp esi, eax
jne 0x41d26a
cmp byte [ebx + 0x45], 0
je 0x41d2be
test esi, esi
jne 0x41d234
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0041d6a0
jmp 0x41d234
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x41d2d1
push dword [ebp - 0x28]
call fcn.00463690
add esp, 4
mov al, bl
jmp 0x41d2d7
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00464acc
mov esp, ebp
pop ebp
ret

Function at 0x41e6e0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4a7f70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
push 0x498c38
push ebx
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
call fcn.00463f9b
mov edi, eax
add esp, 8
test edi, edi
jne 0x41e748
push ebx
push str._s_cant_be_opened_n
call fcn.004665be
add esp, 8
jmp 0x41e79d
push edi
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.004661bc
add esp, 0x10
test eax, eax
je 0x41e78d
push eax
lea eax, [ebp - 0x404]
push eax
mov ecx, esi
call fcn.0041d090
push edi
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.004661bc
add esp, 0x10
test eax, eax
jne 0x41e763
mov ecx, esi
call fcn.0041c8a0
push edi
call fcn.00463c74
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
lea eax, [esi + 0x68]
pop esi
xor ecx, ebp
pop ebx
call fcn.00464acc
mov esp, ebp
pop ebp
ret 4
Function at 0x41e7c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486730
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x4a7f70]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0xb8], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xb4], 0x67452301
mov dword [ebp - 0xb0], 0xefcdab89
mov dword [ebp - 0xac], 0x98badcfe
mov dword [ebp - 0xa8], 0x10325476
call fcn.0041ee50
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 1
jb 0x41e855
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xb4]
call fcn.0041e6e0
mov edx, eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [edx], 0
jne 0x41e87d
xor ecx, ecx
jmp 0x41e88b
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41e882
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.0040f3b0
cmp dword [ebp - 0x14], 0x10
jb 0x41e8a5
push dword [ebp - 0x28]
call fcn.00463690
add esp, 4
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x41e8c8
push dword [ebp + 0xc]
call fcn.00463690
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00464acc
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x41f920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486a08
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4a7f70]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 8]
cmp ecx, 0xffffffff
jne 0x41f95c
xor eax, eax
jmp 0x41faec
mov eax, dword [ebx + 0x20]
mov edx, dword [eax]
test edx, edx
je 0x41f98a
mov esi, dword [ebx + 0x30]
mov edi, dword [esi]
lea eax, [edi + edx]
cmp edx, eax
jae 0x41f98a
lea eax, [edi - 1]
mov dword [esi], eax
mov ecx, dword [ebx + 0x20]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov byte [edx], al
jmp 0x41faec
cmp dword [ebx + 0x50], 0
jne 0x41f998
or eax, 0xffffffff
jmp 0x41faec
mov edx, dword [ebx + 0xc]
lea eax, [ebx + 0x44]
cmp dword [edx], eax
jne 0x41f9b9
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x3c]
mov dword [edx], eax
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
sub ecx, ecx
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
cmp dword [ebx + 0x40], 0
jne 0x41f9de
push dword [ebx + 0x50]
movsx eax, cl
push eax
call fcn.00465ef8
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, dword [ebp + 8]
mov eax, ecx
jmp 0x41faec
mov byte [ebp - 0x2c], cl
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
cmp ecx, 0x10
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 8
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
mov esi, dword [ebx + 0x40]
lea eax, [ebp - 0x30]
mov edi, dword [esi]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebx + 0x48]
push eax
mov ecx, esi
call dword [edi + 0x1c]
test eax, eax
js 0x41fad6
cmp eax, 1
jg 0x41fab6
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x30]
cmp edi, 0x10
lea eax, [ebp - 0x28]
cmovae eax, ecx
sub esi, eax
je 0x41fa87
push dword [ebx + 0x50]
lea eax, [ebp - 0x28]
push esi
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call fcn.0046652b
add esp, 0x10
cmp esi, eax
jne 0x41fad6
lea eax, [ebp - 0x2c]
mov byte [ebx + 0x45], 1
cmp dword [ebp - 0x34], eax
jne 0x41fab1
test esi, esi
jne 0x41fa11
cmp dword [ebp - 0x18], 0x20
jae 0x41fad6
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0041d6a0
jmp 0x41fa11
mov ebx, dword [ebp + 8]
jmp 0x41fad9
cmp eax, 3
jne 0x41fad6
push dword [ebx + 0x50]
push dword [ebp - 0x2c]
call fcn.0041a780
or ecx, 0xffffffff
add esp, 8
test al, al
cmovne ecx, dword [ebp + 8]
mov ebx, ecx
jmp 0x41fad9
or ebx, 0xffffffff
cmp dword [ebp - 0x14], 0x10
jb 0x41faea
push dword [ebp - 0x28]
call fcn.00463690
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00464acc
mov esp, ebp
pop ebp
ret 4
Function at 0x422d30
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4a7f70]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x422d80
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x422d7a
shr eax, 8
cmp al, 2
jne 0x422d7a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464acc
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.00464acc
mov esp, ebp
pop ebp
ret
Function at 0x42fe30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x154]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x42feae
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x42fe7e
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.00422210
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.0042fb20
mov eax, dword [ebp + 8]
add esp, 0x14
mov eax, dword [eax]
mov dword [eax + 0x85f4], esi
mov dword [ebx], 0x37
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x42ffd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x42fff9
push dword [esi + 0x134]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x43002f
push dword [esi + 0x130]
lea eax, [eax + eax*2]
push 1
add eax, 0x48d884
push 2
push eax
call fcn.0046652b
push dword [esi + 0x130]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0046652b
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

Function at 0x430550
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4a7f70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4aa240]
mov dword [ebp - 0x124], 0x4020
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x12c], 4
test eax, eax
jne 0x4305fa
push 0x11c
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00465570
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
push 3
push 2
push 0
push 0
mov dword [ebp - 0x11c], 6
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x4305ee
mov dword [0x4aa240], 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464acc
mov esp, ebp
pop ebp
ret
mov dword [0x4aa240], 1
jmp 0x4305ff
cmp eax, 2
je 0x43064e
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x128]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x430632
mov eax, dword [ebp - 0x128]
cmp eax, dword [ebp - 0x124]
jg 0x43064e
push 4
lea eax, [ebp - 0x124]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464acc
mov esp, ebp
pop ebp
ret
Function at 0x4307f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4a7f70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
cmp dword [ebx + 0x8c], 2
mov edi, dword [ebx]
mov dword [ebp - 0x10c], edi
je 0x430991
cmp dword [ebx + 0x1d0], 0
push esi
jne 0x430987
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
mov dword [ebp - 0x108], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x430881
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00422210
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.0042fb20
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464acc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
mov dword [ebp - 0x108], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4308d4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00422210
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.0042fb20
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464acc
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0xe8]
push eax
lea esi, [ebx + 0xb8]
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.00430e70
add esp, 0xc
test eax, eax
jne 0x430925
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.00422210
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edi
call fcn.0042fb20
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464acc
mov esp, ebp
pop ebp
ret
lea edi, [ebx + 0x58]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x11c]
push eax
lea eax, [ebx + 0xec]
push eax
lea eax, [ebp - 0x104]
push eax
movsw word es:[edi], word [esi]
call fcn.00430e70
add esp, 0xc
test eax, eax
jne 0x430987
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.00422210
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.0042fb20
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464acc
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004304f0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00464acc
mov esp, ebp
pop ebp
ret
Function at 0x431190
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4a7f70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
cmp dword [esi + 0x45c], eax
push edi
mov edi, dword [ebp + 0xc]
setne al
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4311ed
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0042fbc0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464acc
mov esp, ebp
pop ebp
ret
push dword [esi + 0x460]
mov dword [ebp - 0x10], 1
call fcn.00438700
imul eax, eax, 0x3e8
push dword [esi + 0x464]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.00438700
imul eax, eax, 0x3e8
add esp, 8
mov dword [ebp - 0x14], eax
push 0
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x43125d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.0042fbc0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00464acc
mov esp, ebp
pop ebp
ret

Function at 0x431270
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 + 0x35c]
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 0x4312ba
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00422210
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0042fbc0
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0042fbc0
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x4399a0
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.0x4399b1
jmp dword [eax*4 + 0x439a24]
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 0x439c30
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x439db7
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x439da3
push esi
lea esp, [esp]
cmp dword [edi + 4], 2
jne 0x439d34
cmp dword [edi + 0x18], 0
je 0x439d34
mov eax, dword [edi + 0x10]
test eax, eax
je 0x439d34
cmp eax, 0x10
jb 0x439d34
push 0x20
call dword [0x4a71cc]
mov esi, eax
add esp, 4
test esi, esi
je 0x439d98
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x4a71cc]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x439d87
mov ecx, dword [edi + 0x18]
movq xmm0, qword [ecx]
movq qword [eax], xmm0
movq xmm0, qword [ecx + 8]
movq qword [eax + 8], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x439d22
push eax
call dword [0x4a71d8]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x439d6d
mov eax, dword [ebp - 4]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x439d31
mov dword [eax + 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x439c70
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x439d51
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x439d9f
push ebx
call fcn.00439be0
mov eax, dword [ebp + 0x14]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x18]
mov edi, 8
call dword [0x4a71d0]
push esi
call dword [0x4a71d0]
add esp, 8
jmp 0x439d42
push esi
mov edi, 8
call dword [0x4a71d0]
add esp, 4
jmp 0x439d42
mov edi, 8
jmp 0x439d42
test ebx, ebx
jne 0x439daf
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret