joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ff01
Capabilities:
Query service status
Stop service

Disassembly:
push 0x38
mov eax, 0x52a580
call fcn.004e41bf
mov esi, ecx
push 0x55695c
lea ecx, [ebp - 0x28]
call fcn.0040996a
and dword [ebp - 4], 0
mov eax, dword [esi + 0x560]
mov eax, dword [eax + 0x14]
cmp eax, 6
jne 0x41ff35
mov esi, str.TenorshareWinAdService
jmp 0x41ff3f
cmp eax, 0x69
jne 0x41ff50
mov esi, str.TenorshareDataRecoveryService
push esi
call fcn.00401903
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004022b0
cmp dword [ebp - 0x18], 0
je 0x42001a
push 0xf003f
push str.ServicesActive
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x41ff7a
xor edi, edi
inc edi
jmp 0x42001c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0xf01ff
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x41ffa3
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 2
jmp 0x41ffc0
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x41ffc3
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
push 3
pop edi
jmp 0x42001c
push 4
pop edi
cmp dword [ebp - 0x40], edi
jne 0x42001a
lea eax, [ebp - 0x44]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x41ffea
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
jmp 0x42001c
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x420001
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [ebp - 0x40], 1
je 0x42000e
lea eax, [ebp - 0x44]
push eax
push esi
call edi
test eax, eax
jne 0x41fff2
jmp 0x42001a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
xor edi, edi
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004021c6
mov eax, edi
call fcn.004e4169
ret
Function at 0x420030
Capabilities:
Create thread

Disassembly:
push 0xb0
mov eax, 0x52a5b8
call fcn.004e41bf
mov edi, ecx
call fcn.0041f8ca
test al, al
jne 0x420052
or eax, 0xffffffff
jmp 0x420193
mov ecx, edi
call fcn.0041f4be
test al, al
je 0x42004a
mov ecx, edi
call fcn.0041ff01
lea eax, [ebp - 0x20]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 1
push 0x168
push 0x28a
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, edi
call fcn.0044e2f5
lea ecx, [ebp - 0xbc]
call fcn.0044d5d4
xor ebx, ebx
lea eax, [edi + 0x448]
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
jb 0x4200b1
mov eax, dword [eax]
push ecx
push ecx
xorps xmm0, xmm0
movsd qword [esp], xmm0
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.0044db9e
mov eax, dword [edi + 0x374]
lea ecx, [ebp - 0xbc]
add esp, 0x10
mov esi, dword [eax]
call fcn.0044803f
mov ecx, dword [edi + 0x374]
push eax
call dword [esi + 0x2c]
mov ecx, dword [edi + 0x494]
push ebx
mov eax, dword [ecx]
call dword [eax + 0xcc]
mov ecx, dword [edi + 0x498]
push ebx
mov eax, dword [ecx]
call dword [eax + 0xcc]
mov ecx, dword [edi + 0x4a0]
push ebx
mov eax, dword [ecx]
call dword [eax + 0xcc]
push dword [edi + 0x4d0]
mov edx, str.install_page
lea ecx, [ebp - 0x38]
push str.start_app
call fcn.0042e5c4
pop ecx
pop ecx
mov edx, eax
mov byte [ebp - 4], 1
cmp dword [edx + 0x14], 8
jb 0x42013d
mov edx, dword [edx]
mov ecx, dword [edi + 0x4a4]
push edx
mov eax, dword [ecx]
call dword [eax + 0x2c]
push ebx
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.004021c6
mov ecx, dword [edi + 0x4bc]
push 0x55dcf0
call fcn.0044ce46
mov ecx, edi
call fcn.0041f294
push ebx
push ebx
push edi
push 0x41b450
push ebx
push ebx
call fcn.004fff73
add esp, 0x18
mov dword [edi + 0x5d8], eax
lea ecx, [ebp - 0xbc]
call fcn.0044d6c6
xor eax, eax
call fcn.004e4169
ret
Function at 0x420199
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x234
mov eax, 0x52a5eb
call fcn.004e41bf
mov esi, ecx
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x234]
push str.SoftWareMicrosoftWindowsCurrentVersionUninstall_
mov dword [ebp - 0x23c], 0x104
mov dword [ebp - 0x240], 1
call fcn.0040996a
xor ebx, ebx
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x560]
push 0xffffffffffffffff
push ebx
add eax, 0x28
push eax
call fcn.004263d8
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x238]
push ecx
push 0xf003f
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x420283
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x240]
push eax
push ebx
push str.RequestTooMuchTimes
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420277
lea eax, [ebp - 0x21c]
push eax
call fcn.00401903
pop ecx
push eax
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.004022b0
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
inc esi
jmp 0x420285
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.004021c6
mov eax, esi
call fcn.004e4169
ret 8

Function at 0x42029d
Capabilities:
Set registry value

Disassembly:
push 0x20
mov eax, 0x52a623
call fcn.004e41bf
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x28]
push str.SoftWareMicrosoftWindowsCurrentVersionUninstall_
mov dword [ebp - 4], edi
call fcn.0040996a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
mov eax, dword [esi + 0x560]
push 0xffffffffffffffff
push edi
add eax, 0x28
push eax
call fcn.004263d8
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x420330
cmp dword [ebp + 0x20], 8
lea ecx, [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
cmovae ecx, dword [ebp + 0xc]
add eax, eax
push eax
push ecx
push 1
push edi
push str.RequestTooMuchTimes
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
test eax, eax
jne 0x42032a
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
inc esi
jmp 0x420332
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, edi
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.004021c6
push edi
push 1
lea ecx, [ebp + 0xc]
call fcn.004021c6
mov eax, esi
call fcn.004e4169
ret 0x1c
Function at 0x422cfd
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x478
mov eax, 0x52ab09
call fcn.004e41bf
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x424]
push 0x104
xor ebx, ebx
push ebx
push eax
call fcn.004fce20
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push ebx
push eax
call fcn.004fce20
add esp, 0xc
mov dword [ebp - 0x45c], ebx
xor eax, eax
mov word [ebp - 0x46c], ax
push 7
pop ecx
mov dword [ebp - 0x458], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov word [ebp - 0x43c], ax
mov dword [ebp - 0x440], ecx
mov dword [ebp - 0x444], ebx
mov word [ebp - 0x454], ax
lea eax, [ebp - 0x484]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.00422e94
push eax
lea ecx, [ebp - 0x43c]
call fcn.0040214d
push ebx
push 1
lea ecx, [ebp - 0x484]
call fcn.004021c6
lea eax, [ebp - 0x424]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x422e5e
push 0x104
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLongPathNameW]
lea eax, [ebp - 0x21c]
push eax
call fcn.00401903
pop ecx
push eax
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.004022b0
lea eax, [ebp - 0x484]
mov ecx, edi
push eax
call fcn.00422f07
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004263d8
push ebx
push 1
lea ecx, [ebp - 0x484]
mov byte [ebp - 4], 2
call fcn.004021c6
mov edi, 0x55bd28
push edi
call fcn.00401903
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00426334
cmp dword [esi + 0x14], 8
jb 0x422e45
mov esi, dword [esi]
push ebx
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
sub eax, ebx
je 0x422e5c
sub eax, 0x50
je 0x422e5c
sub eax, 0x67
jne 0x422e5e
mov bl, 1
xor esi, esi
lea ecx, [ebp - 0x454]
push esi
push 1
call fcn.004021c6
push esi
push 1
lea ecx, [ebp - 0x43c]
call fcn.004021c6
push esi
push 1
lea ecx, [ebp - 0x46c]
call fcn.004021c6
mov al, bl
call fcn.004e4169
ret 4
Function at 0x423b27
Capabilities:
Delete file

Disassembly:
push 0x64
mov eax, 0x52ace9
call fcn.004e41bf
mov esi, ecx
push 7
pop ecx
xor ebx, ebx
mov dword [ebp - 0x14], ecx
xor eax, eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], ax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.00422cfd
xor edi, edi
lea eax, [ebp - 0x70]
inc edi
mov ecx, esi
push edi
push eax
call fcn.0042303e
push eax
lea ecx, [ebp - 0x58]
call fcn.0040214d
push ebx
push edi
lea ecx, [ebp - 0x70]
call fcn.004021c6
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.004263d8
push 0x55d29c
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x70]
call fcn.004271c7
pop ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.0040214d
push ebx
push edi
lea ecx, [ebp - 0x70]
call fcn.004021c6
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
push ebx
push edi
lea ecx, [ebp - 0x40]
call fcn.004021c6
push ebx
push edi
lea ecx, [ebp - 0x58]
call fcn.004021c6
push ebx
push edi
lea ecx, [ebp - 0x28]
call fcn.004021c6
call fcn.004e4169
ret

Function at 0x426501
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x52851e
call fcn.004e41bf
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x426608
cmp byte [ebx + 0x3e], 0
je 0x426608
mov eax, dword [ebx]
mov esi, 0xffff
push esi
call dword [eax + 0xc]
movzx eax, ax
cmp si, ax
sete al
test al, al
je 0x426542
xor al, al
jmp 0x42660a
xor eax, eax
mov dword [ebp - 0x18], 0xf
push eax
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
call fcn.0040c4a4
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
lea eax, [ebp - 0x30]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x2c]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4265a0
sub eax, 1
je 0x4265a4
dec eax
sub eax, 1
je 0x4265f6
xor bl, bl
jmp 0x4265f8
mov byte [ebx + 0x3e], 0
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
cmp ecx, 0x10
mov esi, dword [ebp - 0x30]
cmovae eax, edx
sub esi, eax
je 0x4265dc
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00504cc0
add esp, 0x10
cmp esi, eax
jne 0x42659c
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp byte [ebx + 0x3e], 0
je 0x4265f6
test esi, esi
jne 0x426566
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040c601
jmp 0x426560
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040bfcb
mov al, bl
jmp 0x42660a
mov al, 1
call fcn.004e4169
ret
Function at 0x42be95
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0x10]
push eax
push ebx
push str.Version
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42bf01
cmp dword [ebp + 0x10], 1
je 0x42bed9
cmp dword [ebp + 0x10], 2
je 0x42bed9
push 0xd
pop eax
jmp 0x42bf01
mov ecx, dword [ebp - 4]
test esi, esi
je 0x42befb
test ecx, ecx
je 0x42bef6
test cl, 1
jne 0x42bed4
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x42befb
jmp 0x42bed4
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42d0fa
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x220
mov eax, 0x52b8eb
call fcn.004e41bf
mov esi, ecx
mov dword [ebp - 0x220], esi
xor edi, edi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x224], edi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 2
push edi
push eax
call fcn.004fce20
add esp, 0xc
mov dword [ebp - 0x228], 0x104
xor ebx, ebx
mov ecx, esi
inc ebx
mov dword [ebp - 0x220], ebx
push 0x55695c
call fcn.0040996a
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x21c]
push ecx
push 0xf003f
lea eax, [ebp + 8]
mov dword [ebp - 0x224], ebx
cmovae eax, dword [ebp + 8]
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42d1e2
cmp dword [ebp + 0x34], 8
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x220]
push ecx
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push edi
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42d1d6
lea eax, [ebp - 0x218]
push eax
call fcn.00401903
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004022b0
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebx
lea ecx, [ebp + 8]
call fcn.004021c6
push edi
push ebx
lea ecx, [ebp + 0x20]
call fcn.004021c6
mov eax, esi
call fcn.004e4169
ret

Function at 0x42d1fe
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor bl, bl
lea ecx, [ebp - 4]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
xor esi, esi
inc esi
test eax, eax
jne 0x42d263
cmp dword [ebp + 0x4c], 8
lea edx, [ebp + 0x38]
mov eax, dword [ebp + 0x48]
lea ecx, [ebp + 0x20]
cmovae edx, dword [ebp + 0x38]
cmp dword [ebp + 0x34], 8
cmovae ecx, dword [ebp + 0x20]
add eax, eax
push eax
push edx
push esi
push 0
push ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
test eax, eax
movzx ebx, bl
cmove ebx, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push esi
lea ecx, [ebp + 8]
call fcn.004021c6
push 0
push esi
lea ecx, [ebp + 0x20]
call fcn.004021c6
push 0
push esi
lea ecx, [ebp + 0x38]
call fcn.004021c6
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42dd0c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ba52
mov eax, dword fs:[0]
push eax
mov eax, 0x402c
call fcn.004e4780
mov eax, dword [0x57a734]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x402c], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x56204c
mov dword [ebp - 0x4038], esi
mov dword [ebp - 0x4030], ebx
call fcn.00409c00
push 0x4000
lea eax, [ebp - 0x4024]
mov dword [ebp - 4], ebx
push ebx
push eax
mov dword [ebp - 0x4030], 1
call fcn.004fce20
add esp, 0xc
mov dword [ebp - 0x4034], ebx
lea eax, [ebp - 0x4034]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x42de34
lea ecx, [ebp - 0x4024]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x42de34
lea eax, [ebp - 0x402c]
mov dword [ebp - 0x4028], ebx
push eax
lea eax, [ebp - 0x4028]
mov dword [ebp - 0x402c], ebx
push eax
push 0x55bd28
lea eax, [ebp - 0x4024]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x42de34
mov ecx, dword [ebp - 0x4028]
lea edi, [ebp - 0x23]
xor eax, eax
mov byte [ebp - 0x24], bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x24]
push str._d._d._d._d
push eax
call fcn.00430461
lea eax, [ebp - 0x24]
push eax
call fcn.00402c84
add esp, 0x1c
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040c4f2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e36f8
mov esp, ebp
pop ebp
ret
Function at 0x42e6ed
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x57a734]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x210]
push edi
push eax
mov ebx, 0xf003f
xor edi, edi
push ebx
push edi
push str.SOFTWAREWOW6432NodeMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x42e749
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x42e749
xor al, al
jmp 0x42e808
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x218], 1
push edi
push eax
call fcn.004fce20
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x214]
add esp, 0xc
mov dword [ebp - 0x214], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
push str.CurrentBuild
push dword [ebp - 0x210]
call esi
test eax, eax
je 0x42e7d7
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
push str.CurrentBuildNumber
push dword [ebp - 0x210]
call esi
test eax, eax
je 0x42e7d7
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42e742
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0050a553
fstp qword [ebp - 0x21c]
cvttsd2si eax, qword [ebp - 0x21c]
pop ecx
pop ecx
cmp eax, 0x55f0
setge al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e36f8
mov esp, ebp
pop ebp
ret

