joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b1830
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x81c
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0x818], eax
mov edx, dword [esp + 0x828]
mov eax, dword [esp + 0x82c]
push esi
mov esi, dword [esp + 0x828]
push edi
mov edi, dword [esp + 0x828]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x5b1913
push 0x801
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0061d9e0
add esp, 0xc
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x800
lea edx, [esp + 0x28]
push edx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5b1913
mov esi, dword [esp + 0xc]
test esi, esi
je 0x5b1913
lea eax, [esp + 0xb]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x1f], 0
mov dword [esp + 0x28], 0
call fcn.0055ff10
test al, al
je 0x5b1904
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x818]
xor ecx, esp
call fcn.0061d2ff
add esp, 0x81c
ret
cmp byte [esp + 0xb], 0
je 0x5b1913
cmp esi, 0x104
ja 0x5b18eb
mov ecx, dword [esp + 0x820]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.0061d2ff
add esp, 0x81c
ret
Function at 0x5b1e60
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x661d40
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0x28]
mov dword [esp + 0x10], esi
mov dword [esi], vtable.Session.0
call fcn.00553880
xor edi, edi
mov dword [esp + 0x230], edi
lea ecx, [esi + 0x130]
call fcn.00402500
mov ebx, 1
mov byte [esp + 0x230], bl
lea ecx, [esi + 0x184]
call fcn.00402500
mov byte [esp + 0x230], 2
fldz
mov dword [esi + 0x1a8], ebx
mov dword [esi + 0x1a4], 0x20
mov dword [esi + 0x1a0], edi
mov dword [esi + 0x170], edi
mov eax, dword [0x75ae70]
mov dword [esi + 0x168], eax
mov ecx, dword [0x75ae74]
fst qword [esi + 0x188]
lea edx, [esp + 0x14]
fstp qword [esi + 0x198]
mov dword [esi + 0x14c], ebx
push edx
or ebx, 0xffffffff
push 0x202
mov dword [esi + 0x16c], ecx
mov dword [esi + 0x174], edi
mov dword [esi + 0x178], edi
mov dword [esi + 0x1b8], edi
mov dword [esi + 0x1bc], edi
mov dword [esi + 0x1c8], edi
mov dword [esi + 0x1c0], edi
mov dword [esi + 0x1c4], edi
mov dword [esi + 0x190], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x234], edi
mov dword [esi + 0x23c], edi
mov dword [esi + 0x134], edi
mov dword [esi + 0x138], edi
mov dword [esi + 0x214], edi
mov dword [esi + 0x218], edi
mov dword [esi + 0x21c], edi
mov dword [esi + 0x1f0], edi
mov dword [esi + 0x1f4], edi
mov dword [esi + 0x220], edi
mov dword [esi + 0x228], edi
mov dword [esi + 0x22c], edi
mov dword [esi + 0x230], edi
mov dword [esi + 0x1d0], edi
mov dword [esi + 0x200], edi
mov dword [esi + 0x204], edi
mov dword [esi + 8], edi
mov dword [esi + 0x13c], edi
mov dword [esi + 0x140], edi
mov dword [esi + 0x144], edi
mov dword [esi + 0x148], edi
mov dword [esi + 0x154], edi
mov dword [esi + 0x158], edi
mov dword [esi + 0x15c], edi
mov dword [esi + 0x160], ebx
mov dword [esi + 0x17c], edi
mov dword [esi + 0x180], edi
mov dword [esi + 0x164], edi
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x5b2041
push 2
push 2
lea eax, [esp + 0x1ac]
push str.Cannot_find_Winsock_v_d._d_or_later__n
push eax
call fcn.006201db
add esp, 0x10
lea ecx, [esp + 0x1a4]
push ecx
mov ecx, esi
call fcn.005b1930
mov dword [esp + 0x230], ebx
mov eax, esi
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0061d2ff
add esp, 0x224
ret
Function at 0x5b3a70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [0x75abd8]
lea eax, [esp]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0
push str.bSetServerTimeToFile
push edx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
not eax
and eax, dword [esp + 4]
add esp, 8
ret

