joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4da690
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x65e374]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [edx + 0x28]
mov dword [ebp - 0x34], ecx
mov ecx, edi
mov dword [ebp - 0x38], eax
call fcn.004cd3c0
mov esi, dword [edi + 0x1c]
xor eax, eax
mov ecx, esi
add ecx, 0xffffffff
adc eax, 0xffffffff
test eax, eax
ja 0x4da773
jb 0x4da6dc
cmp ecx, 0x7ffffffe
ja 0x4da773
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
movsx eax, byte [edi + 0x44]
mov edx, dword [edi + 0x18]
mov eax, dword [edi + eax*4 + 0x78]
mov ecx, dword [eax + 0x3c]
movzx eax, word [edi + 0x20]
sub ecx, edx
cmp eax, ecx
cmovae eax, ecx
cmp esi, eax
ja 0x4da71d
mov eax, 0x1010
mov dword [ebp - 0x20], edx
mov word [ebp - 0x28], ax
mov dword [ebp - 0x24], esi
jmp 0x4da738
lea eax, [ebp - 0x30]
xor edx, edx
push eax
push esi
mov ecx, edi
call fcn.004d5410
add esp, 8
test eax, eax
jne 0x4da79c
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
push 0
push dword [ebp - 0x38]
mov ecx, esi
call fcn.004d99f0
add esp, 8
mov dword [ebx], eax
test dword [ebp - 0x28], 0x2460
jne 0x4da758
cmp dword [ebp - 0x18], 0
je 0x4da760
lea ecx, [ebp - 0x30]
call fcn.004d4a50
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
push 0x6376e4
push 0x1281e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
mov dword [ebx], 0
call fcn.004ba090
add esp, 0x14
mov eax, 0xb
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b8427
mov esp, ebp
pop ebp
ret
Function at 0x4e53a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
push 0
push 0x14
mov dword [ebx], 0
call fcn.004b7920
mov esi, eax
add esp, 8
test esi, esi
jne 0x4e53d0
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x6609bc], 0
mov edi, dword [ebp + 8]
je 0x4e541a
mov eax, dword [0x660ac0]
test eax, eax
je 0x4e53f3
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x4e541a
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x4ba320
push 0
push 0
mov dword [esi + 0xc], edi
call fcn.005d5fe0
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x4e5427
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x4e5440
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x10], eax
pop edi
mov dword [ebx], esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f5060
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], edx
mov edx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], edx
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x10], ecx
nop dword [eax]
xor eax, eax
mov dword [ebp - 0xc], eax
test ecx, ecx
jle 0x4f5109
nop dword [eax]
mov ebx, eax
xor ebx, 1
cmp eax, 2
cmovge ebx, eax
test edi, edi
je 0x4f5154
mov eax, dword [edx + 0x10]
mov ecx, ebx
add ecx, ecx
mov esi, edi
mov edx, dword [eax + ecx*8]
mov al, byte [edi]
movzx ecx, al
movzx edi, byte [ecx + 0x62ab18]
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x62ab18]
sub edi, ecx
jne 0x4f50f4
sub edx, dword [ebp + 8]
mov dword [ebp - 0x14], edx
nop
test al, al
je 0x4f514a
movzx ecx, byte [edx + esi + 1]
inc esi
movzx edx, byte [ecx + 0x62ab18]
mov al, byte [esi]
movzx ecx, al
movzx edi, byte [ecx + 0x62ab18]
sub edi, edx
mov edx, dword [ebp - 0x14]
je 0x4f50d0
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
inc eax
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp - 0x10]
jl 0x4f5090
mov dl, byte [esi]
movzx eax, dl
cmp byte [eax + 0x62ab18], 0x73
jne 0x4f5141
mov edi, str.sqlite_master
sub edi, esi
nop
test dl, dl
je 0x4f517e
movzx eax, byte [edi + esi + 1]
inc esi
movzx ecx, byte [eax + 0x62ab18]
mov dl, byte [esi]
movzx eax, dl
movzx eax, byte [eax + 0x62ab18]
sub eax, ecx
je 0x4f5120
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x4f50f4
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x18]
add ebx, ebx
push eax
mov eax, dword [edx + 0x10]
mov edx, esi
mov ecx, dword [eax + ebx*8 + 0xc]
add ecx, 8
call fcn.004bc130
add esp, 4
test eax, eax
je 0x4f50f7
mov eax, dword [eax + 8]
test eax, eax
jne 0x4f5143
jmp 0x4f50f7
mov edx, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 0x10]
test edi, edi
jne 0x4f5194
neg eax
sbb eax, eax
jmp 0x4f51a4
test eax, eax
je 0x4f5141
mov edx, eax
mov ecx, edi
call fcn.004bace0
mov edx, dword [ebp - 8]
test eax, eax
jne 0x4f5141
mov ecx, dword [ebp - 0x10]
mov esi, str.sqlite_temp_master
mov dword [ebp - 4], esi
jmp 0x4f5080
Function at 0x4f54e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, ecx
mov dword [ebp - 0xc], edx
push edi
xor ecx, ecx
xor edi, edi
mov dword [ebp - 4], ecx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x10], edx
test edx, edx
jle 0x4f55b6
mov edx, dword [eax + 0x10]
push ebx
mov dword [ebp - 0x14], edx
push esi
nop dword [eax]
mov eax, edi
xor eax, 1
cmp edi, 2
cmovge eax, edi
shl eax, 4
mov ecx, dword [eax + edx + 0xc]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4f5583
mov ebx, dword [eax + edx]
mov esi, ecx
mov al, byte [ecx]
movzx ecx, byte [ebx]
movzx edx, byte [ecx + 0x62ab18]
movzx ecx, al
movzx ecx, byte [ecx + 0x62ab18]
sub ecx, edx
jne 0x4f5571
sub ebx, esi
nop dword [eax]
test al, al
je 0x4f557f
movzx ecx, byte [ebx + esi + 1]
inc esi
movzx edx, byte [ecx + 0x62ab18]
mov al, byte [esi]
movzx ecx, al
movzx ecx, byte [ecx + 0x62ab18]
sub ecx, edx
je 0x4f5550
mov ecx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp - 0x10]
jge 0x4f55a6
mov edx, dword [ebp - 0x14]
jmp 0x4f5510
test ecx, ecx
jne 0x4f5571
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0xc]
add ecx, 0x18
push eax
call fcn.004bc130
add esp, 4
test eax, eax
je 0x4f55af
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x4f5574
pop esi
pop ebx
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x4f5574
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x538610
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x609de4
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x65e374]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0xf
mov byte [ebx + 0x18], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0xf
mov byte [ebx + 0x30], 0
mov dword [ebx + 0x78], 0
lea esi, [ebx + 0x7c]
mov byte [ebp - 4], 3
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0053d8b0
mov dword [esi], eax
push 6
mov byte [ebp - 4], 4
lea ecx, [ebx + 0x30]
push str.._log_
mov byte [ebx + 0x58], 0
call fcn.00403030
mov dword [ebx + 0x48], 1
mov eax, ebx
mov dword [ebx + 0x4c], 0x101
mov byte [ebx + 0x50], 1
mov dword [ebx + 0x54], 0x64
mov byte [ebx + 0x59], 1
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x538760
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x609e0b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x65e374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x230], ecx
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], 0xf
mov byte [ebp - 0x228], 0
mov dword [ebp - 4], edi
cmp dword [ecx], edi
je 0x538869
nop word [eax + eax]
push dword [ecx]
lea eax, [ebp - 0x210]
push 0x200
push 1
push eax
call fcn.005d5b61
mov ecx, dword [ebp - 0x214]
mov esi, eax
add esp, 0x10
mov eax, ecx
sub eax, edi
push esi
cmp esi, eax
ja 0x53882a
lea eax, [edi + esi]
cmp ecx, 0x10
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
add edi, eax
lea eax, [ebp - 0x210]
push eax
push edi
call fcn.005d0030
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x53884a
lea eax, [ebp - 0x210]
mov byte [ebp - 0x22c], 0
push eax
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x228]
push esi
call fcn.004039b0
cmp esi, 0x200
jne 0x538863
mov edi, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x230]
jmp 0x5387d0
mov eax, dword [ebp - 0x234]
movups xmm0, xmmword [ebp - 0x228]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x218]
movq qword [eax + 0x10], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret 4
Function at 0x53b430
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x53b43d
xor al, al
pop esi
ret
push edi
push 0
push 0x40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push 0
push 0
lea edi, [esi - 0x10]
mov dword [esi + 0xc], eax
push edi
push 0x5385f0
push 0
push 0
call fcn.005d5fe0
mov ecx, eax
add esp, 0x18
or ecx, 0
je 0x53b490
push 0xbb8
mov dword [edi + 8], eax
mov dword [edi + 0xc], 0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x53b49d
pop edi
mov al, 1
pop esi
ret
push str.log4z:_create_log4z_thread_error___r_n
call fcn.005384c0
add esp, 4
pop edi
xor al, al
pop esi
ret
Function at 0x53e660
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x65e374]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x53e6b5
mov eax, dword [esp]
cmp al, 2
jne 0x53e6af
shr eax, 8
cmp al, 2
jne 0x53e6af
xor eax, eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
mov eax, 2
xor ecx, esp
call fcn.005b8427
mov esp, ebp
pop ebp
ret

