joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441fad
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x47aa7e
call fcn.004461a8
sub esp, 0x8e0
push ebx
push esi
push edi
xor ebx, ebx
push 0x10
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00446a10
push 0x44
lea eax, [ebp - 0x9c]
pop esi
push esi
push ebx
push eax
call fcn.00446a10
add esp, 0x18
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x9c], esi
mov word [ebp - 0x6c], bx
push 1
pop edi
mov dword [ebp - 0x70], edi
je 0x441ffb
mov word [ebp - 0x6c], di
push dword [ebp + 8]
lea eax, [ebp - 0x8ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x8ec]
mov dword [ebp - 0x58], 0x47e5a0
test eax, eax
mov dword [ebp - 0x38], 0x47e598
lea eax, [ebp - 0x8ec]
jne 0x44202e
mov eax, 0x49cc4c
lea ecx, [ebp + 0xf]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00408d43
mov eax, dword [ebp - 0x50]
mov dword [ebp - 4], ebx
cmp eax, ebx
mov dword [ebp - 0x14], 0x47e5b8
je 0x442050
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xb]
push edi
mov esi, str.C:CodeBasesisdev_srcRuntimeMSISharedSetuputils.cpp
push eax
push esi
lea ecx, [ebp - 0xec]
call fcn.00401764
mov eax, dword [eax + 8]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x442076
mov eax, 0x47e5b8
push dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x554
push str.Attempting_to_launch__no_wait_:__s
push eax
call fcn.00408437
add esp, 0xc
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], bl
call fcn.00401bc7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00401bc7
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x9c]
push eax
push ebx
push ebx
push 0x20
push edi
push ebx
lea eax, [ebp - 0x8ec]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0xd]
push edi
push eax
push esi
lea ecx, [ebp - 0xc4]
call fcn.00401764
mov eax, dword [eax + 8]
mov dword [ebp - 4], 2
cmp eax, ebx
jne 0x4420f5
mov eax, 0x47e5b8
push dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x559
push str.Launch_result__d
push eax
call fcn.00408437
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0xc4]
call fcn.00401bc7
cmp dword [ebp + 0xc], ebx
pop edi
pop esi
pop ebx
je 0x442138
push 0x3e8
push dword [ebp - 0x30]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov dword fs:[0], ecx
leave
ret 8
Function at 0x442149
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.004421f0
test eax, eax
je 0x4421ae
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 0x4421ae
lea eax, [ebp - 0xc]
push esi
push eax
xor esi, esi
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
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 0x44221e
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 8]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x442281
call esi
cmp eax, 0x3f0
jne 0x442278
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
je 0x4422f0
cmp eax, ebx
je 0x4422f0
lea eax, [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
call edi
test eax, eax
jne 0x4422f0
call esi
cmp eax, 0x7a
jne 0x4422f0
push dword [ebp - 4]
call fcn.004461c7
mov esi, eax
pop ecx
lea eax, [ebp - 4]
cmp esi, ebx
push eax
push dword [ebp - 4]
setne byte [ebp - 0x24]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
je 0x4422e4
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x1c]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4422f4
cmp byte [ebp - 0x24], bl
je 0x4422f0
push esi
call fcn.004454c4
pop ecx
xor eax, eax
jmp 0x44233f
xor edi, edi
cmp dword [esi], ebx
mov dword [ebp - 0x14], ebx
jbe 0x442327
lea eax, [esi + 4]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x442320
add dword [ebp - 0xc], 8
inc edi
cmp edi, dword [esi]
jb 0x442303
jmp 0x442327
mov dword [ebp - 0x14], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [ebp - 0x24], bl
je 0x44233c
push esi
call fcn.004454c4
pop ecx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x442344
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 8]
cmp dword [0x4a1c48], ecx
jne 0x44235f
mov eax, dword [0x497578]
cmp eax, 0xffffffff
jne 0x44239f
lea eax, [ebp - 0x48]
push 0x14
push eax
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x442399
lea eax, [ebp - 0x48]
push eax
call fcn.00447221
pop ecx
lea ecx, [ebp - 0x20]
push 2
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x442399
movsx eax, word [ebp - 0x20]
mov dword [0x497578], eax
mov ax, word [0x497578]
leave
ret
Function at 0x442ca7
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x47ab0f
call fcn.004461a8
sub esp, 0x870
push ebx
push esi
mov esi, 0x81
push edi
xor ebx, ebx
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x646]
mov word [ebp - 0x648], bx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x648]
push eax
push dword [0x4a1c18]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x648]
lea ecx, [ebp - 0x87c]
push eax
call fcn.0043f42b
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x236]
mov word [ebp - 0x238], bx
rep stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
mov ebx, 0x4a0bd8
mov ecx, ebx
stosw word es:[edi], ax
call fcn.00401992
push eax
lea eax, [ebp - 0x87c]
push eax
call fcn.00442e80
pop ecx
test eax, eax
pop ecx
je 0x442d9c
and word [ebp - 0x440], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x43e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x440]
mov byte [ebp - 0xd], 1
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x238]
push eax
push 0
lea eax, [ebp - 0x440]
push 0x49784c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x238]
push 0
push eax
mov ecx, ebx
call fcn.00401992
push eax
lea ecx, [ebp - 0x87c]
call fcn.00440182
jmp 0x442e01
mov eax, 0x49f5e0
mov ecx, eax
test ecx, ecx
je 0x442dc1
cmp word [0x49f5e0], 0
je 0x442dc1
push eax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x442dfd
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x648]
push eax
call fcn.0044177c
mov eax, dword [0x4a0be0]
test eax, eax
jne 0x442de9
mov eax, 0x47e5b8
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.004419d2
and byte [ebp - 0xd], 0
lea ecx, [ebp - 0x30]
call fcn.00402569
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.004025b1
push dword [ebp + 0x14]
lea ecx, [ebp - 0x30]
push dword [ebp + 0x10]
push 0x49cc4c
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004027b0
cmp byte [ebp - 0xd], 0
pop edi
pop esi
pop ebx
je 0x442e4b
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00402f32
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00403989
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x87c]
call fcn.0043fa6b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x443512
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x47abec
call fcn.004461a8
sub esp, 0x1c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
inc eax
push edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004023dd
mov ecx, dword [eax]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [eax + 4], 1
call fcn.00402a6a
mov eax, dword [eax]
lea ecx, [ebp + 0x14]
mov edi, dword [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push ebx
mov dword [ebp - 0x10], ebx
push dword [ebp + 0xc]
push dword [edi]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
mov dword [ebp + 8], eax
call fcn.004024ef
cmp dword [ebp + 8], ebx
je 0x4435be
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
inc eax
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004023dd
mov ecx, dword [eax]
mov dword [ebp - 4], 1
mov byte [eax + 4], 1
call fcn.00402a6a
mov eax, dword [eax]
lea ecx, [ebp + 0x14]
push ecx
push eax
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
mov dword [ebp + 8], eax
call fcn.004024ef
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 0x44eadb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x49a070
cmp edx, dword [eax]
je 0x44eafd
add eax, 8
inc ecx
cmp eax, 0x49a100
jl 0x44eaee
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x49a070]
jne 0x44ec2b
mov eax, dword [0x4a1cc8]
cmp eax, 1
je 0x44ec05
test eax, eax
jne 0x44eb2e
cmp dword [0x4979a4], 1
je 0x44ec05
cmp edx, 0xfc
je 0x44ec2b
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44eb65
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00445cc0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00446510
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x44eba8
lea eax, [ebp - 0x1a4]
push eax
call fcn.00446510
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4802bc
push edi
call fcn.00446410
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00445cc0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00445cd0
lea eax, [ebp - 0xa0]
push 0x48029c
push eax
call fcn.00445cd0
push dword [esi + 0x49a074]
lea eax, [ebp - 0xa0]
push eax
call fcn.00445cd0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004520c4
add esp, 0x2c
pop edi
jmp 0x44ec2b
lea eax, [ebp + 8]
lea esi, [esi + 0x49a074]
push 0
push eax
push dword [esi]
call fcn.00446510
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x458266
Capabilities:
Create directory

Disassembly:
mov eax, 0x47b1a8
call fcn.004461a8
sub esp, 0x60
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x6c]
push ebx
push ebx
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00402c39
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00401fe6
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], bl
call fcn.00401f6c
lea eax, [ebp - 0x6c]
lea ecx, [ebp + 8]
push eax
call fcn.00404c7c
lea ecx, [ebp - 0x6c]
call fcn.00401f6c
lea ecx, [ebp + 8]
mov dword [0x4a2154], ebx
call fcn.0040401b
mov byte [ebp - 0xd], al
lea eax, [ebp - 0xe]
mov edi, 0x47e5d8
push ebx
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0x47e5e0
mov dword [ebp - 0x24], edi
call fcn.004029f5
mov byte [ebp - 4], 2
xor esi, esi
mov dword [ebp - 0x14], 1
push 1
lea eax, [ebp - 0x1c]
push esi
push eax
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1c], 0x5c
call fcn.00402abf
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x4583b3
sub eax, esi
lea ecx, [ebp + 8]
inc eax
push eax
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.00402c05
lea esi, [ebp - 0x6c]
lea eax, [ebp - 0x68]
neg esi
sbb esi, esi
push 0x49454c
and esi, eax
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00409bdd
test eax, eax
je 0x458350
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x44]
push eax
call fcn.00419c58
jmp 0x458360
push dword [0x47e5e8]
lea ecx, [ebp - 0x40]
push ebx
push esi
call fcn.004102b9
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 1
lea esi, [eax + 1]
jle 0x4583a7
cmp dword [ebp - 0x14], 4
jg 0x458377
cmp byte [ebp - 0xd], bl
jne 0x4583a7
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
jne 0x458383
mov eax, 0x47e608
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4583a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [0x4a2154], eax
jne 0x4583e8
mov dword [0x4a2154], ebx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00401f6c
inc dword [ebp - 0x14]
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4582ef
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.00401f6c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401f6c
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
sub esp, 0x28
lea eax, [ebp - 0x44]
mov dword [ebp - 0x18], esp
mov ecx, esp
push ebx
push eax
mov dword [ecx], 0x47e5e0
mov dword [ecx + 0x20], edi
call fcn.00403b7a
call fcn.004567c6
add esp, 0x28
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00401f6c
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.00401f6c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401f6c
xor al, al
jmp 0x4583d9
Function at 0x4586a2
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x114], 0x114
and dword [eax], 0
lea eax, [ebp - 0x114]
and dword [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x104], 1
jne 0x45871d
cmp dword [ebp - 0x10c], 0
je 0x458715
cmp dword [ebp - 0x10c], 0xa
je 0x458700
cmp dword [ebp - 0x10c], 0x5a
je 0x458709
xor al, al
mov dword [esi], 0x80
jmp 0x458781
call fcn.00458a5a
test al, al
je 0x45870d
mov al, 1
jmp 0x4586f5
mov dword [esi], 0x40
jmp 0x45876b
mov dword [esi], 0x10
jmp 0x45876b
cmp dword [ebp - 0x104], 2
jne 0x45877f
mov eax, dword [ebp - 0x110]
sub eax, 4
je 0x458777
mov ecx, dword [ebp - 0x10c]
dec eax
je 0x458747
dec eax
je 0x45876f
xor al, al
mov dword [esi], 0x1000000
jmp 0x458781
test ecx, ecx
jne 0x458753
mov dword [esi], 0x100000
jmp 0x45876b
cmp ecx, 1
jne 0x458760
mov dword [esi], 0x400000
jmp 0x45876b
cmp ecx, 2
jne 0x45876f
mov dword [esi], 0x800000
mov al, 1
jmp 0x458781
test ecx, ecx
jne 0x45873d
mov al, 1
jmp 0x45873f
mov dword [esi], 0x10000
jmp 0x45876b
xor al, al
pop esi
leave
ret

