joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408710
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x40871d
xor eax, eax
pop esi
ret
push edi
push esi
call sub.WS2_32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
jne 0x40873c
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x40873c
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edi, dword [ecx]
mov eax, edi
pop edi
pop esi
ret

Function at 0x408750
Capabilities:
Connect socket
Get socket status
Resolve dns

Disassembly:
sub esp, 0x12c
mov eax, dword [0x698b9c]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
mov ebp, dword [esp + 0x13c]
push esi
mov esi, edx
push edi
mov edi, ecx
test esi, esi
jne 0x40877b
xor ebx, ebx
jmp 0x408799
push esi
call sub.WS2_32.dll_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x408799
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x408799
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov ebx, dword [ecx]
push ebp
mov dword [esp + 0x12c], ebx
call sub.WS2_32.dll_htons
mov word [esp + 0x126], ax
mov eax, dword [esp + 0x128]
mov edx, 2
mov word [esp + 0x124], dx
lea ebx, [edx - 1]
cmp eax, 0xffffffff
jne 0x4087ef
cmp dword [0x69aaa4], ebx
jg 0x4087e8
push esi
push str._s_cant_be_resolved.
push 0x24
push str....._base_srcwin32TSocket.c
push ebx
call fcn.00401310
add esp, 0x14
xor eax, eax
jmp 0x4088bb
cmp dword [0x69aaa4], ebx
jg 0x408817
movzx ecx, bp
push ecx
push eax
call sub.WS2_32.dll_inet_ntoa
push eax
push str.Socket_connecting_to__s:_d_...
push 0x28
push str....._base_srcwin32TSocket.c
push ebx
call fcn.00401310
add esp, 0x18
mov esi, dword [esp + 0x140]
push 0x10
lea edx, [esp + 0x128]
push edx
push esi
call sub.WS2_32.dll_connect
test eax, eax
je 0x4088b9
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4088d4
xor eax, eax
cmp edi, 0xffffffff
je 0x408871
mov eax, 0x10624dd3
mul edi
shr edx, 6
mov dword [esp + 0x10], edx
imul edx, edx, 0x3e8
sub edi, edx
imul edi, edi, 0x3e8
mov dword [esp + 0x14], edi
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x20]
push eax
push 0
push ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
call sub.WS2_32.dll_select
test eax, eax
jle 0x4088d4
lea ecx, [esp + 0x18]
push ecx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4088d4
cmp dword [0x69aaa4], ebx
jg 0x4088b9
push str.Connected.
push 0x4b
push str....._base_srcwin32TSocket.c
push ebx
call fcn.00401310
add esp, 0x10
mov eax, ebx
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005bfcb8
add esp, 0x12c
ret
cmp dword [0x69aaa4], ebx
jg 0x4087e8
call sub.WS2_32.dll_WSAGetLastError
push eax
push str.Connect_failed__error_d
push 0x4f
jmp 0x4087da
Function at 0x408900
Capabilities:
Get socket status

Disassembly:
sub esp, 0x118
push esi
xor esi, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 1
cmp ecx, 0xffffffff
je 0x40893e
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [esp + 8], edx
imul edx, edx, 0x3e8
sub ecx, edx
imul ecx, ecx, 0x3e8
lea esi, [esp + 8]
mov dword [esp + 0xc], ecx
push esi
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push 1
call sub.WS2_32.dll_select
mov esi, eax
cmp esi, 0xffffffff
je 0x40895a
test esi, esi
jne 0x40897f
cmp dword [0x69aaa4], 3
jg 0x40897f
call sub.WS2_32.dll_WSAGetLastError
push eax
push str.socket_error__u
push 0x6b
push str....._base_srcwin32TSocket.c
push 3
call fcn.00401310
add esp, 0x14
mov eax, esi
pop esi
add esp, 0x118
ret

Function at 0x408990
Capabilities:
Get socket status

