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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10042c7a
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx]
and dword [ecx + eax], 0
jmp 0x10042c87
push 0x2169
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esp, ebp
pop ebp
ret

Function at 0x10042ef5
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10042f3f
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
shl eax, 1
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
sub ecx, eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [eax + 0x24], ecx
jmp 0x10042f47
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esp, ebp
pop ebp
ret

Function at 0x100430b6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100430f7
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x100430f5
push 0x211c
push 0
push 0x34f
push 0x1bcb
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x10043151
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jne 0x10043124
mov dword [ebp - 8], 1
jmp 0x10043128
and dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
sub ecx, dword [eax]
mov eax, dword [ebp - 4]
cmp ecx, dword [eax]
jle 0x10043140
mov dword [ebp - 0xc], 1
jmp 0x10043144
and dword [ebp - 0xc], 0
mov eax, 0x3622ba39
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret
Function at 0x1007caa2
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10087330]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1006d8b4
mov dword [ebp - 0x14], eax
cmp dword [0x10674adc], esi
jne 0x1007cb95
push 0x800
push esi
push 0x10007cfc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1007cb22
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1007cc75
push esi
push esi
push 0x10007cfc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1007cc75
push 0x10007d14
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007cc75
push eax
call ebx
push 0x10007d20
push edi
mov dword [0x10674adc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007d30
push edi
mov dword [0x10674ae0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007d44
push edi
mov dword [0x10674ae4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10674aec], eax
test eax, eax
je 0x1007cb92
push 0x10007d60
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10674ae8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007cbba
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007cbad
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1007cbcf
push 4
pop eax
jmp 0x1007cc77
cmp dword [ebp - 0x14], esi
je 0x1007cbcf
push dword [0x10674adc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1007cbb4
mov eax, dword [0x10674ae8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007cc2d
cmp dword [0x10674aec], edi
je 0x1007cc2d
push eax
call ebx
push dword [0x10674aec]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007cc2d
test eax, eax
je 0x1007cc2d
call ecx
test eax, eax
je 0x1007cc22
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 0x1007cc22
test byte [ebp - 8], 1
jne 0x1007cc2d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1007cc5d
mov eax, dword [0x10674ae0]
cmp eax, edi
je 0x1007cc5a
push eax
call ebx
test eax, eax
je 0x1007cc5a
call eax
mov esi, eax
test esi, esi
je 0x1007cc5a
mov eax, dword [0x10674ae4]
cmp eax, edi
je 0x1007cc5a
push eax
call ebx
test eax, eax
je 0x1007cc5a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10674adc]
call ebx
test eax, eax
je 0x1007cc75
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1007cc77
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x401253
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xe8
push ebx
push esi
mov esi, dword [ebp + 0x78]
push edi
push dword [ebp + 0x7c]
mov edi, dword [sym.imp.USER32.DLL_GetDlgItem]
push dword [esi + 0x18]
call edi
push 9
push dword [esi + 0x18]
mov dword [ebp + 0x6c], eax
call edi
mov dword [ebp + 0x78], eax
push 0x64
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x6c]
xor ebx, ebx
mov word [ebp - 0x78], bx
call dword [sym.imp.USER32.DLL_GetWindowTextW]
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x78]
call dword [sym.imp.USER32.DLL_SetWindowTextW]
lea eax, [ebp + 0x64]
push eax
push dword [esi + 0x18]
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x68], ebx
call dword [sym.imp.USER32.DLL_ClientToScreen]
xor eax, eax
lea edi, [ebp + 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp + 0x54]
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.DLL_GetWindowRect]
mov ecx, dword [ebp + 0x58]
mov eax, dword [ebp + 0x54]
mov edi, dword [ebp + 0x60]
mov esi, dword [ebp + 0x5c]
push 4
sub edi, ecx
sub ecx, dword [ebp + 0x68]
push edi
sub esi, eax
sub eax, dword [ebp + 0x64]
push esi
push ecx
push eax
push ebx
push dword [ebp + 0x78]
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x58], ecx
call dword [sym.imp.USER32.DLL_SetWindowPos]
push 1
push edi
push esi
push dword [ebp + 0x58]
push dword [ebp + 0x54]
push dword [ebp + 0x78]
call dword [sym.imp.USER32.DLL_MoveWindow]
push ebx
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.DLL_ShowWindow]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret
Function at 0x402d93
Capabilities:
Change the wallpaper

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push edi
push 0x4ad684
call esi
call fcn.00434f2e
lea ecx, [ebp - 0xc]
call fcn.00402aec
xor ebx, ebx
or edi, 0xffffffff
cmp byte [0x4acbf8], bl
je 0x402df1
push 3
push dword [ebp + 8]
push ebx
push 0x14
call dword [sym.imp.USER32.DLL_SystemParametersInfoW]
mov edi, eax
neg edi
sbb edi, edi
inc edi
jne 0x402df1
mov eax, dword [fcn.004ad270]
cmp eax, ebx
je 0x402dea
cmp dword [ebp - 0xc], ebx
jne 0x402dea
call eax
xor edi, edi
jmp 0x402f78
push 0x4ad684
mov dword [ebp - 4], ebx
call esi
call fcn.00434f2e
lea ecx, [ebp - 8]
call fcn.00402aec
lea eax, [ebp - 4]
push eax
push 0x49f3a8
xor esi, esi
inc esi
push esi
push ebx
push 0x49f3b8
mov byte [0x4acbf8], 0xff
call dword [0x4ad274]
cmp eax, ebx
push ebx
jge 0x402e3e
push ebx
push eax
push 0x494ba8
mov esi, 0x4acf10
jmp 0x402ee8
xor eax, eax
mov dword [ebp - 0x20], 0xc
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp eax, ebx
mov esi, 0x4acf10
jge 0x402e76
push ebx
push ebx
push eax
push 0x494b60
mov ecx, esi
call fcn.00418c27
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push dword [ebp + 8]
push eax
call dword [ecx + 0x14]
cmp eax, ebx
jge 0x402e96
push ebx
push ebx
push eax
push 0x494b24
mov ecx, esi
call fcn.00418c27
xor eax, eax
push ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
or dword [ebp - 0x10], 2
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], 8
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp eax, ebx
jge 0x402ec8
push ebx
push ebx
push eax
push 0x494ae0
mov ecx, esi
call fcn.00418c27
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 7
push eax
mov byte [0x4acbf8], 1
call dword [ecx + 0xc]
mov edi, eax
cmp edi, ebx
jge 0x402ef1
push ebx
push ebx
push edi
push 0x494aa8
mov ecx, esi
call fcn.00418c27
jmp 0x402efa
xor edi, edi
mov byte [0x4acbf8], 2
mov eax, dword [fcn.004ad270]
cmp eax, ebx
je 0x402f0a
cmp dword [ebp - 8], ebx
jne 0x402f0a
call eax
push 0x4ad684
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x402f22
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
je 0x402f68
push 3
push dword [ebp + 8]
push ebx
push 0x14
call dword [sym.imp.USER32.DLL_SystemParametersInfoW]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [ebp - 8], ebx
je 0x402f46
xor edi, edi
jmp 0x402f54
cmp dword [ebp - 4], ebx
jne 0x402f59
cmp eax, ebx
mov edi, eax
jne 0x402f54
xor edi, edi
inc edi
cmp dword [ebp - 8], ebx
jne 0x402f68
push ebx
push ebx
push eax
push 0x494a60
mov ecx, esi
call fcn.00418c27
mov eax, dword [fcn.004ad270]
cmp eax, ebx
je 0x402f78
cmp dword [ebp - 0xc], ebx
jne 0x402f78
call eax
push 0x4ad684
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4030be
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
and word [ebp - 0x44], 0
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0x494c28
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
cmp word [ebp - 0x44], 0
jne 0x4030f4
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0xb
push 0x800
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
cmp word [ebp - 0x44], 0
lea eax, [ebp - 0x44]
jne 0x403103
mov eax, 0x494c20
push eax
mov ecx, 0x4acbf4
call fcn.00440487
push dword [0x4acbf4]
call fcn.00436854
cmp eax, 1
pop ecx
jle 0x403125
mov word [0x4b0010], ax
leave
ret

