joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013f5
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebx
call section..vm2umh
pop ecx
test eax, eax
js 0x4015ce
push ebp
push esi
push edi
mov edi, dword [ebx + 0xf0]
xor ebp, ebp
shl edi, 2
test edi, edi
jle 0x401460
lea edx, [ebx + 8]
lea edx, [edx + edi*4]
lea esi, [ebx + 8]
mov ecx, dword [esi - 8]
add ebp, 4
mov eax, dword [edx - 8]
sub edi, 4
mov dword [esi - 8], eax
mov eax, dword [edx - 4]
mov dword [edx - 8], ecx
mov ecx, dword [esi - 4]
mov dword [esi - 4], eax
mov eax, dword [edx]
mov dword [edx - 4], ecx
mov ecx, dword [esi]
mov dword [esi], eax
lea esi, [esi + 0x10]
mov eax, dword [edx + 4]
mov dword [edx], ecx
lea edx, [edx - 0x10]
mov ecx, dword [esi - 0xc]
mov dword [esi - 0xc], eax
mov dword [edx + 0x14], ecx
cmp ebp, edi
jl 0x401424
xor edi, edi
inc edi
cmp dword [ebx + 0xf0], edi
jle 0x4015c9
lea esi, [ebx + 2]
lea esi, [esi + 0x10]
mov edx, dword [esi - 2]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi - 1]
mov ecx, dword [ecx*4 + 0x4a04d0]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x49fcd0]
movzx eax, byte [esi]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4a00d0]
movzx eax, dl
mov edx, dword [esi + 2]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x49f8d0]
mov eax, edx
shr eax, 0x18
mov dword [esi - 2], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 3]
mov ecx, dword [ecx*4 + 0x4a04d0]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x49fcd0]
movzx eax, byte [esi + 4]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4a00d0]
movzx eax, dl
mov edx, dword [esi + 6]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x49f8d0]
mov eax, edx
shr eax, 0x18
mov dword [esi + 2], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 7]
mov ecx, dword [ecx*4 + 0x4a04d0]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x49fcd0]
movzx eax, byte [esi + 8]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4a00d0]
movzx eax, dl
mov edx, dword [esi + 0xa]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x49f8d0]
mov eax, edx
shr eax, 0x18
mov dword [esi + 6], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 0xb]
mov ecx, dword [ecx*4 + 0x4a04d0]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x49fcd0]
movzx eax, byte [esi + 0xc]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4a00d0]
movzx eax, dl
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x49f8d0]
inc edi
mov dword [esi + 0xa], ecx
cmp edi, dword [ebx + 0xf0]
jl 0x401472
pop edi
pop esi
xor eax, eax
pop ebp
pop ebx
ret

Function at 0x401abc
Capabilities:
Hash data with md5