Disassembly:
sub esp, 0x118
push esi
xor esi, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 1
cmp ecx, 0xffffffff
je 0x4089ce
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [esp + 8], edx
imul edx, edx, 0x3e8
sub ecx, edx
imul ecx, ecx, 0x3e8
lea esi, [esp + 8]
mov dword [esp + 0xc], ecx
push esi
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push 1
call sub.WS2_32.dll_select
mov esi, eax
cmp esi, 0xffffffff
je 0x4089ea
test esi, esi
jne 0x408a12
cmp dword [0x69aaa4], 3
jg 0x408a12
call sub.WS2_32.dll_WSAGetLastError
push eax
push str.socket_error__u
push 0x85
push str....._base_srcwin32TSocket.c
push 3
call fcn.00401310
add esp, 0x14
mov eax, esi
pop esi
add esp, 0x118
ret
Function at 0x408e90
Capabilities:
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x414
mov eax, dword [0x698b9c]
xor eax, esp
mov dword [esp + 0x410], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
mov edi, dword [ebp + 0x14]
push eax
push ecx
mov ecx, dword [ebp + 0x24]
call fcn.00408750
add esp, 8
test eax, eax
je 0x408fd2
test edi, edi
jne 0x408eda
mov edi, 0x6650ae
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408ee0
sub eax, edx
mov dword [esp + 0x14], eax
test ebx, ebx
jne 0x408f84
xor esi, esi
mov ecx, dword [ebp + 0x20]
mov ebx, 1
push ecx
mov byte [esp + 0x1c], 4
mov byte [esp + 0x1d], bl
call sub.WS2_32.dll_htons
lea edx, [esp + 0x20]
mov word [esp + 0x1a], ax
mov dword [esp + 0x1c], esi
mov eax, edi
sub edx, edi
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, ebx
test cl, cl
jne 0x408f20
mov esi, dword [esp + 0x14]
mov edi, dword [ebp + 8]
push 0
add esi, 9
push esi
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll_send
cmp eax, esi
je 0x408fe9
cmp dword [0x69aaa4], 3
jg 0x408f6d
push str.Fail_to_send_SOCK4_request.
push 0x156
push str....._base_srcwin32TSocket.c
push 3
call fcn.00401310
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.005bfcb8
mov esp, ebp
pop ebp
ret
push ebx
call sub.WS2_32.dll_inet_addr
mov esi, eax
cmp esi, 0xffffffff
jne 0x408ef7
push ebx
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x408fa6
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov esi, dword [eax]
cmp esi, 0xffffffff
jne 0x408ef7
cmp dword [0x69aaa4], 3
jg 0x408fd2
push ebx
push str.The_host__s_cant_be_resolved.
push 0x14a
push str....._base_srcwin32TSocket.c
push 3
call fcn.00401310
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.005bfcb8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x24]
mov eax, edi
call fcn.00408900
test eax, eax
jle 0x408fd2
push 0
push 8
lea eax, [esp + 0x14]
push eax
push edi
call sub.WS2_32.dll_recv
cmp eax, 8
je 0x409027
cmp dword [0x69aaa4], 3
jg 0x408f6d
push str.Fail_to_read_socks4_response.
push 0x160
jmp 0x408f5e
cmp dword [0x69aaa4], ebx
jg 0x409053
movzx ecx, byte [esp + 0xd]
movzx edx, byte [esp + 0xc]
push ecx
push edx
push str.SOCKS4_response_read._ver_d_status_d
push 0x165
push str....._base_srcwin32TSocket.c
push ebx
call fcn.00401310
add esp, 0x18
mov ecx, dword [esp + 0x41c]
xor eax, eax
cmp byte [esp + 0xd], 0x5a
pop edi
pop esi
sete al
pop ebx
xor ecx, esp
call fcn.005bfcb8
mov esp, ebp
pop ebp
ret
Function at 0x4095c0
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x2c
mov eax, dword [0x698b9c]
xor eax, esp
mov dword [esp + 0x24], eax
xor eax, eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, 2
push 0x7f000001
or esi, 0xffffffff
mov word [esp + 0x10], ax
call sub.WS2_32.dll_htonl
push 0x10
lea edx, [esp + 0x10]
push edx
xor ecx, ecx
push edi
mov dword [esp + 0x1c], eax
mov word [esp + 0x1a], cx
call sub.WS2_32.dll_bind
cmp eax, esi
je 0x409663
mov eax, dword [esp + 0x38]
push 0
push eax
push 2
call sub.WS2_32.dll_socket
mov esi, eax
test esi, esi
jl 0x409663
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x20]
push edx
push edi
mov dword [esp + 0x14], 0x10
call sub.WS2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x409663
cmp dword [esp + 8], 0x10
jne 0x409663
push 0x10
lea eax, [esp + 0x20]
push eax
push esi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x409688
push edi
call sub.WS2_32.dll_closesocket
cmp esi, 0xffffffff
je 0x409674
push esi
call sub.WS2_32.dll_closesocket
or eax, 0xffffffff
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.005bfcb8
add esp, 0x2c
ret
mov ecx, dword [esp + 0x2c]
mov dword [ebx + 4], esi
pop esi
mov dword [ebx], edi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.005bfcb8
add esp, 0x2c
ret
Function at 0x409950
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x1c
mov eax, dword [0x698b9c]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov eax, 2
push 9
mov esi, ecx
mov word [esp + 0x18], ax
call sub.WS2_32.dll_htons
mov word [esp + 0x16], ax
test esi, esi
je 0x4099be
lea ecx, [esi + 4]
push ecx
call sub.WS2_32.dll_inet_addr
lea edx, [esi + 0x14]
push edx
mov edi, eax
call sub.WS2_32.dll_inet_addr
test edi, edi
je 0x4099be
not eax
or eax, edi
push 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
push 0x66
push ebx
push ebp
call sub.WS2_32.dll_sendto
mov esi, dword [esi]
test esi, esi
jne 0x409986
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.005bfcb8
add esp, 0x1c
ret

