joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462a70
Capabilities:
Connect socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call fcn.00452bb0
cmp dword [esp + 0x28], 0
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
jg 0x462a93
jl 0x462a8f
test ebp, ebp
jae 0x462a93
xor edi, edi
jmp 0x462ad0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
mov edi, eax
cmp edi, 0xffffffff
je 0x462ab7
xor eax, eax
jmp 0x462abd
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
call fcn.00463840
add esp, 4
mov eax, 1
test edi, edi
cmove edi, eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push ebx
call dword [sym.imp.WSOCK32.dll_connect]
mov esi, eax
test esi, esi
jne 0x462ae9
xor ebx, ebx
jmp 0x462af1
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebx, eax
push ebx
call fcn.00463840
add esp, 4
test esi, esi
je 0x462b5a
mov eax, dword [esp + 0x28]
test eax, eax
jl 0x462b5a
jg 0x462b0c
test ebp, ebp
jb 0x462b5a
cmp ebx, 0x2733
jne 0x462b5a
push eax
push ebp
mov ebp, dword [esp + 0x20]
push ebp
call fcn.00463520
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x462b40
call fcn.0047fad0
xor esi, esi
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
jmp 0x462b5e
jne 0x462b5e
call fcn.0047fad0
or esi, 0xffffffff
mov dword [eax + 0xc], 2
mov dword [eax + 0x10], 0
jmp 0x462b5e
mov ebp, dword [esp + 0x18]
test edi, edi
jle 0x462bd4
call fcn.0047fad0
mov edi, dword [eax + 0x10]
test edi, edi
je 0x462b72
xor ebx, ebx
jmp 0x462b7a
call fcn.0047fad0
mov ebx, dword [eax + 0xc]
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0x8004667e
push ebp
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x462b9c
xor eax, eax
jmp 0x462ba2
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
call fcn.00463840
add esp, 4
test edi, edi
je 0x462bc5
push edi
call fcn.00463840
add esp, 4
call fcn.00452bb0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
call fcn.0047fad0
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], 0
call fcn.00452bb0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x462c40
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x48
mov eax, dword [0x887490]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
mov esi, dword [esp + 0x50]
mov dword [esp + 4], 0
call fcn.00452bb0
mov eax, dword [esp + 0x54]
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x14], eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
movups xmmword [esp + 0x30], xmm0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
push esi
call fcn.00463840
add esp, 4
call fcn.00452bb0
test esi, esi
jne 0x462e23
mov edx, dword [esp + 4]
xor ecx, ecx
mov eax, edx
test eax, eax
je 0x462e08
mov eax, dword [eax + 0x1c]
inc ecx
test eax, eax
jne 0x462cb0
test ecx, ecx
je 0x462e08
push ebp
push ecx
call fcn.00473320
mov ecx, dword [esp + 0xc]
mov esi, eax
mov eax, ecx
mov dword [esp + 0x10], esi
add esp, 4
mov dword [esp + 0x10], eax
xor ebp, ebp
test eax, eax
je 0x462de0
push ebx
push edi
mov edx, dword [ecx + 0x10]
xor ebx, ebx
mov ecx, dword [ecx + 0x18]
test ecx, ecx
je 0x462cfb
test edx, edx
je 0x462cfb
movzx eax, word [ecx]
jmp 0x462cfe
or eax, 0xffffffff
sub eax, 2
jne 0x462d29
cmp edx, 0x10
jb 0x462d29
push 0x16
lea eax, [esp + 0x40]
push eax
lea eax, [ecx + 4]
push eax
push 2
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x462d29
push eax
call fcn.004f56d0
add esp, 4
mov ebx, eax
call fcn.0047fad0
xor edx, edx
mov ecx, 4
test ebx, ebx
cmovne ecx, edx
mov dword [eax + 0x10], edx
mov dword [eax + 0xc], ecx
je 0x462dba
lea edi, [edx + 1]
cmp ebp, edi
jl 0x462d92
nop dword [eax]
push edi
push dword [esp + 0x18]
mov esi, ebx
call fcn.0046c990
add esp, 8
nop
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x462d80
test cl, cl
je 0x462d7c
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x462d80
add eax, 2
add esi, 2
test cl, cl
jne 0x462d60
xor eax, eax
jmp 0x462d85
sbb eax, eax
or eax, 1
test eax, eax
je 0x462dd2
inc edi
cmp edi, ebp
jle 0x462d50
mov esi, dword [esp + 0x14]
mov ecx, ebx
inc ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x462d98
sub ecx, edx
push ecx
push ebx
push ebp
push esi
call fcn.0046d530
add esp, 0x10
test eax, eax
jne 0x462dba
push ebx
call fcn.0048bed0
add esp, 4
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x18], eax
test eax, eax
je 0x462dde
mov ecx, dword [esp + 0x10]
jmp 0x462ce6
push ebx
call fcn.0048bed0
mov esi, dword [esp + 0x18]
jmp 0x462db7
pop edi
pop ebx
push ebp
push esi
call fcn.0046d920
mov edx, dword [esp + 0x10]
add esp, 8
pop ebp
push edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.005091ef
add esp, 0x48
ret
push edx
xor esi, esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.005091ef
add esp, 0x48
ret
mov ecx, dword [esp + 0x48]
xor eax, eax
pop esi
xor ecx, esp
call fcn.005091ef
add esp, 0x48
ret
Function at 0x462f00
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x14
mov eax, dword [0x887490]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [esp + 0x20]
xorps xmm0, xmm0
push esi
mov esi, dword [esp + 0x28]
mov eax, 2
push edi
push dword [esp + 0x30]
mov edi, dword [esp + 0x28]
movups xmmword [esp + 0x10], xmm0
mov word [esp + 0x10], ax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0xe], ax
test esi, esi
je 0x462f8c
cmp byte [esi], 0
je 0x462f8c
lea eax, [esp + 0x10]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x462f98
call fcn.0047fad0
mov dword [eax + 0xc], 3
mov dword [eax + 0x10], 0
xor eax, eax
mov dword [edi], 0
pop edi
pop esi
mov dword [ebx], 0
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.005091ef
add esp, 0x14
ret
push 0
call dword [sym.imp.WSOCK32.dll_htonl]
mov dword [esp + 0x10], eax
push 0x11
call fcn.0048bf00
movups xmm0, xmmword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add esp, 4
movups xmmword [eax], xmm0
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
mov dword [ebx], 0x10
pop ebx
xor ecx, esp
call fcn.005091ef
add esp, 0x14
ret

