joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53fe80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x636b71
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.AMFObjectProperty.0
mov dword [esp + 0x14], 1
lea ecx, [esi + 0x30]
call fcn.00402550
mov byte [esp + 0x14], 0
lea ecx, [esi + 0x1c]
call fcn.0053fd20
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esi + 8]
call fcn.00402550
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x540320
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x636be6
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ebx, [esi + 4]
mov ecx, ebx
mov dword [esi], vtable.AMF3ClassDefinition.0
call fcn.004024e0
xor edx, edx
mov dword [esp + 0x20], edx
mov dword [esi + 0xc], vtable.CIDMStringsList.0
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], edx
mov byte [esp + 0x20], 1
mov edi, dword [esp + 0x28]
mov al, byte [esp + 0x2c]
mov cl, byte [esp + 0x30]
mov byte [esi + 8], al
mov byte [esi + 9], cl
cmp edi, edx
jne 0x540390
xor eax, eax
jmp 0x54039e
mov eax, edi
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, dl
jne 0x540395
sub eax, ebp
push eax
push edi
mov ecx, ebx
call fcn.00402940
mov dword [esp + 0x20], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc

Function at 0x5403d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x636b71
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 8]
mov dword [esi], vtable.AMFObjectProperty.0
call fcn.004024e0
mov dword [esp + 0x14], 0
lea ecx, [esi + 0x1c]
call fcn.0053fcc0
mov byte [esp + 0x14], 1
lea ecx, [esi + 0x30]
call fcn.004024e0
mov byte [esp + 0x14], 2
mov ecx, esi
call fcn.00540210
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x540ff0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [ecx + 0xd4]
jmp fcn.005547b0
Function at 0x541d70
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x636d70
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x70a308]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x541ddc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
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
lea edx, [ebp - 0x14]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], ebx
cmp eax, 0xffffffff
jne 0x541e27
cmp ebx, ebx
jne 0x541e27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp eax, ebx
je 0x541e27
mov dword [esi], ebx
mov dword [esi + 4], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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
push 1
push ebx
push ebx
mov edx, dword [ebp - 0x14]
push edx
call fcn.005fd4d0
add dword [esi], eax
adc dword [esi + 4], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
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 0x541e70
Capabilities:
Delete registry key

Disassembly:
push ebp
lea ebp, [esp - 0x84]
sub esp, 0x84
push 0xffffffffffffffff
push 0x636d90
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x70a308]
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 edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0xdc], edi
je 0x541f5c
mov eax, dword [esi + 0x90]
cmp eax, edi
je 0x541ee0
push eax
push str.SoftwareDownloadManager_ldChList
lea eax, [ebp]
push eax
call fcn.005fb4cb
add esp, 0xc
jmp 0x541ef9
mov ecx, dword [esi + 8]
push ecx
mov edx, dword [esi + 4]
push edx
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
lea eax, [ebp]
push eax
call fcn.005fb4cb
add esp, 0x10
mov byte [ebp - 4], 1
mov eax, dword [esi + 0xdc]
cmp eax, edi
je 0x541f0e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], edi
jmp 0x541f23
lea ecx, [ebp]
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea edx, [ebp - 0x18]
push edx
add esi, 0xdc
push esi
push 0
push 0xf003f
push 0
push 0x64f8bc
push 0
lea eax, [ebp]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
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 + 0x80]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0x84
mov esp, ebp
pop ebp
ret
Function at 0x5421b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x120
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
mov ebx, dword [esp + 0x12c]
push esi
mov esi, ecx
cmp dword [esi + 0xdc], 0
push edi
mov edi, dword [esp + 0x130]
je 0x5422c8
mov eax, dword [ebx + 0x60]
mov ecx, dword [ebx]
mov dword [esp + 0xc], eax
mov edx, dword [ecx + 0x50]
mov dword [esp + 0x14], edx
mov ecx, dword [ecx + 0x54]
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 0x58]
test ecx, ecx
je 0x54220b
mov edx, dword [ecx + 0x60]
mov dword [esp + 0x10], edx
jmp 0x542213
mov dword [esp + 0x10], 0xffffffff
push ebp
push eax
lea eax, [esp + 0x28]
push 0x64f36c
push eax
call fcn.005fb4cb
mov eax, dword [esi + 0xdc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 0xc
push 0x10
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
lea edx, [esp + 0x34]
push edx
push eax
call ebp
mov ecx, dword [edi + 0x60]
push ecx
lea edx, [esp + 0x28]
push 0x64f36c
push edx
call fcn.005fb4cb
add esp, 0xc
lea eax, [esp + 0x20]
push eax
mov eax, dword [esi + 0xdc]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
lea edx, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x38], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x5422a7
push eax
lea ecx, [esp + 0x30]
push str.Error_reading_registry__errCode___d._n
push ecx
call fcn.005fb4cb
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.00540ff0
mov eax, dword [ebx + 0x60]
push 0x10
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
lea edx, [esp + 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0xdc]
push edx
push eax
call ebp
pop ebp
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005f85e7
add esp, 0x120
ret 8
Function at 0x542360
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x636e08
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x70a308]
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, dword [ebp + 8]
mov dword [ebp - 0x28], esi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x542463
mov eax, dword [0x71000c]
cmp eax, edi
jne 0x5423c4
push str.Advapi32.dll
call fcn.00445b00
add esp, 4
mov dword [0x71000c], eax
cmp eax, edi
je 0x542463
cmp dword [0x710194], edi
jne 0x5423e2
push str.GetSecurityInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x710194], eax
mov eax, dword [0x71000c]
mov ecx, dword [0x710198]
cmp ecx, edi
jne 0x542400
push str.SetSecurityInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x710198], ecx
cmp dword [0x710194], edi
je 0x542463
cmp ecx, edi
je 0x542463
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
xor eax, eax
mov word [ebp - 0x1c], ax
mov byte [ebp - 4], 1
push edi
push esi
push str._s.tmp
lea ecx, [ebp - 0x20]
call fcn.00402190
mov eax, dword [ebp - 0x20]
cmp eax, edi
jne 0x542438
lea eax, [ebp - 0x1c]
push edi
push 0x80
push 1
push edi
push edi
push 0xc0020000
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x54247f
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004011f0
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.005f85e7
mov esp, ebp
pop ebp
ret
push edi
push edi
lea ecx, [ebp - 0x24]
push ecx
push edi
push edi
push 4
push 1
push esi
call dword [0x710194]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x5424a5
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
jne 0x542457
push edi
push 0x80
push 3
push edi
push edi
push 0x60000
mov edx, dword [ebp - 0x28]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x542457
push edi
mov eax, dword [ebp - 0x24]
push eax
push edi
push edi
push 4
push 1
push esi
call dword [0x710198]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004011f0
mov dword [ebp - 4], 0xffffffff
jmp 0x542463
Function at 0x5437b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x636f98
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x70a308]
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 - 0x4c], ebx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 0
push 0
push 0x65d310
mov edx, dword [esi + 0xdc]
push edx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call edi
test eax, eax
je 0x543831
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.005f85e7
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x48]
push eax
push str._dkf
lea ecx, [ebp - 0x2c]
push ecx
call fcn.005fb4cb
add esp, 0xc
mov dword [ebp - 0x30], ebx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [esi + 0xdc]
push edx
call edi
test eax, eax
jne 0x543924
mov eax, dword [ebp - 0x54]
cmp eax, 0xffffffff
jne 0x5438ad
mov eax, dword [ebp - 0x40]
fild dword [ebp - 0x40]
test eax, eax
jge 0x543882
fadd qword [0x656fc8]
fdiv qword [0x65d2f8]
fcom qword [esi + 0xb8]
fnstsw ax
test ah, 5
jp 0x543922
fsubr qword [esi + 0xb8]
fadd qword [esi + 0x80]
fstp qword [esi + 0x80]
jmp 0x543924
mov ecx, dword [ebp - 0x40]
cmp eax, ecx
jbe 0x5438da
sub eax, ecx
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
test eax, eax
jge 0x5438c6
fadd qword [0x656fc8]
fdiv qword [0x65d2f8]
fadd qword [esi + 0x80]
fstp qword [esi + 0x80]
jmp 0x543924
jae 0x543924
lea ecx, [ebp - 0x34]
call fcn.004024e0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
push str.error_in_chlist__id_d__next_d__starttime_ld__ts_ld_n
lea edx, [ebp - 0x34]
push edx
call fcn.00402f60
add esp, 0x18
mov eax, dword [ebp - 0x34]
push eax
mov ecx, esi
call fcn.00540ff0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00402550
jmp 0x543924
fstp st(0)
mov eax, dword [ebp - 0x44]
cmp eax, 0xffffffff
je 0x54395e
push eax
push 0x64f36c
lea ecx, [ebp - 0x1c]
push ecx
call fcn.005fb4cb
add esp, 0xc
mov dword [ebp - 0x30], ebx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x48]
push eax
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [esi + 0xdc]
push edx
call edi
test eax, eax
je 0x54396b
wait
mov dword [ebp - 4], 0xffffffff
jmp 0x543815
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x40]
cmp eax, ecx
jbe 0x543831
cmp eax, 0xffffffff
je 0x543831
sub eax, ecx
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
test eax, eax
jge 0x543994
fadd qword [0x656fc8]
fdiv qword [0x65d2f8]
fsubr qword [esi + 0x80]
fstp qword [esi + 0x80]
jmp 0x543831
Function at 0x54ba20
Capabilities:
Query or enumerate registry value

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

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

Disassembly:
push ebp
lea ebp, [esp - 0x150]
sub esp, 0x150
push 0xffffffffffffffff
push 0x637860
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x70a308]
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 0x54bb6c
mov eax, dword [esi + 0x60]
push eax
push 0x64f36c
lea ecx, [ebp + 0x144]
push ecx
call fcn.005fb4cb
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 0x54bb2f
push eax
push str.Error_reading_registry__errCode___d._n
lea eax, [ebp]
push eax
call fcn.005fb4cb
add esp, 0xc
lea ecx, [ebp]
push ecx
mov ecx, esi
call fcn.0054b8b0
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x54bb23
mov eax, dword [eax + 0x60]
jmp 0x54bb26
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.005fd4d0
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.005f85e7
add ebp, 0x150
mov esp, ebp
pop ebp
ret
Function at 0x54bbb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x63789b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x70a308]
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 0x54bcd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6378f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x70a308]
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 0x54bd53
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea ecx, [ebp + 8]
call fcn.004024e0
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x60]
push ecx
push str.sk_d
lea edx, [ebp + 8]
push edx
call fcn.00402f60
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.00402550
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 0x54bd90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x637928
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x70a308]
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 0x54be3e
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x14]
call fcn.004024e0
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x60]
push eax
push str.sk_d
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f60
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 0x54be33
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402550
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.00402550
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 0x54c7c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [ecx + 0x184]
test eax, eax
je 0x54c7e2
cmp byte [eax + 0x137], 0
je 0x54c7e2
mov ecx, dword [ecx + 0x3454]
test ecx, ecx
je 0x54c7e2
jmp 0x564640
jmp sub.WS2_32.dll_recv
push esi
mov esi, ecx
cmp dword [esi + 0x3440], 0
je 0x564655
cmp dword [esi + 0x3444], 0
jne 0x5646c3
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
test eax, eax
je 0x564682
cmp dword [esi + 0x3444], 0
jne 0x56468b
cmp eax, 0x2733
jne 0x56467b
push 0x2733
call sub.WS2_32.dll_WSASetLastError
or eax, 0xffffffff
pop esi
ret 0x10
cmp byte [esi + 0x3d8], 0
jne 0x5646c3
cmp dword [esi + 0x3444], 0
jne 0x56469d
cmp byte [esi + 0xc3], 0
jne 0x564655
test eax, eax
je 0x5646c3
cmp eax, 0x2733
jne 0x56467b
mov eax, dword [esi + 0x3444]
test eax, eax
jne 0x564723
push 0x2733
call sub.WS2_32.dll_WSASetLastError
or eax, 0xffffffff
pop esi
ret 0x10
mov eax, dword [esi + 0x3444]
test eax, eax
jne 0x5646de
cmp byte [esi + 0x3d8], al
je 0x564671
mov eax, 0xfffffffc
pop esi
ret 0x10
push edi
mov edi, dword [esp + 0x14]
cmp eax, edi
jae 0x5646e9
mov edi, eax
mov eax, dword [esi + 0x3440]
mov ecx, dword [esp + 0x10]
push edi
push eax
push ecx
call fcn.005fa190
add esp, 0xc
sub dword [esi + 0x3444], edi
mov eax, dword [esi + 0x3444]
je 0x564720
mov esi, dword [esi + 0x3440]
push eax
lea edx, [esi + edi]
push edx
push esi
call fcn.005fb7b0
add esp, 0xc
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x54d5f0
Capabilities:
Access peb ldr_data
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x637ae8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x30]
push 0
mov ecx, 8
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x28]
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.0054cd80
test eax, eax
jne 0x54d76c
add dword [esi + 0x30], edi
cmp dword [esi + 0x30], 8
jge 0x54d669
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 + 0x29], 0x5a
jne 0x54d6da
mov al, byte [esi + 0x28]
test al, al
je 0x54d67a
cmp al, 4
jne 0x54d6da
push str.socks4:_reply_OK_n
mov ecx, esi
call fcn.0054c540
cmp dword [esp + 0x20], 0
je 0x54d6c4
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
test eax, eax
jne 0x54d6b9
mov edx, dword [esi + 0x184]
mov eax, dword [edx + 0x140]
push 1
push ecx
push eax
mov ecx, esi
call fcn.0054ce70
test eax, eax
jne 0x54d76c
mov ax, word [esi + 0x2a]
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.004024e0
mov dword [esp + 0x14], 0
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x54d6f9
mov eax, dword [eax]
jmp 0x54d701
mov edx, dword [esi + 0xb0]
mov eax, dword [edx]
push eax
mov eax, dword [0x710ef0]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00402f60
mov edx, dword [esp + 0x28]
add esp, 0xc
push 1
push edx
mov ecx, esi
call fcn.0054cc90
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x9c]
push eax
call fcn.00554e70
movsx ecx, byte [esi + 0x29]
push ecx
lea edx, [esp + 0x20]
push str.Error_code___d_n
push edx
call fcn.00402f60
mov eax, dword [esp + 0x28]
add esp, 0xc
push eax
mov ecx, esi
call fcn.0054c540
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402550
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 0x54d780
Capabilities:
Access peb ldr_data
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x637ae8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x30]
push 0
mov ecx, 2
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x28]
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.0054cd80
test eax, eax
jne 0x54d8af
add dword [esi + 0x30], edi
cmp dword [esi + 0x30], 2
jge 0x54d7f9
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 + 0x29]
test al, al
je 0x54d804
cmp al, 2
jne 0x54d80e
cmp byte [esi + 0x28], 5
je 0x54d894
push 0x710ef4
lea ecx, [esp + 0x20]
call fcn.004027d0
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x1c]
push 1
push ecx
mov ecx, esi
call fcn.0054cc90
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x9c]
push edx
call fcn.00554e70
movsx eax, byte [esi + 0x29]
movsx ecx, byte [esi + 0x28]
push eax
push ecx
lea edx, [esp + 0x24]
push str.Sock_ver___d__reply___d_n
push edx
call fcn.00402f60
mov eax, dword [esp + 0x2c]
add esp, 0x10
push eax
mov ecx, esi
call fcn.0054c540
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402550
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.0054c540
cmp byte [esi + 0x29], 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