joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454f90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov dword [ebp - 8], 0x80
push edi
mov dword [ebp - 0x8c], eax
mov esi, dword [eax + 0x3a0]
mov edi, dword [eax]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x88]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [esi + 0x15c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x455014
push dword [ebp - 8]
lea eax, [ebp - 0x88]
push eax
lea eax, [esi + 0xc8]
push eax
call sub.MSVCR120.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [esi + 0x148], eax
mov ebx, dword [esi + 0x14c]
cmp ebx, 4
jge 0x455047
push str.Received_too_short_packet
push edi
call fcn.004437f0
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x15c]
movzx eax, byte [ecx]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 1]
or edx, eax
mov dword [esi + 0xc], edx
add edx, 0xfffffffd
cmp edx, 3
ja case.default.0x45506c
jmp dword [edx*4 + 0x455198]
cmp ebx, 4
jle case.0x45506c.4
movzx eax, byte [ecx + 2]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 3]
or edx, eax
movzx eax, word [esi + 0x40]
inc eax
and eax, 0xffff
cmp eax, edx
jne case.0x45506c.4
lea eax, [ebx - 4]
add ecx, 4
push eax
push ecx
mov ecx, dword [ebp - 0x8c]
mov edx, 1
call fcn.00443f20
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4550df
mov edx, 5
mov ecx, esi
call fcn.00454cd0
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x70], eax
mov eax, dword [edi + 0x70]
adc dword [edi + 0x74], edx
mov dword [edi + 0x430], eax
mov eax, dword [edi + 0x74]
mov dword [edi + 0x434], eax
jmp case.0x45506c.4
mov edx, ecx
movzx eax, byte [edx + 2]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 3]
or ecx, eax
lea eax, [edx + 4]
push eax
push 0x4f0fb0
push edi
mov dword [esi + 8], ecx
call fcn.00443730
jmp 0x455160
lea eax, [ebx - 2]
lea edx, [ecx + 2]
mov ecx, esi
push eax
call fcn.00453f50
add esp, 4
test eax, eax
je case.0x45506c.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x4f0cf0
push edi
call fcn.004437f0
add esp, 0xc
mov ecx, dword [ebp - 0x8c]
call fcn.0044de80
test eax, eax
je 0x455034
mov edx, 5
mov ecx, esi
call fcn.00454cd0
mov ecx, dword [ebp - 4]
mov eax, 0x2a
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
Function at 0x459280
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xc], 0x10
push edi
or edi, 0xffffffff
mov eax, dword [esi]
mov ebx, dword [esi + 0x158]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4592d5
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x10
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
cmp dword [esi + 0x38], 0
je 0x4592f3
cmp ebx, dword [esi + 0x158]
jne 0x45932e
cmp byte [esi + 0x165], 0
je 0x45932e
mov byte [esi + 0x165], 0
mov edx, ebx
mov ecx, esi
call fcn.00439aa0
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp edi, 0xffffffff
jne 0x459345
push str.Error_accept__ing_server_connect
push dword [ebp - 8]
call fcn.004437f0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
mov edx, ebx
mov ecx, esi
call fcn.00439aa0
mov eax, dword [esi + 0x38]
push ebx
push dword [esi + 0x3c]
call eax
add esp, 8
jmp 0x459303
mov ebx, dword [ebp - 8]
push str.Connection_accepted_from_server_n
push ebx
call fcn.00443730
add esp, 8
mov dword [esi + 0x158], edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov byte [esi + 0x165], 1
mov eax, dword [ebx + 0x198]
test eax, eax
je 0x4593bf
push 1
push edi
push dword [ebx + 0x19c]
call eax
add esp, 0xc
test eax, eax
je 0x4593bf
mov edx, edi
mov ecx, esi
call fcn.00441d90
mov dword [esi + 0x158], 0xffffffff
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
Function at 0x45b5f0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
mov eax, 0x51eb851f
imul ebx
push esi
sar edx, 5
xor esi, esi
mov eax, edx
push edi
shr eax, 0x1f
mov edi, ecx
add eax, edx
mov ecx, dword [edi]
cmp eax, 2
je 0x45b62a
push str.Couldnt_set_desired_mode
push ecx
call fcn.004437f0
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ebx, 0xc8
je 0x45b641
push ebx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ecx
call fcn.00443730
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x13
jne 0x45b657
mov ecx, edi
call fcn.0045a670
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x45b66a
mov ecx, edi
call fcn.0045a6f0
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x45b673
push 0xd
jmp 0x45b67a
cmp eax, 0x16
jne 0x45b688
push 0xe
mov dl, 1
mov ecx, edi
call fcn.0045ab50
add esp, 4
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x45e660
Capabilities:
Parse pe header

