joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419c27
Capabilities:
Get common file path

Disassembly:
mov eax, 0x57b85f
call fcn.00508ecc
sub esp, 0x808
push ebx
push edi
xor ebx, ebx
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x812]
mov word [ebp - 0x814], bx
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x814]
push 0x1a
push eax
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, ebx
jge 0x419c79
push dword [ebp + 8]
call fcn.00419b02
pop ecx
mov eax, dword [ebp + 8]
jmp 0x419cd5
push esi
push 0x66b504
lea ecx, [ebp - 0x10]
call fcn.0055ffe9
push 1
lea eax, [ebp - 0x814]
pop esi
push 0x5d375c
push 0x5d34ec
push eax
lea eax, [ebp - 0x10]
push str._s_s_s
push eax
mov dword [ebp - 4], esi
call fcn.0055d1d9
push dword [ebp - 0x10]
call fcn.004116fc
mov ecx, dword [ebp + 8]
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
call fcn.0055fce2
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], bl
call fcn.0055ff75
mov eax, dword [ebp + 8]
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x419ce3
Capabilities:
Get common file path

Disassembly:
mov eax, 0x57b88b
call fcn.00508ecc
sub esp, 0x808
push ebx
push edi
xor ebx, ebx
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x812]
mov word [ebp - 0x814], bx
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x814]
push 0x1a
push eax
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, ebx
jge 0x419d35
push dword [ebp + 8]
call fcn.00419b02
pop ecx
mov eax, dword [ebp + 8]
jmp 0x419d8c
push esi
push 0x66b504
lea ecx, [ebp - 0x10]
call fcn.0055ffe9
push 1
lea eax, [ebp - 0x814]
pop esi
push 0x5d34ec
push eax
lea eax, [ebp - 0x10]
push str._s_sCommon
push eax
mov dword [ebp - 4], esi
call fcn.0055d1d9
push dword [ebp - 0x10]
call fcn.004116fc
mov ecx, dword [ebp + 8]
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
call fcn.0055fce2
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], bl
call fcn.0055ff75
mov eax, dword [ebp + 8]
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x419d9a
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x57b8c7
call fcn.00508ecc
sub esp, 0x10
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.00419b02
push 1
lea eax, [ebp - 0x14]
pop ebx
mov dword [ebp - 4], ebx
mov dword [esp], str.Components
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0056021a
push dword [ebp - 0x10]
mov byte [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x419e0b
lea eax, [ebp - 0x14]
push str.Modules
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0056021a
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.005600bc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0055ff75
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0055fce2
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0055ff75
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0055ff75
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x419e41
Capabilities:
Get common file path

Disassembly:
mov eax, 0x57b8fb
call fcn.00508ecc
sub esp, 0x80c
and word [ebp - 0x818], 0
push ebx
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x816]
rep stosd dword es:[edi], eax
and dword [ebp - 0x18], 0
stosw word es:[edi], ax
lea eax, [ebp - 0x818]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [0x663758]
mov dword [ebp - 0x10], eax
push 1
lea eax, [ebp - 0x10]
pop ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00411415
mov eax, dword [0x663758]
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x818]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x14]
push str._s_s
push eax
call fcn.0055d1d9
mov ecx, dword [ebp + 8]
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
call fcn.0055fce2
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0055ff75
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0055ff75
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41bf35
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00509310
push ebx
push edi
xor edi, edi
push 0x1001
lea eax, [ebp - 0x1010]
push edi
mov ebx, ecx
push eax
call fcn.00508ef0
add esp, 0xc
lea eax, [ebp - 8]
mov ecx, ebx
mov dword [ebp - 8], 0x1001
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.0041bff9
test eax, eax
jne 0x41bfa3
lea eax, [ebp - 0xc]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 4]
push eax
push edi
push 2
push edi
push edi
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41bfa8
or eax, 0xffffffff
jmp 0x41bfd1
push dword [ebp - 8]
lea eax, [ebp - 0x1010]
push eax
push 3
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x41bfc6
or edi, 0xffffffff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
leave
ret 8
Function at 0x41c353
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00509310
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push 0x66b504
call fcn.0056010c
xor esi, esi
push 0x1001
lea eax, [ebp - 0x1010]
push esi
push eax
call fcn.00508ef0
add esp, 0xc
lea eax, [ebp - 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 8]
push eax
push esi
push 1
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41c3b6
or eax, 0xffffffff
jmp 0x41c410
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1001
push eax
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp + 8]
push eax
push esi
push esi
mov dword [ebp + 8], 3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
test eax, eax
je 0x41c3ed
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41c3b1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], esi
je 0x41c3b1
push dword [ebp + 0xc]
lea eax, [ebp - 0x1010]
mov ecx, ebx
push dword [ebp - 4]
push eax
call fcn.0041c416
neg eax
sbb eax, eax
pop esi
pop ebx
leave
ret 8
Function at 0x41da07
Capabilities:
Get common file path

