joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404220
Capabilities:
Get common file path

Disassembly:
sub esp, 0xe28
mov eax, dword [0x41904c]
xor eax, esp
mov dword [esp + 0xe24], eax
mov eax, dword [esp + 0xe30]
push ebx
push ebp
mov ebp, dword [esp + 0xe34]
push esi
push edi
push 0x400
lea ecx, [esp + 0x234]
push 0
push ecx
mov dword [esp + 0x30], eax
call fcn.004080b0
add esp, 0xc
push ebp
lea edx, [esp + 0x234]
push 0x1ff
push edx
call fcn.00404595
mov eax, ebp
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404280
sub eax, edx
sar eax, 1
lea edi, [esp + eax*2 + 0x232]
mov ecx, 0x80
mov esi, 0x41ba40
mov eax, ebp
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4042a7
sub eax, edx
sar eax, 1
push 0x10000
lea ebx, [eax + eax + 0x202]
call fcn.0040525c
add esp, 4
push 0x10000
xor esi, esi
mov ebp, eax
push esi
push ebp
call fcn.004080b0
add esp, 0xc
push 0x7fe
lea ecx, [esp + 0x636]
xor eax, eax
push esi
push ecx
mov dword [esp + 0x28], 0x10000
mov word [esp + 0x63c], ax
call fcn.004080b0
add esp, 0xc
push 0x206
lea eax, [esp + 0x2e]
xor edx, edx
push esi
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], esi
mov word [esp + 0x34], dx
call fcn.004080b0
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [esp + 0xe44]
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x630]
push edx
push eax
lea esi, [esp + 0x20]
call fcn.00403bd0
add esp, 8
test eax, eax
je 0x404419
lea ecx, [esp + 0x630]
push ecx
push ebx
push 0xbba
lea ecx, [esp + 0x23c]
mov edx, esi
call fcn.00403cf0
add esp, 0xc
test eax, eax
je 0x404419
lea edx, [esp + 0x630]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
mov edx, esi
call fcn.00403ed0
add esp, 0xc
test eax, eax
je 0x404419
mov edx, 0xbba
cmp word [esp + 0x20], dx
jne 0x404419
cmp dword [esp + 0x1c], 0
je 0x404419
cmp byte [ebp], 0
jne 0x404419
push 0x41bc40
lea eax, [esp + 0x2c]
push 0x104
push eax
call fcn.00404604
add esp, 0xc
push 0x4172d4
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], 0
call fcn.004048e7
add esp, 0xc
cmp dword [esp + 0x14], 0
je 0x404411
lea eax, [esp + 0x14]
push eax
mov edi, esi
call fcn.00404460
add esp, 4
mov dword [esp + 0x14], 1
test ebp, ebp
je 0x404426
push ebp
call fcn.00405326
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x404435
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0xe34]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404586
add esp, 0xe28
ret
Function at 0x404460
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.0040ece0
mov eax, dword [0x41904c]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [edi]
mov eax, dword [esp + 0x1010]
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
push ebx
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0x4044b8
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.00404586
add esp, 0x100c
ret
cmp dword [esp + 8], ebx
jbe 0x4044f7
push esi
nop
mov ecx, dword [edi]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x4044f6
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00404e4c
add ebx, esi
add esp, 0x10
cmp ebx, dword [esp + 0xc]
jb 0x4044c0
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.00404c6e
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp ebx, dword [esp + 8]
pop ebp
sbb eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.00404586
add esp, 0x100c
ret