Function at 0x462fd0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x887490]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
push 0x8b7bf8
xor esi, esi
call fcn.00452bb0
mov eax, dword [0x8b7c14]
add esp, 4
inc eax
mov dword [0x8b7c14], eax
cmp eax, 1
jne 0x463016
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov esi, eax
push 0x8b7bf8
call fcn.00452bb0
mov ecx, dword [esp + 0x198]
add esp, 4
mov eax, esi
pop esi
xor ecx, esp
call fcn.005091ef
add esp, 0x194
ret

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

Disassembly:
push ebp
push esi
call fcn.00452bb0
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0xc]
test eax, eax
jl 0x4630cc
mov ecx, dword [esp + 0x1c]
jg 0x46309d
test ecx, ecx
jb 0x4630cc
push eax
push ecx
push ebp
call fcn.00463250
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4630ca
call fcn.0047fad0
mov dword [eax + 0x10], esi
or esi, 0xffffffff
mov dword [eax + 0xc], 2
call fcn.00452bb0
mov eax, esi
pop esi
pop ebp
ret
js 0x463144
mov eax, dword [esp + 0x18]
push ebx
xor ebx, ebx
push edi
test eax, eax
je 0x463100
mov ecx, eax
and ecx, 1
mov edx, ecx
or edx, 2
and al, 2
cmove edx, ecx
mov ecx, dword [esp + 0x20]
mov ebx, edx
mov eax, ecx
or ebx, 4
and al, 4
cmove ebx, edx
test cl, 8
je 0x463100
or ebx, 8
nop
push ebx
push dword [esp + 0x20]
push dword [esp + 0x20]
push ebp
call dword [sym.imp.WSOCK32.dll_recv]
mov esi, eax
test esi, esi
jle 0x46311a
xor edi, edi
jmp 0x463122
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edi, eax
push edi
call fcn.00463840
add esp, 4
cmp esi, 0xffffffff
jne 0x463142
cmp edi, 0x2714
jne 0x463142
call fcn.0048b3e0
test ax, ax
je 0x463100
pop edi
pop ebx
call fcn.00452bb0
mov eax, esi
pop esi
pop ebp
ret
Function at 0x463150
Capabilities:
Convert ip address from string
Resolve dns

