joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456c00
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x4c9070]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.004041d0
mov esi, eax
test esi, esi
jne 0x456cf7
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x456cc9
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.00456c00
mov esi, eax
test esi, esi
jne 0x456cf7
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x456c90
mov eax, dword [esp + 0xc]
test eax, eax
je 0x456ce0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.00456d20
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x456d06
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0046be2f
mov esp, ebp
pop ebp
ret 4
Function at 0x4578f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4940c6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4c9070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x45799c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x45799c
call fcn.00404b90
mov esi, eax
jmp 0x457a8c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4579bf
call fcn.00404b90
jmp 0x457a7f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x4579dd
call fcn.00404b90
jmp 0x457a7f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4579fe
mov esi, 0x8007000e
jmp 0x457a81
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004560e0
jmp 0x457a28
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x457a3f
mov esi, 0x8007000e
jmp 0x457a81
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x457a5f
call fcn.00404b90
jmp 0x457a7f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00457790
mov esi, eax
test edi, edi
je 0x457a8c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x457ab0
lea ecx, [ebp - 0x418]
call fcn.004254c0
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046be2f
mov esp, ebp
pop ebp
ret 0x10

Function at 0x457ed0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
test eax, eax
je 0x457f10
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x457efa
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x457f06
push 0xdeaddead
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call edi
mov dword [esi], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x457f21
push eax
call edi
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x457f32
push eax
call edi
mov dword [esi + 4], 0
mov ecx, esi
call fcn.00457e40
pop edi
pop esi
ret 4
Function at 0x458390
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test esi, esi
jne 0x4583a6
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
push str.mainui_fonts.xml
push esi
call fcn.00477690
add esp, 8
test eax, eax
je 0x4583c0
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4
cmp dword [ebx + 4], 0
push edi
lea edi, [ebx + 4]
jne 0x4583e6
push edi
mov dword [edi], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4583e6
mov dword [edi], eax
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 4
cmp dword [ebx + 8], 6
jne 0x4583f7
cmp dword [ebx + 0xc], 1
mov eax, str.mainui_fonts_6.xml
jbe 0x4583f9
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x458800
Capabilities:
Acquire debug privileges
Check mutex on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x818
mov eax, dword [0x4c9070]
xor eax, esp
mov dword [esp + 0x814], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
call dword [sym.imp.selfprot.dll_disable_msg_inject]
push str.SetCrashHandle
push str.CrashHandler.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x458847
push 0
call eax
push 0x800
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0046ea70
add esp, 0xc
lea eax, [esp + 0x18]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x458894
lea eax, [esp + 0x18]
push 0x5c
push eax
call fcn.0046e615
add esp, 8
test eax, eax
je 0x458894
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.00452760
mov ecx, str.SeDebugPrivilege
call fcn.00458040
mov ecx, str.SeShutdownPrivilege
call fcn.00458040
push str.hr_hips_main
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x4d66d8], eax
test eax, eax
je 0x458a0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x458961
push 0
push 0x4aabc8
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x458a0a
test edi, edi
je 0x458939
mov ecx, edi
mov dword [esp + 0xc], 0xa
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458902
sub ecx, edx
mov dword [esp + 0x14], edi
push 0
sar ecx, 1
push 0x1f4
push 2
lea eax, [ecx*2 + 2]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
push 0x4a
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x814]
xor ecx, esp
call fcn.0046be2f
mov esp, ebp
pop ebp
ret 0x10
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x458a0a
push str..ACP
push 0
call fcn.0047d386
add esp, 8
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 8
push eax
mov dword [esp + 0x14], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push ecx
mov ecx, esi
call fcn.00458460
add esp, 4
push edi
push 0x4a159c
push 0x4d16dc
call fcn.00409370
call fcn.00453830
test eax, eax
jns 0x4589e8
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x814]
xor ecx, esp
call fcn.0046be2f
mov esp, ebp
pop ebp
ret 0x10
call fcn.00458620
call dword [sym.imp.DuiLib.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::AddRefGdiplus_void_]
push edi
call fcn.00453d90
call dword [sym.imp.DuiLib.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::DecRefGdiplus_void_]
call fcn.004538f0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x81c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0046be2f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45afc0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4d138c]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push ebx
mov ebx, ecx
mov dword [ebp - 0x18], ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x45b013
push str.Wow64DisableWow64FsRedirection
push str.kernel32
call edi
push eax
call esi
mov dword [0x4d138c], eax
test eax, eax
je 0x45b019
lea ecx, [ebp - 8]
push ecx
call eax
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x45b05a
mov eax, dword [0x4d1388]
mov ebx, dword [ebp - 8]
test eax, eax
jne 0x45b04e
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call edi
push eax
call esi
mov dword [0x4d1388], eax
test eax, eax
je 0x45b051
push ebx
call eax
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0046c64c
add esp, 4
mov dword [ebp - 0x14], eax
push eax
push ebx
push dword [ebp - 4]
push dword [ebp - 0x18]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [0x4d1388]
setne bl
test eax, eax
jne 0x45b0a0
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call edi
push eax
call esi
mov dword [0x4d1388], eax
test eax, eax
je 0x45b0a5
push dword [ebp - 0x18]
call eax
mov esi, dword [ebp - 0x14]
test bl, bl
je 0x45b0f7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4a1b6c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x45b0f7
cmp dword [ebp - 0xc], 0
je 0x45b0f7
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x45b0f7
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push dword [ebp - 0x1c]
call fcn.00409370
add esp, 0x18
mov bl, 1
push esi
call fcn.0046c647
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b110
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494216
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x4c9070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x118
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.0046ea70
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x45b176
xor eax, eax
jmp 0x45b2b4
cmp dword [ebp - 0x12c], 6
jne 0x45b16f
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x45b18e
cmp eax, 1
jne 0x45b16f
call fcn.00404a20
mov ecx, eax
test ecx, ecx
jne 0x45b1a3
push 0x80004005
call fcn.00404ad0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x138], eax
mov dword [ebp - 4], 0
call fcn.00404a20
mov ecx, eax
test ecx, ecx
jne 0x45b1cd
push 0x80004005
call fcn.00404ad0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x134], eax
mov byte [ebp - 4], 1
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x45b20a
push 0x104
lea ecx, [ebp - 0x134]
call fcn.00404530
mov eax, dword [ebp - 0x134]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push ecx
lea ecx, [ebp - 0x134]
call fcn.00404110
push str.wintrust.dll
push 0x4a632c
push 0x4ad2dc
lea ecx, [ebp - 0x134]
call fcn.00428e90
push eax
call fcn.00409100
mov ecx, dword [ebp - 0x134]
lea edx, [ebp - 0x138]
add esp, 0xc
call fcn.0045afc0
mov esi, dword [ebp - 0x138]
test al, al
jne 0x45b264
xor ebx, ebx
jmp 0x45b272
mov ecx, esi
call fcn.0045af10
xor ebx, ebx
test al, al
sete bl
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x134]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45b296
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x45b2b2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046be2f
mov esp, ebp
pop ebp
ret
Function at 0x45b2d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f918
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4c9070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00404a20
mov ecx, eax
test ecx, ecx
jne 0x45b30c
push 0x80004005
call fcn.00404ad0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
test edi, edi
je 0x45b36f
cmp word [edi], 0x22
je 0x45b34e
push 0x20
push edi
call fcn.0046e567
add esp, 8
test eax, eax
je 0x45b34e
push edi
lea eax, [ebp - 0x10]
push 0x4ab564
push eax
call fcn.00409370
add esp, 0xc
jmp 0x45b36c
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45b353
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.004046a0
mov esi, dword [ebp - 0x10]
push 1
push 0
push dword [ebp + 0xc]
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x45b3a5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x45b3c0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49424b
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4c9070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 8
push 0
push esi
call fcn.0045b2d0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
jne 0x45b4aa
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0046ea70
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.00404a20
mov ecx, eax
test ecx, ecx
jne 0x45b44b
push 0x80004005
call fcn.00404ad0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x21c]
push str._sInternet_Exploreriexplore.exe
push eax
call fcn.00409370
add esp, 4
push esi
mov esi, dword [ebp - 0x21c]
push esi
call fcn.0045b2d0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45b4aa
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046be2f
mov esp, ebp
pop ebp
ret
Function at 0x45b4d0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49429e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4c9070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00404a20
mov ecx, eax
test ecx, ecx
jne 0x45b50f
push 0x80004005
call fcn.00404ad0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
or ebx, 0xffffffff
mov dword [ebp - 4], 0
test esi, esi
je 0x45b69b
push esi
lea eax, [ebp - 0x14]
push str.__select____s_
push eax
call fcn.00409370
mov eax, dword [0x4d138c]
add esp, 0xc
test eax, eax
jne 0x45b567
push str.Wow64DisableWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d138c], eax
test eax, eax
je 0x45b573
lea ecx, [ebp - 0x18]
push ecx
call eax
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
call fcn.00404a20
mov ecx, eax
test ecx, ecx
jne 0x45b58f
push 0x80004005
call fcn.00404ad0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x45b5c2
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00404530
mov esi, dword [ebp - 0x10]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push dword [esi - 8]
push esi
call fcn.00474f18
add esp, 8
test eax, eax
js 0x45b6c9
cmp eax, dword [esi - 8]
jg 0x45b6c9
mov edi, dword [ebp - 0x14]
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x45b647
lea eax, [ecx - 1]
test eax, eax
js 0x45b6c9
cmp eax, ecx
jg 0x45b6c9
cmp word [esi + eax*2], 0x5c
je 0x45b622
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00409220
push 0xc
push str.explorer.exe
lea ecx, [ebp - 0x10]
call fcn.00403730
mov esi, dword [ebp - 0x10]
push 1
push 0
push edi
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45b662
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1c], 0
je 0x45b69b
mov eax, dword [0x4d1388]
mov esi, dword [ebp - 0x18]
test eax, eax
jne 0x45b698
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d1388], eax
test eax, eax
je 0x45b69b
push esi
call eax
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x45b6b7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00404ad0
int3
Function at 0x45b7a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491da6
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4c9070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
jne 0x45b7e0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4d138c]
test eax, eax
jne 0x45b809
push str.Wow64DisableWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d138c], eax
test eax, eax
je 0x45b815
lea ecx, [ebp - 0x10]
push ecx
call eax
neg eax
sbb eax, eax
neg eax
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45b82a
xor esi, esi
jmp 0x45b830
shr esi, 4
and esi, 1
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0
je 0x45b86c
mov eax, dword [0x4d1388]
mov edi, dword [ebp - 0x10]
test eax, eax
jne 0x45b869
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d1388], eax
test eax, eax
je 0x45b86c
push edi
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x45b950
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4942d6
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x4c9070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov si, cx
call fcn.00404a20
mov ecx, eax
test ecx, ecx
jne 0x45b995
push 0x80004005
call fcn.00404ad0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x19c], eax
push 0x100
lea eax, [ebp - 0x110]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0046ea70
add esp, 0xc
movzx eax, si
push eax
lea eax, [ebp - 0x19c]
push str._c:_
push eax
call fcn.00409370
mov esi, dword [ebp - 0x19c]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x45ba55
push 3
lea eax, [ebp - 0x194]
push esi
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x198], eax
call fcn.00404030
push ecx
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x198]
push eax
call fcn.004069f0
mov eax, dword [ebp - 0x198]
lea ecx, [ebp - 0x194]
add esp, 8
cmp eax, ecx
je 0x45ba37
push eax
call fcn.00471958
add esp, 4
push 0x10
lea eax, [ebp - 0x110]
push str.DeviceHarddisk
push eax
call fcn.004805bc
add esp, 0xc
test eax, eax
je 0x45ba55
xor edi, edi
jmp 0x45ba5a
mov edi, 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45ba79
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046be2f
mov esp, ebp
pop ebp
ret
Function at 0x45c840
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
push 0
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x45c86d
mov ecx, esi
call fcn.00404410
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
js 0x45c8d2
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x45c88a
push edi
mov ecx, esi
call fcn.00404530
push edi
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
test eax, eax
jne 0x45c8a0
xor ecx, ecx
jmp 0x45c8b2
push dword [eax - 8]
push eax
call fcn.00474f18
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x45c8d2
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x45c8d2
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov ebx, 1
pop edi
pop esi
mov word [eax + ecx*2], dx
mov eax, ebx
pop ebx
pop ebp
ret 4
push 0x80070057
call fcn.00404ad0
int3