Function at 0x404586
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41904c]
jne 0x404590
repz ret
jmp fcn.00405f18
Function at 0x40f0ef
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409d34
and dword [ebp - 4], 0
cmp dword [0x41abac], 0
mov ebx, eax
jne 0x40f1a0
push 0x413b90
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f251
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x413b84
push edi
call esi
test eax, eax
je 0x40f251
push eax
call fcn.00409cc2
mov dword [esp], 0x413b74
push edi
mov dword [0x41abac], eax
call esi
push eax
call fcn.00409cc2
mov dword [esp], 0x413b60
push edi
mov dword [0x41abb0], eax
call esi
push eax
call fcn.00409cc2
mov dword [esp], 0x413b44
push edi
mov dword [0x41abb4], eax
call esi
push eax
call fcn.00409cc2
pop ecx
mov dword [0x41abbc], eax
test eax, eax
je 0x40f1a0
push 0x413b2c
push edi
call esi
push eax
call fcn.00409cc2
pop ecx
mov dword [0x41abb8], eax
mov eax, dword [0x41abb8]
cmp eax, ebx
je 0x40f1f8
cmp dword [0x41abbc], ebx
je 0x40f1f8
push eax
call fcn.00409d3d
push dword [0x41abbc]
mov esi, eax
call fcn.00409d3d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f1f8
test edi, edi
je 0x40f1f8
call esi
test eax, eax
je 0x40f1ef
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f1ef
test byte [ebp - 0xc], 1
jne 0x40f1f8
or dword [ebp + 0x10], 0x200000
jmp 0x40f231
mov eax, dword [0x41abb0]
cmp eax, ebx
je 0x40f231
push eax
call fcn.00409d3d
pop ecx
test eax, eax
je 0x40f231
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f231
mov eax, dword [0x41abb4]
cmp eax, ebx
je 0x40f231
push eax
call fcn.00409d3d
pop ecx
test eax, eax
je 0x40f231
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41abac]
call fcn.00409d3d
pop ecx
test eax, eax
je 0x40f251
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f253
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 1
jne 0x401014
mov eax, dword [0x4370cc]
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
jmp 0x401026
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [0x4370d0]
shr edx, 1
cmp dword [ebp - 4], edx
jae 0x4010ab
mov eax, dword [ebp - 4]
mov ecx, dword [0x4370b4]
movzx edx, word [ecx + eax*2]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
shr eax, 0xc
cmp eax, 3
jne 0x4010a6
mov ecx, dword [ebp - 0xc]
and ecx, 0xfff
add ecx, 0x1474
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
sub edx, 0x1474
mov dword [ebp - 8], edx
cmp dword [ebp - 4], 0
jne 0x401087
push 0x20e
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x401087
xor eax, eax
jmp 0x4010ab
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx]
add eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov dword [edx + ecx], eax
jmp 0x40101d
mov esp, ebp
pop ebp
ret
Function at 0x4019c0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x4370c0], 0x24e1
mov eax, dword [0x4370c0]
sub eax, 0x24e1
mov dword [0x4370c0], eax
mov ecx, 1
test ecx, ecx
je 0x401a6b
mov edx, dword [0x4370c0]
cmp edx, dword [ebp + 0xc]
jb 0x4019f7
jmp 0x401a6b
cmp dword [0x4370c0], 0
jne 0x401a15
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x401a15
xor eax, eax
jmp 0x401a6b
mov eax, dword [ebp + 8]
add eax, dword [0x4370c0]
mov ecx, dword [eax]
add ecx, dword [0x4370c0]
mov edx, dword [ebp + 8]
add edx, dword [0x4370c0]
mov dword [edx], ecx
mov dword [ebp - 4], 0x156
mov eax, dword [0x4370c0]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x4370c0]
push eax
call fcn.004011d0
add esp, 8
mov ecx, dword [0x4370c0]
add ecx, 4
mov dword [0x4370c0], ecx
jmp 0x4019dd
mov esp, ebp
pop ebp
ret