Disassembly:
sub esp, 0x44
mov eax, dword [0x887490]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov esi, dword [esp + 0x50]
xor ebx, ebx
push edi
xor edi, edi
test esi, esi
je 0x46323a
cmp byte [esi], bl
je 0x46323a
push ebp
mov ebp, dword [esp + 0x5c]
cmp ebp, 2
jne 0x4631c6
lea eax, [esp + 0x14]
push eax
push esi
push ebp
call dword [sym.imp.WS2_32.dll_inet_pton]
xor ecx, ecx
test eax, eax
setg cl
mov dword [esp + 0x10], ecx
test eax, eax
jle 0x4631c2
push 0x16
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x1c]
push eax
push ebp
call sub.WS2_32.dll_inet_ntop
mov esi, eax
push esi
call fcn.004f56d0
mov ecx, dword [esp + 0x14]
add esp, 4
mov edi, eax
test ecx, ecx
jne 0x46321c
mov dword [esp + 0x10], ebx
call fcn.00452bb0
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x1c]
push eax
push 0
movups xmmword [esp + 0x24], xmm0
push esi
movups xmmword [esp + 0x38], xmm0
mov dword [esp + 0x2c], ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test ebx, ebx
jne 0x463217
mov ecx, dword [esp + 0x10]
push dword [ecx + 0x10]
push dword [ecx + 0x18]
call fcn.00462980
add esp, 8
mov edi, eax
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
call fcn.00452bb0
push ebx
call fcn.00463840
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.005091ef
add esp, 0x44
ret
mov ecx, dword [esp + 0x4c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005091ef
add esp, 0x44
ret
Function at 0x463250
Capabilities:
Get socket status

Disassembly:
sub esp, 0x118
mov eax, dword [0x887490]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
mov ebx, dword [esp + 0x124]
push ebp
mov ebp, dword [esp + 0x12c]
push esi
push edi
push ebp
push ebx
call fcn.004f7420
mov esi, dword [esp + 0x134]
add esp, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
lea edi, [esi + 1]
test ebp, ebp
jg 0x4632ae
jl 0x46329c
test ebx, ebx
jae 0x4632ae
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0
jmp 0x4632d4
push 0
push 0x3e8
push ebp
push ebx
call fcn.00509860
mov dword [esp + 0x10], eax
mov ecx, ebx
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x24], esi
push eax
push 0
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 1
push eax
push edi
call dword [sym.imp.WSOCK32.dll_select]
mov esi, eax
test esi, esi
js 0x4632ff
xor edi, edi
jmp 0x463307
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edi, eax
push edi
call fcn.00463840
add esp, 4
cmp esi, 0xffffffff
jne 0x46331f
cmp edi, 0x2714
jne 0x463371
jmp 0x463323
test esi, esi
jne 0x46336f
lea eax, [esp + 0x18]
push eax
push ebp
push ebx
call fcn.004f7470
mov ebx, eax
mov ebp, edx
mov ecx, ebx
add esp, 0xc
or ecx, ebp
je 0x463354
call fcn.0048b3e0
mov esi, dword [esp + 0x12c]
lea edi, [esi + 1]
test ax, ax
je 0x463292
xor eax, eax
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005091ef
add esp, 0x118
ret
jns 0x463376
or eax, 0xffffffff
jmp 0x463356
test esi, esi
jle 0x463354
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x130]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x463354
mov eax, 1
jmp 0x463356
Function at 0x4633d0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x118
mov eax, dword [0x887490]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
mov ebx, dword [esp + 0x124]
push ebp
mov ebp, dword [esp + 0x12c]
push esi
push edi
push ebp
push ebx
call fcn.004f7420
mov esi, dword [esp + 0x134]
add esp, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
lea edi, [esi + 1]
test ebp, ebp
jg 0x46342e
jl 0x46341c
test ebx, ebx
jae 0x46342e
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0
jmp 0x463454
push 0
push 0x3e8
push ebp
push ebx
call fcn.00509860
mov dword [esp + 0x10], eax
mov ecx, ebx
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x24], esi
push eax
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 1
push eax
push 0
push edi
call dword [sym.imp.WSOCK32.dll_select]
mov esi, eax
test esi, esi
js 0x46347f
xor edi, edi
jmp 0x463487
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edi, eax
push edi
call fcn.00463840
add esp, 4
cmp esi, 0xffffffff
jne 0x46349f
cmp edi, 0x2714
jne 0x4634f1
jmp 0x4634a3
test esi, esi
jne 0x4634ef
lea eax, [esp + 0x18]
push eax
push ebp
push ebx
call fcn.004f7470
mov ebx, eax
mov ebp, edx
mov ecx, ebx
add esp, 0xc
or ecx, ebp
je 0x4634d4
call fcn.0048b3e0
mov esi, dword [esp + 0x12c]
lea edi, [esi + 1]
test ax, ax
je 0x463412
xor eax, eax
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005091ef
add esp, 0x118
ret
jns 0x4634f6
or eax, 0xffffffff
jmp 0x4634d6
test esi, esi
jle 0x4634d4
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x130]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4634d4
mov eax, 1
jmp 0x4634d6
Function at 0x463520
Capabilities:
Get socket status

Disassembly:
sub esp, 0x224
mov eax, dword [0x887490]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, dword [esp + 0x230]
push ebp
mov ebp, dword [esp + 0x238]
push esi
push edi
push ebp
push ebx
call fcn.004f7420
add esp, 8
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
test ebp, ebp
jg 0x463574
jl 0x463562
test ebx, ebx
jae 0x463574
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0
jmp 0x46359a
push 0
push 0x3e8
push ebp
push ebx
call fcn.00509860
mov dword [esp + 0x14], eax
mov ecx, ebx
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x238]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x134], edi
push eax
lea eax, [esp + 0x134]
mov dword [esp + 0x134], 1
push eax
push 0
lea eax, [edi + 1]
mov dword [esp + 0x3c], edi
push eax
mov dword [esp + 0x3c], 1
call dword [sym.imp.WSOCK32.dll_select]
mov esi, eax
test esi, esi
js 0x4635e7
xor eax, eax
jmp 0x4635ed
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
mov dword [esp + 0x14], eax
call fcn.00463840
add esp, 4
test esi, esi
jle 0x46365e
lea eax, [esp + 0x28]
push eax
push edi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x46365e
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 4
push eax
lea eax, [esp + 0x14]
push eax
push 0x1007
push 0xffff
push edi
call dword [sym.imp.WSOCK32.dll_getsockopt]
test eax, eax
je 0x46364c
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
mov dword [esp + 0x14], eax
call fcn.00463840
add esp, 4
or eax, 0xffffffff
jmp 0x46368d
mov eax, dword [esp + 0x10]
push eax
call fcn.00463840
add esp, 4
or eax, 0xffffffff
jmp 0x46368d
cmp esi, 0xffffffff
jne 0x46366f
cmp dword [esp + 0x10], 0x2714
jne 0x4636a8
jmp 0x463673
test esi, esi
jne 0x4636a6
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
call fcn.004f7470
add esp, 0xc
or eax, edx
je 0x46368b
call fcn.0048b3e0
xor eax, eax
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005091ef
add esp, 0x224
ret
jns 0x4636ad
or eax, 0xffffffff
jmp 0x46368d
test esi, esi
jle 0x46368b
lea eax, [esp + 0x12c]
push eax
push edi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x46368b
mov eax, 1
jmp 0x46368d
Function at 0x463700
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push esi
call fcn.00452bb0
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0xc]
test eax, eax
jl 0x46374c
mov ecx, dword [esp + 0x1c]
jg 0x46371d
test ecx, ecx
jb 0x46374c
push eax
push ecx
push ebp
call fcn.004633d0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x46374a
call fcn.0047fad0
mov dword [eax + 0x10], esi
or esi, 0xffffffff
mov dword [eax + 0xc], 2
call fcn.00452bb0
mov eax, esi
pop esi
pop ebp
ret
js 0x4637c4
mov eax, dword [esp + 0x18]
push ebx
xor ebx, ebx
push edi
test eax, eax
je 0x463780
mov ecx, eax
and ecx, 1
mov edx, ecx
or edx, 2
and al, 2
cmove edx, ecx
mov ecx, dword [esp + 0x20]
mov ebx, edx
mov eax, ecx
or ebx, 4
and al, 4
cmove ebx, edx
test cl, 8
je 0x463780
or ebx, 8
nop
push ebx
push dword [esp + 0x20]
push dword [esp + 0x20]
push ebp
call dword [sym.imp.WSOCK32.dll_send]
mov esi, eax
test esi, esi
jle 0x46379a
xor edi, edi
jmp 0x4637a2
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edi, eax
push edi
call fcn.00463840
add esp, 4
cmp esi, 0xffffffff
jne 0x4637c2
cmp edi, 0x2714
jne 0x4637c2
call fcn.0048b3e0
test ax, ax
je 0x463780
pop edi
pop ebx
call fcn.00452bb0
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4637f0
Capabilities:
Set socket configuration

