joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c900
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x39c
mov eax, dword [0x4932e0]
xor eax, esp
mov dword [esp + 0x398], eax
push ebx
push esi
push edi
mov edi, 0xfe
xor ebx, ebx
push edi
lea eax, [esp + 0x2a5]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x2ac], bl
call fcn.0041f000
push edi
lea eax, [esp + 0x1b1]
push ebx
push eax
mov byte [esp + 0x1b8], bl
call fcn.0041f000
add esp, 0x18
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
inc edi
push edi
lea eax, [esp + 0x2a4]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [esp + 0x2a0]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40c98b
xor al, al
jmp 0x40c9bc
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [esp + 0x1a4]
push edi
push eax
call fcn.0041b4a3
add esp, 0xc
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esi + 8]
call fcn.00402506
mov al, 1
mov ecx, dword [esp + 0x3a4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004183ae
mov esp, ebp
pop ebp
ret

Function at 0x40c9d1
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push 0xc
mov eax, 0x471448
call fcn.004638d9
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov eax, 0x288
push 1
xor edi, edi
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edi
call fcn.0041b278
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40caf1
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x40ca37
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a3b0
mov edi, eax
pop ecx
mov esi, edi
test edi, edi
je 0x40caf1
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x40cae6
test esi, esi
je 0x40cabb
push 8
lea eax, [esi + 0x1b0]
push str.0.0.0.0
push eax
call fcn.0042d4c8
add esp, 0xc
test eax, eax
jne 0x40ca6e
mov esi, dword [esi]
test esi, esi
jne 0x40ca4e
test esi, esi
je 0x40cabb
mov ecx, dword [esi + 0x198]
mov edx, dword [esi + 0x194]
mov eax, ecx
shr eax, 8
movzx eax, al
push eax
movzx eax, cl
push eax
mov eax, edx
shr eax, 0x18
push eax
mov eax, edx
shr eax, 0x10
movzx eax, al
push eax
mov eax, edx
shr eax, 8
movzx eax, al
push eax
movzx eax, dl
push eax
push str._0.2X__0.2X__0.2X__0.2X__0.2X__0.2X
push 0x14
push 0x4984a8
call fcn.0041848b
add esp, 0x24
test edi, edi
je 0x40cac6
push edi
call fcn.00419cfd
pop ecx
or dword [ebp - 4], 0xffffffff
push 0x4984a8
lea ecx, [ebx + 0xc]
call fcn.00402506
mov al, 1
jmp 0x40caf3
test esi, esi
je 0x40caf1
push esi
call fcn.0041938f
pop ecx
xor al, al
call fcn.0046383e
ret
Function at 0x40cbe5
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
test ebx, ebx
jne 0x40cc10
or eax, 0xffffffff
jmp 0x40ccd8
push edi
push ebx
call fcn.0041a3b0
push ebx
mov edi, eax
push esi
push edi
call fcn.0041f000
add esp, 0x10
push edi
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
jne 0x40cc44
push edi
call fcn.00419cfd
or eax, 0xffffffff
jmp 0x40ccd6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x481334
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
jne 0x40cc67
or esi, 0xffffffff
jmp 0x40ccce
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
call fcn.0040cba4
test al, al
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x12]
push eax
lea eax, [ebx + 0x18]
push 0x47fb4c
push eax
call fcn.00402ba1
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10]
push eax
lea eax, [ebx + 0x20]
push 0x47fb4c
push eax
call fcn.00402ba1
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x16]
push eax
lea eax, [ebx + 0x1c]
push 0x47fb4c
push eax
call fcn.00402ba1
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x14]
push eax
lea eax, [ebx + 0x24]
push 0x47fb4c
push eax
call fcn.00402ba1
add esp, 0x30
push edi
call fcn.00419cfd
mov eax, esi
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4109f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebx, edx
push esi
mov dword [esp + 0x14], ebx
mov ebp, ecx
call fcn.00402e42
mov esi, eax
cmp esi, 1
je 0x410a5b
test esi, esi
je 0x410a19
lea edx, [esi - 1]
test esi, edx
jne 0x410a19
and edx, ebp
jmp 0x410a1f
mov eax, ebp
xor edx, edx
div esi
neg edx
sbb edx, edx
inc edx
test edx, edx
je 0x410a4b
cmp esi, 1
je 0x410a5b
test esi, esi
je 0x410a3c
lea edx, [esi - 1]
test esi, edx
jne 0x410a3c
and edx, ebx
jmp 0x410a42
mov eax, ebx
xor edx, edx
div esi
neg edx
sbb edx, edx
inc edx
test edx, edx
jne 0x410a58
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
jmp 0x410b7a
cmp esi, 1
mov ecx, dword [esp + 0x24]
je 0x410a88
test esi, esi
je 0x410a70
lea edx, [esi - 1]
test esi, edx
jne 0x410a70
and edx, ecx
jmp 0x410a76
mov eax, ecx
xor edx, edx
div esi
neg edx
sbb edx, edx
inc edx
test edx, edx
jne 0x410a88
mov edx, dword [esp + 0x28]
jmp 0x410b7a
mov edx, dword [esp + 0x28]
push edi
mov edi, edx
xor esi, esi
shr edi, 2
mov dword [esp + 0x10], esi
test edi, edi
je 0x410b6c
cmp edi, 4
jb 0x410b2a
lea eax, [ecx - 4]
mov dword [esp + 0x10], esi
lea eax, [eax + edi*4]
cmp ebp, eax
ja 0x410ac1
lea eax, [ebp - 4]
lea eax, [eax + edi*4]
cmp eax, ecx
jae 0x410b2a
lea eax, [ebx - 4]
lea eax, [eax + edi*4]
cmp ebp, eax
ja 0x410ad5
lea eax, [ebp - 4]
lea eax, [eax + edi*4]
cmp eax, ebx
jae 0x410b2a
mov esi, ebp
sub esi, ebx
mov dword [esp + 0x1c], esi
mov eax, edi
and eax, 3
mov dword [esp + 0x14], edi
sub dword [esp + 0x14], eax
mov esi, ecx
sub esi, ebx
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov eax, ebx
mov ebx, dword [esp + 0x1c]
movdqu xmm1, xmmword [edx + eax]
movdqu xmm0, xmmword [eax]
add esi, 4
pxor xmm1, xmm0
movdqu xmmword [ebx + eax], xmm1
lea eax, [eax + 0x10]
cmp esi, dword [esp + 0x14]
jb 0x410b00
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], esi
cmp esi, edi
jae 0x410b6c
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
sub ebx, ecx
sub edi, eax
add eax, edi
mov dword [esp + 0x20], ebx
mov edx, ebx
mov ebx, dword [esp + 0x1c]
lea esi, [ecx + esi*4]
mov dword [esp + 0x10], eax
mov eax, dword [edx + esi]
xor eax, dword [esi]
lea esi, [esi + 4]
mov dword [ebx + esi - 4], eax
dec edi
jne 0x410b51
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
shl esi, 2
pop edi
sub edx, esi
je 0x410b91
add ebp, esi
add ebx, esi
add ecx, esi
test edx, edx
je 0x410b91
sub ebx, ecx
sub ebp, ecx
mov al, byte [ecx + ebx]
xor al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + ebp - 1], al
dec edx
jne 0x410b82
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4119d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x471d68
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4932e0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00403a7d
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x13]
mov edx, dword [esi]
push ecx
push 0x494f58
push eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
movzx ecx, byte [esp + 0x13]
test al, al
mov ebx, 1
cmovne ebx, ecx
call fcn.00403a83
mov edx, dword [esi]
lea ecx, [esp + 0x14]
push ecx
push 0x49563c
push eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
test al, al
mov ecx, 0x48
cmovne ecx, dword [esp + 0x14]
mov eax, 0x47fd1c
test bl, bl
mov esi, 0x480d7c
cmove esi, eax
xor eax, eax
test bl, bl
cmovne eax, ecx
lea ecx, [edi + 0x44]
mov dword [esp + 0x18], 6
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
call fcn.00404b77
push ecx
push esi
lea ecx, [esp + 0x5c]
mov dword [esp + 0x28], eax
call fcn.004036ca
mov ebx, eax
push ecx
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x80], 0
call fcn.004036ca
mov edi, eax
push ecx
lea eax, [esp + 0x18]
push eax
mov edx, str.EncodingLookupArray
lea ecx, [esp + 0x38]
mov byte [esp + 0x80], 1
call fcn.00411b80
add esp, 8
mov byte [esp + 0x78], 2
movzx ecx, byte [eax + 8]
push ecx
push ecx
push str.PaddingByte
mov ecx, eax
call fcn.00411d00
mov esi, eax
lea eax, [esp + 0x18]
push 1
push eax
call fcn.00403a71
push eax
push ebx
call fcn.00403a65
push eax
push edi
call fcn.00403a5f
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00403a6b
push eax
mov ecx, esi
call fcn.00406b18
mov ecx, eax
call fcn.00406be3
mov ecx, eax
call fcn.00406be3
mov ecx, eax
call fcn.00406fca
mov ecx, dword [ebp + 8]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], vtable.CryptoPP::CombinedNameValuePairs.0
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
push 0xffffffffffffffff
lea edx, [esp + 0x28]
push edx
call dword [eax + 0x28]
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 1
call fcn.004039c5
lea ecx, [esp + 0x3c]
call fcn.004039af
lea ecx, [esp + 0x54]
call fcn.004039af
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4122e0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push esi
xor eax, eax
push edi
movzx edx, byte [eax + 0x482298]
mov edi, edx
shr edi, 7
mov esi, edi
imul edi, edi, 0x11b
imul esi, esi, 0x1b000000
mov ecx, edx
shl ecx, 0x19
xor esi, ecx
mov ecx, edx
shl ecx, 8
or ecx, edx
shl ecx, 8
or esi, ecx
lea ecx, [edx + edx]
xor edi, ecx
xor edi, edx
xor ecx, ecx
or edi, esi
or ecx, esi
mov dword [eax*8 + 0x4972e0], ecx
mov dword [eax*8 + 0x4972e4], edi
inc eax
cmp eax, 0x100
jl 0x4122e4
xorps xmm0, xmm0
pop edi
movlpd qword [0x497ae8], xmm0
movlpd qword [0x497ae0], xmm0
mov byte [0x4972d0], 1
pop esi
ret
Function at 0x412360
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x10
push ebx
push ebp
xor edx, edx
push esi
mov dword [esp + 0x18], edx
push edi
lea ecx, [ecx]
movzx edi, byte [edx + 0x482398]
mov eax, edi
shr eax, 5
mov edx, eax
mov ebx, eax
and eax, 1
mov dword [esp + 0x14], eax
and edx, 4
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edi
lea ecx, [edi + edi]
xor ecx, edi
mov edx, edi
lea ebp, [ecx + ecx]
xor ebp, dword [esp + 0x10]
shr edi, 7
mov eax, edi
imul edi, edi, 0x11b
imul eax, eax, 0x1b000000
shl ebp, 0x19
xor ebp, eax
mov eax, dword [esp + 0x14]
imul eax, eax, 0x1b000000
xor ebp, eax
and ebx, 2
mov eax, ebx
imul eax, eax, 0x1b000000
xor ebp, eax
shr edx, 6
mov esi, edx
and edx, 1
mov eax, edx
imul edx, edx, 0x11b00
imul eax, eax, 0x1b000000
xor ebp, eax
and esi, 2
mov eax, esi
imul esi, esi, 0x11b00
imul eax, eax, 0x1b000000
xor ebp, eax
mov eax, dword [esp + 0x18]
imul eax, eax, 0x1b000000
xor ebp, eax
mov eax, dword [esp + 0x14]
shl ecx, 2
imul eax, eax, 0x11b00
xor ecx, dword [esp + 0x10]
shl ecx, 8
xor ecx, eax
mov eax, ebx
imul eax, eax, 0x11b00
xor ecx, eax
xor ecx, edx
xor ecx, esi
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, esi
imul eax, eax, 0x11b00
xor ecx, eax
mov eax, dword [esp + 0x10]
or ebp, ecx
lea ecx, [eax*8]
xor ecx, eax
mov eax, edx
imul edx, edx, 0x11b
imul eax, eax, 0x11b0000
shl ecx, 0x10
xor ecx, eax
mov eax, ebx
imul eax, eax, 0x11b0000
xor ecx, eax
mov eax, esi
imul eax, eax, 0x11b0000
xor ecx, eax
mov eax, dword [esp + 0x10]
or ebp, ecx
lea ecx, [eax*4]
xor ecx, eax
add ecx, ecx
xor ecx, edi
xor ecx, edx
imul ebx, ebx, 0x11b
imul esi, esi, 0x11b
xor ecx, ebx
mov edx, eax
xor ecx, esi
xor ecx, edx
or edx, ebp
xor eax, eax
or eax, edx
mov edx, dword [esp + 0x1c]
or ecx, ebp
mov dword [edx*8 + 0x497c18], eax
mov dword [edx*8 + 0x497c1c], ecx
inc edx
mov dword [esp + 0x1c], edx
cmp edx, 0x100
jl 0x412370
pop edi
pop esi
pop ebp
mov byte [0x4972d1], 1
pop ebx
add esp, 0x10
ret
Function at 0x424f36
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4932e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00420c7f
mov dword [ebp - 0x14], eax
cmp dword [0x496e58], edi
jne 0x425027
push 0x800
push edi
push 0x474f30
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x424fb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x425107
push 0x474f30
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x425107
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x425107
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x496e58], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x496e5c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x496e60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x496e68], eax
test eax, eax
je 0x425024
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x496e64], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x42504c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42503f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x425061
push 4
pop eax
jmp 0x425109
cmp dword [ebp - 0x14], edi
je 0x425061
push dword [0x496e58]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x425046
mov eax, dword [0x496e64]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4250bf
cmp dword [0x496e68], esi
je 0x4250bf
push eax
call ebx
push dword [0x496e68]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4250bf
test eax, eax
je 0x4250bf
call ecx
test eax, eax
je 0x4250b4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4250b4
test byte [ebp - 8], 1
jne 0x4250bf
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4250ef
mov eax, dword [0x496e5c]
cmp eax, esi
je 0x4250ec
push eax
call ebx
test eax, eax
je 0x4250ec
call eax
mov edi, eax
test edi, edi
je 0x4250ec
mov eax, dword [0x496e60]
cmp eax, esi
je 0x4250ec
push eax
call ebx
test eax, eax
je 0x4250ec
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x496e58]
call ebx
test eax, eax
je 0x425107
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x425109
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004183ae
leave
ret
Function at 0x432e20
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4932e0]
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 0x432e70
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x432e6a
shr eax, 8
cmp al, 2
jne 0x432e6a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004183ae
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.004183ae
mov esp, ebp
pop ebp
ret

