joyce8/EMBER2024-capa huggingface dataset:
Function at 0x531ac0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x531af4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [ecx], eax
xor eax, eax
ret
lea edx, [esp + 0xc]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [esp + 0x10]
mov dword [esi], eax
mov dword [esi + 4], 0
cmp dword [esi], 0xffffffff
jne 0x531b42
mov eax, dword [esi + 4]
test eax, eax
jne 0x531b42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
je 0x531b42
mov dword [esi], 0
push edi
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0xc]
push 1
push 0
push 0
push edx
call fcn.005c9b80
mov ecx, dword [esi]
push edi
add ecx, eax
mov dword [esi], ecx
mov ecx, dword [esi + 4]
adc ecx, edx
mov dword [esi + 4], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
ret
Function at 0x532bb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60b0b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov esi, ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1c]
mov edx, dword [esi + 0xdc]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x54]
xor ebx, ebx
push eax
push ecx
push ebx
push ebx
push 0x6a90b8
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 0x10
call edi
test eax, eax
jne 0x532d72
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x3c]
push eax
push str._dkf
push ecx
call fcn.005c7c98
add esp, 0xc
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x3c]
push edx
mov edx, dword [esi + 0xdc]
push eax
push ebx
push ebx
push ecx
push edx
mov dword [ebp - 0x18], 0x10
call edi
cmp eax, ebx
jne 0x532c7d
mov eax, dword [ebp - 0x5c]
cmp eax, 0xffffffff
jne 0x532cfa
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], eax
fild qword [ebp - 0x24]
fmul qword [0x63c7d0]
fcom qword [esi + 0xb8]
fnstsw ax
test ah, 1
je 0x532c7b
fld qword [esi + 0xb8]
fsub st(1)
fadd qword [esi + 0x80]
fstp qword [esi + 0x80]
fstp st(0)
mov eax, dword [ebp - 0x50]
cmp eax, 0xffffffff
je 0x532d72
push eax
lea ecx, [ebp - 0x44]
push 0x6a202c
push ecx
call fcn.005c7c98
add esp, 0xc
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x44]
push edx
mov edx, dword [esi + 0xdc]
push eax
push ebx
push ebx
push ecx
push edx
mov dword [ebp - 0x18], 0x10
call edi
test eax, eax
jne 0x532d72
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x4c]
cmp eax, ecx
jbe 0x532c05
cmp eax, 0xffffffff
je 0x532c05
sub eax, ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], eax
fild qword [ebp - 0x34]
fmul qword [0x63c7d0]
fsubr qword [esi + 0x80]
fstp qword [esi + 0x80]
jmp 0x532c05
mov ecx, dword [ebp - 0x4c]
cmp eax, ecx
jbe 0x532d23
sub eax, ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], eax
fild qword [ebp - 0x2c]
fmul qword [0x63c7d0]
fadd qword [esi + 0x80]
fstp qword [esi + 0x80]
jmp 0x532c7d
jae 0x532c7d
mov edx, dword [0x6cc564]
mov dword [ebp - 0x14], edx
push eax
mov eax, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x54]
push eax
push ecx
lea edx, [ebp - 0x14]
push str.error_in_chlist__id_d__next_d__starttime_ld__ts_ld_n
push edx
mov byte [ebp - 4], 1
call fcn.005dc6eb
mov eax, dword [ebp - 0x14]
add esp, 0x18
mov ecx, esi
push eax
call fcn.0052cfc0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.005e38b9
jmp 0x532c7d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x534320
Capabilities:
Delete registry key

Disassembly:
mov eax, dword [ecx + 0xdc]
sub esp, 0x64
test eax, eax
push esi
lea esi, [ecx + 0xdc]
je 0x5343b0
mov eax, dword [ecx + 0x90]
test eax, eax
je 0x534353
push eax
lea eax, [esp + 0xc]
push str.SoftwareDownloadManager_ldChList
push eax
call fcn.005c7c98
add esp, 0xc
jmp 0x53436d
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 4]
push edx
push eax
lea ecx, [esp + 0x10]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
push ecx
call fcn.005c7c98
add esp, 0x10
mov eax, dword [esi]
test eax, eax
je 0x53437a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 8]
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push esi
push 0
push 0xf003f
push 0
push 0x6d0ab8
push 0
push ecx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop esi
add esp, 0x64
ret
Function at 0x535010
Capabilities:
Get disk size

Disassembly:
sub esp, 0x18
push ebx
push esi
push edi
mov ebx, ecx
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x53503e
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x535042
mov ecx, 1
jmp 0x535044
mov eax, dword [esp + 0x30]
xor ecx, ecx
or esi, 0xffffffff
or edi, 0xffffffff
test ecx, ecx
je 0x535072
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x24]
push ecx
push edx
call eax
test eax, eax
je 0x5350ba
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
jmp 0x5350ba
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x14]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x5350ba
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0xc]
push 0
push edx
push 0
push eax
call fcn.005c9b80
mov ecx, dword [esp + 0x14]
push 0
push ecx
push edx
push eax
call fcn.005c9b80
mov esi, eax
mov edi, edx
cmp edi, dword [esp + 0x2c]
jg 0x5350e9
jl 0x5350c8
cmp esi, dword [esp + 0x28]
ja 0x5350e9
and esi, edi
cmp esi, 0xffffffff
je 0x5350e9
push str.Not_enough_disk_space_to_rebuild_downloaded_chunks._n
mov ecx, ebx
call fcn.0052cfc0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x18
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret 0xc
Function at 0x535970
Capabilities:
Get file size
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x60b1f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x6cc564]
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0xc], eax
xor edi, edi
push str.Trace_list._r_n
mov dword [esp + 0x48], edi
call fcn.0052cfc0
mov esi, dword [ebp + 0x88]
mov dword [esp + 0x1c], edi
cmp esi, edi
mov dword [esp + 0x20], edi
je 0x535b32
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 0x535a6d
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 0x535a3a
mov eax, dword [ebp + 0x104]
test eax, eax
jne 0x535a3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x535a3a
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.005dc6eb
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
mov ecx, ebp
call fcn.0052cfc0
xor edi, edi
jmp 0x535a62
mov edx, dword [esp + 0x14]
push 1
push 0
push 0
push edx
call fcn.005c9b80
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 + 0x40]
push edx
push 0x6a202c
push eax
call fcn.005c7c98
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 + 0x38]
test eax, eax
je 0x535acd
mov eax, dword [eax + 0x40]
jmp 0x535ad0
or eax, 0xffffffff
mov ecx, dword [esi]
test ecx, ecx
je 0x535ade
mov ecx, dword [ecx + 0x88]
jmp 0x535ae1
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 + 0x40]
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.005dc6eb
mov edx, dword [esp + 0x40]
add esp, 0x30
mov ecx, ebp
push edx
call fcn.0052cfc0
mov esi, dword [esi + 0x38]
test esi, esi
jne 0x5359bd
pop ebx
push str.End_trace_list._r_n
mov ecx, ebp
call fcn.0052cfc0
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0xffffffff
call fcn.005e38b9
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x535f90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60b268
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 + 0x48]
mov dword [ebp - 0x10], esp
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x53600c
mov eax, dword [ebp + 8]
mov ecx, dword [0x6cc564]
mov dword [ebp - 0x14], eax
mov dword [ebp + 8], ecx
mov edx, dword [esi + 0x40]
lea eax, [ebp + 8]
push edx
push str.sk_d
push eax
mov byte [ebp - 4], 1
call fcn.005dc6eb
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x48]
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.005e38b9
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 0x5360a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 0x48]
sub esp, 8
test eax, eax
je 0x5360e5
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 0x5360e5
mov eax, dword [esp]
test eax, eax
setne al
add esp, 8
ret
xor al, al
add esp, 8
ret

Function at 0x5360f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60b288
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 + 0x48]
mov dword [ebp - 0x10], esp
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x536195
mov eax, dword [0x6cc564]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov ecx, dword [esi + 0x40]
lea edx, [ebp - 0x14]
push ecx
push str.sk_d
push edx
mov byte [ebp - 4], 1
call fcn.005dc6eb
mov edx, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
mov eax, dword [esi + 0x48]
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 0x53618a
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.005e38b9
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.005e38b9
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 0x5364f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60b2c0
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 + 0x48]
test eax, eax
je 0x5365d4
mov eax, dword [esi + 0x40]
lea ecx, [ebp - 0x2c]
push eax
push 0x6a202c
push ecx
call fcn.005c7c98
add esp, 0xc
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x2c]
push edx
mov edx, dword [esi + 0x48]
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 0x5365a0
push eax
lea eax, [ebp - 0x170]
push str.Error_reading_registry__errCode___d._n
push eax
call fcn.005c7c98
add esp, 0xc
lea ecx, [ebp - 0x170]
push ecx
mov ecx, esi
call fcn.00535ec0
mov eax, dword [esi + 0x38]
test eax, eax
je 0x536594
mov edx, dword [eax + 0x40]
mov dword [ebp - 0x20], edx
jmp 0x53659a
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x20], eax
mov ecx, dword [esi + 0x40]
mov dword [ebp - 0x24], ecx
mov edx, dword [esi + 0x24]
push 1
push 0
push 0
push edx
call fcn.005c9b80
mov ecx, dword [esi + 0x1c]
xor edi, edi
add eax, ecx
mov ecx, dword [esi + 0x48]
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 0x537050
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x60b368
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.00536770
test eax, eax
jne 0x5371c4
mov ecx, dword [esi + 0x30]
add ecx, edi
mov eax, ecx
mov dword [esi + 0x30], ecx
cmp eax, 8
jge 0x5370c3
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 0x537134
mov al, byte [esi + 0x28]
test al, al
je 0x5370d4
cmp al, 4
jne 0x537134
push str.socks4:_reply_OK_n
mov ecx, esi
call fcn.005366c0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x53711f
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x20]
test eax, eax
mov dword [ecx], eax
jne 0x537114
mov edx, dword [esi + 0x17c]
push 1
push ecx
mov ecx, esi
mov eax, dword [edx + 0x13c]
push eax
call fcn.00536850
test eax, eax
jne 0x5371c4
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 [0x6cc564]
mov dword [esp + 0x18], edx
mov eax, dword [esi + 0xb4]
mov dword [esp + 0x10], 0
test eax, eax
jne 0x537156
mov eax, dword [esi + 0xb0]
mov eax, dword [eax]
mov ecx, dword [0x6d17a0]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.005dc6eb
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, esi
push 1
push eax
call fcn.005365f0
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.0053e330
movsx edx, byte [esi + 0x29]
push edx
lea eax, [esp + 0x1c]
push str.Error_code___d_n
push eax
call fcn.005dc6eb
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.005366c0
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.005e38b9
mov eax, 0x755d
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x10
Function at 0x5371e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x60b388
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.00536770
test eax, eax
jne 0x537309
mov ecx, dword [esi + 0x30]
add ecx, edi
mov eax, ecx
mov dword [esi + 0x30], ecx
cmp eax, 2
jge 0x537253
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 0x53725e
cmp al, 2
jne 0x537268
cmp byte [esi + 0x28], 5
je 0x5372ed
push 0x6d179c
lea ecx, [esp + 0x1c]
call fcn.005e362e
mov ecx, dword [esp + 0x18]
push 1
push ecx
mov ecx, esi
mov dword [esp + 0x18], 0
call fcn.005365f0
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x9c]
push edx
call fcn.0053e330
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.005dc6eb
mov eax, dword [esp + 0x28]
add esp, 0x10
mov ecx, esi
push eax
call fcn.005366c0
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.005e38b9
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.005366c0
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 0x5375c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60b3c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x10], esp
cmp eax, ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
je 0x53761b
push eax
mov dword [ebp - 4], ebx
call fcn.005dfce5
add esp, 4
jmp 0x537611
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x3c], ebx
mov eax, dword [esi + 0xb4]
mov dword [ebp - 0x14], ebx
cmp eax, ebx
je 0x53762f
mov edi, dword [eax]
mov dword [ebp - 0x18], edi
jmp 0x53763c
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov edi, ecx
cmp dword [ebp + 0xc], ebx
je 0x53764c
mov edx, dword [ebp + 0x10]
mov dword [esi + 0x40], ebx
mov dword [ebp - 0x14], edx
jmp 0x53765c
lea eax, [ebp - 0x14]
push ebx
push eax
push edi
mov ecx, esi
call fcn.00536850
mov dword [esi + 0x40], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp + 0x10], ecx
lea edi, [ecx + 0xa]
push edi
call fcn.005dfcbc
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x537693
mov eax, 0x753b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [ebp + 0x18]
and ecx, 3
test edx, edx
rep stosb byte es:[edi], al
setne al
inc eax
mov byte [ebx], 5
mov byte [ebx + 1], al
mov byte [ebx + 2], 0
mov ecx, dword [esi + 0x40]
neg ecx
sbb cl, cl
and cl, 2
inc cl
mov byte [ebx + 3], cl
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x5376dd
mov edx, dword [ebp - 0x14]
mov edi, 8
mov dword [ebx + 4], edx
jmp 0x537710
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp - 0x18]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebx + 4], dl
lea esi, [ebx + 5]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x1c]
lea edi, [edx + 5]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x53771c
mov eax, dword [ebp + 0x14]
jmp 0x53773a
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x53772b
mov eax, dword [eax + 0xc]
jmp 0x537734
mov ecx, dword [esi + 0xb0]
mov eax, dword [ecx + 0x14]
push eax
call sub.WS2_32.dll_htons
mov edx, dword [ebp + 8]
mov word [edi + ebx], ax
push str.sending_socks_CONNECT
add edi, 2
push 0
push edi
push ebx
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.00536770
push str.socks5:_sending_connect_n
mov ecx, esi
mov edi, eax
call fcn.005366c0
push ebx
call fcn.005dfce5
add esp, 4
cmp edi, 0x2733
jne 0x53777e
xor edi, edi
jmp 0x537782
test edi, edi
jne 0x53778c
mov dword [esi + 0x8c], 0x20
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x5377b0
Capabilities:
Check for peb beingdebugged flag
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x60b3d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x6cc564]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x17c]
mov dword [esp + 0x1c], 0
mov ecx, dword [eax + 0x148]
mov edx, dword [eax + 0x144]
push ecx
push edx
lea eax, [esp + 0x18]
push str.___s__s
push eax
call fcn.005dc6eb
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 + 0x17c]
push str.sending_socks5_auth
mov edi, dword [ecx + 0x144]
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 + 0x17c]
and edx, 0xff
mov edi, dword [eax + 0x148]
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.00536770
push str.socks5:_sending_auth_n
mov ecx, esi
mov edi, eax
call fcn.005366c0
cmp edi, 0x2733
mov dword [esi + 0x30], 0
jne 0x537892
xor edi, edi
jmp 0x537896
test edi, edi
jne 0x5378a0
mov dword [esi + 0x8c], 0x1f
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.005e38b9
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 0x5378d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x60b3f8
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.00536770
test eax, eax
jne 0x5379e8
mov ecx, dword [esi + 0x30]
add ecx, edi
mov eax, ecx
mov dword [esi + 0x30], ecx
cmp eax, 2
jge 0x537943
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 0x537976
mov al, byte [esi + 0x28]
cmp al, 5
je 0x537955
cmp al, 1
jne 0x537976
push str.socks5:_auth_reply_OK_n
mov ecx, esi
call fcn.005366c0
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 4
push 0x6d1798
lea ecx, [esp + 0x1c]
call fcn.005e362e
mov ecx, dword [esp + 0x18]
push 1
push ecx
mov ecx, esi
mov dword [esp + 0x18], 0
call fcn.005365f0
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x9c]
push edx
call fcn.0053e330
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.005dc6eb
mov eax, dword [esp + 0x28]
add esp, 0x10
mov ecx, esi
push eax
call fcn.005366c0
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.005e38b9
mov eax, 0x757f
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4