Disassembly:
mov eax, 0x57bdf0
call fcn.00508ecc
sub esp, 0x830
and word [ebp - 0x83c], 0
push esi
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x83a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x83c]
push 0x3ff
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x83c]
lea ecx, [ebp - 0x14]
push eax
call fcn.0055ffe9
and dword [ebp - 4], 0
push str._bootstat.dat
lea ecx, [ebp - 0x14]
call fcn.00560366
push 0x24
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00508ef0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
call fcn.0055da20
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x14]
call fcn.0050a687
pop ecx
test eax, eax
pop ecx
jne 0x41daab
mov eax, dword [ebp - 0x20]
push ecx
mov ecx, esp
mov esi, eax
mov dword [ebp - 0x18], esp
mov dword [ecx], eax
lea ecx, [ebp - 0x10]
call fcn.0041dacf
test eax, eax
je 0x41daab
mov dword [ebp - 0x10], esi
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
mov dword [esi], eax
call fcn.0055ff75
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x424a64
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x57c144
call fcn.00508ecc
push ecx
push ecx
mov eax, dword [0x66bc28]
push ebx
push esi
push edi
cmp dword [eax - 8], 0
mov ebx, ecx
jne 0x424ab5
lea eax, [ebp - 0x14]
push eax
call fcn.00419d9a
and dword [ebp - 4], 0
mov dword [esp], str.dwebp.exe
push dword [ebp - 0x14]
push 0x5d323c
push 0x66bc28
call fcn.0055d1d9
or dword [ebp - 4], 0xffffffff
add esp, 0x10
lea ecx, [ebp - 0x14]
call fcn.0055ff75
push dword [0x66bc28]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x424b4b
mov edi, dword [ebp + 8]
test edi, edi
je 0x424b4b
push edi
call esi
test eax, eax
je 0x424b4b
cmp dword [ebp + 0xc], 0
je 0x424b4b
mov eax, dword [0x663758]
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x10], 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 1
je 0x424b14
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push edi
push dword [0x66bc28]
push str.__s____s____s__o___s_
push eax
call fcn.0055d1d9
add esp, 0x18
jmp 0x424b2c
push edi
lea eax, [ebp - 0x10]
push dword [0x66bc28]
push str.__s____s___o___s_
push eax
call fcn.0055d1d9
add esp, 0x14
push dword [ebp + 0x14]
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp - 0x10]
call dword [eax + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0055ff75
mov eax, esi
jmp 0x424b4e
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x425a25
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x57c37d
call fcn.00508ecc
push ecx
mov eax, dword [0x663758]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x10]
mov dword [ecx], eax
mov eax, dword [0x663758]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x20], eax
mov eax, dword [0x663758]
mov dword [esi + 0x24], eax
mov eax, dword [0x663758]
mov dword [esi + 0x28], eax
mov eax, dword [0x663758]
mov dword [esi + 0x2c], eax
mov eax, dword [0x663758]
mov dword [esi + 0x30], eax
mov eax, dword [0x663758]
mov dword [esi + 0x34], eax
mov eax, dword [0x663758]
mov dword [esi + 0x40], eax
mov eax, dword [0x663758]
mov dword [esi + 0x44], eax
mov eax, dword [0x663758]
mov dword [esi + 0x4c], eax
mov eax, dword [0x663758]
mov dword [esi + 0x50], eax
mov edi, 0x66b504
mov byte [ebp - 4], 0xa
push edi
mov dword [esi], 0x594fb0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.0056010c
fldz
push edi
lea ecx, [esi + 0x20]
fstp dword [esi + 0x1c]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
call fcn.0056010c
push edi
lea ecx, [esi + 0x24]
call fcn.0056010c
push edi
lea ecx, [esi + 0x28]
call fcn.0056010c
push edi
lea ecx, [esi + 0x2c]
call fcn.0056010c
push edi
lea ecx, [esi + 0x30]
call fcn.0056010c
push edi
lea ecx, [esi + 0x34]
call fcn.0056010c
mov dword [esi + 0x38], ebx
push edi
lea ecx, [esi + 0x40]
mov dword [esi + 0x3c], ebx
call fcn.0056010c
push edi
lea ecx, [esi + 0x44]
call fcn.0056010c
mov dword [esi + 0x48], ebx
push edi
lea ecx, [esi + 0x4c]
call fcn.0056010c
push edi
lea ecx, [esi + 0x50]
call fcn.0056010c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4294e6
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x57c9ac
call fcn.00508ecc
sub esp, 0x24
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [esi + 0xa0], edi
call fcn.00429cfe
cmp eax, edi
je 0x429670
or ebx, 0xffffffff
cmp eax, ebx
je 0x42954c
cmp eax, 0xfffffffe
je 0x429581
mov eax, dword [esi + 0x9c]
cmp eax, edi
je 0x429535
push eax
mov ecx, esi
call fcn.004ca397
test eax, eax
jne 0x429581
push dword [esi + 0x94]
lea ecx, [esi + 0x70]
call fcn.00429fa1
cmp eax, edi
je 0x42954f
cmp eax, 0xfffffffe
je 0x429581
push edi
jmp 0x42958c
cmp word [esi + 0x78], 2
jne 0x429670
mov eax, esi
mov ecx, esi
cdq
mov edi, eax
lea eax, [esi + 0x8c]
push eax
lea eax, [esi + 0x88]
push eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edx
call fcn.00429d92
cmp eax, ebx
jne 0x429585
push 0x28
jmp 0x42958c
cmp eax, 0xfffffffe
jne 0x42959c
push 0x15
push 4
mov ecx, esi
call fcn.00429850
mov eax, ebx
jmp 0x429679
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.00429bae
test eax, eax
je 0x4295cb
push 0x28
push 4
mov ecx, esi
call fcn.00429850
lea eax, [ebp - 0x14]
push 0x5b3870
push eax
mov dword [ebp - 0x14], ebx
call fcn.0050a58f
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
test al, 1
jne 0x429609
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
add eax, 2
adc ecx, 0
cmp eax, edi
jne 0x4295ec
cmp ecx, dword [ebp - 0x2c]
je 0x429609
push 0x28
push 4
mov ecx, esi
call fcn.00429850
or dword [ebp - 0x18], 0xffffffff
lea eax, [ebp - 0x18]
push 0x5b3870
push eax
call fcn.0050a58f
or dword [ebp - 4], 0xffffffff
test byte [esi + 0x10], 1
je 0x429628
mov ecx, esi
call fcn.00429f5f
cmp eax, 0xffffffff
jne 0x429623
push 0
jmp 0x42964b
cmp eax, 0xfffffffe
je 0x429649
call ebx
push 3
xor edx, edx
pop ecx
div ecx
test edx, edx
jne 0x429670
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
add eax, 2
adc ecx, edx
cmp eax, edi
jne 0x429649
cmp ecx, dword [ebp - 0x2c]
je 0x429670
push 0x28
push 4
mov ecx, esi
call fcn.00429850
or eax, 0xffffffff
jmp 0x429679
mov ecx, esi
call fcn.004298d8
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x429688
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x57c9c8
call fcn.00508ecc
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
mov eax, esi
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
cdq
mov edi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edx
call fcn.0055ffe9
push dword [ebp + 0xc]
xor ebx, ebx
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0055ffe9
lea eax, [ebp + 8]
mov ecx, esi
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.00429d92
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x429702
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.0055ff75
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0055ff75
mov eax, dword [ebp + 0xc]
jmp 0x42983f
lea eax, [ebp - 0x14]
lea ecx, [esi + 0x88]
push eax
call fcn.005600bc
lea eax, [ebp + 8]
lea ecx, [esi + 0x8c]
push eax
call fcn.005600bc
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
mov byte [ebp - 4], 2
call fcn.00429bae
cmp eax, ebx
je 0x429750
push 0x28
push 4
mov ecx, esi
call fcn.00429850
or dword [ebp - 0x18], 0xffffffff
lea eax, [ebp - 0x18]
push 0x5b3870
push eax
call fcn.0050a58f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test al, 1
jne 0x42978e
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
add eax, 2
adc ecx, ebx
cmp eax, edi
jne 0x42976e
cmp ecx, dword [ebp - 0x34]
je 0x42978e
push 0x28
push 4
mov ecx, esi
call fcn.00429850
lea eax, [ebp - 0x1c]
push 0x5b3870
push eax
mov dword [ebp - 0x1c], 0xfffffffe
call fcn.0050a58f
lea eax, [ebp - 0x20]
push 0x5b3870
push eax
mov dword [ebp - 0x20], ebx
call fcn.0050a58f
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x42981e
lea eax, [ebp - 0x28]
push eax
call fcn.0042aae7
mov edi, dword [ebp - 0x24]
mov eax, dword [eax]
pop ecx
push ebx
push 2
pop esi
mov ecx, edi
push esi
mov dword [edi + 0x7c], eax
mov dword [edi + 0x80], eax
call fcn.00429850
mov ecx, edi
call fcn.004298d8
cmp word [edi + 0x78], si
jne 0x4297dd
cmp word [edi + 0x7a], bx
je 0x4297e6
mov dword [edi + 0xa0], ebx
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 3
xor edx, edx
pop ecx
div ecx
test edx, edx
jne 0x42981e
mov ecx, dword [ebp - 0x30]
mov eax, edi
add ecx, esi
mov esi, dword [ebp - 0x2c]
cdq
adc esi, ebx
cmp ecx, eax
jne 0x42980c
cmp esi, edx
je 0x42981e
push 0x28
push 4
mov ecx, edi
call fcn.00429850
mov dword [ebp + 0xc], 0xfffffffe
mov eax, 0x429824
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x42a0b3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00509310
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push 0x66b504
call fcn.0056010c
xor esi, esi
push 0x1001
lea eax, [ebp - 0x1010]
push esi
push eax
call fcn.00508ef0
add esp, 0xc
lea eax, [ebp - 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 8]
push eax
push esi
push 1
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x42a116
or eax, 0xffffffff
jmp 0x42a170
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1001
push eax
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp + 8]
push eax
push esi
push esi
mov dword [ebp + 8], 3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
test eax, eax
je 0x42a14d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42a111
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], esi
je 0x42a111
push dword [ebp + 0xc]
lea eax, [ebp - 0x1010]
mov ecx, ebx
push dword [ebp - 4]
push eax
call fcn.0042a218
neg eax
sbb eax, eax
pop esi
pop ebx
leave
ret 8

Function at 0x42a176
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00509310
push ebx
push edi
xor edi, edi
push 0x1001
lea eax, [ebp - 0x1010]
push edi
mov ebx, ecx
push eax
call fcn.00508ef0
add esp, 0xc
lea eax, [ebp - 8]
mov ecx, ebx
mov dword [ebp - 8], 0x1001
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.0042a327
test eax, eax
jne 0x42a1e4
lea eax, [ebp - 0xc]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 4]
push eax
push edi
push 2
push edi
push edi
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x42a1e9
or eax, 0xffffffff
jmp 0x42a212
push dword [ebp - 8]
lea eax, [ebp - 0x1010]
push eax
push 3
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x42a207
or edi, 0xffffffff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
leave
ret 8
Function at 0x42aae7
Capabilities:
Get common file path

Disassembly:
mov eax, 0x57cad0
call fcn.00508ecc
sub esp, 0x830
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.0055da20
and word [ebp - 0x83c], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x83a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x83c]
push 0x3ff
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x83c]
lea ecx, [ebp - 0x14]
push eax
call fcn.0055ffe9
and dword [ebp - 4], 0
push str._bootstat.dat
lea ecx, [ebp - 0x14]
call fcn.00560366
push 0x24
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00508ef0
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x14]
call fcn.0050a687
add esp, 0x14
test eax, eax
jne 0x42ab89
mov eax, dword [ebp - 0x20]
push ecx
mov ecx, esp
mov esi, eax
mov dword [ebp - 0x18], esp
mov dword [ecx], eax
lea ecx, [ebp - 0x10]
call fcn.0041dacf
test eax, eax
je 0x42ab89
mov dword [ebp - 0x10], esi
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
mov dword [esi], eax
call fcn.0055ff75
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x42b92a
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 0xc]
and dword [edx], 0
mov eax, dword [ecx + 4]
test eax, eax
je 0x42b93d
cmp eax, 0xffffffff
jne 0x42b942
or eax, 0xffffffff
jmp 0x42b95b
push 0
push edx
push dword [esp + 0x10]
push dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
neg eax
dec eax
ret 0xc

Function at 0x42d974
Capabilities:
Resume thread

Disassembly:
mov eax, 0x57cfe1
call fcn.00508ecc
push ecx
push ecx
push ebx
mov ebx, ecx
push esi
push edi
and dword [ebx + 0x84], 0
and dword [ebp - 0x10], 0
lea edi, [ebx + 0x7c]
push 0x74
call fcn.00560564
pop ecx
mov dword [ebp - 0x14], eax
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], esi
je 0x42d9b4
push ebx
mov ecx, eax
push dword [ebp - 0x10]
call fcn.0042e10a
mov esi, eax
or eax, 0xffffffff
test esi, esi
mov dword [ebp - 4], eax
je 0x42d9f3
push 0
push 0
push 4
mov ecx, esi
call fcn.0056428a
test eax, eax
je 0x42da02
push 0
mov dword [edi], esi
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
inc dword [ebp - 0x10]
add edi, 4
cmp dword [ebp - 0x10], 2
jl 0x42d993
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
test esi, esi
je 0x42da0f
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
or eax, 0xffffffff
jmp 0x42d9f3
Function at 0x42ecdc
Capabilities:
Resume thread

Disassembly:
mov eax, 0x57d18d
call fcn.00508ecc
push ecx
push ecx
push ebx
mov ebx, ecx
push esi
push edi
and dword [ebx + 0x94], 0
and dword [ebp - 0x10], 0
lea edi, [ebx + 0x8c]
push 0x74
call fcn.00560564
pop ecx
mov dword [ebp - 0x14], eax
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], esi
je 0x42ed1f
push ebx
mov ecx, eax
push dword [ebp - 0x10]
call fcn.0042f54f
mov esi, eax
or eax, 0xffffffff
test esi, esi
mov dword [ebp - 4], eax
je 0x42ed5e
push 0
push 0
push 4
mov ecx, esi
call fcn.0056428a
test eax, eax
je 0x42ed6d
push 0
mov dword [edi], esi
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
inc dword [ebp - 0x10]
add edi, 4
cmp dword [ebp - 0x10], 2
jl 0x42ecfe
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
test esi, esi
je 0x42ed7a
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
or eax, 0xffffffff
jmp 0x42ed5e