Function at 0x543aa0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + ecx*4 + 0x1a8]
lea esi, [edi + 0x1cc]
mov dword [esp + 0xc], eax
mov eax, ecx
shl eax, 4
add esi, eax
mov eax, dword [edi + 0x2a8]
mov ebx, dword [esi + 4]
sub ebx, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x543b6f
cmp dword [edi + ecx*4 + 0x1bc], 0x543c20
jne 0x543b6f
cmp dword [esi], 0
je 0x543af8
test ebx, ebx
je 0x543b6f
mov ecx, dword [esp + 0xc]
or edx, 0xffffffff
push 0
push 0
push 0xffffffffffffffff
call fcn.00545cb0
add esp, 0xc
cmp eax, 0xffffffff
je 0x543b6f
test al, 1
je 0x543b6f
mov ecx, dword [esi]
test ecx, ecx
jne 0x543b4c
mov eax, dword [edi]
mov eax, dword [eax + 0x4b8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x65ede0]
mov ebx, 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
je 0x543b68
mov eax, dword [esi + 8]
push 0
push ebx
add eax, ecx
push eax
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x543b6f
add dword [esi + 8], eax
jmp 0x543b6f
mov dword [esi + 4], 0
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x543bdc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0xc], eax
cmp eax, 0x2733
jne 0x543bb1
mov dword [ebx], 0x51
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, eax
mov ecx, edi
call fcn.0053fb90
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.00543790
mov eax, dword [edi]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov dword [eax + 0x48ac], ecx
mov dword [ebx], 0x37
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x544140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x1d0]
test eax, eax
je 0x544166
push dword [esi + 0x15c]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
cmp edx, 2
ja 0x54419a
push dword [esi + 0x158]
lea eax, [edx*2 + 0x62d094]
push 1
add eax, edx
push 2
push eax
call fcn.005d7fd4
push dword [esi + 0x158]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005d7fd4
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x544af0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x65e374]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov esi, edx
cmp dword [ebx + 0x94], 2
mov edi, dword [ebx]
mov dword [ebp - 0x10c], edi
je 0x544ce0
cmp byte [ebx + 0x266], 0
jne 0x544cd9
cmp byte [ebx + 0x282], 0
jne 0x544cd9
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x80
push eax
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x544b88
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, ebx
mov edx, esi
call fcn.0053fb90
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.00543790
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x88]
mov dword [ebp - 8], 0x80
push 0
push eax
call fcn.005d05b0
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x88]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x544bed
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, ebx
mov edx, esi
call fcn.0053fb90
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.00543790
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x138]
lea esi, [ebx + 0x10a]
push eax
mov edx, esi
lea ecx, [ebp - 0x108]
call fcn.00544a90
add esp, 4
test al, al
jne 0x544c4c
call fcn.005de15b
mov esi, dword [eax]
call fcn.005de15b
mov edx, esi
mov ecx, ebx
mov edi, eax
call fcn.0053fb90
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.00543790
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
lea edx, [ebx + 0x13c]
lea ecx, [ebp - 0x88]
movups xmmword [ebx + 0x60], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebx + 0x70], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [ebx + 0x80], xmm0
mov dword [ebx + 0x88], eax
mov ax, word [esi + 0x2c]
mov word [ebx + 0x8c], ax
lea eax, [ebx + 0x16c]
push eax
call fcn.00544a90
add esp, 4
test al, al
jne 0x544cd9
call fcn.005de15b
mov esi, dword [eax]
call fcn.005de15b
mov edx, esi
mov ecx, ebx
mov edi, eax
call fcn.0053fb90
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.00543790
add esp, 0x10
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, ebx
call fcn.005449b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b8427
mov esp, ebp
pop ebp
ret
Function at 0x545390
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x65e374]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6659e4]
mov dword [ebp - 0xc], 0x4020
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 4
push esi
push edi
mov edi, ecx
test eax, eax
jne 0x545471
push 0x9c
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.005d05b0
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
mov dword [ebp - 0xb0], 0x9c
mov dword [ebp - 0xac], 6
mov dword [ebp - 0xa8], 0
push 3
push 2
push 0
push 0
mov dword [ebp - 0xa0], 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 - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x545465
mov dword [0x6659e4], 2
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
mov dword [0x6659e4], 1
jmp 0x545476
cmp eax, 2
je 0x5454b2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x54549b
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jg 0x5454b2
push 4
lea eax, [ebp - 0xc]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005b8427
mov esp, ebp
pop ebp
ret
Function at 0x54c4a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x65e374]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x2a8]
push ebx
push esi
push edi
mov edi, dword [eax]
lea esi, [ebp - 0x188]
mov al, byte [edi]
test al, al
je 0x54c4e8
nop word [eax + eax]
movsx eax, al
push eax
call fcn.005d78ea
mov byte [esi], al
lea edi, [edi + 1]
mov al, byte [edi]
add esp, 4
inc esi
test al, al
jne 0x54c4d0
mov eax, dword [str._proxy]
mov dword [esi], eax
mov ax, word [0x63a5fc]
mov word [esi + 4], ax
mov al, byte [0x63a5fe]
mov byte [esi + 6], al
lea eax, [ebp - 0x188]
push eax
call fcn.005e25c9
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x54c54b
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call ebx
cmp byte [ebp - 0x108], 0
je 0x54c54b
lea eax, [ebp - 0x108]
push eax
call dword [0x65edec]
add esp, 4
jmp 0x54c54d
xor eax, eax
test eax, eax
jne 0x54c68a
lea edx, [ebp - 0x188]
mov ecx, str.http_proxy
call fcn.00569f00
test eax, eax
jne 0x54c5ef
mov esi, 0x80
lea edi, [ebp - 0x188]
mov dl, byte [edi]
lea edi, [edi + 1]
lea eax, [edx - 0x20]
lea ecx, [edx - 0x61]
movzx ebx, al
cmp cl, 0x19
movzx eax, dl
cmova ebx, eax
mov byte [edi - 1], bl
test bl, bl
je 0x54c59b
sub esi, 1
jne 0x54c578
lea eax, [ebp - 0x188]
push eax
call fcn.005e25c9
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x54c5e5
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call ebx
cmp byte [ebp - 0x108], 0
je 0x54c5e5
lea eax, [ebp - 0x108]
push eax
call dword [0x65edec]
add esp, 4
jmp 0x54c5e7
xor eax, eax
test eax, eax
jne 0x54c68a
push str.all_proxy
call fcn.005e25c9
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x54c631
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call ebx
cmp byte [ebp - 0x108], 0
je 0x54c631
lea eax, [ebp - 0x108]
push eax
call dword [0x65edec]
add esp, 4
jmp 0x54c633
xor eax, eax
test eax, eax
jne 0x54c68a
push str.ALL_PROXY
call fcn.005e25c9
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x54c688
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call ebx
cmp byte [ebp - 0x108], 0
je 0x54c688
lea eax, [ebp - 0x108]
push eax
call dword [0x65edec]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b8427
mov esp, ebp
pop ebp
ret
Function at 0x54ebc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov edx, 3
mov dword [ebp - 4], esi
mov ebx, dword [edi]
mov ecx, ebx
call fcn.00557750
mov eax, dword [edi + 0x2a8]
test byte [eax + 0x44], 0x10
je 0x54ebf6
mov byte [esi], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi], 0
mov byte [edi + 0x27e], 0
cmp dword [ebx + 0x5b8], 0
je 0x54ec4b
push dword [edi + 0x2c0]
call dword [0x65ede8]
add esp, 4
mov dword [edi + 0x2c0], 0
push dword [ebx + 0x5b8]
push str.User_Agent:__s_r_n
call sym.PayClient.exe_curl_maprintf
add esp, 8
mov dword [edi + 0x2c0], eax
test eax, eax
jne 0x54ec4b
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0xa0], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov dword [ebp - 0x14], 0
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov dword [ebp - 0x18], edx
sub esi, ecx
imul eax, esi, 0x3e8
mov dword [ebp - 0x10], eax
movups xmm0, xmmword [ebp - 0x18]
movups xmmword [edi + 0x188], xmm0
cmp dword [edi + 0x1a8], 0xffffffff
jne 0x54ecb2
mov byte [edi + 0x271], 0
mov ecx, edi
mov edx, dword [edi + 0x50]
call fcn.005459a0
test eax, eax
je 0x54eceb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 4
mov ecx, ebx
call fcn.00557750
mov edx, 5
mov ecx, ebx
call fcn.00557750
mov eax, dword [ebp - 4]
mov ecx, edi
mov byte [edi + 0x271], 1
mov byte [eax], 1
mov edx, dword [edi + 0x1a8]
call fcn.00544af0
mov ecx, edi
call fcn.0054b6a0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov dword [ebp - 0x14], 0
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov dword [ebp - 0x18], edx
sub esi, ecx
imul eax, esi, 0x3e8
mov dword [ebp - 0x10], eax
xor eax, eax
movups xmm0, xmmword [ebp - 0x18]
movups xmmword [edi + 0x188], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret