joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54b770
Capabilities:
Get file size
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x62a138
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push esi
push edi
mov ebp, ecx
call fcn.0054b630
mov eax, dword [0x6cc708]
mov dword [esp + 0xc], eax
xor edi, edi
push str.Trace_list_2._r_n
mov ecx, ebp
mov dword [esp + 0x48], edi
call fcn.00541a30
mov esi, dword [ebp + 0x88]
mov dword [esp + 0x1c], edi
cmp esi, edi
mov dword [esp + 0x20], edi
je 0x54b939
push ebx
mov ecx, dword [esi + 0x10]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x54b874
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov eax, dword [ebp + 0x100]
cmp eax, 0xffffffff
jne 0x54b841
mov eax, dword [ebp + 0x104]
test eax, eax
jne 0x54b841
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x54b841
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x14]
push str.Error_during_GetFileSize____errcode___d._n
push eax
call fcn.005fb90b
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
mov ecx, ebp
call fcn.00541a30
xor edi, edi
jmp 0x54b869
mov edx, dword [esp + 0x14]
push 1
push 0
push 0
push edx
call fcn.005e8c50
mov ecx, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 0x24]
adc ebx, edx
add ecx, edi
adc eax, ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], ecx
lea eax, [esp + 0x28]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov edx, dword [esi + 0x60]
push edx
push 0x6a00e4
push eax
call fcn.005e6db3
add esp, 0xc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x30]
lea eax, [esp + 0x28]
push ecx
mov ecx, dword [ebp + 0xdc]
push edx
push 0
push 0
push eax
push ecx
mov dword [esp + 0x34], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esi + 0x58]
test eax, eax
je 0x54b8d4
mov eax, dword [eax + 0x60]
jmp 0x54b8d7
or eax, 0xffffffff
mov ecx, dword [esi]
test ecx, ecx
je 0x54b8e5
mov ecx, dword [ecx + 0x88]
jmp 0x54b8e8
or ecx, 0xffffffff
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x44]
push ebx
push edi
mov edi, dword [esi + 0x14]
push edx
mov edx, dword [esp + 0x4c]
push edx
xor edx, edx
test edi, edi
setne dl
push edx
push eax
mov eax, dword [esi + 0x60]
push ecx
push eax
lea ecx, [esp + 0x38]
push str.Item_id_d__conn_d__next_d__compl_d__start_I64d__fsize_I64d__total_I64d_r_n
push ecx
call fcn.005fb90b
mov edx, dword [esp + 0x40]
add esp, 0x30
mov ecx, ebp
push edx
call fcn.00541a30
mov esi, dword [esi + 0x58]
test esi, esi
jne 0x54b7c4
pop ebx
push str.End_trace_list._r_n
mov ecx, ebp
call fcn.00541a30
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0xffffffff
call fcn.00602ad6
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x54bdb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62a1a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x10], esp
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x54be2c
mov eax, dword [ebp + 8]
mov ecx, dword [0x6cc708]
mov dword [ebp - 0x14], eax
mov dword [ebp + 8], ecx
mov edx, dword [esi + 0x60]
lea eax, [ebp + 8]
push edx
push str.sk_d
push eax
mov byte [ebp - 4], 1
call fcn.005fb90b
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x68]
add esp, 0xc
lea ecx, [ebp - 0x14]
push 4
push ecx
push 4
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.00602ad6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x54bec0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 0x68]
sub esp, 8
test eax, eax
je 0x54bf05
lea ecx, [esp + 4]
lea edx, [esp]
push ecx
push edx
push 0
push 0
push str.mmsIndex
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x54bf05
mov eax, dword [esp]
test eax, eax
setne al
add esp, 8
ret
xor al, al
add esp, 8
ret

Function at 0x54bf10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62a1c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x10], esp
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x54bfb5
mov eax, dword [0x6cc708]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov ecx, dword [esi + 0x60]
lea edx, [ebp - 0x14]
push ecx
push str.sk_d
push edx
mov byte [ebp - 4], 1
call fcn.005fb90b
mov edx, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
mov eax, dword [esi + 0x68]
push ecx
push ebx
push ebx
push edx
push eax
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x54bfaa
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00602ad6
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00602ad6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x54c320
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62a200
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x68]
test eax, eax
je 0x54c404
mov eax, dword [esi + 0x60]
lea ecx, [ebp - 0x2c]
push eax
push 0x6a00e4
push ecx
call fcn.005e6db3
add esp, 0xc
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x2c]
push edx
mov edx, dword [esi + 0x68]
push eax
push 0
push 0
push ecx
push edx
mov dword [ebp - 0x14], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x54c3d0
push eax
lea eax, [ebp - 0x170]
push str.Error_reading_registry__errCode___d._n
push eax
call fcn.005e6db3
add esp, 0xc
lea ecx, [ebp - 0x170]
push ecx
mov ecx, esi
call fcn.0054bce0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x54c3c4
mov edx, dword [eax + 0x60]
mov dword [ebp - 0x20], edx
jmp 0x54c3ca
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x20], eax
mov ecx, dword [esi + 0x60]
mov dword [ebp - 0x24], ecx
mov edx, dword [esi + 0x24]
push 1
push 0
push 0
push edx
call fcn.005e8c50
mov ecx, dword [esi + 0x1c]
xor edi, edi
add eax, ecx
mov ecx, dword [esi + 0x68]
adc edx, edi
push 0x10
mov dword [ebp - 0x18], edx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
push edx
push edi
lea eax, [ebp - 0x2c]
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x54d400
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x62a2f8
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
push edi
mov ecx, 8
push 0
mov eax, dword [esi + 0x30]
sub ecx, eax
lea edx, [eax + esi + 0x28]
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
call sub.WS2_32.dll_recv
mov edi, eax
push str.recv_socks4_reply
push edi
mov ecx, esi
call fcn.0054c5b0
test eax, eax
jne 0x54d574
mov ecx, dword [esi + 0x30]
add ecx, edi
mov eax, ecx
mov dword [esi + 0x30], ecx
cmp eax, 8
jge 0x54d473
mov eax, 0x2733
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 0x10
cmp byte [esi + 0x29], 0x5a
jne 0x54d4e4
mov al, byte [esi + 0x28]
test al, al
je 0x54d484
cmp al, 4
jne 0x54d4e4
push str.socks4:_reply_OK_n
mov ecx, esi
call fcn.0054c4f0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x54d4cf
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x20]
test eax, eax
mov dword [ecx], eax
jne 0x54d4c4
mov edx, dword [esi + 0x184]
push 1
push ecx
mov ecx, esi
mov eax, dword [edx + 0x140]
push eax
call fcn.0054c690
test eax, eax
jne 0x54d574
mov ecx, dword [esp + 0x24]
mov ax, word [esi + 0x2a]
mov word [ecx], ax
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 0x10
mov edx, dword [0x6cc708]
mov dword [esp + 0x18], edx
mov eax, dword [esi + 0xb4]
mov dword [esp + 0x10], 0
test eax, eax
jne 0x54d506
mov eax, dword [esi + 0xb0]
mov eax, dword [eax]
mov ecx, dword [0x6d1a7c]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.005fb90b
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, esi
push 1
push eax
call fcn.0054c420
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.00554c40
movsx edx, byte [esi + 0x29]
push edx
lea eax, [esp + 0x1c]
push str.Error_code___d_n
push eax
call fcn.005fb90b
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.0054c4f0
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00602ad6
mov eax, 0x755d
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x10
Function at 0x54d590
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x62a318
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
push edi
mov ecx, 2
push 0
mov eax, dword [esi + 0x30]
sub ecx, eax
lea edx, [eax + esi + 0x28]
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
call sub.WS2_32.dll_recv
mov edi, eax
push str.recv_socks5_init_reply
push edi
mov ecx, esi
call fcn.0054c5b0
test eax, eax
jne 0x54d6b9
mov ecx, dword [esi + 0x30]
add ecx, edi
mov eax, ecx
mov dword [esi + 0x30], ecx
cmp eax, 2
jge 0x54d603
mov eax, 0x2733
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 8
mov al, byte [esi + 0x29]
test al, al
je 0x54d60e
cmp al, 2
jne 0x54d618
cmp byte [esi + 0x28], 5
je 0x54d69d
push 0x6d1a78
lea ecx, [esp + 0x1c]
call fcn.0060284b
mov ecx, dword [esp + 0x18]
push 1
push ecx
mov ecx, esi
mov dword [esp + 0x18], 0
call fcn.0054c420
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x9c]
push edx
call fcn.00554c40
movsx eax, byte [esi + 0x29]
movsx ecx, byte [esi + 0x28]
push eax
push ecx
lea edx, [esp + 0x20]
push str.Sock_ver___d__reply___d_n
push edx
call fcn.005fb90b
mov eax, dword [esp + 0x28]
add esp, 0x10
mov ecx, esi
push eax
call fcn.0054c4f0
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00602ad6
mov eax, 0x7580
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 8
push str.socks5:_init_reply_OK_n
mov ecx, esi
call fcn.0054c4f0
mov al, byte [esi + 0x29]
mov edx, dword [esp + 0x1c]
cmp al, 2
sete cl
mov byte [edx], cl
xor eax, eax
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 8
Function at 0x54de90
Capabilities:
Check for peb beingdebugged flag
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x62a378
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x6cc708]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x184]
mov dword [esp + 0x1c], 0
mov ecx, dword [eax + 0x14c]
mov edx, dword [eax + 0x148]
push ecx
push edx
lea eax, [esp + 0x18]
push str.___s__s
push eax
call fcn.005fb90b
mov edx, dword [esp + 0x20]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0x10
mov ebx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [edx], 1
mov ebp, ecx
mov ecx, dword [esi + 0x184]
push str.sending_socks5_auth
mov edi, dword [ecx + 0x148]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
or ecx, 0xffffffff
mov byte [ebx + 1], dl
mov eax, dword [esi + 0x184]
and edx, 0xff
mov edi, dword [eax + 0x14c]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
mov byte [edx + ebx + 2], cl
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
push ebp
push ecx
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0054c5b0
push str.socks5:_sending_auth_n
mov ecx, esi
mov edi, eax
call fcn.0054c4f0
cmp edi, 0x2733
mov dword [esi + 0x30], 0
jne 0x54df72
xor edi, edi
jmp 0x54df76
test edi, edi
jne 0x54df80
mov dword [esi + 0x8c], 0x1f
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00602ad6
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x54dfb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x62a398
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
push edi
mov ecx, 2
push 0
mov eax, dword [esi + 0x30]
sub ecx, eax
lea edx, [eax + esi + 0x28]
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
call sub.WS2_32.dll_recv
mov edi, eax
push str.recv_socks5_init_reply
push edi
mov ecx, esi
call fcn.0054c5b0
test eax, eax
jne 0x54e0c8
mov ecx, dword [esi + 0x30]
add ecx, edi
mov eax, ecx
mov dword [esi + 0x30], ecx
cmp eax, 2
jge 0x54e023
mov eax, 0x2733
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 4
mov al, byte [esi + 0x29]
test al, al
jne 0x54e056
mov al, byte [esi + 0x28]
cmp al, 5
je 0x54e035
cmp al, 1
jne 0x54e056
push str.socks5:_auth_reply_OK_n
mov ecx, esi
call fcn.0054c4f0
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 4
push 0x6d1a74
lea ecx, [esp + 0x1c]
call fcn.0060284b
mov ecx, dword [esp + 0x18]
push 1
push ecx
mov ecx, esi
mov dword [esp + 0x18], 0
call fcn.0054c420
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x9c]
push edx
call fcn.00554c40
movsx eax, byte [esi + 0x29]
movsx ecx, byte [esi + 0x28]
push eax
push ecx
lea edx, [esp + 0x20]
push str.Sock_ver___d__reply___d_n
push edx
call fcn.005fb90b
mov eax, dword [esp + 0x28]
add esp, 0x10
mov ecx, esi
push eax
call fcn.0054c4f0
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00602ad6
mov eax, 0x757f
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4
Function at 0x54e130
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62a3b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x498
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [esi + 0xf8]
mov ecx, 1
cmp eax, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x29c], edi
mov dword [ebp - 0x2a0], ecx
mov dword [ebp - 0x4a4], ebx
je 0x54e1a2
mov edx, dword [eax]
mov dword [ebp - 0x2a0], 2
mov dword [ebp - 0x298], edx
mov edx, dword [eax]
mov dword [ebp - 0x4a0], edx
mov dword [ebp - 0x4a4], ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x1c]
neg eax
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x4a4]
sbb eax, eax
push edx
and eax, ecx
lea edx, [ebp - 0x2a0]
push eax
push ebx
lea eax, [edi + 1]
push edx
push eax
mov dword [ebp - 0x18], ebx
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x54e223
call sub.WS2_32.dll_WSAGetLastError
mov ebx, eax
push edi
push ebx
lea ecx, [ebp - 0x9c]
push str.Select_failed__err_code___d__socket___d_n
push ecx
call fcn.005e6db3
add esp, 0x10
lea edx, [ebp - 0x9c]
mov ecx, esi
push edx
call fcn.0054c4f0
mov eax, dword [0x6d2620]
mov ecx, dword [esi + 0x9c]
push eax
call fcn.00554c40
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp eax, ebx
jne 0x54e2a2
cmp dword [ebp + 0xc], ebx
je 0x54e24e
mov ecx, dword [0x6d2618]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.00554c40
mov edx, dword [0x6d2618]
push 1
push edx
mov ecx, esi
call fcn.0054c420
mov eax, 0x7532
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0xf8]
cmp eax, ebx
je 0x54e2f0
mov edx, dword [eax]
lea ecx, [ebp - 0x4a4]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x54e2d8
mov ecx, dword [esi + 0xf8]
lea eax, [ebp - 0x2a0]
push eax
mov edx, dword [ecx]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x54e2f0
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x54f600
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [ecx + 0x184]
test eax, eax
je 0x54f63a
mov dl, byte [eax + 0x137]
test dl, dl
je 0x54f63a
mov ecx, dword [ecx + 0x3444]
test ecx, ecx
je 0x54f63a
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push eax
push edx
call fcn.00564f40
ret 0x10
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call sub.WS2_32.dll_recv
ret 0x10

Function at 0x550d70
Capabilities:
Get disk size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x62a4b8
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x60]
mov ecx, dword [edi + 0x64]
mov edx, eax
or edx, ecx
je 0x550db6
mov ebp, dword [edi + 0x68]
mov ebx, dword [edi + 0x6c]
mov esi, dword [edi + 0x50]
mov edx, dword [edi + 0x54]
sub eax, ebp
sbb ecx, ebx
sub eax, esi
sbb ecx, edx
mov ebp, eax
mov dword [esp + 0x38], ecx
jmp 0x550dc3
mov ebp, 0x2da0
mov dword [esp + 0x38], 0
mov ecx, dword [edi + 0xb0]
push 0
push 0
lea eax, [esp + 0x34]
mov edx, dword [ecx + 0x30]
push 0
push eax
push edx
call fcn.005e7163
add esp, 0x14
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x550e06
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x550e0a
mov ecx, 1
jmp 0x550e0c
mov eax, dword [esp + 0x1c]
xor ecx, ecx
or esi, 0xffffffff
or ebx, 0xffffffff
test ecx, ecx
je 0x550e3a
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x34]
push ecx
push edx
call eax
test eax, eax
je 0x550e6d
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
jmp 0x550e6d
lea eax, [esp + 0x24]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x550e6d
mov esi, dword [esp + 0x10]
imul esi, dword [esp + 0x14]
imul esi, dword [esp + 0x1c]
xor ebx, ebx
mov edx, dword [esp + 0x38]
push 0
push 0xa
push edx
push ebp
call fcn.005e8260
add eax, ebp
mov ebp, dword [esp + 0x38]
adc edx, ebp
cmp ebx, edx
jg 0x550f0f
jl 0x550e92
cmp esi, eax
ja 0x550f0f
and esi, ebx
cmp esi, 0xffffffff
je 0x550f0f
mov eax, dword [0x6cc708]
mov dword [esp + 0x10], eax
mov edx, dword [0x6d2660]
lea ecx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x50], 0
call fcn.005fb90b
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0x50030
push 0x6a0028
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push str.Not_enough_disk_space_to_store_files_chunks__canceling_download._n
mov ecx, edi
call fcn.0054c4f0
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0xffffffff
call fcn.00602ad6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x551e60
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ecx
push ebp
push esi
push edi
push str.shell32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, dword [esp + 0x14]
mov esi, eax
test esi, esi
je 0x551eb8
push ebx
push str.SHGetFolderPathW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x551eac
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
push ebp
push edi
push edi
push 0x1a
push edi
call ebx
test eax, eax
jne 0x551ea6
mov edi, 1
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
pop ebx
jne 0x551f09
lea eax, [esp + 0x14]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x551f09
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
push ebp
push eax
push eax
push 0x6a4894
push edx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x551efe
mov edi, 1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x553020
Capabilities:
Parse pe header

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