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

Disassembly:
mov eax, 0x486a1b
call fcn.0046746c
sub esp, 0x460
and byte [ebp - 0x33c], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x33b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, 0x104
lea eax, [ebp - 0x33c]
push ebx
push eax
push dword [0x4ac180]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x33c]
lea ecx, [ebp - 0x46c]
push eax
call fcn.00433708
and byte [ebp - 0x134], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x133]
and dword [ebp - 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x4ab520
mov ecx, esi
stosb byte es:[edi], al
call fcn.00401a14
push eax
lea eax, [ebp - 0x46c]
push eax
call fcn.00436a08
pop ecx
test eax, eax
pop ecx
je 0x43692c
and byte [ebp - 0x238], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x237]
mov byte [ebp - 0xd], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x238]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x134]
push eax
push 0
lea eax, [ebp - 0x238]
push 0x4a467c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x134]
push 0
push eax
mov ecx, esi
call fcn.00401a14
push eax
lea ecx, [ebp - 0x46c]
call fcn.004344c6
jmp 0x436989
mov eax, 0x4ab548
mov ecx, eax
test ecx, ecx
je 0x436950
cmp byte [0x4ab548], 0
je 0x436950
push eax
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x436985
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x33c]
push eax
call fcn.004358b5
mov ecx, esi
call fcn.00401a14
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.00435afb
and byte [ebp - 0xd], 0
lea ecx, [ebp - 0x30]
call fcn.004028f6
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.0040293e
push dword [ebp + 0x14]
lea ecx, [ebp - 0x30]
push dword [ebp + 0x10]
push 0x4aa144
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402b3d
cmp byte [ebp - 0xd], 0
pop edi
pop esi
pop ebx
je 0x4369d3
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00403091
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00403aee
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x46c]
call fcn.00433d48
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x436d4b
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x486adc
call fcn.0046746c
sub esp, 0x60
push ebx
push esi
lea eax, [ebp - 0xd]
push 1
push eax
lea ecx, [ebp - 0x6c]
push dword [0x48c0f0]
call fcn.00401884
lea eax, [ebp - 0xe]
push 1
push eax
xor ebx, ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.00401884
mov esi, dword [ebp + 0xc]
push 0xa
lea eax, [ebp - 0x6c]
push ebx
push eax
lea eax, [ebp - 0x44]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0042e8d0
lea ecx, [ebp - 0x44]
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], bl
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00401093
cmp dword [ebp + 0xc], 4
jne 0x436e63
lea eax, [ebp - 0x6c]
push 4
push eax
mov ecx, esi
call fcn.0040a446
push str.1.20.1827.0
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.004042dd
push eax
call fcn.00435dac
pop ecx
pop ecx
test eax, eax
setge byte [ebp + 0xf]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00402438
cmp byte [ebp + 0xf], bl
je 0x436e0a
mov esi, 0x300
jmp 0x436ec3
lea eax, [ebp + 0xf]
push 1
push eax
lea ecx, [ebp - 0x44]
push dword [0x48c104]
call fcn.00401884
lea eax, [ebp - 0xe]
push 1
push eax
lea ecx, [ebp - 0x6c]
push dword [ebp + 8]
mov dword [ebp - 4], 3
call fcn.00401884
push 0xa
lea eax, [ebp - 0x44]
push ebx
push eax
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
mov byte [ebp - 4], 4
call fcn.0042e8d0
lea ecx, [ebp - 0x6c]
mov esi, eax
mov byte [ebp - 4], 3
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
jmp 0x436eba
lea eax, [ebp + 0xf]
push 1
push eax
lea ecx, [ebp - 0x44]
push dword [0x48c104]
call fcn.00401884
lea eax, [ebp - 0xe]
push 1
push eax
lea ecx, [ebp - 0x6c]
push dword [ebp + 8]
mov dword [ebp - 4], 5
call fcn.00401884
push 0xa
lea eax, [ebp - 0x44]
push ebx
push eax
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
mov byte [ebp - 4], 6
call fcn.0042e8d0
lea ecx, [ebp - 0x6c]
mov esi, eax
mov byte [ebp - 4], 5
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401093
cmp esi, ebx
je 0x436f35
mov dword [ebp + 8], ebx
push 0x20019
push str.SystemCurrentControlSetControlWindows
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 8]
mov dword [ebp - 4], 7
call fcn.00417058
test eax, eax
jne 0x436f27
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.CSDVersion
mov dword [ebp - 0x1c], ebx
push dword [ebp + 8]
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x14], esi
jae 0x436f27
cmp dword [ebp + 8], ebx
je 0x436f23
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x436f38
cmp dword [ebp + 8], ebx
je 0x436f35
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x439538
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x486bca
call fcn.0046746c
sub esp, 0xf4
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 0x30]
mov dword [ebp - 4], esi
test bl, 0x10
je 0x43958a
lea ecx, [ebp + 8]
call fcn.00432614
test al, al
je 0x43958a
push ebx
lea eax, [ebp + 8]
sub esp, 0x28
mov ecx, esp
mov dword [ebp + 0x30], esp
push 1
push eax
call fcn.00407ae3
call fcn.004397ed
add esp, 0x2c
mov bl, al
jmp 0x439707
sub esp, 0x28
lea eax, [ebp + 8]
mov dword [ebp - 0x10], esp
mov ecx, esp
push esi
push eax
mov dword [ecx], 0x48b6a8
mov dword [ecx + 0x20], 0x48b6a0
call fcn.00403d4e
call fcn.004425f4
add esp, 0x28
cmp eax, 0xffffffff
je 0x4395d7
test bl, 4
je 0x4395bf
test al, 0x10
je 0x4395d0
test bl, 8
je 0x439705
test al, 0x10
je 0x439705
mov bl, 1
jmp 0x439707
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov esi, eax
cmp esi, 2
je 0x439717
cmp esi, 3
je 0x439717
push 1
cmp esi, 5
pop ebx
jne 0x43968c
lea ecx, [ebp - 0x100]
call fcn.0043975e
or dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp + 8]
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x14], esp
push ebx
push eax
call fcn.00407ae3
call fcn.0044249e
add esp, 0x2c
cmp eax, 0xffffffff
je 0x439679
test byte [ebp + 0x30], 4
je 0x439647
test byte [ebp - 0x100], 0x10
je 0x439658
test byte [ebp + 0x30], 8
je 0x439656
test byte [ebp - 0x100], 0x10
jne 0x439658
xor bl, bl
mov ecx, dword [sym.imp.KERNEL32.dll_FindClose]
test ecx, ecx
je 0x439665
push eax
call ecx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x100]
call fcn.004397b7
jmp 0x439707
call edi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x100]
mov esi, eax
call fcn.004397b7
test byte [ebp + 0x30], 0x20
je 0x439705
lea eax, [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x48b920
mov dword [ebp - 0x1c], 0x48b918
call fcn.00403d4e
push esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
mov dword [ebp - 0x84], 0x48b928
call fcn.0042c531
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.00439734
mov eax, dword [ebp - 0x84]
push 0x4974e0
mov dword [ebp - 4], 3
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x84], vtable.is::file_exception.0
lea eax, [ebp - 0x84]
push eax
call fcn.00468cf7
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402438
mov al, bl
jmp 0x439725
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402438
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x43a398
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x486e1c
call fcn.0046746c
push ebx
xor ebx, ebx
cmp byte [ebp + 0x30], bl
mov dword [ebp - 4], ebx
je 0x43a3c0
lea ecx, [ebp + 8]
call fcn.004042dd
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
jne 0x43a407
push 0x80
lea eax, [ebp + 8]
sub esp, 0x28
mov ecx, esp
mov dword [ebp + 0x30], esp
push 1
push eax
call fcn.00407ae3
call fcn.00442675
pop ecx
lea eax, [ebp + 8]
mov dword [ebp + 0x30], esp
mov ecx, esp
push ebx
push eax
mov dword [ecx], 0x48b6a8
mov dword [ecx + 0x20], 0x48b6a0
call fcn.00403d4e
call fcn.004426fc
add esp, 0x28
cmp eax, ebx
setne bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402438
mov ecx, dword [ebp - 0xc]
mov al, bl
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x43bbd2
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x94], 0x94
and dword [eax], 0
lea eax, [ebp - 0x94]
and dword [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 1
jne 0x43bc4d
cmp dword [ebp - 0x8c], 0
je 0x43bc45
cmp dword [ebp - 0x8c], 0xa
je 0x43bc30
cmp dword [ebp - 0x8c], 0x5a
je 0x43bc39
xor al, al
mov dword [esi], 0x80
jmp 0x43bcbe
call fcn.0043c142
test al, al
je 0x43bc3d
mov al, 1
jmp 0x43bc25
mov dword [esi], 0x40
jmp 0x43bca7
mov dword [esi], 0x10
jmp 0x43bca7
cmp dword [ebp - 0x84], 2
jne 0x43bcbc
mov eax, dword [ebp - 0x90]
sub eax, 4
je 0x43bcb4
mov ecx, dword [ebp - 0x8c]
dec eax
je 0x43bc77
dec eax
je 0x43bc9d
xor al, al
mov dword [esi], 0x2000000
jmp 0x43bcbe
test ecx, ecx
jne 0x43bc83
mov dword [esi], 0x100000
jmp 0x43bca7
cmp ecx, 1
jne 0x43bc90
mov dword [esi], 0x400000
jmp 0x43bca7
cmp ecx, 2
jne 0x43bc9d
mov dword [esi], 0x800000
jmp 0x43bca7
test ecx, ecx
jne 0x43bcab
mov dword [esi], 0x1000000
mov al, 1
jmp 0x43bcbe
cmp ecx, 1
jne 0x43bc6d
mov al, cl
jmp 0x43bc6f
mov dword [esi], 0x10000
jmp 0x43bca7
xor al, al
pop esi
leave
ret

Function at 0x43c037
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x43c066
push str.GetSystemDefaultUILanguage
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43c066
call eax
jmp 0x43c13d
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
mov ebx, 0xf003f
push eax
push ebx
push 0
mov edi, SysStringLen
push str..DefaultControl_PaneldesktopResourceLocale
push edi
mov dword [ebp - 0xc], 0xa
call esi
test eax, eax
jne 0x43c0b2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x4aa144
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x43c113
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
push 0
push str..DEFAULTControl_PanelInternational
push edi
call esi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x43c0e7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push str.Locale
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x43c0fb
cmp esi, ebx
je 0x43c0fb
push dword [ebp - 8]
call esi
cmp edi, ebx
je 0x43c11b
cmp dword [ebp - 4], ebx
je 0x43c10d
cmp esi, ebx
je 0x43c10d
push dword [ebp - 4]
call esi
mov ax, 0x409
jmp 0x43c13d
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
push 0x10
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.004675cc
add esp, 0xc
cmp dword [ebp - 4], ebx
mov edi, eax
je 0x43c13a
cmp esi, ebx
je 0x43c13a
push dword [ebp - 4]
call esi
mov ax, di
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43c256
Capabilities:
Get common file path

Disassembly:
mov eax, 0x48723b
call fcn.0046746c
sub esp, 0x15c
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
push 1
mov esi, 0x104
pop ebx
cmp dword [ebp + 0xc], ebx
jne 0x43c301
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x43c301
push str.GetSystemWindowsDirectoryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x4a4a98], eax
je 0x43c301
lea ecx, [ebp - 0x168]
push esi
push ecx
call eax
test eax, eax
je 0x43c301
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x168]
mov edi, 0x48b920
mov esi, 0x48b918
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], esi
call fcn.00402d70
push 0x4a1de4
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], ebx
call fcn.0043c393
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403d4e
mov dword [ebp - 0x14], ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
jmp 0x43c37c
lea eax, [ebp - 0x168]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x43c329
lea ecx, [ebp - 0x30]
call fcn.0042c26b
lea eax, [ebp - 0x30]
push 0x4998b8
push eax
call fcn.00468cf7
lea eax, [ebp - 0xd]
push 0
push eax
lea eax, [ebp - 0x168]
mov edi, 0x48b920
mov esi, 0x48b918
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], esi
call fcn.00402d70
push 0x4a1de4
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 2
call fcn.0043c393
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403d4e
and byte [ebp - 4], 0
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x3c]
call fcn.00402438
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x43e481
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x4874a0
call fcn.0046746c
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.00417058
mov edi, eax
cmp edi, esi
je 0x43e4cb
cmp dword [ebp - 0x10], esi
je 0x43e4c4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x43e568
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x43e53c
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.0043e481
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x43e529
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x43e4ee
cmp dword [ebp - 0x10], esi
je 0x43e537
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x43e568
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x43e54f
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x43e566
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x43e8e2
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4875b7
call fcn.0046746c
sub esp, 0x48
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0xd]
push ebx
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 3
mov dword [ebp - 0x54], 0x48b6a8
mov dword [ebp - 0x34], 0x48b6a0
call fcn.00403cd9
mov dword [ebp - 0x14], ebx
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 5
call fcn.004042dd
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push ecx
push dword [ebp + 0x88]
push ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x43e951
lea ecx, [ebp - 0x14]
call fcn.00411574
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
cmp eax, ebx
push edi
mov esi, eax
jne 0x43e9d3
mov esi, dword [ebp - 0x14]
lea eax, [ebp + 0x88]
push eax
lea eax, [ebp - 0x20]
push ebx
push eax
push ebx
lea ecx, [ebp + 0x38]
call fcn.004042dd
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push esi
call edi
mov esi, eax
cmp esi, ebx
jne 0x43e9d3
push dword [ebp + 0x88]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x54]
push eax
call fcn.00402f01
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 6
call fcn.004042dd
lea ecx, [ebp + 0x38]
mov dword [ebp + 0xc], eax
mov dword [esi + 8], eax
call fcn.004042dd
lea ecx, [ebp + 0x88]
mov dword [ebp - 0x18], ebx
push ecx
lea ecx, [ebp - 0x18]
push dword [ebp + 0xc]
push ecx
push ebx
push eax
push dword [ebp - 0x14]
call edi
lea ecx, [ebp - 0x2c]
mov esi, eax
mov byte [ebp - 4], 5
call fcn.00403013
cmp esi, ebx
mov dword [0x4ac284], esi
pop edi
lea eax, [ebp - 0x54]
je 0x43e9e4
lea eax, [ebp + 0x60]
mov esi, dword [ebp + 8]
push ebx
push eax
mov ecx, esi
mov dword [esi], 0x48b6a8
mov dword [esi + 0x20], 0x48b6a0
call fcn.00403d4e
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x14], ebx
je 0x43ea15
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.00402438
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.00402438
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 1
call fcn.00402438
lea ecx, [ebp + 0x60]
mov byte [ebp - 4], bl
call fcn.00402438
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x43f198
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x43f1c0
xor al, al
leave
ret
cmp dword [ebp - 0x84], 2
jne 0x43f1d7
cmp dword [ebp - 0x90], 5
jb 0x43f1d7
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x442a8c
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.00442b05
test al, al
je 0x442af1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x442af1
lea eax, [ebp - 0xc]
push esi
push eax
xor esi, esi
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
inc eax
leave
ret

Function at 0x444b52
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x444b68
mov dword [ebp + 0xc], 1
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x444b9d
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0042c1ff
lea eax, [ebp - 0x48]
push 0x4974e0
push eax
call fcn.00468cf7
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8

Function at 0x444ba5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x444bbb
mov dword [ebp + 0xc], 1
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x444bf0
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0042c1ff
lea eax, [ebp - 0x48]
push 0x4974e0
push eax
call fcn.00468cf7
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8

Function at 0x444bf8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x444c0c
push 1
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x444c40
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0044b83b
test al, al
jne 0x444c73
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0042c589
lea eax, [ebp - 0x4c]
push 0x497690
push eax
call fcn.00468cf7
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x444c73
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0042c1ff
lea eax, [ebp - 0x48]
push 0x4974e0
push eax
call fcn.00468cf7
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x444c7b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x444c91
mov eax, 0x1ed
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x444cc5
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0044b83b
test al, al
jne 0x444cf8
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0042c589
lea eax, [ebp - 0x4c]
push 0x497690
push eax
call fcn.00468cf7
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x444cf8
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0042c1ff
lea eax, [ebp - 0x48]
push 0x4974e0
push eax
call fcn.00468cf7
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x444d00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x444d16
mov eax, 0x28e
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x444d4a
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0044b83b
test al, al
jne 0x444d7d
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0042c589
lea eax, [ebp - 0x4c]
push 0x497690
push eax
call fcn.00468cf7
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x444d7d
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0042c1ff
lea eax, [ebp - 0x48]
push 0x4974e0
push eax
call fcn.00468cf7
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x444d85
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x444d98
xor eax, eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x444dcc
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0044b83b
test al, al
jne 0x444dff
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0042c589
lea eax, [ebp - 0x4c]
push 0x497690
push eax
call fcn.00468cf7
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x444dff
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0042c1ff
lea eax, [ebp - 0x48]
push 0x4974e0
push eax
call fcn.00468cf7
mov eax, dword [ebp + 8]
pop esi
leave
ret 8