joyce8/EMBER2024-capa huggingface dataset:
Function at 0x557b70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65fa18
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
wait
mov ebx, 0x10
mov dword [ebp - 0x84], ebx
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x80]
push ecx
push 0
push 0
push 0x687b48
mov edx, dword [esi + 0xdc]
push edx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call edi
test eax, eax
je 0x557c00
wait
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0062023e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x80]
push eax
push str._ldkf
lea ecx, [ebp - 0x24]
push ecx
call fcn.0062311b
add esp, 0xc
mov dword [ebp - 0x68], ebx
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0x94]
push eax
push 0
push 0
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [esi + 0xdc]
push edx
call edi
test eax, eax
jne 0x557cfc
mov eax, dword [ebp - 0x8c]
cmp eax, 0xffffffff
jne 0x557c82
mov eax, dword [ebp - 0x78]
fild dword [ebp - 0x78]
test eax, eax
jge 0x557c57
fadd qword [0x6813f8]
fdiv qword [0x687b30]
fcom qword [esi + 0xb8]
fnstsw ax
test ah, 5
jp 0x557cfa
fsubr qword [esi + 0xb8]
fadd qword [esi + 0x80]
fstp qword [esi + 0x80]
jmp 0x557cfc
mov ecx, dword [ebp - 0x78]
cmp eax, ecx
jbe 0x557caf
sub eax, ecx
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
test eax, eax
jge 0x557c9b
fadd qword [0x6813f8]
fdiv qword [0x687b30]
fadd qword [esi + 0x80]
fstp qword [esi + 0x80]
jmp 0x557cfc
jae 0x557cfc
lea ecx, [ebp - 0x6c]
call fcn.00402510
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x8c]
push ecx
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x80]
push ecx
push str.error_in_chlist__id_ld__next_ld__starttime_ld__ts_ld_n
lea edx, [ebp - 0x6c]
push edx
call fcn.00402f80
add esp, 0x18
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, esi
call fcn.00554bc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.00402580
jmp 0x557cfc
fstp st(0)
mov eax, dword [ebp - 0x7c]
cmp eax, 0xffffffff
je 0x557d36
push eax
push 0x6795fc
lea ecx, [ebp - 0x64]
push ecx
call fcn.0062311b
add esp, 0xc
mov dword [ebp - 0x68], ebx
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0x80]
push eax
push 0
push 0
lea ecx, [ebp - 0x64]
push ecx
mov edx, dword [esi + 0xdc]
push edx
call edi
test eax, eax
je 0x557d43
wait
mov dword [ebp - 4], 0xffffffff
jmp 0x557bde
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x78]
cmp eax, ecx
jbe 0x557c00
cmp eax, 0xffffffff
je 0x557c00
sub eax, ecx
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
test eax, eax
jge 0x557d6f
fadd qword [0x6813f8]
fdiv qword [0x687b30]
fsubr qword [esi + 0x80]
fstp qword [esi + 0x80]
jmp 0x557c00
Function at 0x55a300
Capabilities:
Get file size
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x65fd48
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebp, ecx
call fcn.0055a180
lea ecx, [esp + 0x14]
call fcn.00402510
xor edi, edi
mov dword [esp + 0x88], edi
push str.Trace_list_2._r_n
mov ecx, ebp
call fcn.00554bc0
mov esi, dword [ebp + 0x88]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
cmp esi, edi
je 0x55a4ca
mov eax, dword [esi + 0x10]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
je 0x55a40c
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp + 0x108], 0xffffffff
mov edi, eax
jne 0x55a3e5
cmp dword [ebp + 0x10c], ebx
jne 0x55a3e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x55a3e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x18]
push str.Error_during_GetFileSize____errcode___ld._n
push edx
call fcn.00402f80
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
mov ecx, ebp
call fcn.00554bc0
xor edi, edi
jmp 0x55a401
mov ecx, dword [esp + 0x28]
push 1
push 0
push 0
push ecx
call fcn.00624b80
add edi, eax
adc ebx, edx
add dword [esp + 0x18], edi
adc dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x60]
push eax
lea ecx, [esp + 0x40]
push 0x6795fc
push ecx
call fcn.0062311b
add esp, 0xc
lea edx, [esp + 0x20]
push edx
mov edx, dword [ebp + 0xdc]
lea eax, [esp + 0x30]
push eax
push 0
push 0
lea ecx, [esp + 0x4c]
push ecx
push edx
mov dword [esp + 0x38], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esi + 0x58]
test eax, eax
je 0x55a468
mov eax, dword [eax + 0x60]
jmp 0x55a46b
or eax, 0xffffffff
mov ecx, dword [esi]
test ecx, ecx
je 0x55a479
mov ecx, dword [ecx + 0xa0]
jmp 0x55a47c
or ecx, 0xffffffff
mov edx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x40]
push ebx
push edi
push edx
mov edx, dword [esp + 0x48]
push edx
xor edx, edx
cmp dword [esi + 0x14], edx
setne dl
push edx
push eax
mov eax, dword [esi + 0x60]
push ecx
push eax
lea ecx, [esp + 0x3c]
push str.Item_id_ld__conn_ld__next_ld__compl_ld__start_I64d__fsize_I64d__total_I64d_r_n
push ecx
call fcn.00402f80
mov edx, dword [esp + 0x44]
add esp, 0x30
push edx
mov ecx, ebp
call fcn.00554bc0
mov esi, dword [esi + 0x58]
test esi, esi
jne 0x55a370
push str.End_trace_list._r_n
mov ecx, ebp
call fcn.00554bc0
mov dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402580
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0062023e
add esp, 0x78
ret
Function at 0x5611d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 0x68]
sub esp, 8
test eax, eax
je 0x561212
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 4]
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 0x561212
cmp dword [esp], eax
setne al
add esp, 8
ret
xor al, al
add esp, 8
ret

Function at 0x561220
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x150]
sub esp, 0x150
push 0xffffffffffffffff
push 0x6603d0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x14c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x68], ebx
je 0x56131c
mov eax, dword [esi + 0x60]
push eax
push 0x67942c
lea ecx, [ebp + 0x144]
push ecx
call fcn.0062311b
add esp, 0xc
mov dword [ebp - 0x24], 0x10
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
lea ecx, [ebp + 0x144]
push ecx
mov edx, dword [esi + 0x68]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x5612df
push eax
push str.Error_reading_registry__errCode___d._n
lea eax, [ebp]
push eax
call fcn.0062311b
add esp, 0xc
lea ecx, [ebp]
push ecx
mov ecx, esi
call fcn.00561060
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x5612d3
mov eax, dword [eax + 0x60]
jmp 0x5612d6
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x1c], eax
mov edx, dword [esi + 0x60]
mov dword [ebp - 0x20], edx
mov edi, dword [esi + 0x1c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
mov eax, dword [esi + 0x24]
push 1
push 0
push 0
push eax
call fcn.00624b80
add edi, eax
mov dword [ebp - 0x18], edi
adc ebx, edx
mov dword [ebp - 0x14], ebx
push 0x10
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0
lea edx, [ebp + 0x144]
push edx
mov eax, dword [esi + 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x14c]
xor ecx, ebp
call fcn.0062023e
add ebp, 0x150
mov esp, ebp
pop ebp
ret
Function at 0x561360
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x66040b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 4], eax
xor ecx, ecx
xor edx, edx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x34], ecx
mov word [eax + 0x30], dx
mov dword [esp + 0x10], ecx
mov dword [eax], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x24], ecx
or ecx, 0xffffffff
mov dword [eax + 0x28], ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret

Function at 0x561480
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x660468
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x758898]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x68], ebx
je 0x561503
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea ecx, [ebp + 8]
call fcn.00402510
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x60]
push ecx
push str.sk_d
lea edx, [ebp + 8]
push edx
call fcn.00402f80
add esp, 0xc
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push ebx
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [esi + 0x68]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00402580
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x561540
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x660498
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x758898]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x20], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x68], ebx
je 0x5615ee
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x14]
call fcn.00402510
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x60]
push eax
push str.sk_d
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f80
add esp, 0xc
mov dword [ebp - 0x1c], 4
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [esi + 0x68]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x5615e3
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402580
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402580
mov dword [ebp - 4], 0xffffffff
xor eax, eax
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 0x562010
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [ecx + 0x19c]
test eax, eax
je 0x562032
cmp byte [eax + 0x137], 0
je 0x562032
mov ecx, dword [ecx + 0x3480]
test ecx, ecx
je 0x562032
jmp 0x57aa40
jmp sub.WS2_32.dll_recv
push esi
mov esi, ecx
cmp dword [esi + 0x3468], 0
je 0x57aa55
cmp dword [esi + 0x346c], 0
jne 0x57aac3
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
test eax, eax
je 0x57aa82
cmp dword [esi + 0x346c], 0
jne 0x57aa8b
cmp eax, 0x2733
jne 0x57aa7b
push 0x2733
call sub.WS2_32.dll_WSASetLastError
or eax, 0xffffffff
pop esi
ret 0x10
cmp byte [esi + 0x3f4], 0
jne 0x57aac3
cmp dword [esi + 0x346c], 0
jne 0x57aa9d
cmp byte [esi + 0xdb], 0
jne 0x57aa55
test eax, eax
je 0x57aac3
cmp eax, 0x2733
jne 0x57aa7b
mov eax, dword [esi + 0x346c]
test eax, eax
jne 0x57ab23
push 0x2733
call sub.WS2_32.dll_WSASetLastError
or eax, 0xffffffff
pop esi
ret 0x10
mov eax, dword [esi + 0x346c]
test eax, eax
jne 0x57aade
cmp byte [esi + 0x3f4], al
je 0x57aa71
mov eax, 0xfffffffc
pop esi
ret 0x10
push edi
mov edi, dword [esp + 0x14]
cmp eax, edi
jae 0x57aae9
mov edi, eax
mov eax, dword [esi + 0x3468]
mov ecx, dword [esp + 0x10]
push edi
push eax
push ecx
call fcn.00621de0
add esp, 0xc
sub dword [esi + 0x346c], edi
mov eax, dword [esi + 0x346c]
je 0x57ab20
mov esi, dword [esi + 0x3468]
push eax
lea edx, [esi + edi]
push edx
push esi
call fcn.00623400
add esp, 0xc
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x563210
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x6606b8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x40]
push 0
mov ecx, 8
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x38]
mov eax, dword [esp + 0x24]
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.00562650
test eax, eax
jne 0x56338c
add dword [esi + 0x40], edi
cmp dword [esi + 0x40], 8
jge 0x563289
mov eax, 0x2733
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0x10
cmp byte [esi + 0x39], 0x5a
jne 0x5632fa
mov al, byte [esi + 0x38]
test al, al
je 0x56329a
cmp al, 4
jne 0x5632fa
push str.socks4:_reply_OK_n
mov ecx, esi
call fcn.00561d40
cmp dword [esp + 0x20], 0
je 0x5632e4
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
test eax, eax
jne 0x5632d9
mov edx, dword [esi + 0x19c]
mov eax, dword [edx + 0x140]
push 1
push ecx
push eax
mov ecx, esi
call fcn.00562740
test eax, eax
jne 0x56338c
mov ax, word [esi + 0x3a]
mov ecx, dword [esp + 0x28]
mov word [ecx], ax
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0x10
lea ecx, [esp + 0x1c]
call fcn.00402510
mov dword [esp + 0x14], 0
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x563319
mov eax, dword [eax]
jmp 0x563321
mov edx, dword [esi + 0xc8]
mov eax, dword [edx]
push eax
mov eax, dword [0x75f5f0]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00402f80
mov edx, dword [esp + 0x28]
add esp, 0xc
push 1
push edx
mov ecx, esi
call fcn.00562560
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0xb4]
push eax
call fcn.0056ae40
movsx ecx, byte [esi + 0x39]
push ecx
lea edx, [esp + 0x20]
push str.Error_code___d_n
push edx
call fcn.00402f80
mov eax, dword [esp + 0x28]
add esp, 0xc
push eax
mov ecx, esi
call fcn.00561d40
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402580
mov eax, 0x755d
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0x10
Function at 0x5633a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x6606b8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x40]
push 0
mov ecx, 2
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x38]
mov eax, dword [esp + 0x24]
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.00562650
test eax, eax
jne 0x5634cf
add dword [esi + 0x40], edi
cmp dword [esi + 0x40], 2
jge 0x563419
mov eax, 0x2733
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
mov al, byte [esi + 0x39]
test al, al
je 0x563424
cmp al, 2
jne 0x56342e
cmp byte [esi + 0x38], 5
je 0x5634b4
push 0x75f5f4
lea ecx, [esp + 0x20]
call fcn.00402800
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x1c]
push 1
push ecx
mov ecx, esi
call fcn.00562560
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0xb4]
push edx
call fcn.0056ae40
movsx eax, byte [esi + 0x39]
movsx ecx, byte [esi + 0x38]
push eax
push ecx
lea edx, [esp + 0x24]
push str.Sock_ver___d__reply___d_n
push edx
call fcn.00402f80
mov eax, dword [esp + 0x2c]
add esp, 0x10
push eax
mov ecx, esi
call fcn.00561d40
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402580
mov eax, 0x7580
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
push str.socks5:_init_reply_OK_n
mov ecx, esi
call fcn.00561d40
cmp byte [esi + 0x39], 2
mov edx, dword [esp + 0x20]
sete cl
mov byte [edx], cl
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x563c90
Capabilities:
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x660718
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x14]
call fcn.00402510
mov dword [esp + 0x20], 0
mov eax, dword [esi + 0x19c]
mov ecx, dword [eax + 0x14c]
mov edx, dword [eax + 0x148]
push ecx
push edx
lea eax, [esp + 0x1c]
push str.___s__s
push eax
call fcn.00402f80
mov ecx, dword [esp + 0x24]
mov eax, ecx
add esp, 0x10
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x563cf7
sub eax, edi
mov byte [ecx], 1
mov edi, ecx
mov ecx, dword [esi + 0x19c]
mov ebx, eax
mov eax, dword [ecx + 0x148]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x563d16
sub eax, edx
mov ecx, eax
mov byte [edi + 1], cl
mov edx, dword [esi + 0x19c]
mov eax, dword [edx + 0x14c]
lea ebp, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x563d33
push str.sending_socks5_auth
movzx ecx, cl
sub eax, ebp
push 0
mov byte [ecx + edi + 2], al
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
push ebx
push edx
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.00562650
push str.socks5:_sending_auth_n
mov ecx, esi
mov edi, eax
call fcn.00561d40
mov dword [esi + 0x40], 0
cmp edi, 0x2733
jne 0x563d83
xor edi, edi
jmp 0x563d87
test edi, edi
jne 0x563d91
mov dword [esi + 0xa4], 0x1f
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402580
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x563dc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x6606b8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x40]
push 0
mov ecx, 2
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x38]
mov eax, dword [esp + 0x24]
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.00562650
test eax, eax
jne 0x563ede
add dword [esi + 0x40], edi
cmp dword [esi + 0x40], 2
jge 0x563e39
mov eax, 0x2733
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
cmp byte [esi + 0x39], 0
jne 0x563e6c
mov al, byte [esi + 0x38]
cmp al, 5
je 0x563e4a
cmp al, 1
jne 0x563e6c
push str.socks5:_auth_reply_OK_n
mov ecx, esi
call fcn.00561d40
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
push 0x75f5f8
lea ecx, [esp + 0x20]
call fcn.00402800
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x1c]
push 1
push ecx
mov ecx, esi
call fcn.00562560
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0xb4]
push edx
call fcn.0056ae40
movsx eax, byte [esi + 0x39]
movsx ecx, byte [esi + 0x38]
push eax
push ecx
lea edx, [esp + 0x24]
push str.Sock_ver___d__reply___d_n
push edx
call fcn.00402f80
mov eax, dword [esp + 0x2c]
add esp, 0x10
push eax
mov ecx, esi
call fcn.00561d40
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402580
mov eax, 0x757f
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x563f00
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x84]
sub esp, 0x84
push 0xffffffffffffffff
push 0x660740
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x80], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x220], ebx
mov edi, dword [ebp + 0x8c]
mov dword [ebp - 0x21c], edi
mov ecx, 1
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x424], ebx
mov eax, dword [esi + 0x110]
cmp eax, ebx
je 0x563f96
mov edx, dword [eax]
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x220], 2
mov edx, dword [eax]
mov dword [ebp - 0x420], edx
mov dword [ebp - 0x424], ecx
mov ecx, dword [ebp + 0x90]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ebx
lea edx, [ebp - 0x1c]
push edx
neg eax
sbb eax, eax
lea ecx, [ebp - 0x424]
and eax, ecx
push eax
push ebx
lea edx, [ebp - 0x220]
push edx
lea eax, [edi + 1]
push eax
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x564006
call sub.WS2_32.dll_WSAGetLastError
mov ebx, eax
push edi
push ebx
push str.Select_failed__err_code___d__socket___d_n
lea ecx, [ebp]
push ecx
call fcn.0062311b
add esp, 0x10
lea edx, [ebp]
push edx
mov ecx, esi
call fcn.00561d40
mov eax, dword [0x75ea48]
push eax
mov ecx, dword [esi + 0xb4]
call fcn.0056ae40
mov eax, ebx
jmp 0x5640ac
cmp eax, ebx
jne 0x56403b
cmp dword [ebp + 0x90], ebx
je 0x564034
mov ecx, dword [0x75ea50]
push ecx
mov ecx, dword [esi + 0xb4]
call fcn.0056ae40
push 1
mov edx, dword [0x75ea50]
push edx
mov ecx, esi
call fcn.00562560
mov eax, 0x7532
jmp 0x5640ac
mov eax, dword [esi + 0x110]
cmp eax, ebx
je 0x564078
lea ecx, [ebp - 0x424]
push ecx
mov edx, dword [eax]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x564071
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [esi + 0x110]
mov edx, dword [ecx]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x564078
mov eax, 0x7540
jmp 0x5640ac
xor eax, eax
jmp 0x5640ac
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x80]
xor ecx, ebp
call fcn.0062023e
add ebp, 0x84
mov esp, ebp
pop ebp
ret 8
Function at 0x567410
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebp
push esi
push edi
push 0x67b490
xor edi, edi
call fcn.004476d0
mov ebp, dword [esp + 0x1c]
mov esi, eax
add esp, 4
test esi, esi
je 0x56746a
push ebx
push str.SHGetFolderPathW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x56745e
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 0x567458
lea edi, [eax + 1]
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
test edi, edi
jne 0x5674b9
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5674b9
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push ebp
push eax
push eax
push str.AppData
push edx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5674ae
lea edi, [eax + 1]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 8
ret