Function at 0x401a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x114], str._ffffffffffffffff
mov eax, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x11c], eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [ebp - 0x11c]
push 0
push 0x80
push 3
push 0
push 3
push 1
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x401aea
cmp dword [ebp - 0x118], 0
je 0x401aea
jmp 0x401b4c
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
je 0x401b4c
mov dword [ebp - 0x120], 0x3c41
mov eax, dword [ebp + 8]
add eax, 8
mov dword [0x4370b4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [0x4370d0], edx
mov dword [ebp - 0x120], 0x3c41
mov dword [ebp - 0x120], 0x3c41
call fcn.004011c0
mov eax, dword [ebp + 8]
mov dword [0x4370cc], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
call fcn.00401980
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x401aea
mov esp, ebp
pop ebp
ret
Function at 0x403f2a
Capabilities:
Create thread

Disassembly:
push 0x3c
mov eax, 0x42779f
call fcn.00426a4d
mov esi, dword [ebp + 0x10]
xor ebx, ebx
cmp esi, ebx
je 0x404095
push esi
call dword [0x4282b8]
test eax, eax
pop ecx
je 0x404095
push esi
lea ecx, [ebp - 0x2c]
call dword [0x428180]
mov dword [ebp - 4], ebx
push ebx
lea ecx, [ebp - 0x2c]
call dword [0x428130]
cmp word [eax], 0x22
jne 0x403fa5
mov eax, dword [ebp - 0x18]
dec eax
push eax
lea ecx, [ebp - 0x2c]
call dword [0x428130]
cmp word [eax], 0x22
jne 0x403fa5
push 1
push ebx
lea ecx, [ebp - 0x2c]
call dword [0x428158]
mov eax, dword [0x42812c]
push dword [eax]
mov eax, dword [ebp - 0x18]
dec eax
push eax
lea ecx, [ebp - 0x2c]
call dword [0x428158]
lea ecx, [ebp - 0x2c]
call fcn.004037a6
test eax, eax
je 0x404067
cmp dword [0x4315d0], ebx
je 0x404067
cmp dword [0x4315ec], ebx
je 0x404067
cmp dword [0x431608], ebx
je 0x404067
push str.20091010aliHttpUpld
lea ecx, [ebp - 0x48]
call dword [0x428180]
mov byte [ebp - 4], 1
push 0x4315bc
lea ecx, [ebp - 0x48]
call dword [0x42816c]
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x404005
lea eax, [ebp - 0x44]
push eax
push ebx
push ebx
call dword [0x42803c]
mov edi, eax
cmp edi, ebx
je 0x404036
call dword [0x428010]
cmp eax, 0xb7
jne 0x404036
push edi
call dword [0x428060]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x48]
call dword [0x428178]
jmp 0x404088
call fcn.00404a52
push ebx
push ebx
push ebx
push 0x40429c
push ebx
push ebx
call dword [0x4282ac]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [0x428048]
push esi
mov esi, dword [0x428060]
call esi
push edi
call esi
jmp 0x404028
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x404073
lea eax, [ebp - 0x28]
push eax
push str.Http_Upload_ParseParamer_Failed_:__s
push 4
mov edi, 0x431648
call fcn.00406746
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [0x428178]
xor eax, eax
call fcn.00426ad0
ret 0x10
Function at 0x4068bb
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push 0x24
mov eax, 0x426b09
call fcn.00426a17
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
cmp dword [edi], esi
je 0x4068f0
mov dword [ebp - 0x20], 1
push 0x42e3c8
lea eax, [ebp - 0x20]
push eax
call fcn.00407840
lea eax, [ebp - 0x18]
push eax
push 0x42de30
push 1
push esi
push 0x42de20
call dword [0x428414]
cmp eax, esi
jge 0x40691c
mov dword [ebp - 0x24], 2
push 0x42e3c8
lea eax, [ebp - 0x24]
jmp 0x4068ea
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x1c]
cmp eax, esi
jge 0x40693e
mov dword [ebp - 0x28], 3
push 0x42e3c8
lea eax, [ebp - 0x28]
jmp 0x4068ea
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x1c]
cmp eax, esi
jge 0x40695d
mov dword [ebp - 0x2c], 4
push 0x42e3c8
lea eax, [ebp - 0x2c]
jmp 0x4068ea
or dword [ebp - 4], 0xffffffff
jmp 0x406975
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x406982
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x40698f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
call fcn.00426abc
ret

Function at 0x407ca0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x431020]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [0x428404]
test eax, eax
jne 0x407cf0
mov ax, word [esp]
cmp al, 2
jne 0x407cea
cmp ah, al
jne 0x407cea
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004072ba
add esp, 0x194
ret
call dword [0x4283e0]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.004072ba
add esp, 0x194
ret
Function at 0x4124d0
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 [0x4283d4]
cmp eax, 0xffffffff
jne 0x412502
call dword [0x4283d8]
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 0x412660
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x140]
test ecx, ecx
push ebp
mov ebp, dword [esp + 8]
je 0x412681
mov edx, dword [esi + 0xe4]
push edx
push ebx
push ebp
push eax
push esi
call ecx
add esp, 0x14
pop ebp
ret
test eax, eax
jl 0x4126b7
cmp eax, 2
jg 0x4126b7
mov ecx, dword [esi + 0xe0]
push edi
mov edi, dword [0x428260]
push ecx
push 1
lea edx, [eax + eax*2 + 0x4296a4]
push 2
push edx
call edi
mov eax, dword [esi + 0xe0]
push eax
push 1
push ebx
push ebp
call edi
add esp, 0x20
pop edi
xor eax, eax
pop ebp
ret