Function at 0x4300ef
Capabilities:
Resume thread

Disassembly:
mov eax, 0x57d2ed
call fcn.00508ecc
push ecx
push ecx
push ebx
mov ebx, ecx
push esi
push edi
and dword [ebx + 0x84], 0
and dword [ebp - 0x10], 0
lea edi, [ebx + 0x7c]
push 0x74
call fcn.00560564
pop ecx
mov dword [ebp - 0x14], eax
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], esi
je 0x43012f
push ebx
mov ecx, eax
push dword [ebp - 0x10]
call fcn.00430828
mov esi, eax
or eax, 0xffffffff
test esi, esi
mov dword [ebp - 4], eax
je 0x43016e
push 0
push 0
push 4
mov ecx, esi
call fcn.0056428a
test eax, eax
je 0x43017d
push 0
mov dword [edi], esi
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
inc dword [ebp - 0x10]
add edi, 4
cmp dword [ebp - 0x10], 2
jl 0x43010e
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
test esi, esi
je 0x43018a
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
or eax, 0xffffffff
jmp 0x43016e

Function at 0x433aa7
Capabilities:
Check if file exists

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 8], edi
jle 0x433ac3
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi*4]
call fcn.00433a89
inc edi
cmp edi, dword [esi + 8]
jl 0x433ab2
mov eax, dword [esi + 0x24]
cmp dword [eax - 8], 0
je 0x433af6
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x433af6
push dword [esi + 0x24]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x433af6
push 0
push 0x414
push dword [esi + 0x24]
call fcn.00410857
add esp, 0xc
pop edi
pop esi
ret