Disassembly:
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x45e66b
jmp dword [eax*4 + 0x45e6c4]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, cl
ret

Function at 0x45e730
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov bl, byte [esi]
test bl, bl
je 0x45e7d9
mov cl, byte [edi]
test cl, cl
je 0x45e7d9
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x45e756
jmp dword [eax*4 + 0x45e7f8]
mov bl, 0x41
jmp case.default.0x45e756
mov bl, 0x42
jmp case.default.0x45e756
mov bl, 0x43
jmp case.default.0x45e756
mov bl, 0x44
jmp case.default.0x45e756
mov bl, 0x45
jmp case.default.0x45e756
mov bl, 0x46
jmp case.default.0x45e756
mov bl, 0x47
jmp case.default.0x45e756
mov bl, 0x48
jmp case.default.0x45e756
mov bl, 0x49
jmp case.default.0x45e756
mov bl, 0x4a
jmp case.default.0x45e756
mov bl, 0x4b
jmp case.default.0x45e756
mov bl, 0x4c
jmp case.default.0x45e756
mov bl, 0x4d
jmp case.default.0x45e756
mov bl, 0x4e
jmp case.default.0x45e756
mov bl, 0x4f
jmp case.default.0x45e756
mov bl, 0x50
jmp case.default.0x45e756
mov bl, 0x51
jmp case.default.0x45e756
mov bl, 0x52
jmp case.default.0x45e756
mov bl, 0x53
jmp case.default.0x45e756
mov bl, 0x54
jmp case.default.0x45e756
mov bl, 0x55
jmp case.default.0x45e756
mov bl, 0x56
jmp case.default.0x45e756
mov bl, 0x57
jmp case.default.0x45e756
mov bl, 0x58
jmp case.default.0x45e756
mov bl, 0x59
jmp case.default.0x45e756
mov bl, 0x5a
call fcn.0045e660
cmp bl, al
jne 0x45e7d9
mov bl, byte [esi + 1]
inc esi
inc edi
test bl, bl
jne 0x45e741
mov cl, byte [esi]
call fcn.0045e660
mov cl, byte [edi]
mov dl, al
call fcn.0045e660
xor ecx, ecx
cmp dl, al
pop edi
sete cl
pop esi
mov eax, ecx
pop ebx
ret
Function at 0x45e860
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov bl, byte [edi]
test bl, bl
je 0x45e924
lea esp, [esp]
mov cl, byte [edx]
test cl, cl
je 0x45e924
test esi, esi
je 0x45e928
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x45e89d
jmp dword [eax*4 + 0x45e958]
mov bl, 0x41
jmp case.default.0x45e89d
mov bl, 0x42
jmp case.default.0x45e89d
mov bl, 0x43
jmp case.default.0x45e89d
mov bl, 0x44
jmp case.default.0x45e89d
mov bl, 0x45
jmp case.default.0x45e89d
mov bl, 0x46
jmp case.default.0x45e89d
mov bl, 0x47
jmp case.default.0x45e89d
mov bl, 0x48
jmp case.default.0x45e89d
mov bl, 0x49
jmp case.default.0x45e89d
mov bl, 0x4a
jmp case.default.0x45e89d
mov bl, 0x4b
jmp case.default.0x45e89d
mov bl, 0x4c
jmp case.default.0x45e89d
mov bl, 0x4d
jmp case.default.0x45e89d
mov bl, 0x4e
jmp case.default.0x45e89d
mov bl, 0x4f
jmp case.default.0x45e89d
mov bl, 0x50
jmp case.default.0x45e89d
mov bl, 0x51
jmp case.default.0x45e89d
mov bl, 0x52
jmp case.default.0x45e89d
mov bl, 0x53
jmp case.default.0x45e89d
mov bl, 0x54
jmp case.default.0x45e89d
mov bl, 0x55
jmp case.default.0x45e89d
mov bl, 0x56
jmp case.default.0x45e89d
mov bl, 0x57
jmp case.default.0x45e89d
mov bl, 0x58
jmp case.default.0x45e89d
mov bl, 0x59
jmp case.default.0x45e89d
mov bl, 0x5a
call fcn.0045e660
cmp bl, al
jne 0x45e924
mov bl, byte [edi + 1]
inc edi
inc edx
dec esi
mov dword [ebp - 4], edx
test bl, bl
jne 0x45e880
test esi, esi
jne 0x45e934
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, byte [edi]
call fcn.0045e660
mov dl, al
mov eax, dword [ebp - 4]
mov cl, byte [eax]
call fcn.0045e660
xor ecx, ecx
cmp dl, al
pop edi
sete cl
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e9c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
sub ecx, edx
lea ebx, [ebx]
mov bl, byte [edx]
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x45e9dd
jmp dword [eax*4 + 0x45ea60]
mov bl, 0x41
jmp case.default.0x45e9dd
mov bl, 0x42
jmp case.default.0x45e9dd
mov bl, 0x43
jmp case.default.0x45e9dd
mov bl, 0x44
jmp case.default.0x45e9dd
mov bl, 0x45
jmp case.default.0x45e9dd
mov bl, 0x46
jmp case.default.0x45e9dd
mov bl, 0x47
jmp case.default.0x45e9dd
mov bl, 0x48
jmp case.default.0x45e9dd
mov bl, 0x49
jmp case.default.0x45e9dd
mov bl, 0x4a
jmp case.default.0x45e9dd
mov bl, 0x4b
jmp case.default.0x45e9dd
mov bl, 0x4c
jmp case.default.0x45e9dd
mov bl, 0x4d
jmp case.default.0x45e9dd
mov bl, 0x4e
jmp case.default.0x45e9dd
mov bl, 0x4f
jmp case.default.0x45e9dd
mov bl, 0x50
jmp case.default.0x45e9dd
mov bl, 0x51
jmp case.default.0x45e9dd
mov bl, 0x52
jmp case.default.0x45e9dd
mov bl, 0x53
jmp case.default.0x45e9dd
mov bl, 0x54
jmp case.default.0x45e9dd
mov bl, 0x55
jmp case.default.0x45e9dd
mov bl, 0x56
jmp case.default.0x45e9dd
mov bl, 0x57
jmp case.default.0x45e9dd
mov bl, 0x58
jmp case.default.0x45e9dd
mov bl, 0x59
jmp case.default.0x45e9dd
mov bl, 0x5a
mov byte [ecx + edx], bl
mov al, byte [edx]
inc edx
test al, al
je 0x45ea5b
dec esi
jne 0x45e9d0
pop esi
pop ebx
pop ebp
ret