Function at 0x409ae0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x70
mov eax, dword [0x698b9c]
xor eax, esp
mov dword [esp + 0x6c], eax
push esi
push edi
push 0
push 2
push 2
mov dword [esp + 0x14], 1
call sub.WS2_32.dll_socket
push 4
mov esi, eax
lea eax, [esp + 0xc]
push eax
push 0x20
push 0xffff
push esi
call sub.WS2_32.dll_setsockopt
mov ecx, dword [esp + 0x7c]
or eax, 0xffffffff
mov dword [esp + 0xc], eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x12]
mov edx, 0x10
mov edi, dword [ecx]
mov dword [eax], edi
mov di, word [ecx + 4]
mov word [eax + 4], di
add eax, 6
sub edx, 1
jne 0x409b32
lea ecx, [esp + 0xc]
push esi
push ecx
call fcn.004099e0
add esp, 8
push esi
call sub.WS2_32.dll_closesocket
mov ecx, dword [esp + 0x74]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.005bfcb8
add esp, 0x70
ret
Function at 0x409b70
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x698b9c]
xor eax, esp
mov dword [esp + 0x250], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push eax
push str._s.
lea eax, [esp + 0x158]
push 0x104
push eax
call fcn.005c1e5d
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x409c82
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [esp + 0x10], 0x10
je 0x409c41
mov ecx, 0x676ea0
lea eax, [esp + 0x3c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409c02
test dl, dl
je 0x409bfe
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409c02
add eax, 2
add ecx, 2
test dl, dl
jne 0x409be2
xor eax, eax
jmp 0x409c07
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x409c54
mov ecx, 0x676ea4
lea eax, [esp + 0x3c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409c34
test dl, dl
je 0x409c30
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409c34
add eax, 2
add ecx, 2
test dl, dl
jne 0x409c14
xor eax, eax
jmp 0x409c39
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x409c54
push 1
jmp 0x409c43
push 0
mov eax, dword [esi]
mov edx, dword [eax]
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call edx
test eax, eax
jne 0x409c64
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
jne 0x409bd2
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.005bfcb8
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.005bfcb8
mov esp, ebp
pop ebp
ret
Function at 0x40ab80
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
push esi
push 0x5c
lea eax, [esp + 8]
push 0
push eax
call fcn.005bfd50
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.0040a040
mov esi, dword [esp + 0x7c]
lea edx, [esp + 0x14]
push edx
mov eax, esi
call fcn.0040a120
add esp, 0x14
mov eax, esi
pop esi
add esp, 0x5c
ret

Function at 0x40acc0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x5c
call fcn.005c052e
add esp, 4
push 0x5c
xor ebp, ebp
mov esi, eax
push ebp
push esi
call fcn.005bfd50
mov eax, dword [0x69db58]
add esp, 0xc
push 0x158
mov dword [esi + 4], ebp
mov dword [esi + 0x10], eax
call fcn.005c052e
mov edi, eax
lea ecx, [edi + 4]
add esp, 4
push ecx
mov dword [esi + 0xc], edi
mov dword [edi], ebp
call fcn.0040e380
lea ebx, [edi + 0x118]
add esp, 4
lea ecx, [ebp + 0x20]
mov edx, ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], ebp
call fcn.0040c130
mov dl, byte [ebx + 0x1f]
and byte [ebx], 0xf8
and dl, 0x3f
or dl, 0x40
mov byte [ebx + 0x1f], dl
mov dword [edi + 0xf4], 0x1d
add edi, 0xf8
push edi
mov ecx, ebx
call fcn.00413e70
add esp, 4
pop edi
mov dword [esi + 8], ebp
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], ebp
mov dword [esi + 0x54], ebp
mov eax, esi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov eax, dword [esi + 0x50]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push 0
sub edx, ecx
push edx
add eax, ecx
mov ecx, dword [esi]
push eax
push ecx
call sub.WS2_32.dll_send
test eax, eax
je 0x40ae1d
jge 0x40ae28
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x40ae3f
mov dword [esi + 4], 5
or eax, 0xffffffff
ret
mov ecx, dword [esi + 0x50]
add dword [ecx + 8], eax
mov eax, dword [esi + 0x50]
mov edx, dword [eax + 8]
cmp edx, dword [eax + 4]
jne 0x40ae3f
mov eax, 1
ret
xor eax, eax
mov dword [esi + 4], 3
ret
Function at 0x40ae50
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp dword [esi + 0x4c], 0
jne 0x40ae84
push 0x814
call fcn.005c052e
lea ecx, [eax + 0x14]
mov dword [eax], ecx
mov ecx, 0x800
mov dword [eax + 0xc], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], 0
mov dword [eax + 0x10], 0
add esp, 4
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x4c]
cmp dword [eax + 0x10], 0
push edi
mov edi, 5
jne 0x40aee5
mov ecx, dword [eax + 8]
mov eax, dword [eax]
push 0
mov edx, edi
sub edx, ecx
push edx
add eax, ecx
mov ecx, dword [esi]
push eax
push ecx
call sub.WS2_32.dll_recv
test eax, eax
jne 0x40aeb6
mov dword [esi + 4], edi
or eax, 0xffffffff
pop edi
ret
jge 0x40aecf
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x40aeae
mov dword [esi + 4], 2
xor eax, eax
pop edi
ret
mov ecx, dword [esi + 0x4c]
add dword [ecx + 8], eax
mov eax, dword [esi + 0x4c]
cmp dword [eax + 8], edi
jl 0x40aec4
call fcn.0040b4a0
mov dword [esi + 0x4c], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx + 4]
cmp dword [ecx + 8], eax
jge 0x40af1c
mov edx, dword [ecx + 8]
push 0
sub eax, edx
push eax
mov eax, dword [ecx]
mov ecx, dword [esi]
add eax, edx
push eax
push ecx
call sub.WS2_32.dll_recv
test eax, eax
je 0x40aeae
jl 0x40aeb8
mov ecx, dword [esi + 0x4c]
add dword [ecx + 8], eax
mov eax, dword [esi + 0x4c]
mov edx, dword [eax + 8]
cmp edx, dword [eax + 4]
jl 0x40aec4
mov eax, 1
pop edi
ret

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

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x10]
cmp dword [esi + 8], 5
push edi
mov dword [esp + 0x1c], ebx
jne 0x40b332
xor ebp, ebp
cmp dword [esi + 0x50], ebp
je 0x40b272
call fcn.0040adf0
cmp eax, ebp
jle 0x40b336
mov eax, dword [esi + 0x50]
push eax
call fcn.005c05f8
add esp, 4
sub ebx, dword [esi + 0x58]
mov dword [esi + 0x50], ebp
jmp 0x40b275
mov dword [esi + 0x58], ebp
cmp ebx, ebp
mov dword [esi + 4], ebp
jle 0x40b332
cmp ebx, 0x4000
mov edi, 0x4000
jg 0x40b28f
mov edi, ebx
mov ecx, dword [esi + 0x58]
add ecx, dword [esp + 0x18]
push 0x17
push edi
push ecx
push esi
call fcn.0040b550
add esp, 0x10
mov dword [esi + 0x50], eax
cmp eax, ebp
je 0x40b323
add dword [esi + 0x58], edi
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ebp
sub edx, ecx
push edx
add eax, ecx
mov ecx, dword [esi]
push eax
push ecx
sub ebx, edi
call sub.WS2_32.dll_send
cmp eax, ebp
je 0x40b2fa
jl 0x40b309
mov ecx, dword [esi + 0x50]
add dword [ecx + 8], eax
mov eax, dword [esi + 0x50]
mov edx, dword [eax + 8]
cmp edx, dword [eax + 4]
jne 0x40b315
push eax
call fcn.005c05f8
add esp, 4
cmp ebx, ebp
mov dword [esi + 0x50], ebp
jg 0x40b280
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
mov dword [esi + 4], 5
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x40b2fa
pop edi
mov dword [esi + 4], 3
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov dword [esi + 4], 5
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40c130
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x698b9c]
xor eax, esp
mov dword [esp + 0x78], eax
cmp dword [0x69db5c], 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
jne 0x40c161
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x69db5c], eax
jmp 0x40c167
inc dword [0x69db5c]
push 0x60
lea eax, [esp + 0x14]
push 0
push eax
call fcn.005bfd50
push 4
lea ecx, [esp + 0x20]
push 0x69db5c
push ecx
mov dword [esp + 0x28], 0x67452301
mov dword [esp + 0x2c], 0xefcdab89
mov dword [esp + 0x30], 0x98badcfe
mov dword [esp + 0x34], 0x10325476
mov dword [esp + 0x38], 0xc3d2e1f0
call fcn.0040eb00
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x8c]
push eax
call fcn.0040ebe0
add esp, 0x20
test edi, edi
jbe 0x40c21c
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
cmp edi, 0x14
jbe 0x40c20d
mov ebx, dword [esp + 0x70]
mov dword [esi], ebx
mov ebx, dword [esp + 0x74]
mov dword [esi + 4], ebx
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], eax
sub edi, 0x14
add esi, 0x14
test edi, edi
ja 0x40c1d6
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.005bfcb8
mov esp, ebp
pop ebp
ret
push edi
lea ecx, [esp + 0x74]
push ecx
push esi
call fcn.005bfdd0
add esp, 0xc
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005bfcb8
mov esp, ebp
pop ebp
ret
Function at 0x40c2f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [eax + 0x60]
mov eax, dword [edi + 0x70]
test eax, eax
je 0x40c359
test ebp, ebp
je 0x40c335
lea esp, [esp]
cmp eax, 0x40
jae 0x40c335
mov dl, byte [eax + edi + 0x30]
mov ecx, dword [esp + 0x18]
xor dl, byte [ecx]
mov esi, dword [esp + 0x14]
mov byte [esi], dl
inc esi
inc ecx
inc eax
sub ebp, 1
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ecx
jne 0x40c310
mov dword [edi + 0x70], eax
test ebp, ebp
je 0x40c402
cmp eax, 0x40
jne 0x40c359
mov eax, 1
add dword [edi + 0x20], eax
mov dword [edi + 0x70], 0
jne 0x40c359
add dword [edi + 0x24], eax
mov eax, ebp
and eax, 0x3f
sub ebp, eax
push ebx
mov ebx, dword [edi + 0x20]
mov dword [esp + 0x14], eax
cmp ebp, 0x40
jb 0x40c3b7
lea ecx, [ecx]
mov esi, ebp
shr esi, 6
add ebx, esi
cmp ebx, esi
jae 0x40c37f
sub esi, ebx
xor ebx, ebx
mov ecx, dword [esp + 0x18]
lea eax, [edi + 0x20]
push eax
mov eax, dword [esp + 0x20]
push edi
shl esi, 6
push esi
push eax
push ecx
call fcn.0051dd40
add dword [esp + 0x30], esi
add dword [esp + 0x2c], esi
add esp, 0x14
sub ebp, esi
mov dword [edi + 0x20], ebx
test ebx, ebx
jne 0x40c3ae
inc dword [edi + 0x24]
cmp ebp, 0x40
jae 0x40c370
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40c401
push 0x40
lea esi, [edi + 0x30]
push 0
push esi
call fcn.005bfd50
lea eax, [edi + 0x20]
push eax
push edi
push 0x40
push esi
push esi
call fcn.0051dd40
mov ebp, dword [esp + 0x34]
add esp, 0x20
xor eax, eax
test ebp, ebp
jbe 0x40c3fe
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub edx, ecx
lea ecx, [ecx]
mov bl, byte [edx + ecx]
xor bl, byte [esi + eax]
inc eax
mov byte [ecx], bl
inc ecx
cmp eax, ebp
jb 0x40c3f0
mov dword [edi + 0x70], ebp
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
ret

