joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e70e
Capabilities:
Encode data using xor

Disassembly:
cmp al, byte [ebx]
sub bl, ch
push esp
cmc
jp 0x42e6c4
je 0x42e724
or dl, cl
xor al, 0x88
xor esi, dword [edx + 0x5a]
pop ebx
mov ch, 0x37
mov eax, 0xf239e41b
and esi, dword [ebx - 0x4f31e73b]
mov bl, 0xc5
sbb dh, cl
mov al, 0x79
iretd

Function at 0x4ad40a
Capabilities:
Encode data using xor

Disassembly:
rcl byte [ecx + 0x34], cl
push ecx
push ebp
xor byte [esi - 0x4f], bl
pop esi
mov cl, 0x58
pop esi
mov cl, 0x58
pop ds
push esp
mov es, word [eax]
mov bl, 0xf8
mov al, 0xc8
jl 0x4ad404
out dx, al
lodsb al, byte [esi]
push ecx
sahf
mov esi, 0xf858d6c3
xor dword ds:[ebx + 3], eax
lahf
push ebx
lahf
nop
xor esi, dword [ebx + 0x4f]
xchg ebx, eax
or byte [eax - 0x52e3b8f], cl
int1
or al, 0x61
sbb al, 0x7f
js 0x4ad458
push ds
sbb dh, byte [eax - 0x13]
adc byte [ebp + 0x7efd2c11], cl
leave
xlatb
push 0xcd8f919e
jle 0x4ad3dd
in eax, 0xf0
mov byte [edi], al
cwde
and dword [ebp - 0xe09b1cb], ebx
invalid