Disassembly:
push esi
push 0x5c
mov esi, ecx
push 0
push esi
call fcn.0044c550
add esp, 0xc
mov dword [esi], 0x67452301
xor eax, eax
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
inc eax
mov dword [esi + 0xc], 0x10325476
pop esi
ret
Function at 0x402b5e
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x4743c4
call fcn.0044aa66
mov esi, ecx
mov dword [ebp - 0x30], esi
mov ecx, dword [ebp + 8]
or ebx, 0xffffffff
cmp ecx, ebx
sete al
test al, al
je 0x402b8a
xor eax, eax
cmp ecx, ebx
cmovne eax, ecx
jmp 0x402ceb
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x402bb8
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x402bb8
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x402ceb
cmp dword [esi + 0x4c], 0
je 0x402ce9
mov ecx, esi
call fcn.0040366c
xor ecx, ecx
cmp dword [esi + 0x38], ecx
jne 0x402be8
push dword [esi + 0x4c]
mov esi, dword [ebp + 8]
push esi
call fcn.004025fa
test al, al
pop ecx
pop ecx
cmovne ebx, esi
jmp 0x402ce9
mov eax, dword [ebp + 8]
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov byte [ebp - 0x2c], al
mov dword [ebp - 0x14], 0xf
call fcn.004049ef
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x14]
mov esi, dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp edi, 0x10
lea edx, [ebp - 0x28]
mov edi, dword [esi]
cmovae ecx, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
call dword [edi + 0x1c]
test eax, eax
js 0x402cdd
cmp eax, 1
jg 0x402cc2
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x3c], edx
je 0x402c93
push dword [esi + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.004537f2
mov edx, dword [ebp - 0x3c]
add esp, 0x10
cmp edx, eax
jne 0x402cdd
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x40], eax
jne 0x402cbd
test edx, edx
jne 0x402c13
cmp dword [ebp - 0x18], 0x20
jae 0x402cdd
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.00404acc
jmp 0x402c10
mov ebx, dword [ebp + 8]
jmp 0x402cdd
cmp eax, 3
jne 0x402cdd
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
push dword [ebp - 0x2c]
call fcn.004025fa
test al, al
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00404f0b
mov eax, ebx
call fcn.0044aa10
ret 4
Function at 0x4036b7
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x4744ff
call fcn.0044aa66
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4037b7
cmp byte [ebx + 0x3d], 0
je 0x4037b7
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x4036f1
xor al, al
jmp 0x4037b9
xor eax, eax
mov dword [ebp - 0x18], 0xf
push eax
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
call fcn.004049ef
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
lea eax, [ebp - 0x30]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x2c]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40374f
sub eax, 1
je 0x403753
dec eax
sub eax, 1
je 0x4037a5
xor bl, bl
jmp 0x4037a7
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
cmp ecx, 0x10
mov esi, dword [ebp - 0x30]
cmovae eax, edx
sub esi, eax
je 0x40378b
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004537f2
add esp, 0x10
cmp esi, eax
jne 0x40374b
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp byte [ebx + 0x3d], 0
je 0x4037a5
test esi, esi
jne 0x403715
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00404acc
jmp 0x40370f
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00404f0b
mov al, bl
jmp 0x4037b9
mov al, 1
call fcn.0044aa10
ret

Function at 0x40571b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405774
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405765
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x405761
cmp esi, ecx
jae 0x405765
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x40574f
cmp esi, ecx
jb 0x405769
xor eax, eax
jmp 0x405773
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40a18a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, ecx
sub esp, 0xc
cmp byte [edx + 4], 0
je 0x40a1c3
push esi
xor esi, esi
cmp dword [edx + 0x3cc], esi
jle 0x40a1bc
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, ecx
mov al, byte [edi + ecx]
xor byte [ecx], al
inc ecx
inc esi
cmp esi, dword [edx + 0x3cc]
jl 0x40a1ac
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push str.Object_not_Initialized
lea ecx, [ebp - 0xc]
call fcn.004045f7
push 0x4aa360
lea eax, [ebp - 0xc]
push eax
call fcn.0044d103
int3
Function at 0x40abe0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4ac0d8]
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 0x40ac35
mov eax, dword [esp]
cmp al, 2
jne 0x40ac2f
shr eax, 8
cmp al, 2
jne 0x40ac2f
call fcn.004136c0
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00449a41
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
mov eax, 2
xor ecx, esp
call fcn.00449a41
add esp, 0x194
ret
Function at 0x412e00
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x412e1c
cmp dword [esi + 0x6c], 0
je 0x412e1c
push 2
push 3
push esi
call fcn.0041f250
add esp, 0xc
push dword [esp + 0xc]
call fcn.00422050
add esp, 4
test esi, esi
je 0x412e3d
cmp dword [esi + 0x6c], 0
je 0x412e3d
push 3
push esi
call fcn.0041f290
add esp, 8
pop esi
ret
Function at 0x41ad40
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x4ac0d8]
xor eax, esp
mov dword [esp + 0x104], eax
push edi
mov edi, dword [esp + 0x110]
cmp byte [edi + 0x4f8], 0
jne 0x41ad72
cmp dword [edi + 0x160], 0
je 0x41ae10
push esi
lea eax, [esp + 0x11c]
push eax
push dword [esp + 0x11c]
lea eax, [esp + 0x10]
push 0x100
push eax
call fcn.00429340
lea esi, [esp + 0x18]
add esp, 0x10
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x41ada0
sub esi, ecx
mov ecx, dword [edi + 0x160]
test ecx, ecx
je 0x41add5
cmp byte [edi + 0x48b0], al
jne 0x41add5
lea edx, [esp + 8]
nop
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x41adc0
mov byte [edi + 0x48b0], 1
cmp byte [edi + 0x4f8], 0
je 0x41ae0f
mov byte [esp + esi + 8], 0xa
inc esi
cmp esi, 0x102
jae 0x41ae67
mov eax, dword [edi + 0x1d0]
mov byte [esp + esi + 8], 0
test eax, eax
je 0x41ae26
push dword [edi + 0x15c]
lea ecx, [esp + 0xc]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00449a41
add esp, 0x108
ret
push dword [edi + 0x158]
push 1
push 2
push 0x48a748
call fcn.004537f2
push dword [edi + 0x158]
lea eax, [esp + 0x1c]
push 1
push esi
push eax
call fcn.004537f2
mov ecx, dword [esp + 0x12c]
add esp, 0x20
pop esi
pop edi
xor ecx, esp
call fcn.00449a41
add esp, 0x108
ret
call fcn.00449b75
int3

