joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fbde
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x4937f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x24c], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
mov edi, dword [ebp + 0x10]
push 0x47c998
push eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x248], edi
call esi
push 0x47c998
push edi
call esi
lea eax, [ebp - 0x24c]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x43fdbd
push edi
call fcn.004445d9
push edi
mov esi, eax
push 0
push esi
mov dword [ebp - 0x250], esi
call fcn.004412d0
add esp, 0x10
push esi
push edi
xor edi, edi
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x43fdb6
push 0x34
lea eax, [ebp - 0x238]
push edi
push eax
mov dword [ebp - 0x240], eax
call fcn.004412d0
add esp, 0xc
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
push 0x471ba8
push esi
mov dword [ebp - 0x244], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43fcd5
mov eax, dword [ebp - 0x240]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
movzx eax, cx
push eax
movzx eax, dx
shr ecx, 0x10
push ecx
push eax
shr edx, 0x10
push edx
push str._u._u._u._u
push dword [ebp - 0x23c]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push 0x34
push edi
push dword [ebp - 0x240]
mov dword [ebp - 0x244], edi
call fcn.004412d0
add esp, 0xc
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43fdb6
mov ebx, dword [ebp - 0x244]
xor eax, eax
push 0x1fe
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push edi
push eax
shr ebx, 2
call fcn.004412d0
mov eax, dword [ebp - 0x240]
add esp, 0xc
test ebx, ebx
jle 0x43fdb6
mov esi, eax
and dword [ebp - 0x23c], 0
test edi, edi
jle 0x43fd4e
add esi, 4
push 4
lea eax, [ebp - 0x23c]
push esi
push eax
call fcn.004415a0
movzx eax, word [ebp - 0x23c]
add esp, 0xc
push eax
lea eax, [ebp - 0x204]
test edi, edi
jne 0x43fd83
push 0x4744c0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x43fd98
push dword [ebp - 0x248]
push str._s__u
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
inc edi
cmp edi, ebx
jl 0x43fd40
mov esi, dword [ebp - 0x250]
push esi
call fcn.004445a1
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004412b3
leave
ret
Function at 0x43fe73
Capabilities:
Compare security identifiers

Disassembly:
push 0x20
mov eax, 0x46d061
call fcn.004422f9
lea eax, [ebp - 0x1c]
push eax
xor ebx, ebx
push ebx
push 8
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x14], 0x500
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 0x43fed6
call esi
cmp eax, 0x3f0
jne 0x43fec6
lea eax, [ebp - 0x1c]
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
jne 0x43fed2
xor eax, eax
jmp 0x43ff7d
test eax, eax
je 0x43fecb
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x1c]
call edi
test eax, eax
jne 0x43fecb
call esi
cmp eax, 0x7a
jne 0x43fecb
push dword [ebp - 0x20]
call fcn.00442d61
mov esi, eax
pop ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push esi
push 2
push dword [ebp - 0x1c]
call edi
test eax, eax
je 0x43ff70
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x43ff70
mov edi, ebx
cmp dword [esi], ebx
jbe 0x43ff67
lea eax, [esi + 4]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x28]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x43ff64
mov eax, dword [ebp - 0x24]
inc edi
add eax, 8
mov dword [ebp - 0x24], eax
cmp edi, dword [esi]
jb 0x43ff45
jmp 0x43ff67
xor ebx, ebx
inc ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
or dword [ebp - 4], 0xffffffff
push esi
call fcn.00441040
pop ecx
mov eax, ebx
call fcn.004422a8
ret
Function at 0x43ff8c
Capabilities:
Create process on windows

Disassembly:
push 0x894
mov eax, 0x46d09c
call fcn.004422f9
mov esi, dword [ebp + 8]
push 0x10
xor ebx, ebx
lea eax, [ebp - 0x85c]
push ebx
push eax
call fcn.004412d0
push 0x44
pop edi
push edi
lea eax, [ebp - 0x8a0]
push ebx
push eax
call fcn.004412d0
mov dword [ebp - 0x8a0], edi
xor edi, edi
xor eax, eax
inc edi
add esp, 0x18
mov dword [ebp - 0x874], edi
mov word [ebp - 0x870], ax
cmp dword [ebp + 0xc], eax
je 0x43ffe7
mov word [ebp - 0x870], di
push esi
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
lea eax, [ebp - 0x841]
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x840]
call fcn.004025e0
mov dword [ebp - 4], ebx
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x44001d
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x84c]
push str.Attempting_to_launch__no_wait_:__s
mov edi, str.utils.cpp
push eax
mov dword [ebp - 0x84c], edi
mov dword [ebp - 0x848], 0x488
call fcn.00411370
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
call fcn.00401580
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x8a0]
push eax
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
lea eax, [ebp - 0x810]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
push esi
lea eax, [ebp - 0x84c]
push str.Launch_result__d
push eax
mov dword [ebp - 0x84c], edi
mov dword [ebp - 0x848], 0x48d
call fcn.00411370
add esp, 0xc
test esi, esi
je 0x4400b6
push 0x3e8
push dword [ebp - 0x85c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, esi
call fcn.004422a8
ret 8
Function at 0x4400c0
Capabilities:
Create process on windows

Disassembly:
push 0xb8
mov eax, 0x46d0dc
call fcn.004422f9
mov eax, dword [ebp + 8]
xor ecx, ecx
inc ecx
push ecx
lea ecx, [ebp - 0x45]
push ecx
xor ebx, ebx
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], ebx
call fcn.004025e0
mov dword [ebp - 4], ebx
push 0x10
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.004412d0
push 0x44
pop esi
push esi
lea eax, [ebp - 0xc4]
push ebx
push eax
call fcn.004412d0
xor edi, edi
xor eax, eax
inc edi
add esp, 0x18
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0x98], edi
mov word [ebp - 0x94], ax
cmp dword [ebp + 0xc], eax
je 0x44012f
mov word [ebp - 0x94], di
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x50]
push str.Attempting_to_launch:__s
push eax
mov dword [ebp - 0x50], str.utils.cpp
mov dword [ebp - 0x4c], 0x446
call fcn.00411370
add esp, 0xc
lea eax, [ebp - 0x54]
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
push eax
call fcn.00402910
xor ecx, ecx
inc ecx
mov byte [ebp - 4], cl
mov byte [eax + 4], cl
mov ecx, dword [eax]
call fcn.004035c0
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0xc4]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x54]
call fcn.00403460
test esi, esi
je 0x440231
mov esi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
xor edi, edi
inc edi
jmp 0x4401d8
cmp eax, edi
jne 0x4401eb
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
cmp dword [ebp - 0x7c], 0x11
je 0x4401eb
cmp dword [ebp - 0x7c], 0x10
je 0x4401eb
cmp dword [ebp - 0x7c], 0x12
je 0x4401eb
push 0x4ff
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x64]
push eax
push edi
call esi
test eax, eax
jne 0x4401b4
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x44]
push dword [ebp - 0x64]
mov dword [0x499584], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x44]
mov dword [ebp - 0x50], str.utils.cpp
push eax
lea eax, [ebp - 0x50]
push str.Launch_result__d__exit_code__d
push eax
mov dword [ebp - 0x4c], 0x467
call fcn.00411370
mov esi, dword [ebp - 0x44]
add esp, 0x10
jmp 0x440236
mov esi, 0xcccccccc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401580
mov eax, esi
call fcn.004422a8
ret 8
Function at 0x44024c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push 0x38
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.004412d0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
xor eax, eax
add esp, 0xc
cmp dword [ebp + 0x10], eax
mov dword [ebp - 4], ebx
setne al
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 0x60], 0x3c
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x5c], 0x40
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 4]
test eax, eax
cmovne ecx, dword [ebp - 0x28]
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x440349
jmp 0x440313
cmp eax, 1
jne 0x44032b
jmp 0x440300
cmp dword [ebp - 0x20], 0xf
je 0x4402de
cmp dword [ebp - 0x20], 0x113
jne 0x4402f2
mov ecx, dword [ebp + 0x14]
push 1
call fcn.00436796
jmp 0x4402f2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x440313
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4402c3
push 0x4ff
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 4]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
jne 0x4402bc
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov dword [0x499584], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop ebx
leave
ret 0x10

Function at 0x440567
Capabilities:
Delete directory

Disassembly:
push 8
mov eax, 0x46d188
call fcn.004422c6
push 8
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x14], esp
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0xd]
push eax
push dword [ebp + 8]
xor edi, edi
call fcn.0040c568
and dword [ebp - 4], edi
or dword [ebp - 4], 0xffffffff
call fcn.00454c3a
add esp, 0x34
test al, al
je 0x4405c3
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
push 0
cmovne edi, ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, edi
call fcn.00442294
ret 4
Function at 0x4405cd
Capabilities:
Delete file
Set file attributes

Disassembly:
push 8
mov eax, 0x46d188
call fcn.004422c6
push 4
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x14], esp
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0xd]
push eax
push dword [ebp + 8]
call fcn.0040c568
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call fcn.00454c3a
add esp, 0x34
test al, al
jne 0x44060b
mov eax, esi
jmp 0x44064b
push dword [ebp + 8]
xor edi, edi
call fcn.0043f45a
test eax, eax
jne 0x440649
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call esi
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
test eax, eax
pop eax
push 0
cmovne edi, eax
call esi
mov eax, edi
call fcn.00442294
ret 4
Function at 0x44cf5e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4937f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0044a1be
mov dword [ebp - 0x14], eax
cmp dword [0x49a450], edi
jne 0x44d04f
push 0x800
push edi
push 0x47a1e8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x44cfdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x44d12f
push 0x47a1e8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x44d12f
push 0x47a200
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44d12f
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x49a450], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x49a454], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x49a458], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x49a460], eax
test eax, eax
je 0x44d04c
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x49a45c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x44d074
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x44d067
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x44d089
push 4
pop eax
jmp 0x44d131
cmp dword [ebp - 0x14], edi
je 0x44d089
push dword [0x49a450]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x44d06e
mov eax, dword [0x49a45c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x44d0e7
cmp dword [0x49a460], esi
je 0x44d0e7
push eax
call ebx
push dword [0x49a460]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x44d0e7
test eax, eax
je 0x44d0e7
call ecx
test eax, eax
je 0x44d0dc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x44d0dc
test byte [ebp - 8], 1
jne 0x44d0e7
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x44d117
mov eax, dword [0x49a454]
cmp eax, esi
je 0x44d114
push eax
call ebx
test eax, eax
je 0x44d114
call eax
mov edi, eax
test edi, edi
je 0x44d114
mov eax, dword [0x49a458]
cmp eax, esi
je 0x44d114
push eax
call ebx
test eax, eax
je 0x44d114
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x49a450]
call ebx
test eax, eax
je 0x44d12f
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x44d131
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004412b3
leave
ret
Function at 0x453e8a
Capabilities:
Read file on windows

Disassembly:
push 0x10c
mov eax, 0x46d2c5
call fcn.004422f9
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 8]
xor edi, edi
xor ebx, ebx
inc edi
cmp eax, 0xffffffff
cmove eax, edi
mov dword [ebp - 0x118], ebx
test ecx, ecx
je 0x453f0f
lea edi, [ebp - 0x118]
push edi
push eax
push edx
call fcn.0045cf55
test al, al
jne 0x453f61
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x47c540
mov dword [ebp - 0x48], 0x474868
call fcn.0040c20b
push 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], ebx
call fcn.004336ea
push 0x48cd58
lea eax, [ebp - 0x114]
push eax
call fcn.00442239
push ebx
lea ecx, [ebp - 0x118]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x453f61
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47c540
mov dword [ebp - 0x18], 0x474868
call fcn.0040c20b
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], edi
call fcn.0043353e
push 0x48cce4
lea eax, [ebp - 0xc0]
jmp 0x453f09
mov eax, dword [ebp - 0x118]
call fcn.004422a8
ret 8
Function at 0x453f6f
Capabilities:
Get common file path

Disassembly:
push 0x78
mov eax, 0x46d31d
call fcn.004422f9
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x71]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x70], 0x47c540
mov dword [ebp - 0x48], 0x474868
call fcn.00402580
mov edi, 0x104
lea eax, [ebp - 0x80]
push edi
lea ecx, [ebp - 0x70]
push eax
mov dword [ebp - 4], ebx
call fcn.004559fc
cmp dword [ebp + 0xc], 1
jne 0x454027
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov byte [eax + 4], 1
call fcn.0040f295
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.0040c772
inc bl
je 0x454000
lea ecx, [ebp - 0x2c]
call fcn.00433865
push 0x48f6b8
lea eax, [ebp - 0x2c]
push eax
call fcn.00442239
push 0
lea eax, [ebp - 0x71]
push eax
push str.sysnative
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47c540
mov dword [ebp - 0x18], 0x474868
call fcn.0040c30e
mov byte [ebp - 4], 2
jmp 0x454080
cmp dword [ebp + 0xc], 2
jne 0x45409a
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov byte [eax + 4], 1
call fcn.0040f295
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.0040c772
inc bl
jne 0x453fea
push 0
lea eax, [ebp - 0x71]
push eax
push str.syswow64
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47c540
mov dword [ebp - 0x18], 0x474868
call fcn.0040c30e
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.0041f920
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00401580
jmp 0x4540cc
mov ecx, dword [eax]
mov byte [ebp - 4], 5
mov byte [eax + 4], 1
call fcn.0040f295
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.0040c772
inc bl
jne 0x453fea
push 0x471ba8
lea ecx, [ebp - 0x70]
call fcn.00454470
push 0
push eax
mov ecx, esi
mov dword [esi], 0x47c540
mov dword [esi + 0x28], 0x474868
call fcn.0040c20b
lea ecx, [ebp - 0x70]
call fcn.00401580
mov eax, esi
call fcn.004422a8
ret