Function at 0x458b73
Capabilities:
Get common file path

Disassembly:
mov eax, 0x47b287
call fcn.004461a8
sub esp, 0x260
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
push 1
mov esi, 0x104
pop ebx
cmp dword [ebp + 0xc], ebx
jne 0x458c1e
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x458c1e
push str.GetSystemWindowsDirectoryW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x49b4d8], eax
je 0x458c1e
lea ecx, [ebp - 0x26c]
push esi
push ecx
call eax
test eax, eax
je 0x458c1e
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x26c]
mov edi, 0x480bc8
mov esi, 0x480bc0
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], esi
call fcn.00403c0d
push 0x49454c
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], ebx
call fcn.00458cb0
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403b7a
mov dword [ebp - 0x14], ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
jmp 0x458c99
lea eax, [ebp - 0x26c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x458c46
lea ecx, [ebp - 0x30]
call fcn.00456d84
lea eax, [ebp - 0x30]
push 0x48d0d8
push eax
call fcn.004472fc
lea eax, [ebp - 0xd]
push 0
push eax
lea eax, [ebp - 0x26c]
mov edi, 0x480bc8
mov esi, 0x480bc0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], esi
call fcn.00403c0d
push 0x49454c
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 2
call fcn.00458cb0
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403b7a
and byte [ebp - 4], 0
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x3c]
call fcn.00401f6c
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 0x45a040
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x47b4b7
call fcn.004461a8
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], 0x47e5e0
mov dword [ebp - 0x34], 0x47e5d8
call fcn.004029f5
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 5
cmp eax, ebx
jne 0x45a089
mov eax, 0x47e608
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push ecx
push 0x20019
push ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x45a0b2
lea ecx, [ebp - 0x14]
call fcn.0040d2f9
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
push edi
cmp eax, ebx
mov edi, eax
jne 0x45a12e
mov eax, dword [ebp + 0x40]
cmp eax, ebx
jne 0x45a0c5
mov eax, 0x47e608
lea ecx, [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ecx
lea ecx, [ebp - 0x20]
push ebx
push ecx
push ebx
push eax
push dword [ebp - 0x14]
call esi
mov edi, eax
cmp edi, ebx
jne 0x45a12e
mov edi, dword [ebp + 0x40]
cmp edi, ebx
jne 0x45a0ed
mov edi, 0x47e608
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x54]
push eax
call fcn.004023dd
mov ecx, dword [eax]
mov byte [ebp - 4], 6
mov byte [eax + 4], 1
call fcn.00402a6a
mov eax, dword [eax]
lea ecx, [ebp + 0xc]
push ecx
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push ebx
push edi
push dword [ebp - 0x14]
call esi
lea ecx, [ebp - 0x2c]
mov edi, eax
mov byte [ebp - 4], 5
call fcn.004024ef
mov dword [0x4a2154], edi
cmp edi, ebx
pop edi
lea eax, [ebp - 0x54]
je 0x45a13f
lea eax, [ebp + 0x60]
mov esi, dword [ebp + 8]
push ebx
push eax
mov ecx, esi
mov dword [esi], 0x47e5e0
mov dword [esi + 0x20], 0x47e5d8
call fcn.00403b7a
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x14], ebx
je 0x45a170
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.00401f6c
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.00401f6c
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 1
call fcn.00401f6c
lea ecx, [ebp + 0x60]
mov byte [ebp - 4], bl
call fcn.00401f6c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x45a904
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x45a92c
xor al, al
leave
ret
cmp dword [ebp - 0x104], 2
jne 0x45a943
cmp dword [ebp - 0x110], 5
jb 0x45a943
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x45c6c8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x45c70d
mov eax, dword [ebp + 8]
test eax, eax
je 0x45c6e2
and dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45c769
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0045c5c2
lea eax, [ebp - 0x4c]
push 0x48dc88
push eax
call fcn.004472fc
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45c769
cmp dword [ebp + 8], 0
jne 0x45c742
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00456d18
lea eax, [ebp - 0x48]
push 0x48cae8
push eax
call fcn.004472fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x45c769
push 1
add esi, 0xc
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.0045c4fb
lea eax, [ebp - 0x48]
push 0x48cae8
push eax
call fcn.004472fc
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x45f195
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 0x45f1a9
push 1
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x45f1dd
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.004623a1
test al, al
jne 0x45f210
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0045c5c2
lea eax, [ebp - 0x4c]
push 0x48dc88
push eax
call fcn.004472fc
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 0x45f210
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00456d18
lea eax, [ebp - 0x48]
push 0x48cae8
push eax
call fcn.004472fc
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x45f218
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 0x45f22e
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 0x45f263
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00456d18
lea eax, [ebp - 0x48]
push 0x48cae8
push eax
call fcn.004472fc
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8