Disassembly:
xor eax, eax
cmp dword [esp + 8], eax
push esi
setne al
push 4
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 8
push 0xffff
push dword [esp + 0x18]
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov esi, eax
cmp esi, 0xffffffff
je 0x46382c
xor eax, eax
push eax
call fcn.00463840
add esp, 4
mov eax, esi
pop esi
ret
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
call fcn.00463840
add esp, 4
mov eax, esi
pop esi
ret

Function at 0x463cc0
Capabilities:
Set socket configuration

Disassembly:
push esi
push 4
lea eax, [esp + 0x10]
push eax
push 0x1002
push 0xffff
push dword [esp + 0x18]
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov esi, eax
cmp esi, 0xffffffff
je 0x463cf2
xor eax, eax
push eax
call fcn.00463840
add esp, 4
mov eax, esi
pop esi
ret
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
call fcn.00463840
add esp, 4
mov eax, esi
pop esi
ret

Function at 0x463d10
Capabilities:
Set socket configuration

Disassembly:
push esi
push 4
lea eax, [esp + 0x10]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x18]
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov esi, eax
cmp esi, 0xffffffff
je 0x463d42
xor eax, eax
push eax
call fcn.00463840
add esp, 4
mov eax, esi
pop esi
ret
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
call fcn.00463840
add esp, 4
mov eax, esi
pop esi
ret
Function at 0x464600
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov al, byte [0x8b7c48]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
dec al
push esi
push edi
xor edi, edi
inc al
mov cl, byte [0x8b7c49]
mov byte [0x8b7c48], al
movzx esi, al
mov eax, edi
cdq
inc edi
idiv ebp
mov eax, dword [esp + 0x14]
mov bl, byte [esi + 0x8b7c4a]
movzx eax, byte [edx + eax]
add al, bl
add cl, al
movzx eax, cl
mov byte [0x8b7c49], cl
movzx eax, byte [eax + 0x8b7c4a]
mov byte [esi + 0x8b7c4a], al
movzx eax, byte [0x8b7c49]
mov byte [eax + 0x8b7c4a], bl
mov al, byte [0x8b7c48]
cmp edi, 0x100
jl 0x464611
pop edi
pop esi
pop ebp
mov byte [0x8b7c49], al
pop ebx
ret

Function at 0x464680
Capabilities:
Generate random numbers via winapi