Function at 0x40e380
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call fcn.005bfd50
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
mov eax, 1
pop esi
ret
Function at 0x40e7f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x128
mov eax, dword [0x698b9c]
xor eax, esp
mov dword [esp + 0x124], eax
cmp dword [esp + 0x130], 0
push ebx
mov ebx, dword [esi + 0xec]
push ebp
mov ebp, dword [esp + 0x134]
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
mov dword [esi + 0xf0], 0x40
jne 0x40e85c
mov dword [esi + 0xec], 0x20
mov dword [esi + 0xe0], fcn.0040e380
mov dword [esi + 0xe4], fcn.0040e430
mov dword [esi + 0xe8], fcn.0040e510
jmp 0x40e884
mov dword [esi + 0xec], 0x14
mov dword [esi + 0xe0], 0x40ed30
mov dword [esi + 0xe4], fcn.0040eb00
mov dword [esi + 0xe8], fcn.0040ebe0
test edi, edi
je 0x40e9a5
cmp ebp, 0x40
jle 0x40e8e2
mov eax, dword [esi + 0xe0]
push esi
call eax
add esp, 4
test eax, eax
je 0x40e8c8
mov ecx, dword [esi + 0xe4]
push ebp
push edi
push esi
call ecx
add esp, 0xc
test eax, eax
je 0x40e8c8
mov eax, dword [esi + 0xe8]
lea edx, [esp + 0x10]
push esi
push edx
call eax
add esp, 8
test eax, eax
jne 0x40e8fb
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.005bfcb8
add esp, 0x128
ret
cmp ebp, 0x90
ja 0x40e8c8
push ebp
lea ecx, [esp + 0x14]
push edi
push ecx
call fcn.005bfdd0
add esp, 0xc
mov ebx, ebp
cmp ebx, 0x90
je 0x40e91a
mov edx, 0x90
sub edx, ebx
push edx
lea eax, [esp + ebx + 0x14]
push 0
push eax
call fcn.005bfd50
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x10]
xor cl, 0x36
mov byte [esp + eax + 0xa0], cl
inc eax
cmp eax, 0x90
jl 0x40e920
mov edx, dword [esi + 0xe0]
push esi
call edx
add esp, 4
test eax, eax
je 0x40e9ad
mov ecx, dword [esi + 0xe4]
push 0x40
lea eax, [esp + 0xa4]
push eax
push esi
call ecx
add esp, 0xc
test eax, eax
je 0x40e9ad
xor eax, eax
mov dl, byte [esp + eax + 0x10]
xor dl, 0x5c
mov byte [esp + eax + 0xa0], dl
inc eax
cmp eax, 0x90
jl 0x40e962
mov eax, dword [esi + 0xe0]
lea edi, [esi + 0x70]
push edi
call eax
add esp, 4
test eax, eax
je 0x40e9ad
mov edx, dword [esi + 0xe4]
push 0x40
lea ecx, [esp + 0xa4]
push ecx
push edi
call edx
add esp, 0xc
test eax, eax
je 0x40e9ad
mov dword [esp + 0xc], 1
mov ecx, dword [esp + 0x130]
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.005bfcb8
add esp, 0x128
ret