Function at 0x5b3c70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x661fe0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x755898]
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 - 0x14], esi
mov dword [ebp - 4], 0
lea edi, [esi + 0x20]
mov eax, dword [ebp + 8]
push eax
mov ecx, edi
call fcn.005c8b10
test eax, eax
je 0x5b3ccb
push str.Not_enough_memory_during_call_to_SetDescription____n
lea ecx, [esi + 0x51c]
call fcn.00568c40
jmp 0x5b3d22
mov eax, dword [esi + 0x4e8]
test eax, eax
je 0x5b3d22
cmp dword [esi + 0x49c], 0
jne 0x5b3cea
push eax
mov ecx, edi
call fcn.005cc020
test al, al
je 0x5b3d29
mov edx, dword [esi + 0x60]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b3cf2
sub eax, edi
cmp byte [esi + 0x34e], cl
mov ecx, str.WDescription
jne 0x5b3d0d
mov ecx, 0x687a84
inc eax
push eax
push edx
push 1
push 0
push ecx
mov ecx, dword [esi + 0x49c]
push ecx
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 esp, ebp
pop ebp
ret 4

Function at 0x5b3e00
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
mov esi, ecx
mov dword [esi + 0x324], eax
mov eax, dword [esi + 0x4e8]
test eax, eax
je 0x5b3e73
cmp dword [esi + 0x49c], 0
jne 0x5b3e2e
push eax
lea ecx, [esi + 0x20]
call fcn.005cc020
test al, al
je 0x5b3e73
mov edx, dword [esi + 0x49c]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push 0
push str.categoryID
push edx
call edi
movzx eax, byte [esi + 0x357]
mov edx, dword [esi + 0x49c]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
push str.CISBU
push edx
mov dword [esp + 0x20], eax
call edi
pop edi
pop esi
pop ecx
ret 4
Function at 0x5b3ff0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
push edi
xor edi, edi
cmp eax, edi
jne 0x5b401b
xor eax, eax
pop edi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0061d2ff
add esp, 0x10
ret
push esi
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x5b407b
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push eax
push 8
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5b4072
cmp dword [esp + 8], 8
jne 0x5b4072
cmp dword [esp + 0x10], 0x70797466
jne 0x5b4072
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0x14]
pop esi
pop edi
xor ecx, esp
call fcn.0061d2ff
add esp, 0x10
ret

Function at 0x5b4480
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push esi
push 0
push 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5b44cd
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b44b1
sub eax, edx
je 0x5b44cd
push esi
call fcn.00453050
add esp, 4
mov eax, 1
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret
Function at 0x5b48c0
Capabilities:
Delete registry key