Disassembly:
sub esp, 0x24
mov eax, dword [0x887490]
xor eax, esp
mov dword [esp + 0x20], eax
cmp dword [0x8b7c40], 0
jne 0x4646c1
xor eax, eax
nop dword [eax]
mov byte [eax + 0x8b7c4a], al
inc eax
cmp eax, 0x100
jl 0x4646a0
mov word [0x8b7c48], 0
mov dword [0x8b7c40], 1
cmp dword [0x8b7d68], 0
push esi
jne 0x4646f2
push 0xf0000040
push 1
push 0
push 0
push 0x8b7d6c
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4646f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x464713
lea eax, [esp + 4]
mov dword [0x8b7d68], 1
push eax
push 0x20
push dword [0x8b7d6c]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x464740
call fcn.004f6360
push eax
call fcn.00515c30
add esp, 4
xor esi, esi
call fcn.00515c0f
and eax, 0x800000ff
jns 0x464736
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + esi + 4], al
inc esi
cmp esi, 0x20
jb 0x464723
lea eax, [esp + 4]
push 0x20
push eax
call fcn.00464600
add esp, 8
mov esi, 0xc00
mov al, byte [0x8b7c48]
inc al
movzx ecx, al
mov byte [0x8b7c48], al
mov al, byte [0x8b7c49]
mov dl, byte [ecx + 0x8b7c4a]
add al, dl
mov byte [0x8b7c49], al
movzx eax, al
movzx eax, byte [eax + 0x8b7c4a]
mov byte [ecx + 0x8b7c4a], al
movzx eax, byte [0x8b7c49]
mov byte [eax + 0x8b7c4a], dl
sub esi, 1
jne 0x464754
mov ecx, dword [esp + 0x24]
pop esi
xor ecx, esp
mov dword [0x8b7c44], 0x186a00
call fcn.005091ef
add esp, 0x24
ret
Function at 0x464a30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x430
mov eax, dword [0x887490]
xor eax, esp
mov dword [esp + 0x42c], eax
mov eax, dword [esp + 0x440]
push ebx
mov ebx, dword [esp + 0x43c]
push ebp
mov ebp, dword [esp + 0x43c]
push esi
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x3e6
nop dword [eax]
mov byte [eax], 0
call fcn.00452bb0
xor esi, esi
xor edi, edi
test ebx, ebx
je 0x464a8b
push ebx
call fcn.00457d80
add esp, 4
mov esi, eax
test ebp, ebp
je 0x464aa4
cmp byte [ebp], 0
je 0x464aa4
push ebp
call fcn.00457d80
mov edi, eax
add esp, 4
mov ecx, edi
jmp 0x464aca
lea eax, [esp + 0x1c]
push eax
push 0x108
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x464b64
xor eax, eax
lea ecx, [esp + 0x1c]
mov word [esp + 0x22a], ax
lea eax, [esp + 0x22c]
test esi, esi
push eax
push 0
mov eax, 0x74f888
cmovne eax, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ebx, eax
test ebx, ebx
je 0x464b05
push 0x107
push dword [esp + 0x14]
lea eax, [esp + 0x234]
push eax
call fcn.0047b500
add esp, 0xc
test esi, esi
je 0x464b12
push esi
call fcn.0048bed0
add esp, 4
test edi, edi
je 0x464b1f
push edi
call fcn.0048bed0
add esp, 4
push 0
push ebx
call fcn.00461550
add esp, 8
call fcn.00452bb0
test ebx, ebx
je 0x464b70
push 0x210
push dword [esp + 0x450]
push dword [esp + 0x18]
call fcn.004570c0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x464b73
sub dword [esp + 0x14], 1
je 0x464b70
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
jmp 0x464a70
push 0
push 0
call fcn.00461550
add esp, 8
or eax, 0xffffffff
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005091ef
add esp, 0x430
ret

Function at 0x464cf0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x887490]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, dword [esp + 0x21c]
lea eax, [esp + 4]
push edi
push eax
push 0x108
or edi, 0xffffffff
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x464d87
xor eax, eax
xor edi, edi
push 0x107
mov word [esp + 0x21a], ax
lea eax, [esp + 0xc]
push esi
push eax
call fcn.0047b500
add esp, 0xc
cmp byte [esi], 0
je 0x464d87
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x464d50
sub ecx, edx
cmp byte [esi + ecx - 1], 0x5c
je 0x464d90
mov eax, edi
cmp ecx, 0x107
jge 0x464d92
pop edi
mov word [esi + ecx], 0x5c
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.005091ef
add esp, 0x214
ret
mov word [esi], 0x5c2e
mov byte [esi + 2], 0
mov eax, edi
mov ecx, dword [esp + 0x218]
pop edi
pop esi
xor ecx, esp
call fcn.005091ef
add esp, 0x214
ret