Function at 0x42ef2e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x57a734]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x208
lea eax, [ebp - 0x20c]
push esi
xor edi, edi
push edi
push eax
call fcn.004fce20
push esi
lea eax, [ebp - 0x61c]
push edi
push eax
call fcn.004fce20
push esi
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.004fce20
push esi
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.004fce20
add esp, 0x30
lea eax, [ebp - 0x20c]
push 0x100
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push edi
push edi
push edi
push edi
mov ecx, 0x104
lea eax, [ebp - 0x414]
push ecx
push eax
push ecx
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0050eeb7
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x824]
push str._s_sts_downloader.cfg
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x34
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ecx, dword [ebp - 4]
cmp eax, 0xffffffff
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.004e36f8
mov esp, ebp
pop ebp
ret
Function at 0x42f759
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0x130
mov eax, 0x52bddf
call fcn.004e41bf
mov dword [ebp - 0x130], ecx
xor ebx, ebx
lea eax, [ebp - 0x94]
push 3
push eax
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
call fcn.0044ddbc
push ebx
mov dword [ebp - 4], ebx
mov edi, dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
push ebx
call edi
mov esi, eax
mov dword [ebp - 0x11c], ebx
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x13c], ebx
push eax
push esi
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], ebx
call fcn.004303f6
mov byte [ebp - 4], 1
mov ebx, dword [ebp - 0x13c]
push ebx
push esi
call edi
xor eax, eax
cmp word [ebx], ax
je 0x42f895
mov esi, dword [ebp - 0x124]
mov edi, dword [ebp - 0x128]
push ebx
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 3
jne 0x42f86c
mov cx, word [ebx]
call fcn.0042f915
cmp eax, 7
je 0x42f86c
xor eax, eax
push eax
push eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x120]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
test eax, eax
je 0x42f86c
cmp dword [ebp - 0x11c], esi
jb 0x42f86c
ja 0x42f83c
cmp dword [ebp - 0x120], edi
jbe 0x42f86c
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x11c]
push ebx
mov dword [ebp - 0x124], eax
call fcn.0044d768
mov esi, dword [ebp - 0x124]
mov edi, dword [ebp - 0x128]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x12c]
jne 0x42f871
sub ecx, edx
xor eax, eax
sar ecx, 1
lea ebx, [ebx + ecx*2]
add ebx, 2
cmp word [ebx], ax
jne 0x42f7ef
mov ebx, dword [ebp - 0x130]
mov ecx, ebx
call fcn.0044dc25
sub eax, 3
mov ecx, ebx
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0044e173
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0044d749
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.0044d6c6
push ebx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x94]
call fcn.0044d7c0
push eax
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.0044d749
lea ecx, [ebp - 0x118]
call fcn.0044d6c6
lea ecx, [ebp - 0x13c]
call fcn.004303ce
lea ecx, [ebp - 0x94]
call fcn.0044d6c6
call fcn.004e4169
ret