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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x65e374]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], ebx
mov dword [esi], ebx
lea esi, [ebp - 8]
push esi
push eax
push edx
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x55db4f
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x55db3b
cmp dword [edi + 4], 2
jne 0x55dada
cmp dword [edi + 0x18], 0
je 0x55dada
mov eax, dword [edi + 0x10]
test eax, eax
je 0x55dada
cmp eax, 0x10
jb 0x55dada
push 0x20
call dword [0x65ede0]
mov esi, eax
add esp, 4
test esi, esi
je 0x55db30
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x65ede0]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x55db1f
mov ecx, dword [edi + 0x18]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x55dac8
push eax
call dword [0x65edec]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x55db05
mov eax, dword [ebp - 0xc]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x55dad7
mov dword [eax + 0x1c], esi
mov dword [ebp - 0xc], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x55da26
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
test eax, eax
je 0x55daf6
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x55db37
mov ecx, ebx
call fcn.0055d9a0
xor ebx, ebx
jmp 0x55db47
push dword [esi + 0x18]
mov edi, 8
call dword [0x65ede8]
push esi
call dword [0x65ede8]
add esp, 8
jmp 0x55dae8
push esi
mov edi, 8
call dword [0x65ede8]
add esp, 4
jmp 0x55dae8
mov edi, 8
jmp 0x55dae8
test ebx, ebx
jne 0x55db47
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 0x14]
mov dword [eax], ebx
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005b8427
mov esp, ebp
pop ebp
ret

Function at 0x55dd40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x65e374]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.005e25c9
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x55dda4
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x55dda4
lea eax, [ebp - 0x108]
push eax
call dword [0x65edec]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
Function at 0x560200
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
mov dword [ebp - 0x20], edx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], esi
mov dword [eax], esi
mov edx, dword [ecx]
xor eax, eax
mov dword [ebp - 0xc], edx
mov ebx, 0x493e0
mov dword [ebp - 4], 0
mov ecx, dword [edx + 0x208]
test ecx, ecx
mov edx, dword [edx + 0x20c]
setg al
test edx, edx
jle 0x560250
or eax, 2
sub eax, 1
je 0x560268
sub eax, 1
je 0x560352
sub eax, 1
jne 0x560270
cmp ecx, edx
cmovge ecx, edx
mov eax, ecx
cdq
mov ebx, eax
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
mov eax, dword [ebp - 0xc]
shr edx, 6
imul ecx, edx, 0x3e8
push 0
movups xmm0, xmmword [eax + 0x730]
push 0x3e8
sub esi, ecx
movd ecx, xmm0
psrldq xmm0, 4
movd eax, xmm0
imul esi, esi, 0x3e8
sub ecx, edx
sbb eax, 0
push eax
push ecx
call fcn.005b8cf0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], edx
movups xmm0, xmmword [eax + 0x730]
mov eax, 0x10624dd3
psrldq xmm0, 8
movd ecx, xmm0
sub esi, ecx
mov ecx, dword [ebp - 0x18]
imul esi
mov esi, dword [ebp - 0x1c]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
sub ecx, eax
sbb esi, edx
add ecx, ebx
mov eax, ecx
adc esi, dword [ebp - 4]
or eax, esi
je 0x56039a
test esi, esi
jl 0x56039a
jg 0x560312
test ecx, ecx
jb 0x56039a
mov ebx, dword [ebp - 0x20]
or edx, 0xffffffff
push esi
push ecx
push 0xffffffffffffffff
mov ecx, ebx
call fcn.00545cb0
add esp, 0xc
test eax, eax
jle 0x560390
mov esi, dword [ebp - 0x10]
push 0
push edi
push esi
push ebx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x560359
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x560373
mov ecx, dword [ebp - 0x14]
jmp 0x560225
mov eax, edx
jmp 0x56026a
cmp edi, eax
je 0x56037f
test eax, eax
je 0x560390
mov ecx, dword [ebp - 0x14]
add esi, eax
sub edi, eax
mov dword [ebp - 0x10], esi
add dword [ebp - 8], eax
jmp 0x560225
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x24]
add eax, dword [ebp - 8]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x1c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x566110
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x65e374]
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 + 0x470]
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 0x566194
push dword [ebp - 8]
lea eax, [ebp - 0x88]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.005cfab0
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x5661c7
push str.Received_too_short_packet
push edi
call fcn.00543790
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.005b8427
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax]
movzx eax, byte [eax + 1]
shl ecx, 8
or ecx, eax
mov dword [esi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x5661e8
jmp dword [ecx*4 + 0x56632c]
cmp edx, 4
jle case.0x5661e8.4
mov ebx, dword [esi + 0x15c]
movzx ecx, byte [ebx + 2]
movzx eax, byte [ebx + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [esi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x5661e8.4
mov ecx, dword [ebp - 0x8c]
lea eax, [edx - 4]
push eax
lea eax, [ebx + 4]
mov edx, 1
push eax
call fcn.00543fd0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x56625b
mov edx, 5
mov ecx, esi
call fcn.00565e60
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
mov ecx, edi
sub eax, 4
cdq
add dword [edi + 0x90], eax
adc dword [edi + 0x94], edx
push dword [edi + 0x94]
push dword [edi + 0x90]
call fcn.00557a60
add esp, 8
jmp case.0x5661e8.4
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
mov eax, dword [esi + 0x15c]
add eax, 4
mov dword [esi + 8], ecx
push eax
push 0x63ac8c
push edi
call fcn.00543710
jmp 0x5662f2
lea eax, [edx - 2]
mov ecx, esi
mov edx, dword [esi + 0x15c]
push eax
add edx, 2
call fcn.00564fc0
add esp, 4
test eax, eax
je case.0x5661e8.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x62deb8
push edi
call fcn.00543790
add esp, 0xc
mov ecx, dword [ebp - 0x8c]
call fcn.00557c80
test eax, eax
je 0x5661b4
mov edx, 5
mov ecx, esi
call fcn.00565e60
mov ecx, dword [ebp - 4]
mov eax, 0x2a
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b8427
mov esp, ebp
pop ebp
ret
Function at 0x568900
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push edi
mov eax, dword [eax + 0x150]
mov dword [ebp - 0xc], eax
cmp edx, 0x1f
jne 0x568a5c
lea ebx, [eax + 0x1cb0]
lea edi, [eax + 0x1eb0]
mov dword [edi], ebx
cmp ebx, edi
jae 0x568940
mov byte [ebx], 0xff
inc dword [edi]
mov ecx, dword [edi]
jmp 0x568942
mov ecx, ebx
cmp ecx, edi
jae 0x568956
mov byte [ecx], 0xfa
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x568956
mov byte [ecx], 0x1f
inc dword [edi]
movzx eax, word [eax + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x1caa]
push eax
call esi
mov edx, dword [ebp - 8]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x5689c1
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x5689c1
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x5689c1
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x5689c1
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x5689c1
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x5689c1
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov esi, dword [ebp - 0xc]
mov edx, 0x3e
mov dword [edi], ebx
mov edi, dword [ebp - 0x10]
mov ecx, edi
mov dword [esi + 0x1eb4], eax
sub eax, ebx
sub eax, 2
push eax
lea eax, [esi + 0x1cb2]
push eax
call fcn.00568060
mov eax, dword [ebp - 4]
add esp, 8
push 0
push 3
push ebx
push dword [eax + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x568a1a
call ebx
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00543790
add esp, 0xc
mov ecx, dword [ebp - 4]
lea edx, [esi + 0x1cb3]
push 4
call fcn.00569360
add esp, 4
lea eax, [esi + 0x1cb7]
push 0
push 2
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x568a5c
call ebx
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00543790
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x56dcd0
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x65e374]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xc], 0x10
push edi
or ebx, 0xffffffff
mov eax, dword [esi]
mov edi, dword [esi + 0x1ac]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x56dd25
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x10
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
cmp dword [esi + 0x40], 0
je 0x56dd43
cmp edi, dword [esi + 0x1ac]
jne 0x56dd7e
cmp byte [esi + 0x1b9], 0
je 0x56dd7e
mov byte [esi + 0x1b9], 0
mov edx, edi
mov ecx, esi
call fcn.005429c0
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp ebx, 0xffffffff
jne 0x56dd95
push str.Error_accept__ing_server_connect
push dword [ebp - 8]
call fcn.00543790
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
mov edx, edi
mov ecx, esi
call fcn.005429c0
mov eax, dword [esi + 0x40]
push edi
push dword [esi + 0x44]
call eax
add esp, 8
jmp 0x56dd53
mov edi, dword [ebp - 8]
push str.Connection_accepted_from_server_n
push edi
call fcn.00543710
add esp, 8
mov byte [esi + 0x270], 0
lea eax, [ebp - 8]
mov dword [esi + 0x1ac], ebx
mov dword [ebp - 8], 1
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov byte [esi + 0x1b9], 1
mov eax, dword [edi + 0x1d8]
test eax, eax
je 0x56de26
push 1
push ebx
push dword [edi + 0x1dc]
call eax
add esp, 0xc
test eax, eax
je 0x56de26
mov edx, dword [esi + 0x1ac]
cmp edx, 0xffffffff
je 0x56de09
mov ecx, esi
call fcn.00545c60
mov dword [esi + 0x1ac], 0xffffffff
mov byte [esi + 0x272], 0
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
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.005b8427
mov esp, ebp
pop ebp
ret
Function at 0x56ffb0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [edx - 0xc8]
push ebx
mov ebx, ecx
push esi
xor esi, esi
push edi
mov ecx, dword [ebx]
cmp eax, 0x64
jb 0x56ffe2
push str.Couldnt_set_desired_mode
push ecx
call fcn.00543790
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edx, 0xc8
je 0x56fff9
push edx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ecx
call fcn.00543710
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x13
jne 0x570011
mov ecx, ebx
call fcn.0056f110
mov esi, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x14
jne 0x570137
mov eax, dword [ebx]
xor edi, edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
cmp dword [eax + 0x4d0], 2
mov esi, dword [eax + 0x4b14]
jne 0x570092
test esi, esi
je 0x570092
cmp byte [esi], 0
je 0x570092
push 0x2f
push esi
call fcn.005cf910
add esp, 8
test eax, eax
je 0x57008f
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x570050
sub ecx, edx
cmp byte [ecx + esi - 1], 0x2f
je 0x57006f
push 0x2f
push esi
call fcn.005d1920
mov ecx, eax
add esp, 8
sub ecx, esi
push 0
push 0
lea eax, [ebp - 4]
mov edx, esi
push eax
push ecx
call fcn.0055fd40
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x570155
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x540]
test ecx, ecx
jne 0x5700b0
cmp byte [eax + 0x4e6], 0
mov ecx, str.NLST
mov edx, str.LIST
cmove ecx, edx
mov edx, 0x6292df
test edi, edi
mov eax, edx
cmovne eax, edi
push eax
mov eax, 0x62f198
cmove eax, edx
push eax
push ecx
push 0x63a7d4
call sym.PayClient.exe_curl_maprintf
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
jne 0x5700f3
push edi
call dword [0x65ede8]
mov esi, 0x1b
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
lea eax, [ebx + 0x470]
push 0x62deb8
push eax
call fcn.005784b0
add esp, 0xc
mov esi, eax
push edi
call dword [0x65ede8]
add esp, 4
push dword [ebp - 8]
call dword [0x65ede8]
add esp, 4
test esi, esi
jne 0x570155
mov dword [ebx + 0x4e8], 0x1f
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x15
jne 0x570140
push 0xd
jmp 0x570147
cmp eax, 0x16
jne 0x570155
push 0xe
mov dl, 1
mov ecx, ebx
call fcn.0056f490
add esp, 4
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x576db0
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 [0x65e374]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 8
push eax
mov edi, edx
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x576e9a
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], 0x208
mov dword [ebp - 0x20], 0x6601
mov dword [ebp - 0x1c], 8
mov dl, byte [esi + 1]
mov cl, byte [esi]
mov al, dl
shr al, 1
mov byte [ebp - 0x18], cl
shl cl, 7
or al, cl
shl dl, 6
mov cl, byte [esi + 2]
mov byte [ebp - 0x17], al
mov al, cl
shr al, 2
or al, dl
shl cl, 5
mov dl, byte [esi + 3]
mov byte [ebp - 0x16], al
mov al, dl
shr al, 3
or al, cl
shl dl, 4
mov cl, byte [esi + 4]
mov byte [ebp - 0x15], al
mov al, cl
shr al, 4
or al, dl
shl cl, 3
mov dl, byte [esi + 5]
mov byte [ebp - 0x14], al
mov al, dl
shr al, 5
or al, cl
shl dl, 2
mov cl, byte [esi + 6]
mov byte [ebp - 0x13], al
mov al, cl
add cl, cl
shr al, 6
or al, dl
mov byte [ebp - 0x11], cl
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x12], al
call fcn.00579930
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]
pop esi
test eax, eax
jne 0x576eac
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
push dword [ebp - 0xc]
mov dword [edi], eax
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
lea eax, [ebp - 0xc]
push eax
push edi
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
xor ecx, ebp
pop ebx
call fcn.005b8427
mov esp, ebp
pop ebp
ret
Function at 0x576fb0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x65e374]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0x14], eax
mov esi, ebx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x576fd0
sub esi, ecx
lea eax, [esi + esi]
push eax
mov dword [ebp - 0x18], eax
call dword [0x65ede0]
mov edi, eax
add esp, 4
test edi, edi
jne 0x577003
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test esi, esi
je 0x577020
nop dword [eax]
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], 0
inc ecx
cmp ecx, esi
jb 0x577010
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x577091
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8002
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x577086
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x10], 0x10
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x14]
push edi
mov dword [eax + 0x10], 0
mov byte [eax + 0x14], 0
call dword [0x65ede8]
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.005b8427
mov esp, ebp
pop ebp
ret
Function at 0x578050
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [eax + 0x214]
mov dword [ebp - 4], eax
test eax, eax
jne 0x578079
mov eax, dword [esi + 0x30]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movups xmm1, xmmword [esi + 0x20]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
movaps xmm0, xmm1
movd esi, xmm1
psrldq xmm0, 8
psrldq xmm1, 4
push 0
mov eax, edx
shr eax, 6
mov dword [ebp - 0xc], eax
imul eax, eax, 0x3e8
push 0x3e8
sub ecx, eax
movd eax, xmm0
imul ecx, ecx, 0x3e8
sub ecx, eax
mov eax, 0x10624dd3
imul ecx
movd ecx, xmm1
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, dword [ebp - 0xc]
cdq
sbb ecx, 0
mov edi, eax
push ecx
push esi
mov ebx, edx
call fcn.005b8cf0
mov ecx, eax
mov esi, edx
mov eax, dword [ebp - 4]
sub ecx, edi
cdq
sbb esi, ebx
add ecx, eax
mov eax, dword [ebp - 8]
adc esi, edx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], esi
cmp dword [eax + 0x208], 0
je 0x5781a7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x10]
mov esi, eax
mov eax, 0x10624dd3
mul esi
movups xmm1, xmmword [ecx + 0x188]
movaps xmm0, xmm1
mov eax, edx
psrldq xmm0, 8
shr eax, 6
imul ecx, eax, 0x3e8
mov dword [ebp - 0xc], eax
mov eax, 0x10624dd3
push 0
push 0x3e8
sub esi, ecx
movd ecx, xmm0
imul edx, esi, 0x3e8
movd esi, xmm1
psrldq xmm1, 4
sub edx, ecx
movd ecx, xmm1
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, dword [ebp - 0xc]
cdq
sbb ecx, 0
mov edi, eax
push ecx
push esi
mov ebx, edx
call fcn.005b8cf0
mov ecx, eax
mov esi, edx
mov eax, dword [ebp - 8]
sub ecx, edi
sbb esi, ebx
mov eax, dword [eax + 0x208]
cdq
add ecx, eax
adc esi, edx
mov edx, dword [ebp - 0x14]
cmp edx, esi
jl 0x5781b2
jg 0x5781a7
mov eax, dword [ebp - 4]
cmp eax, ecx
jb 0x5781ab
mov edx, esi
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5788c0
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x5788f2
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
pop ebp
ret