Function at 0x40322e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [sym.imp.USER32.DLL_GetLastInputInfo]
lea eax, [ebp - 8]
xor ebx, ebx
push eax
mov dword [ebp - 8], 8
mov dword [ebp - 4], ebx
call edi
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x4acb94]
test ecx, ecx
jle 0x403261
mov dword [0x4acb94], eax
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
mov dword [0x4acb94], eax
jmp 0x403299
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], ebx
call edi
call esi
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jb 0x403291
sub eax, dword [0x4acb94]
cmp eax, dword [ebp + 8]
jae 0x4032a1
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp byte [0x4ab290], bl
jg 0x403271
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x4acb94]
pop esi
test ecx, ecx
jle 0x4032b6
mov dword [0x4acb94], eax
xor eax, eax
cmp byte [0x4ab290], bl
pop edi
setg al
pop ebx
leave
ret

Function at 0x40348b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xf
xor eax, eax
cmp byte [ebp + 0x10], bl
pop ecx
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], ebx
rep stosd dword es:[edi], eax
je 0x4034c1
or dword [ebp - 0x28], 1
mov word [ebp - 0x24], bx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x403500
push esi
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
cmp byte [ebp + 0xc], bl
je 0x4034fa
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x10]
call esi
pop esi
pop edi
pop ebx
leave
ret

Function at 0x403504
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push 0x3ff
lea eax, [ebp - 0x400]
push eax
push 0x494c78
mov byte [ebp - 0x400], 0
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
cmp byte [ebp - 0x400], 0x31
jne 0x403546
push 0
push 0x494c74
push dword [ebp + 8]
push 0
call dword [sym.imp.USER32.DLL_MessageBoxA]
leave
ret
Function at 0x403548
Capabilities:
Terminate process

Disassembly:
cmp byte [0x4ab290], 2
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x14
pop esi
je 0x40355f
push esi
call edi
cmp dword [0x4acba0], 0
je 0x40357a
push 0x1e
pop esi
jmp 0x40357a
cmp dword [0x4acb98], 0
je 0x40357d
push 0xa
call edi
dec esi
jns 0x40356d
mov eax, dword [0x4acb98]
test eax, eax
pop edi
pop esi
je 0x40359b
push 0
push eax
mov dword [0x4acb98], 0
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov byte [0x4ab290], 0xff
ret

Function at 0x4035a3
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push dword [ebp + 0xc]
mov esi, 0x8000004
push 0x64
push ebx
push esi
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov edi, eax
cmp edi, ebx
mov byte [ebp - 1], 1
je 0x4035e4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x4035f5
mov byte [ebp - 1], bl
jmp 0x4035f5
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
je 0x403631
push ebx
push ebx
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
push edi
mov dword [0x4acba8], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [0x4acba8]
cmp eax, ebx
je 0x403631
cmp byte [ebp - 1], bl
je 0x40362c
push 0x64
push ebx
push eax
call fcn.0047fd70
mov eax, dword [0x4acba8]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40387e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push 0x169
lea ecx, [ebp - 4]
call fcn.00435d80
mov ebx, dword [ebp - 4]
push 0x104
push dword [ebp + 0xc]
add ebx, 0xc8
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpynW]
lea eax, [ebp - 8]
push eax
xor esi, esi
push ebx
mov dword [ebp - 8], esi
call sub.VERSION.DLL_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x40393c
push edi
push eax
push 2
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov edi, eax
push edi
push dword [ebp - 0x10]
push dword [ebp - 8]
push ebx
call sub.VERSION.DLL_GetFileVersionInfoW
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x494cb0
push edi
call sub.VERSION.DLL_VerQueryValueW
mov eax, dword [ebp - 0xc]
mov cx, word [eax + 0x12]
mov dx, word [eax + 0x10]
mov di, word [eax + 0x16]
movzx eax, word [eax + 0x14]
push eax
movzx eax, di
push eax
movzx eax, dx
push eax
movzx eax, cx
push eax
push 0x494c98
push dword [ebp - 4]
call dword [sym.imp.USER32.DLL_wsprintfW]
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
pop edi
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
mov dword [esi], eax
call fcn.0043092f
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x403fc0
Capabilities:
Enumerate disk volumes
Get disk information via ioctl

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xad0
push esi
push 0x103
lea eax, [ebp - 0x3ac]
xor esi, esi
push eax
mov word [ebp - 0x3ac], si
mov dword [ebp + 0x60], 2
call dword [sym.imp.KERNEL32.DLL_FindFirstVolumeW]
cmp eax, 0xffffffff
mov dword [ebp + 0x64], eax
je 0x4041ad
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_SetLastError]
push edi
lea eax, [ebp - 0x3ac]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push esi
mov word [ebp + eax*2 - 0x3ae], si
call ebx
push esi
push 0x80
push 3
push esi
push 7
push 0x80000000
lea eax, [ebp - 0x3ac]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x68], eax
je 0x404179
xor eax, eax
mov dword [ebp - 0x6cc], esi
mov ecx, 0xc7
lea edi, [ebp - 0x6c8]
rep stosd dword es:[edi], eax
lea edi, [ebp + 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
call ebx
or dword [ebp + 0x58], 0xffffffff
push esi
lea eax, [ebp - 0x6cc]
push eax
push 0xc
lea eax, [ebp + 0x54]
push eax
push esi
push esi
push 0x2d1080
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push 0x24
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
mov edi, 0x90
push edi
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.0047fd70
or dword [ebp - 0x24], 0xffffffff
add esp, 0xc
push esi
lea eax, [ebp - 0x6cc]
push eax
push edi
lea eax, [ebp - 0x3c]
push eax
push esi
push esi
push 0x70048
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
cmp dword [ebp + 0x68], esi
je 0x4040cf
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x30]
lea eax, [ebp - 0x1a4]
push dword [ebp - 0x34]
push eax
call fcn.004752d0
push dword [ebp - 0x28]
lea eax, [ebp - 0x12c]
push dword [ebp - 0x2c]
push eax
call fcn.004752d0
add esp, 0x18
cmp dword [ebp - 0x3c], 1
jne 0x40410f
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.00433cd3
jmp 0x404126
movzx eax, byte [ebp - 0x1c]
push eax
lea eax, [ebp - 0xb4]
push 0x494e3c
push eax
call dword [sym.imp.USER32.DLL_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0xb4]
push eax
push dword [ebp + 0x54]
lea eax, [ebp - 0x3ac]
push dword [ebp + 0x5c]
push dword [ebp + 0x58]
push eax
lea eax, [ebp - 0xa64]
push 0x494e0c
push eax
call dword [sym.imp.USER32.DLL_wsprintfW]
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x74]
add esp, 0x24
lea eax, [ebp + eax*2 - 0xa64]
push eax
call fcn.00435dd0
mov dword [ebp + 0x60], esi
push 0x103
lea eax, [ebp - 0x3ac]
push eax
push dword [ebp + 0x64]
mov word [ebp - 0x3ac], si
call dword [sym.imp.KERNEL32.DLL_FindNextVolumeW]
test eax, eax
jne 0x404002
cmp dword [ebp + 0x64], esi
pop edi
pop ebx
je 0x4041ad
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.DLL_FindVolumeClose]
pop esi
add ebp, 0x6c
leave
ret
Function at 0x404932
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
push 0x494f58
xor ebx, ebx
push ebx
call fcn.004035a3
pop ecx
pop ecx
call fcn.004030be
mov byte [0x4acb8a], 1
call fcn.0042c298
call fcn.00432326
push ebx
push 0x24
pop edi
push edi
lea eax, [ebp - 0x12c]
push eax
push ebx
mov byte [0x4acb89], 3
mov byte [ebp - 0x12c], bl
call dword [sym.imp.SHELL32.DLL_SHGetSpecialFolderPathA]
push 0x494f40
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x494f2c
push eax
mov dword [ebp - 4], eax
call esi
push 7
pop ecx
mov dword [ebp - 0x28], edi
push 0x494f18
push dword [ebp - 4]
mov dword [0x4acb54], eax
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
call esi
cmp eax, ebx
je 0x4049dc
lea ecx, [ebp - 0x28]
push ecx
call eax
cmp word [ebp - 0x28], bx
je 0x404a19
push 0x494ef8
push dword [ebp - 4]
call esi
push 0x494ed8
push dword [ebp - 4]
mov dword [0x4acb84], eax
call esi
cmp dword [0x4acb84], ebx
mov dword [0x4acb80], eax
jne 0x404a0e
mov dword [0x4acb80], ebx
mov bl, 1
mov word [0x4acb6c], 0x100
movsx eax, bl
push 0x494ecc
push eax
push 0x4acf10
mov byte [0x4acb89], bl
call fcn.004380d1
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404a3a
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 4], eax
push ebx
lea ecx, [eax + 8]
push edi
mov di, word [eax]
mov dword [ebp - 4], ecx
mov ax, word [ecx]
call fcn.0040bc38
test al, al
jne 0x404a5f
inc ecx
inc ecx
mov dword [ebp - 4], ecx
push 0x63
lea eax, [ebp - 0x74]
push eax
xor ebx, ebx
push 0x494c60
mov byte [ebp - 0x74], bl
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
cmp byte [ebp - 0x74], 0x31
jne 0x404a82
mov byte [0x4acb90], 1
push esi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push dword [ebp - 4]
lea ecx, [ebp - 0x10]
mov dword [0x4acb94], eax
mov dword [ebp - 0xc], ebx
call fcn.004403c3
lea ecx, [ebp - 8]
call fcn.00435d62
push 1
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
mov ecx, 0x4acf10
call fcn.0043d5b3
push dword [ebp - 8]
lea ecx, [ebp - 0xc]
call fcn.00440487
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
mov dword [ebp - 4], eax
call fcn.0043092f
lea ecx, [ebp - 0x10]
call fcn.0043092f
mov ecx, dword [ebp - 4]
call fcn.004032c5
push 0x1e
push eax
push 0x494fa8
mov dword [ebp - 4], eax
mov esi, eax
call fcn.0047fec0
add esp, 0xc
test eax, eax
jne 0x404b30
movzx esi, word [esi + 0x1e]
mov eax, esi
call fcn.0040bc38
test al, al
jne 0x404b0e
cmp si, bx
jne 0x404b30
push 0x1e
push 0x494f88
push dword [ebp - 4]
call fcn.004102e0
mov ecx, dword [ebp - 4]
add esp, 0xc
add ecx, 0x1e
call fcn.004032c5
mov dword [ebp - 4], eax
jmp 0x404b47
push 8
lea eax, [ebp - 4]
push eax
push 0x494f7c
call fcn.00437ad0
add esp, 0xc
test al, al
je 0x404b8a
cmp di, 0x22
jne 0x404b80
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edx, dword [ebp - 4]
lea ecx, [edx + eax*2 - 2]
cmp ecx, edx
jbe 0x404b80
mov ax, word [ecx]
call fcn.0040bc38
test al, al
je 0x404b73
dec ecx
dec ecx
cmp ecx, edx
ja 0x404b61
cmp ecx, edx
jbe 0x404b80
cmp word [ecx], 0x22
jne 0x404b80
mov word [ecx], bx
push dword [ebp - 4]
call fcn.0040baf4
jmp 0x404baa
push 0xe
lea eax, [ebp - 4]
push eax
push 0x494f6c
call fcn.00437ad0
add esp, 0xc
test al, al
pop esi
je 0x404bb2
push dword [ebp - 4]
call fcn.004056e7
pop ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
lea ecx, [ebp - 0xc]
call fcn.0043092f
pop edi
xor eax, eax
pop ebx
leave
ret

Function at 0x404bc0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, eax
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push dword [esi]
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [0x4acb98], 0
call ebx
and dword [esi], 0
test edi, edi
je 0x404bff
mov eax, dword [edi]
test eax, eax
je 0x404bff
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateJobObject]
push dword [edi]
call ebx
and dword [edi], 0
cmp byte [esp + 0x10], 0
je 0x404c17
push 1
push 0
push 0x494fc8
call fcn.0040348b
add esp, 0xc
push dword [0x4acbf0]
call fcn.0040340a
cmp byte [esp + 0x10], 0
pop ecx
je 0x404c43
push 3
pop esi
push 0
call dword [sym.imp.ADVAPI32.DLL_AbortSystemShutdownW]
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
dec esi
jne 0x404c2d
pop esi
pop ebx
ret