Function at 0x4b9491
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c13d8
cmp edx, dword [eax]
je 0x4b94b3
add eax, 8
inc ecx
cmp eax, 0x4c1468
jl 0x4b94a4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c13d8]
jne 0x4b95e1
mov eax, dword [0x4c5d5c]
cmp eax, 1
je 0x4b95bb
test eax, eax
jne 0x4b94e4
cmp dword [0x4c1300], 1
je 0x4b95bb
cmp edx, 0xfc
je 0x4b95e1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b951b
lea eax, [ebp - 0x1a4]
push 0x4be960
push eax
call fcn.004b9e70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004ba300
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4b955e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004ba300
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4be95c
push edi
call fcn.004bc1d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4be940
push eax
call fcn.004b9e70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004b9e80
lea eax, [ebp - 0xa0]
push 0x4be93c
push eax
call fcn.004b9e80
push dword [esi + 0x4c13dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004b9e80
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4be914
push eax
call fcn.004bc144
add esp, 0x2c
pop edi
jmp 0x4b95e1
lea eax, [ebp + 8]
lea esi, [esi + 0x4c13dc]
push 0
push eax
push dword [esi]
call fcn.004ba300
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x408db0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp - 0x78]
xor esi, dword [edx + 2]
rcl byte [esi - 8], 0xc1
mov dword [ebp - 4], ecx
mov ebx, esp
or al, 0x83
stc
inc eax
push esi
jg 0x409003
je 0x408fdb
dec ecx
cmp ecx, 0xa
ja 0xbe1690ff
xor edx, edx
mov dl, byte [ecx + 0x5012ee27]
mov ebx, 0xa6659524
inc eax
add byte [ebx - 0x2dccf78b], cl
mov ecx, dword [esi + 0x38]
and ecx, 2
cmp cl, 2
sete byte [ebx + 0x2f74c23b]
mov ecx, dword [esi + 4]
lea eax, [ebp - 4]
push 4
push eax
push 0xffffffffffffffff
push 0xff04
push ecx
push dword [eax + 0x4e894b]
or dword [0x43849cff], 2
add byte [eax], cl
mov eax, dword [ebp + 0x10]
test dword [edx - 0x75], ecx
inc esi
cmp byte [esi + ecx + 0xc], dh
add cl, byte [ecx - 0x3fccc7ba]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
out dx, al
push ebp
cmp eax, 0x6a104d8d
add al, 0x51
mov eax, dword [edx + 4]
push 0xe81001
push 0xfcff
push eax
xchg esp, eax
xchg dword [eax - 0x7cffb83f], edi
clc
dec dword [edi]
test dword [eax], esi
invalid
cmp ecx, 0x4000
mulps xmm2, xmmword [ebx]
add bh, ch
add byte [edi], cl
test byte [ebx - 0x7f000000], dl
stc
add byte [eax], 0
add byte [edi], cl
test dl, ah
movsb byte es:[edi], byte [esi]
add byte [eax], al
adc dword [eax - 0x15ffb900], 0xb1c0ab
add byte [eax], al
mov esi, dword [ebp + 0x67]
xor edx, edx
mov ecx, dword [esi + 0x38]
and ecx, 0x200
cmp ecx, 0xd40200
sete dl
cmp edx, eax
je 0x3562b8
mov ecx, dword [esi + 0xb]
lea eax, [ebp + 0x10]
push 0xffffffffffffff8d
push eax
push 1
push 6
push ecx
call dword [0xee40c1b8]
cmp eax, 0xffffffc5
jne 0x409086
jnp 0x40909c
mov eax, dword [0xff004031]
salc
test eax, eax
jne 0x409078
pop esi
call 0x7a02ee5c
add bh, bh
salc
call esi
pop es
sbb al, 0xfc
or al, byte [eax]
pop esi
mov esp, ebp
pop ebp
dec byte [eax + eax]
mov eax, dword [ebp + 0x10]
test eax, eax
mov eax, dword [esi + 0x38]
je 0x40909f
adc ah, 0xfd
test eax, 0xa6330d46
pop esi
mov esp, ebp
pop ebp
insb byte es:[edi], dx
or al, 0
mov esi, eax
or byte [edi], dh
push ebp
adc byte [edx + 4], ch
push edx
or dword [eax + 4], ecx
push 0x1044
push 0xff27
push ecx
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x408e31
jmp 0x409065
Function at 0x402d4f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x58
push 1
mov dword [ebp - 8], edx
mov esi, ecx
call dword [0x53b9fc]
mov edi, eax
mov dword [ebp - 4], 0xc
mov dword [esi + 0x9d8], edi
lea ebx, [esi + 0x9d0]
pop ecx
pop ecx
test edi, edi
je 0x402e18
mov eax, dword [ebp + 8]
xor ecx, ecx
push dword [ebp + 0xc]
mov esi, dword [ebp - 8]
mov edx, esi
mov byte [ebx + 0x18], cl
mov dword [ebx + 0x14], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 0x10], eax
mov dword [edi], ecx
mov ecx, edi
push eax
call fcn.00402acb
pop ecx
pop ecx
test eax, eax
jne 0x402dbe
xor esi, esi
push edi
mov dword [ebx + 8], esi
call dword [0x53b9f4]
pop ecx
jmp 0x402e18
push dword [ebx]
call dword [0x53b9f4]
pop ecx
push esi
call dword [0x53b9f8]
mov dword [ebx], eax
pop ecx
test eax, eax
je 0x402e11
xor esi, esi
lea eax, [edi + 0x10]
push esi
push esi
push eax
push 0x402bec
push esi
push esi
mov dword [edi + 0x14], esi
call fcn.004d7da0
add esp, 0x18
test eax, eax
je 0x402df8
cmp eax, 0xffffffff
jne 0x402dfa
mov eax, esi
mov dword [edi], eax
test eax, eax
jne 0x402e29
mov dword [edi + 0x14], 1
call fcn.004d61a1
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov ecx, ebx
call fcn.00402cc1
call fcn.004d61a1
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret
mov al, 1
jmp 0x402e24

Function at 0x403a8c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x53b070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor eax, eax
push edi
push 4
mov edi, edx
cmp byte [esi + 0x712], al
setne al
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 0x403ad9
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.00416c42
add esp, 0xc
jmp 0x403b40
mov eax, dword [esi + 0x6b0]
mov ecx, accept
and eax, ecx
mov dword [ebp - 0x10], 1
imul eax, eax, 0x3e8
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x6b4]
and eax, ecx
xor ecx, ecx
imul eax, eax, 0x3e8
push ecx
push ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push ecx
push ecx
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x403b40
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.00416c42
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004caa72
leave
ret
Function at 0x4042c7
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x53b070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
mov dword [ebp - 0x190], eax
mov ebx, ecx
mov eax, 0x80
push eax
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x188]
push 0
push eax
call fcn.004cd4b0
add esp, 0xc
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x188]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x404343
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea edx, [ebp - 0x108]
push ecx
mov ecx, esi
call fcn.0041b637
pop ecx
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x404386
push dword [ebp - 0x190]
mov edx, dword [ebp - 0x18c]
lea ecx, [ebp - 0x188]
push edi
call fcn.0040416c
pop ecx
pop ecx
test al, al
jne 0x40438f
call fcn.004d61a1
mov esi, dword [eax]
call fcn.004d61a1
push ecx
lea edx, [ebp - 0x108]
mov ecx, esi
mov edi, eax
call fcn.0041b637
pop ecx
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00416cbd
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004caa72
leave
ret

Function at 0x404a42
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
mov eax, dword [0x54182c]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 0xc], 4
push ebx
push esi
mov esi, ecx
test eax, eax
jne 0x404a8b
push 3
push ecx
push ecx
call fcn.0042330d
add esp, 0xc
test al, al
je 0x404a83
mov dword [0x54182c], 2
jmp 0x404ac9
xor eax, eax
inc eax
mov dword [0x54182c], eax
cmp eax, 2
je 0x404ac9
lea eax, [ebp - 0xc]
mov ebx, 0x1001
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x404ab6
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x404ac9
push 4
lea eax, [ebp - 8]
push eax
push ebx
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
pop ebx
leave
ret
Function at 0x405646
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
test esi, esi
je 0x4056a2
lea edx, [ebp - 4]
call fcn.0040f750
test eax, eax
jg 0x4056a2
push ebx
push edi
lea edx, [ebp - 4]
mov ecx, esi
call fcn.004055e0
mov ecx, dword [ebp - 4]
mov edx, eax
add ecx, edx
xor eax, eax
mov edi, ecx
xor esi, esi
sub edi, edx
mov ebx, 0x1505
cmp edx, ecx
cmova edi, eax
test edi, edi
je 0x40569b
mov cl, byte [edx]
call fcn.0041ad2d
imul ebx, ebx, 0x21
movsx ecx, al
xor ebx, ecx
inc edx
inc esi
cmp esi, edi
jb 0x405686
pop edi
movzx eax, bl
pop ebx
jmp 0x4056a4
xor eax, eax
pop esi
leave
ret

Function at 0x406e30
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor esi, esi
and dword [ebp - 0x10], esi
and dword [edi], esi
push edx
push ecx
mov dword [ebp - 0xc], esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x406f64
push ebx
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x406f74
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x406e83
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406e75
sub ecx, edx
lea eax, [ecx + 1]
jmp 0x406e85
xor eax, eax
cmp dword [ebx + 4], 2
mov dword [ebp - 8], eax
jne 0x406f32
cmp dword [ebx + 0x18], 0
je 0x406f32
cmp dword [ebx + 0x10], 0
jbe 0x406f32
cmp dword [ebx + 0x10], 0x10
jb 0x406f32
add eax, 0x30
push eax
call dword [0x53b9f0]
mov edx, eax
mov dword [ebp - 0x14], edx
pop ecx
test edx, edx
je 0x406f68
mov ecx, dword [ebx]
lea edi, [edx + 0x20]
mov dword [edx], ecx
mov ecx, dword [ebx + 4]
mov dword [edx + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [edx + 8], ecx
mov eax, dword [ebx + 0xc]
and dword [edx + 0x14], 0
and dword [edx + 0x1c], 0
mov ecx, dword [ebp - 8]
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], 0x10
mov dword [edx + 0x18], edi
mov esi, dword [ebx + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test ecx, ecx
je 0x406f1a
mov eax, dword [edx + 0x18]
add eax, 0x10
push ecx
mov dword [edx + 0x14], eax
push dword [ebx + 0x14]
push eax
call fcn.004cc9b0
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov esi, dword [ebp - 0xc]
test esi, esi
mov eax, dword [ebp - 0x10]
cmove esi, edx
mov dword [ebp - 0xc], esi
test eax, eax
je 0x406f2f
mov dword [eax + 0x1c], edx
mov dword [ebp - 0x10], edx
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x406e6b
mov ebx, dword [ebp - 0x18]
cmp dword [ebp - 4], 0
je 0x406f4f
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x406f6d
mov ecx, esi
call fcn.00406e18
xor esi, esi
mov edi, dword [ebp + 0xc]
mov eax, ebx
mov dword [edi], esi
pop ebx
pop edi
pop esi
leave
ret
push 8
pop ebx
jmp 0x406f40
test esi, esi
jne 0x406f5c
mov edi, dword [ebp + 0xc]
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x406f5f
Function at 0x4166eb
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x53b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0xc], edx
push edi
push eax
mov ebx, ecx
call fcn.0041ba43
mov esi, eax
lea edi, [ebp - 0x20]
pop ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0040722b
mov ecx, dword [ebp - 0xc]
mov esi, eax
mov dword [ebp - 8], esi
call fcn.0040722b
mov ebx, eax
jmp 0x41676e
lea eax, [ebp - 0x30]
push eax
call fcn.0041ba43
sub esp, 0xc
lea esi, [ebp - 0x20]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0041bad4
add esp, 0x20
test edx, edx
ja 0x4167a3
jb 0x416763
cmp eax, 0x3e8
ja 0x4167a3
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 8]
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x41672e
test esi, esi
je 0x416787
push esi
call fcn.004d7c3c
pop ecx
test ebx, ebx
je 0x416792
push ebx
call fcn.004d7c3c
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004caa72
leave
ret
mov eax, dword [ebp - 8]
test eax, eax
je 0x4167b1
push eax
call fcn.004d7c3c
pop ecx
test ebx, ebx
je 0x4167bc
push ebx
call fcn.004d7c3c
pop ecx
xor eax, eax
inc eax
jmp 0x416794
Function at 0x416b80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [edx + 0x2a0]
mov dword [esp], ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
lea esi, [ecx + 0x17]
shl esi, 4
add esi, edx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x416c39
cmp dword [edx + ecx*4 + 0x160], 0x416eb1
jne 0x416c39
xor eax, eax
cmp dword [esi], eax
je 0x416bc5
test edi, edi
je 0x416c39
mov ebx, dword [edx + ecx*4 + 0x148]
mov ecx, ebx
push eax
push eax
push 0xffffffffffffffff
call fcn.00416803
add esp, 0xc
cmp eax, 0xffffffff
je 0x416c39
test al, 1
je 0x416c39
mov ecx, dword [esi]
test ecx, ecx
jne 0x416c1c
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x4e0]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x53b9f0]
pop ecx
mov ecx, eax
mov dword [esi], ecx
test ecx, ecx
jne 0x416c0d
push 0x1b
pop eax
jmp 0x416c3b
and dword [esi + 8], 0
and dword [esi + 0xc], 0
mov edi, dword [esi + 4]
test ecx, ecx
je 0x416c35
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x416c39
add dword [esi + 8], eax
jmp 0x416c39
and dword [esi + 4], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x53b070]
xor eax, ebp
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov edx, dword [ecx + 0xc]
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov ebx, dword [edx + eax*4 + 0x148]
push eax
mov dword [ebp - 0x110], ecx
call fcn.00416b80
pop ecx
test eax, eax
je 0x416e05
mov dword [esi], 0x1b
or eax, 0xffffffff
jmp 0x416e6d
push 0
push dword [ebp + 0x14]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
and dword [esi], 0
mov edi, eax
cmp edi, 0xffffffff
jne 0x416e6b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x416e36
xor edi, edi
mov dword [esi], 0x51
jmp 0x416e6b
push ecx
lea edx, [ebp - 0x10c]
mov ecx, ebx
call fcn.0041b637
pop ecx
push eax
push str.Send_failure:__s
push dword [ebp - 0x110]
call fcn.00416cbd
mov eax, dword [ebp - 0x110]
add esp, 0xc
mov dword [eax + 0x958], ebx
mov dword [esi], 0x37
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004caa72
leave
ret
Function at 0x417277
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
xor edi, edi
cmp byte [esi + 0x705], 0
je 0x4172f2
cmp dword [esi + 0x1b0], edi
je 0x4172bf
mov dl, 1
call fcn.00414ab6
push dword [esi + 0x14c]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push esi
call dword [esi + 0x1b0]
add esp, 0x14
xor dl, dl
mov ecx, esi
mov edi, eax
call fcn.00414ab6
jmp 0x4172f2
cmp ebx, 2
ja 0x4172f2
push dword [esi + 0x148]
imul eax, ebx, 3
push 1
push 2
add eax, 0x50e48c
push eax
call fcn.004dbc0a
push dword [esi + 0x148]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004dbc0a
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4197b5
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x53b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_socket]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0xc]
inc eax
push 6
push eax
push 2
mov dword [ebp - 0x2c], eax
pop eax
push eax
mov dword [ebp - 0x28], 0x10
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x41996c
push 2
pop eax
xorps xmm0, xmm0
mov word [ebp - 0x14], ax
push 0x7f000001
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.WS2_32.dll_htonl]
or dword [edi + 4], 0xffffffff
or dword [edi], 0xffffffff
mov dword [ebp - 0x10], eax
xor eax, eax
push 4
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x2c]
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x41995a
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x41995a
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x41995a
cmp dword [ebp - 0x28], 0x10
jl 0x41995a
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x41995a
push 0
push 1
push 2
pop eax
push eax
call ebx
or ebx, 0xffffffff
mov dword [edi], eax
cmp eax, ebx
je 0x41995a
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, ebx
je 0x41995a
mov ecx, esi
call fcn.0041506d
test eax, eax
js 0x41995a
xor ecx, ecx
mov dword [ebp - 0x34], esi
inc ecx
xor eax, eax
push eax
mov word [ebp - 0x30], cx
mov edx, ecx
push 0x2710
lea ecx, [ebp - 0x34]
mov word [ebp - 0x2e], ax
call fcn.004168cf
pop ecx
pop ecx
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, ebx
je 0x41995a
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, ebx
je 0x41995a
push 0x10
pop eax
cmp dword [ebp - 0x28], eax
jl 0x41995a
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, ebx
je 0x41995a
cmp dword [ebp - 0x28], 0x10
jl 0x41995a
mov ax, word [ebp - 0x14]
cmp ax, word [ebp - 0x24]
jne 0x41995a
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jne 0x41995a
mov ax, word [ebp - 0x12]
cmp ax, word [ebp - 0x22]
jne 0x41995a
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x41996f
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [edi]
call esi
push dword [edi + 4]
call esi
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004caa72
leave
ret
Function at 0x41b816
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x53b070]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x41b895
mov eax, dword [esp]
cmp al, 2
jne 0x41b88f
shr eax, 8
cmp al, 2
jne 0x41b88f
call fcn.0041b8aa
mov dword [0x541bb8], eax
test eax, eax
je 0x41b86b
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 3
push ecx
push ecx
call fcn.0042330d
add esp, 0xc
test al, al
setne byte [0x5df858]
push 0x5df850
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
jmp 0x41b898
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004caa72
mov esp, ebp
pop ebp
ret

Function at 0x41b8aa
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push str.kernel32
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
je 0x41b9c6
push ebx
push edi
push 0x51deec
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov edi, str.iphlpapi.dll
push 0x51defc
push edi
mov dword [ebp - 8], ebx
call fcn.004dc108
pop ecx
pop ecx
test eax, eax
je 0x41b902
test ebx, ebx
je 0x41b8f9
push 8
jmp 0x41b91d
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x41b921
test ebx, ebx
je 0x41b928
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41b928
push 0x800
push esi
push edi
call ebx
mov esi, eax
jmp 0x41b9c2
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 4], eax
test eax, eax
je 0x41b9c2
lea ecx, [eax*2 + 0x1a]
push ecx
call dword [0x53b9f0]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x41b9ba
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41b9ba
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41b963
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41b97e
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, edi
add ecx, ebx
movzx eax, word [edi]
mov word [ecx + edi], ax
lea edi, [edi + 2]
test ax, ax
jne 0x41b993
mov eax, dword [ebp - 8]
test eax, eax
je 0x41b9b1
push 8
push esi
push ebx
call eax
jmp 0x41b9b8
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push ebx
call dword [0x53b9f4]
pop ecx
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret
Function at 0x42345c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x541bc0], 0
jne 0x4234bb
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
inc edi
push edi
push ebx
jmp 0x4234a2
push edi
push esi
push str.SSLKEYLOGFILE
mov ebx, esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test edi, edi
je 0x4234bd
mov eax, dword [ebp - 4]
cmp edi, eax
je 0x4234bd
cmp edi, 0x8000
ja 0x4234bd
cmp edi, eax
jb 0x4234c7
push edi
push esi
call dword [0x53ba00]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x423475
push ebx
call dword [0x53b9f4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push esi
call dword [0x53b9f4]
pop ecx
xor esi, esi
test esi, esi
je 0x4234b8
mov edx, 0x51ed74
mov ecx, esi
call fcn.00407285
mov dword [0x541bc0], eax
test eax, eax
je 0x423506
push 0
push 4
push 0
push eax
call fcn.004dc3ec
add esp, 0x10
test eax, eax
je 0x423506
push dword [0x541bc0]
call fcn.004cfecf
and dword [0x541bc0], 0
pop ecx
push esi
jmp 0x4234b1