Function at 0x437990
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4379ae
cmp dword [esi + 0x48], 0
je 0x4379ae
push 2
push 3
push esi
call fcn.0044a950
add esp, 0xc
push dword [ebp + 0xc]
call fcn.00443eb0
add esp, 4
test esi, esi
je 0x4379ce
cmp dword [esi + 0x48], 0
je 0x4379ce
push 3
push esi
call fcn.0044a990
add esp, 8
pop esi
pop ebp
ret
Function at 0x43f2a0
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 0x43f31e
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x43f2ee
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.00432e90
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.0043ef90
mov eax, dword [ebp + 8]
add esp, 0x14
mov eax, dword [eax]
mov dword [eax + 0x8624], esi
mov dword [ebx], 0x37
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x43f500
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 0x43f529
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 0x43f55f
push dword [esi + 0x130]
lea eax, [eax + eax*2]
push 1
add eax, 0x479794
push 2
push eax
call fcn.00419e59
push dword [esi + 0x130]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00419e59
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x5e8]
test esi, esi
je 0x43f727
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x43f6f1
cmp dword [edi + 0x40], eax
je 0x43f727
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0
test eax, eax
jne 0x43f702
mov eax, dword [edi + 0x40]
push 0x4404f0
lea ecx, [ebp - 8]
add eax, 0x68
push ecx
push eax
call fcn.00448730
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x43f730
mov dword [edi + 0x5e8], 0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x43f739
mov dword [eax], esi
cmp dword [esi + 0x17c], 0
mov edi, dword [esi + 0x154]
jne 0x43f727
cmp edi, 0xffffffff
je 0x43f760
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x43f727
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43fb40
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x4932e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x49716c]
push esi
mov dword [ebp - 0xa4], 0x4020
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 4
test eax, eax
jne 0x43fc0a
push 0x9c
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0041f000
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
mov dword [ebp - 0xa0], 0x9c
push 3
push 2
push 0
push 0
mov dword [ebp - 0x9c], 6
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push edx
push eax
push 0x33
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x43fbfe
mov dword [0x49716c], 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004183ae
mov esp, ebp
pop ebp
ret
mov dword [0x49716c], 1
jmp 0x43fc0f
cmp eax, 2
je 0x43fc5d
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xa8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x43fc43
mov eax, dword [ebp - 0xa8]
cmp eax, dword [ebp - 0xa4]
jg 0x43fc5d
push 4
lea eax, [ebp - 0xa4]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004183ae
mov esp, ebp
pop ebp
ret

Function at 0x43fd40
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]
lea eax, [ebp + 8]
push eax
push 1
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x43fd88
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00432e90
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0043f030
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0043f030
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x43fe60
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4932e0]
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 0x440017
cmp dword [ebx + 0x1d8], 0
push esi
jne 0x44000d
mov esi, dword [ebp + 0xc]
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_getpeername]
test eax, eax
je 0x43fef1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00432e90
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.0043ef90
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004183ae
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
mov dword [ebp - 0x108], 0x80
call fcn.0041f000
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x43ff5a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00432e90
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.0043ef90
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004183ae
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0xe8]
push eax
lea esi, [ebx + 0xb8]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.00440510
add esp, 0xc
test eax, eax
jne 0x43ffab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.00432e90
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edi
call fcn.0043ef90
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004183ae
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 - 0x84]
push eax
movsw word es:[edi], word [esi]
call fcn.00440510
add esp, 0xc
test eax, eax
jne 0x44000d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.00432e90
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.0043ef90
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004183ae
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0043fae0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004183ae
mov esp, ebp
pop ebp
ret