Function at 0x41ae70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x4ac0d8]
xor eax, esp
mov dword [esp + 0x804], eax
push edi
mov edi, dword [esp + 0x810]
test edi, edi
je 0x41af39
cmp byte [edi + 0x4f8], 0
je 0x41af39
push esi
lea eax, [esp + 0x81c]
push eax
push dword [esp + 0x81c]
lea eax, [esp + 0x10]
push 0x801
push eax
call fcn.00429340
lea esi, [esp + 0x18]
add esp, 0x10
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x41aed0
mov eax, dword [edi + 0x1d0]
sub esi, ecx
test eax, eax
je 0x41af0e
push dword [edi + 0x15c]
lea ecx, [esp + 0xc]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00449a41
add esp, 0x808
ret
push dword [edi + 0x158]
push 1
push 2
push 0x48a748
call fcn.004537f2
push dword [edi + 0x158]
lea eax, [esp + 0x1c]
push 1
push esi
push eax
call fcn.004537f2
add esp, 0x20
pop esi
mov ecx, dword [esp + 0x808]
pop edi
xor ecx, esp
call fcn.00449a41
add esp, 0x808
ret
Function at 0x41b190
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x1a8]
call fcn.0041b5e0
add esp, 8
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [ebp], 0
cmp ebx, 0xffffffff
jne 0x41b216
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x41b1ee
pop edi
pop esi
mov dword [ebp], 0x51
xor eax, eax
pop ebp
pop ebx
ret
push esi
push edi
call fcn.0042b030
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0041ad40
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x48b4], esi
mov eax, ebx
mov dword [ebp], 0x37
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
shl eax, 4
mov ebp, dword [ebx + ecx*4 + 0x1a8]
lea esi, [ebx + 0x1cc]
add esi, eax
mov eax, dword [ebx + 0x2b8]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x41b698
cmp dword [ebx + ecx*4 + 0x1bc], 0x41b0f0
jne 0x41b698
cmp dword [esi], 0
je 0x41b62c
test edi, edi
je 0x41b698
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.0041a680
add esp, 0x14
cmp eax, 0xffffffff
je 0x41b698
test al, 1
je 0x41b698
cmp dword [esi], 0
jne 0x41b681
mov eax, dword [ebx]
mov eax, dword [eax + 0x4b8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x41b681
pop edi
mov dword [esi + 4], eax
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x41b698
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x41b6a0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x1d0]
test eax, eax
je 0x41b6c9
push dword [esi + 0x15c]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push esi
call eax
add esp, 0x14
pop esi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x41b702
push dword [esi + 0x158]
lea eax, [eax + eax*2]
push 1
add eax, 0x48a748
push 2
push eax
call fcn.004537f2
push dword [esi + 0x158]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.004537f2
add esp, 0x20
xor eax, eax
pop esi
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x1ec], 0
je 0x41b7ed
push eax
call fcn.00413cf0
add esp, 4
test eax, eax
jne 0x41b80f
xor al, al
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x41b7ea
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x41b80f
xor al, al
ret
mov al, 1
ret
Function at 0x41c170
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [esp + 0x20]
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x41c1b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0042b030
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0041ae70
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0041ae70
add esp, 8
pop edi
pop esi
ret

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