Function at 0x4128f0
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 [0x4283d0]
mov esi, eax
cmp esi, 0xffffffff
jne 0x412935
call dword [0x4283d8]
cmp eax, 0x2733
jne 0x41291b
xor eax, eax
pop esi
ret
push eax
push edi
call fcn.00425520
push eax
mov eax, dword [edi]
push str.Send_failure:__s
push eax
call fcn.00412850
add esp, 0x14
mov eax, esi
pop esi
ret
Function at 0x413080
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 [0x4283b8]
test eax, eax
jge 0x4130c4
call dword [0x4283d8]
push eax
push edi
call fcn.00425520
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004127c0
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004127c0
add esp, 8
pop esi
pop ecx
ret
Function at 0x413510
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x458]
cmp eax, 0xffffffff
je 0x413576
mov ecx, dword [ecx + 0x44c]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x413576
mov ecx, dword [esp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x41353c
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 0x41356c
mov eax, dword [eax + 0xd4]
push 2
push 1
lea edx, [esp + 0x10]
push edx
push eax
call dword [0x4283d4]
test eax, eax
jne 0x413572
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 0x415010
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push ebx
push esi
push 1
push 0x24
call dword [0x431050]
xor ebx, ebx
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
jne 0x415042
push 0xc
call dword [0x428050]
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.00409830
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x43104c]
add esp, 8
cmp eax, ebx
mov dword [ebp], eax
jne 0x415089
push esi
call dword [0x431044]
add esp, 4
push 0xc
call dword [0x428050]
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 [0x428120]
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x4150c6
push ebp
jmp 0x415119
mov ebp, dword [0x428080]
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x415114
push ebx
push ebx
push ebx
call dword [0x428120]
cmp eax, ebx
mov dword [esi + 0x1c], eax
jne 0x4150f1
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x415119
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x20], eax
jne 0x415106
mov edx, dword [esp + 0xc]
push edx
jmp 0x415119
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x415132
mov eax, dword [esp + 0xc]
push eax
call fcn.00414f30
add esp, 4
push 0xb
call dword [0x428050]
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
lea ecx, [esi + 4]
push ecx
push ebx
push edi
push 0x414e60
push ebx
push ebx
call dword [0x4282ac]
add esp, 0x18
cmp eax, ebx
mov dword [esi], eax
jne 0x415173
call dword [0x428218]
mov edx, dword [eax]
push edx
call dword [0x428050]
mov eax, dword [esp + 0xc]
push eax
call fcn.00414f30
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 [0x428084]
push ebx
push 2
push 2
call dword [0x4283b0]
pop ebp
mov dword [esi + 0xc], eax
pop esi
mov al, 1
pop ebx
add esp, 0xc
ret
Function at 0x415410
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.00425740
add esp, 0xc
test eax, eax
jle 0x415454
mov edx, dword [esp + 0x18]
push edx
push esi
lea eax, [esp + 0x18]
push eax
push 2
call fcn.00414c80
add esp, 0x10
pop edi
pop esi
pop ebx
ret
push ebp
mov ebp, dword [esp + 0x1c]
push ebp
push esi
call fcn.00415010
add esp, 8
test al, al
je 0x415478
mov ecx, dword [esp + 0x20]
pop ebp
pop edi
pop esi
mov dword [ecx], 1
xor eax, eax
pop ebx
ret
call dword [0x428010]
push eax
push edi
call fcn.00425520
push eax
push esi
push str.init_resolve_thread___failed_for__s___s_n
push ebx
call fcn.004127c0
add esp, 0x18
push esi
call dword [0x4283ac]
test eax, eax
jne 0x4154c5
call dword [0x4283d8]
push eax
push edi
call fcn.00425520
push eax
push ebp
push esi
push str.gethostbyname_2__failed_for__s:_d___s_n
push ebx
call fcn.004127c0
add esp, 0x1c
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebp
push eax
call fcn.00414b50
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret