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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x18]
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [eax], ecx
mov eax, dword [ebp + 8]
xor edi, edi
mov esi, 0x493e0
mov edx, dword [eax]
xor eax, eax
mov dword [ebp - 8], edx
mov ecx, dword [edx + 0x640]
test ecx, ecx
mov edx, dword [edx + 0x644]
setg al
test edx, edx
jle 0x56afbf
or eax, 2
sub eax, 1
je 0x56afd7
sub eax, 1
je 0x56b06e
sub eax, 1
jne 0x56afde
cmp ecx, edx
cmovge ecx, edx
mov eax, ecx
cdq
mov esi, eax
mov edi, edx
lea eax, [ebp - 0x18]
push eax
call fcn.00575cf0
mov edx, dword [ebp - 8]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmm0, xmmword [edx + 0xb40]
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.0057b020
add esp, 0x20
sub esi, eax
mov eax, esi
sbb edi, edx
or eax, edi
je 0x56b0a7
test edi, edi
jl 0x56b0a7
jg 0x56b028
test esi, esi
jb 0x56b0a7
push edi
mov edi, dword [ebp + 0xc]
push esi
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call fcn.00579bc0
add esp, 0x14
test eax, eax
jle 0x56b09d
mov esi, dword [ebp + 0x10]
push 0
push ebx
push esi
push edi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x56b075
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x56af96
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edx
jmp 0x56afd9
cmp ebx, eax
je 0x56b08c
test eax, eax
je 0x56b09d
add esi, eax
sub ebx, eax
add dword [ebp - 4], eax
mov dword [ebp + 0x10], esi
jmp 0x56af96
mov ecx, dword [ebp + 0x18]
add eax, dword [ebp - 4]
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 0x570160
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
push esi
xor esi, esi
mov dword [ebp - 8], esi
mov dword [eax], esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x570315
push ebx
mov ebx, dword [ebp - 0xc]
push edi
test ebx, ebx
je 0x570300
nop dword [eax]
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x5701af
mov eax, 0x10
jmp 0x5701bd
cmp eax, 0x17
jne 0x570271
mov eax, 0x1c
cmp dword [ebx + 0x18], 0
mov dword [ebp - 4], eax
je 0x570271
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x570271
cmp ecx, eax
jb 0x570271
push 0x20
call dword [0x7f1528]
mov edi, eax
add esp, 4
test edi, edi
je 0x5702f5
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]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
push eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
call dword [0x7f1528]
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x5702e4
push dword [ebp - 4]
push dword [ebx + 0x18]
push eax
call fcn.006c1de0
mov eax, dword [ebx + 0x14]
add esp, 0xc
test eax, eax
je 0x57025f
push eax
call dword [0x7f1534]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x5702ca
mov eax, dword [ebp - 8]
test esi, esi
cmove esi, edi
test eax, eax
je 0x57026e
mov dword [eax + 0x1c], edi
mov dword [ebp - 8], edi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x5701a0
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x57028d
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x5702fc
test esi, esi
je 0x5702ba
push dword [esi + 0x18]
call dword [0x7f152c]
push dword [esi + 0x14]
call dword [0x7f152c]
mov edi, dword [esi + 0x1c]
push esi
call dword [0x7f152c]
add esp, 0xc
mov esi, edi
test edi, edi
jne 0x570295
mov eax, dword [ebp + 0x14]
xor esi, esi
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push dword [edi + 0x18]
mov ebx, 8
call dword [0x7f152c]
push edi
call dword [0x7f152c]
add esp, 8
jmp 0x57027f
push edi
mov ebx, 8
call dword [0x7f152c]
add esp, 4
jmp 0x57027f
mov ebx, 8
jmp 0x57027f
test esi, esi
jne 0x57030c
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x574100
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [0x7f1548]
cmp eax, 0xffffffff
jne 0x57413e
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x574128
xor eax, eax
test eax, eax
mov dword [0x7f1548], eax
setg al
ret
push eax
mov dword [0x7f1548], 1
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [0x7f1548]
test eax, eax
setg al
ret

Function at 0x575eb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c0
cmp byte [0x9f838b], 0
jne 0x575ed2
call fcn.005e1110
test eax, eax
je 0x575ed8
mov byte [0x9f838b], 1
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x9c0]
test eax, eax
je 0x575efc
push 0x400
push eax
call fcn.005e1c60
add esp, 8
call fcn.005e1110
test eax, eax
jne 0x575ed2
push ebx
push esi
push edi
nop
mov ebx, 2
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc0]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
nop dword [eax + eax]
lea eax, [ebp - 0x40]
push eax
call fcn.00575cf0
add esp, 4
movups xmm0, xmmword [eax]
push 1
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x50]
push eax
call fcn.00575cf0
mov esi, dword [eax + 8]
lea eax, [ebp - 0x60]
push eax
call fcn.00575cf0
add esp, 8
mov ecx, eax
mov eax, esi
inc ebx
cdq
mov dword [ebp - 0x10], ebx
add eax, dword [ecx]
push 0
adc edx, dword [ecx + 4]
push ebx
push edx
push eax
call fcn.006bfff0
movups xmm1, xmmword [ebp - 0x30]
mov esi, dword [ebp - 4]
mov edi, eax
mov ebx, edx
dec esi
movaps xmm0, xmm1
movd eax, xmm1
psrldq xmm0, 4
movd ecx, xmm0
shld ebx, edi, 8
push ecx
push eax
push 0
push esi
shl edi, 8
call fcn.006bfff0
xor edi, eax
xor ebx, edx
lea eax, [ebp - 0x70]
mov dword [ebp - 0x20], edi
push eax
mov dword [ebp - 0x1c], ebx
call fcn.00575cf0
lea esi, [eax + 8]
lea eax, [ebp - 0x80]
push eax
call fcn.00575cf0
mov edx, dword [ebp - 4]
add esp, 8
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 4], ebx
mov ecx, dword [eax]
add ecx, dword [esi]
lea eax, [edx + 2]
imul edx, dword [ebp - 0x18]
imul ecx, eax
mov eax, dword [ebp - 8]
shl ecx, 0x10
xor ecx, edx
mov dword [ebp - 0x18], ecx
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [eax], xmm0
add eax, 0x10
sub dword [ebp - 0xc], 1
mov dword [ebp - 8], eax
jne 0x575f20
movsd xmm0, qword [0x757358]
lea eax, [ebp - 0xc0]
sub esp, 8
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.005e0f20
add esp, 0x10
call fcn.005e1110
test eax, eax
je 0x575f00
lea eax, [ebp - 0x1c0]
mov byte [ebp - 0x1c0], 0
push 0x100
push eax
call fcn.005e1aa0
add esp, 8
cmp byte [ebp - 0x1c0], 0
pop edi
pop esi
pop ebx
je 0x57606d
lea eax, [ebp - 0x1c0]
push 0x400
push eax
call fcn.005e1c60
add esp, 8
call fcn.005e1110
test eax, eax
jne 0x575ed2
push str.libcurl_is_now_using_a_weak_random_seed__n
push dword [ebp + 8]
call fcn.005738f0
add esp, 8
call fcn.005e1110
neg eax
sbb eax, eax
and eax, 0xffffffdd
add eax, 0x23
mov esp, ebp
pop ebp
ret
Function at 0x5794c0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + ecx*4 + 0x1a8]
lea esi, [ebx + 0x1cc]
mov dword [ebp + 0xc], eax
mov eax, ecx
shl eax, 4
add esi, eax
mov eax, dword [ebx + 0x2a8]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x579585
cmp dword [ebx + ecx*4 + 0x1bc], 0x578ac0
jne 0x579585
cmp dword [esi], 0
je 0x579515
test edi, edi
je 0x579585
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 0xc]
call fcn.00579bc0
add esp, 0x14
cmp eax, 0xffffffff
je 0x579585
test al, 1
je 0x579585
mov ecx, dword [esi]
test ecx, ecx
jne 0x57956c
mov eax, dword [ebx]
mov eax, dword [eax + 0x8e4]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x7f1528]
mov edi, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
jne 0x57956c
mov dword [esi + 4], eax
jmp 0x579585
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x579585
add dword [esi + 8], eax
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x5795f8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x5795c5
mov dword [edi], 0x51
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x80]
push eax
push ebx
call fcn.0057ae20
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.0056f390
mov eax, dword [ebp + 8]
add esp, 0x18
mov eax, dword [eax]
mov dword [eax + 0xcac], ebx
mov dword [edi], 0x37
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x57b260
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x90], 2
mov ebx, dword [esi]
je 0x57b420
test dword [esi + 0x284], 0x8000002
push edi
jne 0x57b416
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x180]
mov dword [ebp + 8], 0x80
push eax
push edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x57b2dc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x80]
push 0x80
push eax
push esi
call fcn.0057ae20
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0056f390
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x100]
mov dword [ebp + 8], 0x80
push 0
push eax
call fcn.006c2360
add esp, 0xc
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x100]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x57b33d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x80]
push 0x80
push eax
push esi
call fcn.0057ae20
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0056f390
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x138]
push eax
lea edi, [esi + 0x10a]
lea eax, [ebp - 0x180]
push edi
push eax
call fcn.00584ad0
add esp, 0xc
test al, al
jne 0x57b393
call fcn.006cc762
mov esi, dword [eax]
call fcn.006cc762
mov edi, eax
lea eax, [ebp - 0x80]
push 0x80
push eax
push esi
call fcn.0057ae20
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0056f390
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x28]
movups xmmword [esi + 0x5c], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esi + 0x6c], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [esi + 0x7c], xmm0
mov dword [esi + 0x84], eax
mov ax, word [edi + 0x2c]
mov word [esi + 0x88], ax
lea eax, [esi + 0x16c]
push eax
lea eax, [esi + 0x13c]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00584ad0
add esp, 0xc
test al, al
jne 0x57b416
call fcn.006cc762
mov esi, dword [eax]
call fcn.006cc762
mov edi, eax
lea eax, [ebp - 0x80]
push 0x80
push eax
push esi
call fcn.0057ae20
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0056f390
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00576740
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x57dcd0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x57dda0
lea eax, [ebp + 8]
push eax
push esi
call fcn.00585620
add esp, 8
test eax, eax
jne 0x57dda0
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.005856e0
add esp, 8
test eax, eax
jne 0x57dda0
mov edx, esi
push edi
xor edi, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x57dd14
sub edx, ecx
je 0x57dd4d
lea ecx, [esi - 1]
add ecx, edx
cmp ecx, esi
jb 0x57dd4d
cmp byte [ecx], 0x2e
je 0x57dd34
dec ecx
cmp ecx, esi
jae 0x57dd28
jmp 0x57dd4d
mov eax, ecx
sub eax, esi
je 0x57dd4b
lea eax, [ecx - 1]
cmp eax, esi
jb 0x57dd4b
cmp byte [eax], 0x2e
je 0x57dd95
dec eax
cmp eax, esi
jae 0x57dd41
xor edi, edi
test edi, edi
mov ecx, 0x1505
cmovne esi, edi
lea edi, [edx + esi]
cmp esi, edi
jae 0x57dd8c
push ebx
nop
mov bl, byte [esi]
mov eax, ecx
shl ecx, 5
add ecx, eax
mov dword [ebp + 8], ecx
lea eax, [ebx - 0x20]
lea edx, [ebx - 0x61]
movzx ecx, al
cmp dl, 0x19
movzx eax, bl
cmova ecx, eax
inc esi
movsx eax, cl
mov ecx, dword [ebp + 8]
xor ecx, eax
cmp esi, edi
jb 0x57dd60
pop ebx
pop edi
movzx eax, cl
pop esi
mov esp, ebp
pop ebp
ret
lea edi, [eax + 1]
mov eax, esi
sub eax, edi
add edx, eax
jmp 0x57dd4d
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x57f3d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
lea esi, [ebx + 1]
push esi
push ebx
call dword [0x7f1530]
mov edi, eax
add esp, 8
test edi, edi
je 0x57f42a
nop dword [eax]
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x57f446
cmp esi, ebx
je 0x57f446
cmp esi, 0x8000
ja 0x57f446
cmp esi, ebx
jb 0x57f43d
push esi
push edi
call dword [0x7f1530]
mov edi, eax
add esp, 8
test edi, edi
jne 0x57f3f0
mov ebx, dword [ebp - 4]
push ebx
call dword [0x7f152c]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [0x7f152c]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x584cd0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x9f8350]
sub esp, 0x22c
mov ecx, eax
inc eax
mov dword [0x9f8350], eax
push ebx
test ecx, ecx
jne 0x584f3b
cmp byte [ebp + 0xc], cl
je 0x584d26
mov dword [fcn.006d3e6b], 0x6d3e6b
mov dword [fcn.006d12cc], 0x6d12cc
mov dword [fcn.006dd428], 0x6dd428
mov dword [0x7f1534], 0x6e21af
mov dword [fcn.006d12c1], 0x6d12c1
cmp byte [0x9f84b8], 0
jne 0x584d44
mov eax, dword [0x7f153c]
mov byte [0x9f84b8], 1
mov eax, dword [eax + 0x10]
call eax
test eax, eax
je 0x584d79
mov ebx, dword [ebp + 8]
test bl, 2
je 0x584d83
lea eax, [ebp - 0x22c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x584d79
mov eax, dword [ebp - 0x22c]
cmp al, 2
jne 0x584d73
shr eax, 8
cmp al, 2
je 0x584d83
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x9c
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.006c2360
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
mov dword [ebp - 0x9c], 0x9c
mov dword [ebp - 0x98], 6
mov dword [ebp - 0x94], 0
push 3
push 2
push 0
push 0
mov dword [ebp - 0x8c], 2
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push 1
push 8
push edx
push eax
call esi
push edx
push eax
push 0x33
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x584e1b
push 0xf2e920
mov byte [0xf2e918], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
jmp 0x584e22
mov byte [0xf2e918], 0
call fcn.00574100
mov eax, dword [0x9f8348]
test bl, 4
mov ecx, 1
mov dword [0x9f8354], ebx
cmovne eax, ecx
cmp byte [0x9f8389], 0
mov dword [0x9f8348], eax
jne 0x584ee1
mov eax, dword [0x755cc8]
movq xmm0, qword [str.libcurl_7.64.1]
mov dword [0x9f83a8], eax
mov ax, word [0x755ccc]
mov word [0x9f83ac], ax
mov al, byte [0x755cce]
mov byte [0x9f83ae], al
mov eax, 0x9f83a0
movq qword [0x9f83a0], xmm0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x584e87
sub eax, edx
mov esi, 0xc8
sub esi, eax
push edi
lea edi, [eax + 0x9f83a0]
cmp esi, 1
jbe 0x584ec4
lea eax, [esi - 1]
push eax
lea eax, [edi + 1]
push eax
mov eax, dword [0x7f153c]
mov eax, dword [eax + 0x18]
call eax
add esp, 8
test eax, eax
je 0x584ec4
inc eax
mov byte [edi], 0x20
sub esi, eax
add edi, eax
call fcn.004af930
push eax
push str._zlib__s
push esi
push edi
call fcn.0057f840
add esp, 0x10
mov byte [0x9f8389], 1
pop edi
cmp byte [0x9f838a], 0
pop esi
jne 0x584f3b
mov eax, dword [0x7f153c]
push 0x50
push 0x9f8468
mov eax, dword [eax + 0x18]
call eax
mov eax, dword [0x7f153c]
add esp, 8
mov dword [0x7f1564], 0x9f8468
test byte [eax + 8], 0x10
je 0x584f20
or dword [0x7f1560], 0x200000
jmp 0x584f2a
and dword [0x7f1560], 0xffdfffff
call fcn.004af930
mov dword [0x7f156c], eax
mov byte [0x9f838a], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x585b70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x50
push 1
call dword [0x7f1538]
mov edi, dword [ebp + 8]
mov ebx, eax
add esp, 8
mov dword [ebp - 4], 0xc
mov dword [edi + 0x340], ebx
test ebx, ebx
je 0x585d5a
mov esi, dword [ebp + 0x10]
lea eax, [ebx + 0x10]
and dword [edi + 0x344], 0xfffffffe
push 0x3c
push 0
mov dword [edi + 0x334], esi
mov dword [edi + 0x33c], 0
mov dword [edi + 0x338], 0
push eax
mov dword [ebx], 0
call fcn.006c2360
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x1c], esi
lea esi, [ebx + 0x10]
mov dword [ebx + 0x48], ebx
mov dword [esi + 4], 1
movups xmm0, xmmword [eax]
push 0x18
movups xmmword [esi + 0x18], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x28], xmm0
call dword [0x7f1528]
add esp, 0x10
mov dword [esi], eax
test eax, eax
je 0x585d40
push 1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
push dword [ebp + 0xc]
mov dword [esi + 0x10], 0
call dword [0x7f1534]
add esp, 4
mov dword [esi + 8], eax
test eax, eax
je 0x585d40
push dword [edi + 0x330]
call dword [0x7f152c]
push dword [ebp + 0xc]
call dword [0x7f1534]
add esp, 8
mov dword [edi + 0x330], eax
test eax, eax
je 0x585c9f
push 0
push 0
push esi
push 0x584c20
push 0
push 0
mov dword [ebx + 0x14], 0
call fcn.006d268b
add esp, 0x18
test eax, eax
je 0x585c88
cmp eax, 0xffffffff
je 0x585c88
pop edi
mov dword [ebx], eax
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx], 0
mov dword [ebx + 0x14], 1
call fcn.006cc762
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov ebx, dword [edi + 0x340]
test ebx, ebx
je 0x585d0a
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebx + 0x14]
push dword [ebx + 0x10]
mov dword [ebx + 0x14], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
jne 0x585cd3
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x585d0a
mov eax, dword [ebx]
test eax, eax
je 0x585cf2
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
lea eax, [ebx + 0x10]
push eax
call fcn.00581370
push dword [edi + 0x340]
call dword [0x7f152c]
add esp, 8
push dword [edi + 0x330]
mov dword [edi + 0x340], 0
call dword [0x7f152c]
add esp, 4
mov dword [edi + 0x330], 0
call fcn.006cc762
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [eax], ecx
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00581370
push ebx
mov dword [edi + 0x340], 0
call dword [0x7f152c]
add esp, 8
call fcn.006cc762
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [eax], ecx
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x59a300
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0x24
mov ecx, dword [0xf2db10]
push esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0xf0a730]
mov esi, dword [ebp + 8]
push edi
cmp eax, dword [ecx + 0x5ac]
jg 0x59a371
mov edi, dword [0xf0a72c]
test esi, esi
je 0x59a341
lea eax, [edi - 1]
test esi, eax
je 0x59a343
dec esi
not eax
add esi, edi
and esi, eax
jmp 0x59a343
mov esi, edi
push 1
push 0x2000
lea eax, [edi + esi]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x59a36b
push 4
push 0x1000
push esi
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0xf0a730
call fcn.006bff11
add esp, 4
cmp dword [0xf0a730], 0xffffffff
jne 0x59a327
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
push 0xf0a730
mov dword [0xf0a72c], eax
call fcn.006bfec7
add esp, 4
jmp 0x59a327

Function at 0x59a5a0
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6fc1b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
call fcn.0059a540
mov edi, eax
mov dword [ebp - 0x10], edi
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebx]
cmp edx, dword [ecx]
jne 0x59a648
mov eax, ebx
shr eax, 0x10
xor eax, ebx
imul ecx, eax, 0x85ebca6b
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul eax, eax, 0xc2b2ae35
mov ecx, eax
shr ecx, 0x10
xor ecx, eax
xor esi, esi
mov dword [ebp + 8], ecx
nop word [eax + eax]
lea eax, [esi + ecx]
and eax, 0x3fff
lea edi, [edi + eax*8]
add edi, 8
mov edx, dword [edi]
test edx, edx
je 0x59a629
cmp edx, 0xffffffff
jne 0x59a638
mov ecx, ebx
mov eax, edx
lock cmpxchg dword [edi], ecx
cmp eax, edx
je 0x59a660
mov ecx, dword [ebp + 8]
cmp edx, ebx
je 0x59a660
mov edi, dword [ebp - 0x10]
inc esi
cmp esi, 0x4000
jb 0x59a610
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lock inc dword [edi + 4]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
mov eax, dword [esi + 4]
mov ecx, dword [0xf2db10]
mov dword [ebp + 8], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0xf0a740]
cmp eax, dword [ecx + 0x5ac]
jg 0x59a6af
push 0
push 0
push ebx
push dword [ebp + 8]
call dword [0xf0a73c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0xf0a740
call fcn.006bff11
add esp, 4
cmp dword [0xf0a740], 0xffffffff
jne 0x59a690
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push str.NtWaitForKeyedEvent
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0xf0a740
mov dword [0xf0a73c], esi
call fcn.006bfec7
add esp, 4
jmp 0x59a690