Disassembly:
push ebp
lea ebp, [esp - 0x84]
sub esp, 0x84
push 0xffffffffffffffff
push 0x662120
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x755898]
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 eax, dword [esi + 0x49c]
cmp eax, ebx
je 0x5b491d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x49c], ebx
mov eax, dword [esi + 0x4e8]
push eax
push str.SoftwareDownloadManager_ldChList
lea ecx, [ebp]
push ecx
call fcn.006201db
add esp, 0xc
lea edx, [ebp]
push edx
push 0x80000001
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
call edi
cmp dword [ebp + 0x8c], ebx
je 0x5b4955
mov ecx, esi
call fcn.005b7650
mov eax, dword [esi + 0x4e8]
push eax
push str.SoftwareDownloadManager_ld
lea ecx, [ebp]
push ecx
call fcn.006201db
add esp, 0xc
lea edx, [ebp]
push edx
push 0x80000001
call edi
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.0061d2ff
add ebp, 0x84
mov esp, ebp
pop ebp
ret 4
Function at 0x5b4a10
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x662150
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x755898]
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 dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
push 0
push 0x400
mov edi, dword [ebp + 0xc]
push edi
mov ebx, dword [ebp + 8]
push ebx
call fcn.00621390
mov dword [ebp - 0x28], eax
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov ecx, ebx
sub ecx, eax
mov eax, edi
sbb eax, edx
push 0
push 0x400
push eax
push ecx
call fcn.006212e0
mov esi, eax
and esi, 0x800003ff
jns 0x5b4a94
dec esi
or esi, 0xfffffc00
inc esi
mov eax, esi
shl eax, 0xa
cdq
mov ecx, ebx
sub ecx, eax
mov eax, edi
sbb eax, edx
sub ecx, dword [ebp - 0x1c]
sbb eax, dword [ebp - 0x18]
push 0
push 0x100000
push eax
push ecx
call fcn.006212e0
and eax, 0x800003ff
jns 0x5b4ac4
dec eax
or eax, 0xfffffc00
inc eax
mov dword [ebp - 0x24], eax
push 0
push 0x40000000
push edi
push ebx
call fcn.006212e0
mov edi, eax
push 8
lea ecx, [ebp - 0x1c]
push ecx
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x5b4af7
mov edx, 0x2c
mov word [ebp - 0x1c], dx
mov ecx, dword [ebp - 0x24]
test edi, edi
jne 0x5b4b88
cmp ecx, 0x3e7
jg 0x5b4b88
test ecx, ecx
jne 0x5b4b65
cmp esi, 0x3e7
jg 0x5b4b65
test esi, esi
je 0x5b4b47
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x3e8
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
mov ecx, dword [0x75c0a0]
push ecx
push eax
lea edx, [ebp - 0x1c]
push edx
push esi
push str._d_s_03d___s
mov eax, dword [ebp - 0x20]
push eax
jmp 0x5b4bb2
mov ecx, dword [0x75c0a4]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push str._d___s
mov eax, dword [ebp - 0x20]
push eax
call fcn.006201db
add esp, 0x10
jmp 0x5b4bba
mov eax, esi
imul eax, eax, 0x3e8
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
mov edx, dword [0x75c09c]
push edx
push eax
lea eax, [ebp - 0x1c]
push eax
push ecx
jmp 0x5b4ba9
mov eax, ecx
imul eax, eax, 0x3e8
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
mov edx, dword [0x75c098]
push edx
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push str._d_s_03d___s
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.006201db
add esp, 0x18
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 - 0x14]
xor ecx, ebp
call fcn.0061d2ff
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5b5b40
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x662236
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
mov edi, dword [esp + 0x290]
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x18], ax
mov dword [esp + 0x288], ebx
push ebx
push edi
push 0x679590
lea ecx, [esp + 0x20]
call fcn.004021b0
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x5b5bb6
lea eax, [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5b5be0
mov dword [esp + 0x288], eax
lea ecx, [esp + 0x14]
call fcn.00401210
or eax, esi
jmp 0x5b5c9d
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x2c]
push edx
push esi
call ebp
lea eax, [esp + 0x2c]
push eax
push esi
call ebp
test eax, eax
je 0x5b5c62
lea ebx, [ebx]
xor ecx, ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov word [esp + 0x24], cx
mov byte [esp + 0x288], 1
push ebx
lea edx, [esp + 0x5c]
push edx
push edi
push 0x675de0
lea ecx, [esp + 0x30]
call fcn.00402320
test byte [esp + 0x2c], 0x10
jne 0x5b5c46
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x5b5c3f
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x288], bl
lea ecx, [esp + 0x20]
call fcn.00401210
lea eax, [esp + 0x2c]
push eax
push esi
call ebp
test eax, eax
jne 0x5b5c00
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x75ac2c]
cmp eax, ebx
jne 0x5b5c77
mov eax, 0x75ac30
push eax
call fcn.006200a3
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [esp + 0x288], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00401210
xor eax, eax
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.0061d2ff
add esp, 0x278
ret
Function at 0x5b7330
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x662608
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
push eax
push esi
push 0
push 0
push ecx
push ebp
mov dword [esp + 0x2c], edi
call ebx
test eax, eax
jne 0x5b73b3
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b7386
sub eax, edx
je 0x5b73b3
push esi
call fcn.00453050
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
lea edx, [esp + 0x14]
push edx
push esi
push 0
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x3c]
push 0
push edi
push ebp
call ebx
test eax, eax
jne 0x5b7472
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b73d6
sub eax, edx
je 0x5b7472
lea ecx, [esp + 0x2c]
call fcn.00402500
mov dword [esp + 0x20], 0
push esi
lea eax, [esp + 0x30]
push 0x675ea0
push eax
call fcn.00402f70
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00453050
mov edx, dword [esp + 0x3c]
mov eax, edx
add esp, 0x10
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b7420
sub eax, esi
inc eax
push eax
push edx
mov edx, dword [esp + 0x3c]
push 0
push 0
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x5b7448
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00402570
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x5b7490
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x662638
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
cmp dword [esp + 0x2c], 0
mov esi, dword [esp + 0x28]
je 0x5b74fd
test esi, esi
je 0x5b74d1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b74c6
sub eax, edx
jne 0x5b74fd
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push eax
push esi
call edi
mov ecx, dword [esp + 0x20]
push ecx
push esi
call edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret
lea ecx, [esp + 0x2c]
call fcn.00402500
mov dword [esp + 0x14], 0
push esi
lea edx, [esp + 0x30]
push 0x675ea0
push edx
call fcn.00402f70
mov eax, dword [esp + 0x38]
push eax
call fcn.00453050
mov edx, dword [esp + 0x3c]
mov eax, edx
add esp, 0x10
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b7534
mov ecx, dword [esp + 0x24]
sub eax, esi
mov esi, dword [esp + 0x1c]
inc eax
push eax
push edx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x5b7564
mov edx, dword [esp + 0x20]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00402570
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret

Function at 0x5b7590
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x64cb68
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
lea ecx, [esp + 8]
call fcn.00402500
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0xc]
push 0x675ea0
push ecx
call fcn.00402f70
mov edx, dword [esp + 0x14]
push edx
call fcn.00453050
mov edx, dword [esp + 0x18]
mov eax, edx
add esp, 0x10
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b75f0
mov ecx, dword [esp + 0x1c]
sub eax, esi
inc eax
push eax
mov eax, dword [esp + 0x24]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 8]
call fcn.00402570
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x5b7640
Capabilities:
Reference http user-agent string

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x5b71e7
mov eax, esi
push edi
lea edi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5b71c0
sub eax, edi
pop edi
je 0x5b71e7
push esi
add ecx, 0x18c
push 0x675ea0
push ecx
call fcn.00402f70
add esp, 0xc
xor eax, eax
pop esi
ret 4
add ecx, 0x18c
push str.Mozilla_5.0__compatible__MSIE_10.0__Windows_NT_6.1__Trident_6.0_
push ecx
call fcn.00402f70
add esp, 8
xor eax, eax
pop esi
ret 4
add ecx, 0x20
jmp 0x5b71b0
Function at 0x5c68e0
Capabilities:
Get file size

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0x28]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor edi, edi
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
cmp eax, 0xffffffff
jne 0x5c6916
cmp edi, edi
jne 0x5c6916
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5c6916
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
mov edx, dword [esp + 8]
push 1
push edi
push edi
push edx
call fcn.00621c40
add dword [esi + 0x20], eax
mov ecx, dword [esi + 0x20]
adc dword [esi + 0x24], edx
mov eax, dword [esi + 0x24]
mov edx, ecx
or edx, eax
jne 0x5c693d
pop edi
lea eax, [edx - 2]
pop esi
pop ecx
ret
cmp eax, edi
push ebp
jg 0x5c6950
jl 0x5c694c
cmp ecx, 0x2dc6c0
jae 0x5c6950
mov ebp, ecx
jmp 0x5c6955
mov ebp, 0x2dc6c0
push ebx
push ebp
call fcn.0061f92f
mov ebx, eax
add esp, 4
cmp ebx, edi
jne 0x5c6970
pop ebx
pop ebp
pop edi
mov eax, 0xfffffffd
pop esi
pop ecx
ret
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
push ebp
push ebx
mov ecx, esi
call fcn.005c6650
mov edi, eax
test edi, edi
jge 0x5c698a
cmp edi, 0xfffffff5
jne 0x5c699f
cmp edi, 1
je 0x5c699f
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x20]
jne 0x5c6976
mov ecx, dword [esi + 0x34]
cmp ecx, dword [esi + 0x24]
jne 0x5c6976
push ebx
call fcn.0061e83c
add esp, 4
pop ebx
pop ebp
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x5c6d60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x66341b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 4], eax
mov dword [eax], vtable.CTSReader.0
xor ecx, ecx
mov dword [eax + 0x48], vtable.CPMTStream.0
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [esp + 0x10], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 1
mov dword [eax + 0x44], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x90], ecx
mov dword [eax + 0x94], ecx
mov dword [eax + 0x88], ecx
mov dword [eax + 0x84], ecx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov byte [eax + 0x98], cl
mov byte [eax + 0x99], cl
mov byte [eax + 0x9a], cl
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov byte [eax + 0x40], cl
mov byte [eax + 0x41], cl
mov dword [eax + 0x3c], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ecx
mov dword [esp + 0x10], 0xffffffff
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret

Function at 0x5c6ed0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
or eax, 0xffffffff
test edx, edx
jbe 0x5c6f03
mov ecx, dword [esp + 4]
push esi
push edi
movsx edi, byte [ecx]
mov esi, eax
shr esi, 0x18
xor esi, edi
and esi, 0xff
shl eax, 8
xor eax, dword [esi*4 + 0x6b28f8]
inc ecx
sub edx, 1
jne 0x5c6ee1
pop edi
pop esi
ret