Function at 0x45ead0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x198]
mov esi, ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x45eb1c
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.004437f0
add esp, 0xc
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x198]
cmp al, 2
jne 0x45eb44
shr eax, 8
test al, al
jne 0x45eb44
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.004437f0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 2
pop esi
call fcn.0046bea8
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
mov esi, ecx
mov byte [ebp - 6], al
push 3
lea eax, [ebp - 8]
mov byte [ebp - 8], 0xff
push eax
push dword [esi + 0x154]
mov edi, dword [esi]
mov ebx, edx
mov byte [ebp - 7], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x45ee53
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004437f0
add esp, 0xc
push dword [ebp + 8]
mov ecx, dword [esi]
mov edx, str.SENT
push ebx
call fcn.0045ed00
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
Function at 0x45efd0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
mov esi, edx
mov eax, dword [ebx]
mov edi, dword [eax + 0x114]
mov eax, dword [edi + esi*4 + 8]
sub eax, 0
je 0x45f06c
sub eax, 2
je 0x45f022
dec eax
jne 0x45f04e
mov eax, dword [edi + esi*4 + 0x408]
sub eax, 0
je 0x45f016
dec eax
jne 0x45f04e
mov dword [edi + esi*4 + 8], 1
mov dword [edi + esi*4 + 0x408], eax
pop edi
pop esi
pop ebx
ret
mov dword [edi + esi*4 + 8], 0
pop edi
pop esi
pop ebx
ret
mov eax, dword [edi + esi*4 + 0x408]
sub eax, 0
je 0x45f052
dec eax
jne 0x45f04e
mov dword [edi + esi*4 + 8], 3
mov dword [edi + esi*4 + 0x1008], eax
push esi
mov edx, 0xfc
call fcn.0045ee00
add esp, 4
pop edi
pop esi
pop ebx
ret
cmp dword [edi + esi*4 + 0x1808], 1
mov dword [edi + esi*4 + 8], 1
jne 0x45f04e
pop edi
pop esi
pop ebx
jmp fcn.0045fa50
cmp dword [edi + esi*4 + 0x808], 1
jne 0x45f0a2
push esi
mov edx, 0xfb
mov dword [edi + esi*4 + 8], 1
call fcn.0045ee00
add esp, 4
cmp dword [edi + esi*4 + 0x1808], 1
jne 0x45f04e
mov edx, esi
mov ecx, ebx
pop edi
pop esi
pop ebx
jmp fcn.0045fa50
cmp dword [edi + esi*4 + 0x1808], 1
jne 0x45f040
push esi
mov edx, 0xfb
mov dword [edi + esi*4 + 8], 1
call fcn.0045ee00
add esp, 4
mov edx, esi
mov ecx, ebx
pop edi
pop esi
pop ebx
jmp fcn.0045fa50
Function at 0x460760
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ecx
call dword [sym.imp.MSVCR120.dll_getenv]
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x4607c2
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x4607c2
lea eax, [ebp - 0x108]
push eax
call dword [0x5007a4]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret

Function at 0x461980
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x8624]
cmp byte [edx], 0
jne 0x4619ea
push 0x401
lea eax, [ebp - 0x408]
mov byte [ebp - 0x408], 0
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [ebp - 8], 0
test eax, eax
jne 0x4619e5
lea eax, [ebp - 0x408]
push 0x2e
push eax
call dword [sym.imp.MSVCR120.dll_strchr]
add esp, 8
test eax, eax
je 0x4619dd
mov byte [eax], 0
lea edx, [ebp - 0x408]
jmp 0x4619ea
mov edx, str.localhost
push 1
push 0
lea eax, [esi + 0x3e0]
push eax
push 0
call fcn.00459080
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop esi
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
Function at 0x4649f0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea edi, [ebp - 8]
mov dword [ebp - 0x14], ebx
push edi
push eax
push edx
xor esi, esi
push ecx
mov dword [ebp - 0xc], esi
mov dword [ebx], esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x464b86
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x464b73
cmp dword [ebx + 4], 2
jne 0x464af0
cmp dword [ebx + 0x18], 0
je 0x464af0
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x464af0
cmp eax, 0x10
jb 0x464af0
push 0x20
call dword [0x50079c]
mov edi, eax
add esp, 4
test edi, edi
je 0x464b68
mov ecx, dword [ebx]
mov dword [edi], ecx
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [edi + 8], ecx
mov eax, dword [ebx + 0xc]
push 0x10
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0x10
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
call dword [0x50079c]
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x464b57
mov ecx, dword [ebx + 0x18]
movdqu xmm0, xmmword [ecx]
movdqu xmmword [eax], xmm0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x464ade
push eax
call dword [0x5007a4]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x464b3d
mov eax, dword [ebp - 0xc]
test esi, esi
cmove esi, edi
test eax, eax
je 0x464aed
mov dword [eax + 0x1c], edi
mov dword [ebp - 0xc], edi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x464a36
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
test eax, eax
je 0x464b0c
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x464b6f
test esi, esi
je 0x464b39
push dword [esi + 0x18]
call dword [0x5007b0]
push dword [esi + 0x14]
call dword [0x5007b0]
mov edi, dword [esi + 0x1c]
push esi
call dword [0x5007b0]
add esp, 0xc
mov esi, edi
test edi, edi
jne 0x464b14
xor esi, esi
jmp 0x464b7f
push dword [edi + 0x18]
mov ebx, 8
call dword [0x5007b0]
push edi
call dword [0x5007b0]
add esp, 8
jmp 0x464afe
push edi
mov ebx, 8
call dword [0x5007b0]
add esp, 4
jmp 0x464afe
mov ebx, 8
jmp 0x464afe
test esi, esi
jne 0x464b7f
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
Function at 0x466650
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, edx
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x46667b
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x46666e
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 8]
push 1
push edi
call ecx
jmp 0x4666af
cmp dword [esi + 8], 0
jne 0x4666a0
push 0x4e9f70
push dword [eax + 8]
call dword [sym.imp.MSVCR120.dll_fopen]
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4666a0
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.MSVCR120.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4666d2
mov eax, dword [esi + 8]
test eax, eax
je 0x4666cc
push eax
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x468830
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [eax + 0x1d4]
mov dword [ebp - 4], eax
test eax, eax
jne 0x468859
mov eax, dword [ebx + 0x28]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
mov eax, 0x10624dd3
mov edi, edx
shr edi, 6
imul ecx, edi, 0x3e8
sub esi, ecx
imul ecx, esi, 0x3e8
mov esi, dword [ebx + 0x20]
sub esi, edi
sub ecx, dword [ebx + 0x24]
mov ebx, dword [ebp - 8]
imul ecx
imul ecx, esi, 0x3e8
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
add ecx, dword [ebp - 4]
cmp dword [ebx + 0x1c8], 0
mov dword [ebp - 4], ecx
je 0x46890e
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
mov eax, 0x10624dd3
mov edi, edx
mov edx, dword [ebp - 0xc]
shr edi, 6
imul ecx, edi, 0x3e8
sub esi, ecx
imul ecx, esi, 0x3e8
mov esi, dword [edx + 0x144]
sub esi, edi
sub ecx, dword [edx + 0x148]
imul ecx
imul eax, esi, 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
add eax, dword [ebx + 0x1c8]
cmp dword [ebp - 4], eax
cmovl eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4690c0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x10]
mov esi, edx
push eax
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x469105
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov ecx, esi
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x469110
push 0
sub ecx, edx
push ecx
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [ebp - 8]
push 0
push eax
push 0
push 2
push dword [ebp - 0xc]
mov dword [ebp - 8], 0
call esi
cmp dword [ebp - 8], 0x10
jne 0x469156
push 0
lea eax, [ebp - 8]
push eax
push edi
push 2
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x469164
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x469174
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
Function at 0x46ab10
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
push esi
push edi
push 0xf0000000
push 1
push 0
push 0
push eax
mov esi, edx
mov dword [ebp - 0xc], 8
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x46aba3
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movdqu xmmword [ebp - 0x24], xmm0
lea edx, [ebp - 0x18]
mov word [ebp - 0x24], 0x208
mov ecx, ebx
mov dword [ebp - 0x20], 0x6601
mov dword [ebp - 0x1c], 8
call fcn.0046aa80
mov ecx, edx
call fcn.0046bc10
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x46abb6
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
push dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046bea8
mov esp, ebp
pop ebp
ret