Function at 0x4541b2
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x46d380
call fcn.004422f9
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor ebx, ebx
push 0
inc ebx
cmp eax, 0xffffffff
lea ecx, [ebp - 0x94]
push ecx
cmove eax, ebx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45422a
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47c540
mov dword [ebp - 0x18], 0x474868
call fcn.0040c20b
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.0043353e
push 0x48cce4
lea eax, [ebp - 0x90]
push eax
call fcn.00442239
mov eax, dword [ebp - 0x94]
call fcn.004422a8
ret 8
Function at 0x4544c7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x45454c
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x454545
mov ecx, dword [edi]
test ecx, ecx
je 0x454540
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x454536
cmp edx, 2
jbe 0x454528
cmp edx, 7
jne 0x454536
test cl, 1
jne 0x454536
shr ecx, 1
cmp ecx, 1
jb 0x454536
cmp word [esi + ecx*2 - 2], bx
jne 0x454536
cmp ecx, 1
jbe 0x454545
cmp word [esi + ecx*2 - 4], bx
jmp 0x454534
test cl, 1
jne 0x454536
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x454545
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x454545
xor ecx, ecx
mov word [esi], cx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0x80004005
call fcn.004115d0
int3

Function at 0x454bb7
Capabilities:
Get file attributes

Disassembly:
push 0
mov eax, 0x46dd4e
call fcn.004422c6
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [ebp + 0x38], bl
je 0x454be3
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
jne 0x454c2a
push 0x80
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
mov edi, 0x47c540
mov esi, 0x474868
push eax
mov dword [ecx], edi
mov dword [ecx + 0x28], esi
call fcn.0040c20b
call fcn.004585e9
pop ecx
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov dword [ecx], edi
mov dword [ecx + 0x28], esi
call fcn.0040c20b
call fcn.00454b43
add esp, 0x30
test eax, eax
setne bl
lea ecx, [ebp + 8]
call fcn.00401580
mov al, bl
call fcn.00442294
ret
Function at 0x454c3a
Capabilities:
Check if file exists

Disassembly:
push 0xc8
mov eax, 0x46d440
call fcn.004422f9
xor ebx, ebx
test byte [ebp + 0x38], 0x10
mov dword [ebp - 4], ebx
je 0x454c98
lea ecx, [ebp + 8]
call fcn.0043a5fe
test al, al
je 0x454c98
push dword [ebp + 0x38]
lea eax, [ebp + 8]
sub esp, 0x30
mov ecx, esp
push ebx
push eax
mov dword [ecx], 0x47c540
mov dword [ecx + 0x28], 0x474868
call fcn.0040c20b
call fcn.00454e1d
add esp, 0x34
mov bl, al
lea ecx, [ebp + 8]
call fcn.00401580
mov al, bl
jmp 0x454e17
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov dword [ecx], 0x47c540
mov dword [ecx + 0x28], 0x474868
call fcn.0040c20b
call fcn.00455a17
add esp, 0x30
cmp eax, 0xffffffff
je 0x454cd9
test byte [ebp + 0x38], 4
je 0x454ccb
test al, 0x10
je 0x454cd5
test byte [ebp + 0x38], 8
je 0x454c89
test al, 0x10
je 0x454c89
mov bl, 1
jmp 0x454c89
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x454e0d
cmp esi, 3
je 0x454e0d
cmp esi, 5
jne 0x454dc1
lea ecx, [ebp - 0xcc]
call fcn.00454238
or dword [ebp - 0xd0], 0xffffffff
lea eax, [ebp - 0xcc]
push eax
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
mov dword [ecx], 0x47c540
mov dword [ecx + 0x28], 0x474868
call fcn.0040c20b
call fcn.004556cf
mov esi, eax
add esp, 0x34
cmp esi, 0xffffffff
je 0x454d98
lea ecx, [ebp - 0xd0]
call fcn.0042bc29
test byte [ebp + 0x38], 4
mov dword [ebp - 0xd0], esi
je 0x454d64
test byte [ebp - 0xcc], 0x10
je 0x454d73
test byte [ebp + 0x38], 8
je 0x454d75
test byte [ebp - 0xcc], 0x10
je 0x454d75
mov bl, 1
lea ecx, [ebp - 0xd0]
call fcn.0042bc29
lea ecx, [ebp - 0x70]
call fcn.00401580
lea ecx, [ebp - 0xa0]
call fcn.00401580
jmp 0x454c89
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xd0]
mov esi, eax
call fcn.0042bc29
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], bl
call fcn.00401580
lea ecx, [ebp - 0xa0]
call fcn.00401580
test byte [ebp + 0x38], 0x20
je 0x454c89
push ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47c540
mov dword [ebp - 0x18], 0x474868
call fcn.0040c20b
push 1
push esi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.00433599
push 0x48cce4
lea eax, [ebp - 0x90]
push eax
call fcn.00442239
lea ecx, [ebp + 8]
call fcn.00401580
xor al, al
call fcn.004422a8
ret