Disassembly:
sub esp, 0x108
mov eax, dword [0x4ac0d8]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x110]
push ebp
cmp dword [ebx + 0x94], 2
mov ebp, dword [ebx]
je 0x41c4a9
cmp byte [ebx + 0x276], 0
push esi
push edi
jne 0x41c49e
cmp byte [ebx + 0x292], 0
jne 0x41c49e
mov esi, dword [esp + 0x120]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x14], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x41c383
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.0042b030
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.0041ad40
add esp, 0x18
jmp 0x41c4a7
push 0x80
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
push 0
push eax
call fcn.0044c550
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x41c3d8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.0042b030
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.0041ad40
add esp, 0x18
jmp 0x41c4a7
lea eax, [ebx + 0x138]
push eax
lea esi, [ebx + 0x10a]
lea eax, [esp + 0x98]
push esi
push eax
call fcn.0041c920
add esp, 0xc
test al, al
jne 0x41c426
call fcn.004535a7
mov esi, eax
call fcn.004535a7
push dword [esi]
mov edi, eax
push ebx
call fcn.0042b030
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.0041ad40
add esp, 0x18
jmp 0x41c4a7
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [ebx + 0x60], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebx + 0x70], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [ebx + 0x80], xmm0
mov dword [ebx + 0x88], eax
mov ax, word [esi + 0x2c]
mov word [ebx + 0x8c], ax
lea eax, [ebx + 0x16c]
push eax
lea eax, [ebx + 0x13c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041c920
add esp, 0xc
test al, al
jne 0x41c49e
call fcn.004535a7
mov esi, eax
call fcn.004535a7
push dword [esi]
mov edi, eax
push ebx
call fcn.0042b030
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.0041ad40
add esp, 0x18
jmp 0x41c4a7
push ebx
call fcn.0041bf20
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
pop ebp
pop ebx
xor ecx, esp
call fcn.00449a41
add esp, 0x108
ret
Function at 0x41cc60
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x4ac0d8]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
xor eax, eax
push edi
mov edi, dword [esp + 0x28]
push 4
cmp byte [esi + 0x648], al
setne al
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x41ccc0
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0041ae70
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00449a41
add esp, 0x18
ret
push dword [esi + 0x64c]
mov dword [esp + 0x14], 1
call fcn.0041cf10
push dword [esi + 0x650]
imul eax, eax, 0x3e8
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
call fcn.0041cf10
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x28]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x41cd37
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.0041ae70
add esp, 0x10
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.00449a41
add esp, 0x18
ret
Function at 0x42a5b0
Capabilities:
Resolve dns

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
mov dword [eax], ebx
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x42a72c
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x42a717
push esi
cmp dword [edi + 4], 2
jne 0x42a6a4
cmp dword [edi + 0x18], 0
je 0x42a6a4
mov eax, dword [edi + 0x10]
test eax, eax
je 0x42a6a4
cmp eax, 0x10
jb 0x42a6a4
push 0x20
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x42a70c
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 [section..data]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x42a6fb
mov ecx, dword [edi + 0x18]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x42a696
push eax
call dword [0x4ac00c]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x42a6e1
test ebx, ebx
cmove ebx, esi
test ebp, ebp
je 0x42a6a2
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x42a5f0
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
pop esi
test eax, eax
je 0x42a6c3
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x42a713
push ebx
call fcn.0042a570
mov eax, dword [esp + 0x28]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 8
ret
push dword [esi + 0x18]
mov ebp, 8
call dword [0x4ac004]
push esi
call dword [0x4ac004]
add esp, 8
jmp 0x42a6b3
push esi
mov ebp, 8
call dword [0x4ac004]
add esp, 4
jmp 0x42a6b3
mov ebp, 8
jmp 0x42a6b3
test ebx, ebx
jne 0x42a723
mov ebp, 0x2af9
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x24]
pop edi
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret
Function at 0x42b9b0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x42b9ca
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x48e61c
push esi
call fcn.0045c180
add esp, 8
test eax, eax
je 0x42ba12
test ebp, ebp
je 0x42ba03
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x42ba38
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42ba38
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x42baef
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42ba55
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x42bae5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x42bae5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42ba87
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42baa0
sub ecx, edx
add ecx, ebx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x42bab0
test ebp, ebp
je 0x42badc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x4ac004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x4ac004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret