joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b799
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x4cc
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi + 0x2a4], ebx
push edi
je 0x40b868
cmp dword [esi + 0x2ac], ebx
je 0x40b82a
push 0x2b0
lea eax, [esp + 0x230]
push ebx
push eax
mov dword [esp + 0x234], ebx
call sub.msvcrt.dll_memset
push 0x208
lea eax, [esp + 0x2e]
push ebx
push eax
mov word [esp + 0x34], bx
call sub.msvcrt.dll_memset
add esp, 0x18
push 0x104
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
push 0x4001
push 0x2b4
lea eax, [esp + 0x230]
push eax
push ebx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [esi + 0x298], eax
push eax
jmp 0x40b859
call fcn.004081d2
push 0x60
pop ecx
shl eax, 4
xor edx, edx
div ecx
push 1
push 1
push 0x19
push eax
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push ebx
lea edi, [esi + 0x298]
push eax
mov dword [edi], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [edi]
push 1
push 0x1003
push dword [esi + 0x290]
call ebp
cmp dword [esi + 0x2a8], ebx
je 0x40b8ad
call fcn.004081d2
push 0x60
pop ecx
shl eax, 5
xor edx, edx
div ecx
push 1
push 1
push 0x19
push eax
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push ebx
lea edi, [esi + 0x29c]
push eax
mov dword [edi], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [edi]
push ebx
push 0x1003
push dword [esi + 0x290]
call ebp
call fcn.004081d2
push 0x60
pop ecx
shl eax, 4
xor edx, edx
div ecx
push 1
push 1
push 0x19
mov edi, eax
push edi
push edi
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push ebx
mov dword [esi + 0x294], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push 0x1000
push edi
push edi
push ebx
push 0x85
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push ebx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push 0x1000
push edi
push edi
push ebx
push 0x86
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push ebx
push dword [esi + 0x294]
mov dword [esp + 0x1c], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x20], eax
push dword [esi + 0x294]
call edi
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x294]
call edi
push dword [esp + 0x10]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push dword [esp + 0x14]
call edi
mov eax, dword [esi + 0x294]
mov esi, dword [esi + 0x290]
push eax
push ebx
push 0x1208
push esi
call fcn.004040dd
pop ecx
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4cc
ret
Function at 0x40bc87
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
movzx eax, word [esi + 0x328]
cmp word [esp + 0x10], ax
push edi
jb 0x40bcda
movzx edi, word [esp + 0x14]
movzx eax, ax
add eax, dword [esi + 0x304]
cmp edi, eax
jge 0x40bcda
push 0x10
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x40bcbd
inc ebx
movzx ecx, word [esi + 0x328]
push ebx
mov eax, edi
push 0
sub eax, ecx
call fcn.00409f7f
call fcn.0040bce3
xor eax, eax
inc eax
jmp 0x40bcdc
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x40be6c
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 0x690]
cmp dword [eax + 0xc004], 4
mov eax, dword [esi + 0x698]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
jne 0x40be96
push 5
push dword [eax + 0x290]
call edi
push 0
jmp 0x40bea2
push 0
push dword [eax + 0x290]
call edi
push 5
mov eax, dword [esi + 0x694]
push dword [eax + 0x290]
call edi
pop edi
ret
Function at 0x40d44e
Capabilities:
Create process on windows
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2a34
call fcn.0041a760
mov eax, dword [ebp + 8]
sub eax, 0x9c5a
push esi
push edi
mov esi, ecx
je 0x40d61a
sub eax, 0xf
je 0x40d57b
sub eax, 7
je 0x40d50c
dec eax
je 0x40d4c7
sub eax, 0x33
jne 0x40d66f
lea edi, [esi + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
je 0x40d4b0
push edi
call fcn.00407177
neg eax
sbb eax, eax
inc eax
pop ecx
mov dword [esi + 0x2c0], eax
jmp 0x40d66f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
inc dword [ebx + 0x6c4]
mov dword [ebx + 0x1f54], eax
jmp 0x40d66f
xor edi, edi
push 0x208
lea eax, [ebp - 0x22e]
push edi
push eax
mov word [ebp - 0x230], di
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
mov eax, esi
call fcn.00402bf6
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x40d571
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebx + 0x1f54], eax
jmp 0x40d56b
xor edi, edi
push 0x208
lea eax, [ebp - 0x22e]
push edi
push eax
mov word [ebp - 0x230], di
call sub.msvcrt.dll_memset
add esp, 0xc
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebx + 0x208]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x230]
push eax
mov eax, esi
mov dword [ebp - 0x20], 3
call fcn.00402bf6
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov word [ebp - 0x14], 0x4454
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x40d571
inc dword [ebx + 0x6c4]
call fcn.00402d3d
jmp 0x40d66f
xor edi, edi
push 0x7fe
lea eax, [ebp - 0xa2e]
push edi
push eax
mov word [ebp - 0xa30], di
call sub.msvcrt.dll_memset
mov ecx, dword [esi + 0x25c]
lea eax, [esi + 0x38]
mov dword [ebp + 8], eax
add esp, 0xc
mov eax, 0x423628
call fcn.00408419
push eax
mov dword [ebp - 4], eax
call sub.msvcrt.dll_wcslen
push dword [ebp + 8]
mov esi, eax
call sub.msvcrt.dll_wcslen
lea eax, [esi + eax + 1]
cmp eax, 0x3ff
pop ecx
pop ecx
jae 0x40d5e4
push dword [ebp + 8]
lea eax, [ebp - 0xa30]
push dword [ebp - 4]
call fcn.004072f2
pop ecx
pop ecx
jmp 0x40d5eb
mov word [ebp - 0xa30], di
lea edi, [ebx + 0x6b0]
mov eax, edi
call fcn.004084c4
test eax, eax
jle 0x40d609
push 0x41c6a8
or eax, 0xffffffff
call fcn.0040852d
lea eax, [ebp - 0xa30]
push eax
or eax, 0xffffffff
call fcn.0040852d
jmp 0x40d66f
lea eax, [ebx + 0x1f30]
inc dword [eax]
cmp dword [eax], 0x14
jg 0x40d66f
xor edi, edi
push 0x2000
lea eax, [ebp - 0x2a32]
push edi
push eax
mov word [ebp - 0x2a34], di
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2a34]
push eax
mov eax, esi
call fcn.00402bf6
push 5
push edi
push edi
lea eax, [ebp - 0x2a34]
push eax
push 0x41c7e0
push dword [ebx + 0x208]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
leave
ret 4
Function at 0x40da1e
Capabilities:
Delete file
Get common file path
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
mov esi, eax
lea eax, [ebp - 0x410]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x40da50
push edi
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
and word [ebp - 0x208], 0
lea eax, [ebp - 0x208]
push eax
push 0
push 0x41cea4
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
push 1
push 1
push 2
lea eax, [ebp - 0x208]
push eax
mov eax, esi
call fcn.0040be4f
push eax
call fcn.0040d3ed
test eax, eax
je 0x40dad5
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40dab0
lea eax, [ebp - 0x208]
push eax
call fcn.00406f0c
pop ecx
jmp 0x40dab6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x40dac8
push dword [esi + 0x208]
mov ecx, eax
call fcn.00406d35
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
pop edi
pop esi
leave
ret
Function at 0x40e1df
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push 1
push edi
call fcn.0040ed64
and word [ebp - 0x250], 0
push 0x208
lea eax, [ebp - 0x24e]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x250]
add esp, 0xc
push eax
call fcn.004071a6
pop ecx
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call sub.msvcrt.dll_memset
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x250]
mov dword [ebp - 0x2c], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x30], str.RunAs
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40e267
push dword [edi + 0x208]
call dword [sym.imp.USER32.dll_DestroyWindow]
leave
ret

Function at 0x40e28f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x690]
cmp dword [eax + 0xc004], 4
mov eax, esi
jne 0x40e2be
call fcn.0040be4f
lea ecx, [ebp - 4]
push ecx
call fcn.0040a25d
test eax, eax
je 0x40e2e5
mov eax, dword [ebp - 4]
add eax, 0xc
jmp 0x40e2e7
call fcn.0040be4f
lea ecx, [ebp - 4]
push ecx
call fcn.0040a25d
test eax, eax
je 0x40e2e5
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x25c]
mov eax, 0x423628
call fcn.00408419
jmp 0x40e2e7
xor eax, eax
test eax, eax
je 0x40e303
push 5
push 0
push 0
push eax
push 0x41c7e0
push dword [esi + 0x208]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
leave
ret

Function at 0x40e35e
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc84
push ebx
push esi
push edi
call fcn.0040be4f
mov ebx, eax
lea eax, [ebp - 4]
push eax
mov eax, ebx
call fcn.0040a25d
test eax, eax
je 0x40e46e
mov edi, 0x208
xor esi, esi
push edi
lea eax, [ebp - 0x47e]
push esi
push eax
mov word [ebp - 0x480], si
call sub.msvcrt.dll_memset
push edi
lea eax, [ebp - 0x26e]
push esi
push eax
mov word [ebp - 0x270], si
call sub.msvcrt.dll_memset
push 0x7fe
lea eax, [ebp - 0xc7e]
push esi
push eax
mov word [ebp - 0xc80], si
call sub.msvcrt.dll_memset
add esp, 0x24
lea eax, [ebp - 0x480]
push eax
mov eax, dword [ebp - 4]
call fcn.00402bf6
push 0x104
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x270]
push eax
push eax
push str.__s_rundll32.exe___s_shell32.dll_OpenAs_RunDLL__s
lea eax, [ebp - 0xc80]
push 0x3ff
push eax
call sub.msvcrt.dll__snwprintf
push 0x40
lea eax, [ebp - 0x5c]
push esi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
add esp, 0x24
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xc80]
push eax
push esi
mov dword [ebp - 0x60], 0x44
mov word [ebp - 0x30], 5
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x40e46e
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, ebx
call fcn.00409a31
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e8d4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa74
push ebx
push esi
push edi
call fcn.0040be4f
mov ebx, eax
lea eax, [ebp - 4]
push eax
mov eax, ebx
call fcn.0040a25d
test eax, eax
je 0x40e9a7
xor esi, esi
push 0x208
lea eax, [ebp - 0x26e]
push esi
push eax
mov word [ebp - 0x270], si
call sub.msvcrt.dll_memset
push 0x7fe
lea eax, [ebp - 0xa6e]
push esi
push eax
mov word [ebp - 0xa70], si
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x270]
push eax
mov eax, dword [ebp - 4]
call fcn.00402bf6
lea eax, [ebp - 0x270]
push eax
push str.Explorer.exe__select___s_
lea eax, [ebp - 0xa70]
push 0x3ff
push eax
call sub.msvcrt.dll__snwprintf
push 0x40
lea eax, [ebp - 0x5c]
push esi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
add esp, 0x1c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xa70]
push eax
push esi
mov dword [ebp - 0x60], 0x44
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x40e9a7
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebx
call fcn.00409a31
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40e9b3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.0041a760
mov eax, esi
call fcn.0040be4f
lea ecx, [ebp - 4]
push ecx
call fcn.0040a25d
test eax, eax
je 0x40ea1f
and word [ebp - 0x2008], 0
push 0x2000
lea eax, [ebp - 0x2006]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2008]
push eax
mov eax, dword [ebp - 4]
call fcn.00402bf6
push 5
push 0
push 0
lea eax, [ebp - 0x2008]
push eax
push 0x41c7e0
push dword [esi + 0x208]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
leave
ret
Function at 0x40f201
Capabilities:
Hide graphical window

Disassembly:
cmp dword [edi + 0x1f68], 0
push ebx
push esi
je 0x40f273
test byte [esp + 0xc], 1
je 0x40f24e
mov esi, 0xe0d8
push esi
lea ebx, [edi + 0x690]
push dword [ebx]
lea eax, [edi + 0x1fd0]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebx]
add eax, esi
add esp, 0xc
lea esi, [edi + 0x1f60]
mov dword [edi + 0x100a8], eax
call fcn.00405b0e
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
push 5
push dword [edi + 0x1f68]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0x1f68]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [edi + 0x1f60]
jmp 0x40f2fb
mov eax, dword [edi + 0x208]
mov esi, 0xe0d8
push esi
lea ebx, [edi + 0x690]
push dword [ebx]
mov dword [edi + 0x100b0], eax
lea eax, [edi + 0x1fd0]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebx]
add esp, 0xc
push 0
push 0x6d
add eax, esi
lea ebx, [edi + 0x1f60]
push ebx
mov dword [edi + 0x100a8], eax
call fcn.00401772
call fcn.0040660d
push 5
push dword [edi + 0x1f68]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x694]
mov ecx, dword [edi + 0x1f68]
mov dword [eax + GlobalAlloc], ecx
mov eax, dword [edi + 0x698]
mov ecx, dword [edi + 0x1f68]
mov dword [eax + GlobalAlloc], ecx
push dword [edi + 0x1f68]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, ebx
call fcn.00405362
pop esi
pop ebx
ret 4

Function at 0x40fbfa
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x258
push ebx
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x40fcda
mov eax, dword [edi + 0x690]
cmp dword [eax + 0xc004], 4
je 0x40fcda
mov eax, edi
call fcn.0040be4f
lea ecx, [esp + 0x14]
push ecx
call fcn.0040a25d
test eax, eax
je 0x40fcda
xor eax, eax
push 0x208
push eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x5a]
push eax
mov dword [esp + 0x24], 0x41d968
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x18]
call fcn.00402bf6
lea eax, [esp + 0x30]
call fcn.004082c5
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x34]
call fcn.0040830d
lea eax, [esp + 0x30]
push eax
lea esi, [esp + 0x1c]
call fcn.00416152
push dword [esp + 0x10]
mov eax, esi
push dword [esp + 0x10]
push dword [edi + 0x208]
call fcn.0041603f
lea esi, [esp + 0x30]
call fcn.004082e7
lea ecx, [esp + 0x18]
call fcn.00415ee6
jmp 0x40fd1a
push 0
push dword [edi + 0x270]
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ebx, eax
push 0
mov eax, edi
call fcn.0040be4f
call fcn.0040a0e0
mov esi, edi
call fcn.0040beb2
push 0
push dword [edi + 0x208]
push 0
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 2
push ebx
call dword [sym.imp.USER32.dll_TrackPopupMenu]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411f8e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20000
call fcn.0041a760
cmp dword [ebp + 8], 0
je 0x412006
test esi, esi
je 0x411ff4
push 0x22
push esi
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x411ff4
and word [ebp - 0x20000], 0
push 0x1fffe
lea eax, [ebp - 0x1fffe]
push 0
push eax
call sub.msvcrt.dll_memset
push esi
push str.__s_
lea eax, [ebp - 0x20000]
push 0xfffe
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x1c
push dword [ebp + 0x1c]
lea eax, [ebp - 0x20000]
push eax
jmp 0x411ff8
push dword [ebp + 0x1c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
leave
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
leave
ret

Function at 0x41201e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.0041a760
push esi
push edi
xor eax, eax
cmp dword [ebp + 8], eax
push 0x4000
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
mov edi, ecx
push eax
je 0x41207d
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x4004]
push eax
push dword [edi]
push dword [ebp + 0x14]
call fcn.00407a00
add esp, 0x18
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
mov esi, eax
jmp 0x4120be
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push 0x2000
push eax
push 0x41b5e0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
push dword [ebp + 0x14]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
push edi
lea edi, [ebp - 0x4004]
neg esi
call fcn.00407a89
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x4120c4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x4120e2
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00411f41
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov dword [esi], eax
pop ebp
ret

Function at 0x412136
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41216f
mov ecx, dword [ebp - 4]
cmp ecx, 2
jb 0x41216b
shr ecx, 1
and word [esi + ecx*2], ax
leave
ret
and word [esi], 0
leave
ret

Function at 0x4121bc
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
call sub.msvcrt.dll_wcslen
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret
Function at 0x4127cd
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x41281b
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push dword [ebp + 8]
call eax
test eax, eax
je 0x41281b
test esi, esi
je 0x412816
push 8
lea eax, [ebp - 0x18]
push eax
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
inc eax
leave
ret
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceW]
test eax, eax
je 0x412855
test esi, esi
je 0x412816
mov eax, dword [ebp - 4]
mul dword [ebp - 8]
push 0
push dword [ebp - 0xc]
push edx
push eax
call fcn.0041a720
mov dword [esi], eax
mov dword [esi + 4], edx
jmp 0x412816
xor eax, eax
leave
ret

Function at 0x412859
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
push dword [ebp + 8]
xor edi, edi
lea esi, [ebp - 8]
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call fcn.004127cd
test eax, eax
pop ecx
je 0x412948
push 0x1fe
lea eax, [ebp - 0x206]
push edi
push eax
mov word [ebp - 0x208], di
call sub.msvcrt.dll_memset
add esp, 0xc
push 0xff
lea eax, [ebp - 0x208]
push eax
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
test eax, eax
je 0x412948
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shrd esi, eax, 0x14
shr eax, 0x14
lea eax, [ebp - 0x208]
push 0x41d70c
push eax
call sub.msvcrt.dll__wcsicmp
test eax, eax
pop ecx
pop ecx
jne 0x4128eb
mov eax, esi
call fcn.0041271d
jmp 0x41294a
lea eax, [ebp - 0x208]
push str.FAT32
push eax
call sub.msvcrt.dll__wcsicmp
test eax, eax
pop ecx
pop ecx
jne 0x41290b
mov ecx, esi
call fcn.0041277e
jmp 0x41294a
lea eax, [ebp - 0x208]
push str.NTFS
push eax
call sub.msvcrt.dll__wcsicmp
test eax, eax
pop ecx
pop ecx
jne 0x412948
mov eax, 0x200
cmp esi, eax
jb 0x41294a
mov eax, 0x400
cmp esi, eax
jb 0x41294a
cmp esi, 0x800
sbb eax, eax
and eax, 0xfffff800
add eax, 0x1000
jmp 0x41294a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x415804
Capabilities:
Get disk size
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x247c
call fcn.0041a760
push ebx
push esi
mov ebx, ecx
xor esi, esi
cmp dword [ebx + 0x21230], esi
push edi
mov dword [ebx + 0x10098], esi
je 0x41582e
call fcn.00412640
lea eax, [ebx + 0x15168]
cmp word [eax], si
mov edi, 0x41b5e4
jne 0x415847
push edi
push eax
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
lea eax, [ebx + 0x13168]
cmp word [eax], si
jne 0x41585b
push edi
push eax
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
mov edi, ebx
call fcn.0041426e
mov eax, 0x10000
push 0x208
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x78], eax
lea eax, [esp + 0x27e]
push esi
push eax
mov dword [ebx + 0x28], 0x2000
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
mov word [esp + 0x284], si
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
mov dword [esp + 0x10], esi
call fcn.004140fc
push 0x1ffe
lea eax, [esp + 0x48e]
push esi
push eax
mov word [esp + 0x494], si
call sub.msvcrt.dll_memset
add esp, 0xc
lea edi, [ebx + 0x17168]
push 0x25
push edi
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x4158ed
push 0xfff
lea eax, [esp + 0x48c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
jmp 0x4159bd
push edi
mov eax, 0xfff
lea edi, [esp + 0x48c]
call fcn.00406ff0
pop ecx
jmp 0x4159bd
push 0x208
lea eax, [esp + 0x6e]
push esi
push eax
mov word [esp + 0x74], si
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x278]
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.0041294e
pop ecx
pop ecx
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceW]
test eax, eax
je 0x41595f
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0x14]
jmp 0x415961
xor eax, eax
mov cx, word [esp + 0x68]
cmp cx, 0x41
mov dword [ebx + 0x10098], eax
je 0x41599d
cmp cx, 0x61
je 0x41599d
cmp cx, 0x42
je 0x41599d
cmp cx, 0x62
je 0x41599d
cmp eax, esi
jne 0x41599d
lea eax, [esp + 0x68]
push eax
call fcn.00412859
cmp eax, esi
pop ecx
je 0x41599d
mov dword [ebx + 0x10098], eax
lea eax, [esp + 0x20]
call fcn.00401f67
lea eax, [esp + 0x20]
push eax
push 1
push esi
lea eax, [esp + 0x284]
push eax
mov ecx, ebx
call fcn.0041485b
push 0x41c624
lea eax, [esp + 0x48c]
push eax
lea eax, [esp + 0x280]
push 0x104
push eax
lea edi, [esp + 0x1c]
call fcn.00407bda
add esp, 0x10
test eax, eax
jne 0x415905
mov eax, dword [ebx + 0x1f16c]
cmp eax, 2
je 0x415a00
cmp eax, 3
je 0x415a00
cmp eax, 5
jne 0x415a0c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
call fcn.004152aa
mov edi, ebx
call fcn.0041426e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret