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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x657580
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x74f8a0]
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 0x54fc0c
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 0x54fc57
cmp ebx, ebx
jne 0x54fc57
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp eax, ebx
je 0x54fc57
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.0061cd30
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 0x54fca0
Capabilities:
Delete registry key

Disassembly:
push ebp
lea ebp, [esp - 0x84]
sub esp, 0x84
push 0xffffffffffffffff
push 0x6575a0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x74f8a0]
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 0x54fd8c
mov eax, dword [esi + 0x90]
cmp eax, edi
je 0x54fd10
push eax
push str.SoftwareDownloadManager_ldChList
lea eax, [ebp]
push eax
call fcn.0061af5b
add esp, 0xc
jmp 0x54fd29
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.0061af5b
add esp, 0x10
mov byte [ebp - 4], 1
mov eax, dword [esi + 0xdc]
cmp eax, edi
je 0x54fd3e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], edi
jmp 0x54fd53
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 0x670984
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.0061807e
add ebp, 0x84
mov esp, ebp
pop ebp
ret
Function at 0x54ffe0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x158
mov eax, dword [0x74f8a0]
xor eax, esp
mov dword [esp + 0x154], eax
push ebx
mov ebx, dword [esp + 0x164]
push esi
mov esi, ecx
cmp dword [esi + 0xdc], 0
push edi
mov edi, dword [esp + 0x168]
je 0x5500f8
mov eax, dword [ebx + 0x60]
mov ecx, dword [ebx]
mov dword [esp + 0xc], eax
mov edx, dword [ecx + 0x60]
mov dword [esp + 0x14], edx
mov ecx, dword [ecx + 0x64]
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 0x58]
test ecx, ecx
je 0x55003b
mov edx, dword [ecx + 0x60]
mov dword [esp + 0x10], edx
jmp 0x550043
mov dword [esp + 0x10], 0xffffffff
push ebp
push eax
lea eax, [esp + 0x28]
push 0x67042c
push eax
call fcn.0061af5b
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 0x67042c
push edx
call fcn.0061af5b
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 0x5500d7
push eax
lea ecx, [esp + 0x68]
push str.Error_reading_registry__errCode___d._n
push ecx
call fcn.0061af5b
add esp, 0xc
lea edx, [esp + 0x64]
push edx
mov ecx, esi
call fcn.0054ee20
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 + 0x160]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0061807e
add esp, 0x158
ret 8
Function at 0x550190
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x657618
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x74f8a0]
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 0x550293
mov eax, dword [0x755694]
cmp eax, edi
jne 0x5501f4
push str.Advapi32.dll
call fcn.00447490
add esp, 4
mov dword [0x755694], eax
cmp eax, edi
je 0x550293
cmp dword [0x755824], edi
jne 0x550212
push str.GetSecurityInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x755824], eax
mov eax, dword [0x755694]
mov ecx, dword [0x755828]
cmp ecx, edi
jne 0x550230
push str.SetSecurityInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x755828], ecx
cmp dword [0x755824], edi
je 0x550293
cmp ecx, edi
je 0x550293
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.004021b0
mov eax, dword [ebp - 0x20]
cmp eax, edi
jne 0x550268
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 0x5502af
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00401210
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.0061807e
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 [0x755824]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x5502d5
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
jne 0x550287
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 0x550287
push edi
mov eax, dword [ebp - 0x24]
push eax
push edi
push edi
push 4
push 1
push esi
call dword [0x755828]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00401210
mov dword [ebp - 4], 0xffffffff
jmp 0x550293
Function at 0x5518c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6577e8
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x74f8a0]
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 0x67e798
mov edx, dword [esi + 0xdc]
push edx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call edi
test eax, eax
je 0x551950
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.0061807e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x80]
push eax
push str._dkf
lea ecx, [ebp - 0x24]
push ecx
call fcn.0061af5b
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 0x551a4c
mov eax, dword [ebp - 0x8c]
cmp eax, 0xffffffff
jne 0x5519d2
mov eax, dword [ebp - 0x78]
fild dword [ebp - 0x78]
test eax, eax
jge 0x5519a7
fadd qword [0x678138]
fdiv qword [0x67e780]
fcom qword [esi + 0xb8]
fnstsw ax
test ah, 5
jp 0x551a4a
fsubr qword [esi + 0xb8]
fadd qword [esi + 0x80]
fstp qword [esi + 0x80]
jmp 0x551a4c
mov ecx, dword [ebp - 0x78]
cmp eax, ecx
jbe 0x5519ff
sub eax, ecx
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
test eax, eax
jge 0x5519eb
fadd qword [0x678138]
fdiv qword [0x67e780]
fadd qword [esi + 0x80]
fstp qword [esi + 0x80]
jmp 0x551a4c
jae 0x551a4c
lea ecx, [ebp - 0x6c]
call fcn.00402500
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_d__next_d__starttime_ld__ts_ld_n
lea edx, [ebp - 0x6c]
push edx
call fcn.00402f70
add esp, 0x18
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, esi
call fcn.0054ee20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.00402570
jmp 0x551a4c
fstp st(0)
mov eax, dword [ebp - 0x7c]
cmp eax, 0xffffffff
je 0x551a86
push eax
push 0x67042c
lea ecx, [ebp - 0x64]
push ecx
call fcn.0061af5b
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 0x551a93
wait
mov dword [ebp - 4], 0xffffffff
jmp 0x55192e
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x78]
cmp eax, ecx
jbe 0x551950
cmp eax, 0xffffffff
je 0x551950
sub eax, ecx
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
test eax, eax
jge 0x551abf
fadd qword [0x678138]
fdiv qword [0x67e780]
fsubr qword [esi + 0x80]
fstp qword [esi + 0x80]
jmp 0x551950
Function at 0x553fa0
Capabilities:
Get file size
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x657b18
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x74f8a0]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebp, ecx
call fcn.00553e20
lea ecx, [esp + 0x14]
call fcn.00402500
xor edi, edi
mov dword [esp + 0x88], edi
push str.Trace_list_2._r_n
mov ecx, ebp
call fcn.0054ee20
mov esi, dword [ebp + 0x88]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
cmp esi, edi
je 0x55416a
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 0x5540ac
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp + 0x100], 0xffffffff
mov edi, eax
jne 0x554085
cmp dword [ebp + 0x104], ebx
jne 0x554085
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x554085
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x18]
push str.Error_during_GetFileSize____errcode___d._n
push edx
call fcn.00402f70
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
mov ecx, ebp
call fcn.0054ee20
xor edi, edi
jmp 0x5540a1
mov ecx, dword [esp + 0x28]
push 1
push 0
push 0
push ecx
call fcn.0061cd30
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 0x67042c
push ecx
call fcn.0061af5b
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 0x554108
mov eax, dword [eax + 0x60]
jmp 0x55410b
or eax, 0xffffffff
mov ecx, dword [esi]
test ecx, ecx
je 0x554119
mov ecx, dword [ecx + 0x98]
jmp 0x55411c
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_d__conn_d__next_d__compl_d__start_I64d__fsize_I64d__total_I64d_r_n
push ecx
call fcn.00402f70
mov edx, dword [esp + 0x44]
add esp, 0x30
push edx
mov ecx, ebp
call fcn.0054ee20
mov esi, dword [esi + 0x58]
test esi, esi
jne 0x554010
push str.End_trace_list._r_n
mov ecx, ebp
call fcn.0054ee20
mov dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402570
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.0061807e
add esp, 0x78
ret
Function at 0x55ab90
Capabilities:
Query or enumerate registry value

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

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

Disassembly:
push ebp
lea ebp, [esp - 0x150]
sub esp, 0x150
push 0xffffffffffffffff
push 0x658180
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x74f8a0]
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 0x55acdc
mov eax, dword [esi + 0x60]
push eax
push 0x67042c
lea ecx, [ebp + 0x144]
push ecx
call fcn.0061af5b
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 0x55ac9f
push eax
push str.Error_reading_registry__errCode___d._n
lea eax, [ebp]
push eax
call fcn.0061af5b
add esp, 0xc
lea ecx, [ebp]
push ecx
mov ecx, esi
call fcn.0055aa20
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x55ac93
mov eax, dword [eax + 0x60]
jmp 0x55ac96
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.0061cd30
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.0061807e
add ebp, 0x150
mov esp, ebp
pop ebp
ret
Function at 0x55ad20
Capabilities:
Access peb ldr_data
Get ntdll base address

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x658218
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x74f8a0]
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 0x55aec3
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea ecx, [ebp + 8]
call fcn.00402500
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x60]
push ecx
push str.sk_d
lea edx, [ebp + 8]
push edx
call fcn.00402f70
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.00402570
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 0x55af00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x658248
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x74f8a0]
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 0x55afae
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x60]
push eax
push str.sk_d
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f70
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 0x55afa3
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402570
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.00402570
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 0x55b9c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [ecx + 0x194]
test eax, eax
je 0x55b9e2
cmp byte [eax + 0x137], 0
je 0x55b9e2
mov ecx, dword [ecx + 0x346c]
test ecx, ecx
je 0x55b9e2
jmp 0x574220
jmp sub.WS2_32.dll_recv
push esi
mov esi, ecx
cmp dword [esi + 0x3458], 0
je 0x574235
cmp dword [esi + 0x345c], 0
jne 0x5742a3
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
test eax, eax
je 0x574262
cmp dword [esi + 0x345c], 0
jne 0x57426b
cmp eax, 0x2733
jne 0x57425b
push 0x2733
call sub.WS2_32.dll_WSASetLastError
or eax, 0xffffffff
pop esi
ret 0x10
cmp byte [esi + 0x3e8], 0
jne 0x5742a3
cmp dword [esi + 0x345c], 0
jne 0x57427d
cmp byte [esi + 0xd3], 0
jne 0x574235
test eax, eax
je 0x5742a3
cmp eax, 0x2733
jne 0x57425b
mov eax, dword [esi + 0x345c]
test eax, eax
jne 0x574303
push 0x2733
call sub.WS2_32.dll_WSASetLastError
or eax, 0xffffffff
pop esi
ret 0x10
mov eax, dword [esi + 0x345c]
test eax, eax
jne 0x5742be
cmp byte [esi + 0x3e8], al
je 0x574251
mov eax, 0xfffffffc
pop esi
ret 0x10
push edi
mov edi, dword [esp + 0x14]
cmp eax, edi
jae 0x5742c9
mov edi, eax
mov eax, dword [esi + 0x3458]
mov ecx, dword [esp + 0x10]
push edi
push eax
push ecx
call fcn.00619c20
add esp, 0xc
sub dword [esi + 0x345c], edi
mov eax, dword [esi + 0x345c]
je 0x574300
mov esi, dword [esi + 0x3458]
push eax
lea edx, [esi + edi]
push edx
push esi
call fcn.0061b240
add esp, 0xc
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x55cbb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x658498
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x74f8a0]
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.0055bff0
test eax, eax
jne 0x55cd2c
add dword [esi + 0x40], edi
cmp dword [esi + 0x40], 8
jge 0x55cc29
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 0x55cc9a
mov al, byte [esi + 0x38]
test al, al
je 0x55cc3a
cmp al, 4
jne 0x55cc9a
push str.socks4:_reply_OK_n
mov ecx, esi
call fcn.0055b6c0
cmp dword [esp + 0x20], 0
je 0x55cc84
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
test eax, eax
jne 0x55cc79
mov edx, dword [esi + 0x194]
mov eax, dword [edx + 0x140]
push 1
push ecx
push eax
mov ecx, esi
call fcn.0055c0e0
test eax, eax
jne 0x55cd2c
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.00402500
mov dword [esp + 0x14], 0
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x55ccb9
mov eax, dword [eax]
jmp 0x55ccc1
mov edx, dword [esi + 0xc0]
mov eax, dword [edx]
push eax
mov eax, dword [0x7565b8]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00402f70
mov edx, dword [esp + 0x28]
add esp, 0xc
push 1
push edx
mov ecx, esi
call fcn.0055bf00
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0xac]
push eax
call fcn.005646e0
movsx ecx, byte [esi + 0x39]
push ecx
lea edx, [esp + 0x20]
push str.Error_code___d_n
push edx
call fcn.00402f70
mov eax, dword [esp + 0x28]
add esp, 0xc
push eax
mov ecx, esi
call fcn.0055b6c0
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402570
mov eax, 0x755d
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0x10