joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423100
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x58
mov ecx, dword [esp + 0x5c]
xor eax, eax
push esi
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x64]
push eax
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.00422f80
mov esi, dword [esp + 0x74]
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00423050
add esp, 0x14
mov eax, esi
pop esi
add esp, 0x58
ret

Function at 0x4439b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 1
push edi
call fcn.0043d8ed
test al, al
pop ecx
pop ecx
je 0x443a09
push 1
push dword [ebp + 0xc]
call fcn.0043d8ed
test al, al
pop ecx
pop ecx
je 0x443a09
mov edx, dword [ebp + 0x10]
xor esi, esi
shr edx, 2
je 0x4439fa
mov ecx, dword [ebp + 0xc]
mov eax, edi
sub ecx, edi
mov esi, edx
push ebx
mov ebx, dword [ecx + eax]
xor dword [eax], ebx
add eax, 4
dec edx
jne 0x4439ee
pop ebx
mov eax, esi
shl eax, 2
sub dword [ebp + 0x10], eax
je 0x443a20
add edi, eax
add dword [ebp + 0xc], eax
mov esi, dword [ebp + 0x10]
test esi, esi
jbe 0x443a20
mov ecx, dword [ebp + 0xc]
mov eax, edi
sub ecx, edi
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec esi
jne 0x443a17
pop edi
pop esi
pop ebp
ret

Function at 0x45f468
Capabilities:
Encode data using xor

Disassembly:
xor al, 0xf2
loop 0x45f4e7
mov bh, byte [edi]
jb 0x45f457
popfd
xchg edx, eax
insd dword es:[edi], dx
outsb dx, byte [esi]
inc ecx
invalid
idiv bh
aas
in al, 0x4f
pop esp
cmp dword [ebx + 0x76721652], ebx
aaa
loop 0x45f4a2
pop ss
dec esi
jno 0x45f4f5
add ebp, eax
xlatb
popfd
daa
jae 0x45f49d
push edx
sbb eax, 0x64fe86dc
out 0xb1, eax
salc
popal
sub al, 0x5f
mov bh, 0xbd
in eax, dx
aam 0xd6
and dword [ebx - 0x66], ecx
push eax
add dword [edi], ebx
stc
xor al, 0xf3
add esi, dword [eax]
xor byte [eax], bh
clc
Function at 0x84d9e4
Capabilities:
Execute syscall

Disassembly:
dec esp
mov edx, ecx
syscall
ret

Function at 0x867b20
Capabilities:
Execute syscall

Disassembly:
dec esp
mov edx, ecx
syscall
ret

Function at 0x86f7f7
Capabilities:
Execute syscall

Disassembly:
dec esp
mov edx, ecx
syscall
ret

Function at 0x8c3841
Capabilities:
Execute syscall

Disassembly:
dec esp
mov edx, ecx
syscall
ret

Function at 0x8cbab5
Capabilities:
Execute syscall

Disassembly:
dec esp
mov edx, ecx
syscall
ret

Function at 0x8ed23e
Capabilities:
Execute syscall

Disassembly:
dec esp
mov edx, ecx
syscall
ret

Function at 0x915295
Capabilities:
Execute syscall

Disassembly:
dec esp
mov edx, ecx
syscall
ret

Function at 0x92a429
Capabilities:
Execute syscall

Disassembly:
dec esp
mov edx, ecx
syscall
ret

Function at 0x92ba0a
Capabilities:
Execute syscall

Disassembly:
dec esp
mov edx, ecx
syscall
ret

Function at 0xcf17b3
Capabilities:
Execute syscall

Disassembly:
dec esp
mov edx, ecx
syscall
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x776d4ec4
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x4f363e37
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
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.004d7d20
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.004d6121
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov ecx, ebx
call fcn.00402cc1
call fcn.004d6121
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.004ca9dc
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.004cd420
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.004d6121
mov esi, dword [eax]
call fcn.004d6121
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.004ca9dc
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.004cc920
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.004d7bbc
pop ecx
test ebx, ebx
je 0x416792
push ebx
call fcn.004d7bbc
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ca9dc
leave
ret
mov eax, dword [ebp - 8]
test eax, eax
je 0x4167b1
push eax
call fcn.004d7bbc
pop ecx
test ebx, ebx
je 0x4167bc
push ebx
call fcn.004d7bbc
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.004ca9dc
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.004dbb8a
push dword [esi + 0x148]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004dbb8a
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.004ca9dc
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.004ca9dc
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.004dc088
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.004dc36c
add esp, 0x10
test eax, eax
je 0x423506
push dword [0x541bc0]
call fcn.004cfe4f
and dword [0x541bc0], 0
pop ecx
push esi
jmp 0x4234b1