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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0x10]
mov esi, ecx
push 0
push dword [ebp + 0xc]
call fcn.10013370
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x10010bee
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0x18]
jb 0x10010bdf
mov eax, dword [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.10016560
add esp, 0xc
mov eax, esi
pop esi
leave
ret 0x14

Function at 0x10010bf5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0x10]
mov esi, ecx
push 0
push dword [ebp + 0xc]
call fcn.10013370
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
pop esi
leave
ret 0xc
Function at 0x1001167d
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10032ba0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x42]
push eax
call fcn.10013370
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
push 0x20
lea ecx, [ebp - 0x44]
push ecx
movzx eax, ax
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x100116c9
call dword [sym.imp.KERNEL32.dll_GetACP]
jmp 0x100116d3
lea eax, [ebp - 0x44]
push eax
call fcn.1001755f
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100135dc
leave
ret

Function at 0x10012dac
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10034378], 0
push esi
jne 0x10012d1f
call fcn.10012c45
test eax, eax
je 0x10012d62
mov eax, dword [0x10034378]
cmp eax, 1
jne 0x10012d40
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10012d62
pop esi
ret
push eax
call dword [0x10034380]
test eax, eax
jne 0x10012daa
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10012d66
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x10034378]
call dword [0x10034380]
mov edi, eax
test edi, edi
je 0x10012d8b
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x10012da7
mov edi, esi
add esi, 0xff0
push edi
push dword [0x10034378]
call dword [0x1003437c]
add edi, 0x10
cmp edi, esi
jb 0x10012d93
mov eax, edi
pop edi
pop esi
ret
jmp 0x10012d0c

Function at 0x100135dc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10032ba0]
jne 0x100135e6
repz ret
jmp fcn.10018f2e
Function at 0x10021472
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10019d5f
and dword [ebp - 4], 0
cmp dword [0x10034e48], 0
mov ebx, eax
jne 0x10021523
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100215d4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100215d4
push eax
call fcn.10019ced
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10034e48], eax
call esi
push eax
call fcn.10019ced
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10034e4c], eax
call esi
push eax
call fcn.10019ced
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10034e50], eax
call esi
push eax
call fcn.10019ced
pop ecx
mov dword [0x10034e58], eax
test eax, eax
je 0x10021523
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10019ced
pop ecx
mov dword [0x10034e54], eax
mov eax, dword [0x10034e54]
cmp eax, ebx
je 0x1002157b
cmp dword [0x10034e58], ebx
je 0x1002157b
push eax
call fcn.10019d68
push dword [0x10034e58]
mov esi, eax
call fcn.10019d68
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1002157b
test edi, edi
je 0x1002157b
call esi
test eax, eax
je 0x10021572
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10021572
test byte [ebp - 0xc], 1
jne 0x1002157b
or dword [ebp + 0x10], 0x200000
jmp 0x100215b4
mov eax, dword [0x10034e4c]
cmp eax, ebx
je 0x100215b4
push eax
call fcn.10019d68
pop ecx
test eax, eax
je 0x100215b4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100215b4
mov eax, dword [0x10034e50]
cmp eax, ebx
je 0x100215b4
push eax
call fcn.10019d68
pop ecx
test eax, eax
je 0x100215b4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10034e48]
call fcn.10019d68
pop ecx
test eax, eax
je 0x100215d4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100215d6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100277f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x10027817
xor al, al
jmp 0x1002783d
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 4], 0
sete al
mov esp, ebp
pop ebp
ret
Function at 0x100278c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1002791c
mov ecx, dword [ebp + 0x14]
call fcn.10001140
push eax
mov ecx, dword [ebp + 0x14]
call fcn.10001120
push eax
push 1
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x10027920
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx ecx, word [ebp - 0x24]
cmp ecx, 9
je 0x10027942
movzx edx, word [ebp - 0x24]
cmp edx, 6
jne 0x10027946
mov al, 1
jmp 0x10027948
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x10027a30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10028cb5
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10032ba0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x2c]
call fcn.10002160
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x10027ad4
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10001160
lea edx, [ebp + 0x18]
push edx
lea ecx, [ebp - 0x2c]
call fcn.10001120
push eax
lea eax, [ebp - 0x38]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x2c]
call fcn.10001120
push eax
mov ecx, dword [ebp + 8]
call fcn.10002a70
mov ecx, dword [ebp - 0x3c]
or ecx, 1
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.100021f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100135dc
mov esp, ebp
pop ebp
ret
Function at 0x10027b20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10028cfa
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x10032ba0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x2c]
call fcn.10002160
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x10027c16
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.10002a70
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x88], ecx
mov byte [ebp - 4], 1
push 0x1002d1fc
mov edx, dword [ebp - 0x88]
push edx
lea eax, [ebp - 0x64]
push eax
call fcn.10001c60
add esp, 0xc
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x90]
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.10001c60
add esp, 0xc
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x98], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x98]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10001000
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x80]
call fcn.100021f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.100021f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.100021f0
jmp 0x10027c22
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10002120
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10002140
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.100021f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100135dc
mov esp, ebp
pop ebp
ret
Function at 0x401840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40185b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401894
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401890
jmp 0x401880
cmp esi, eax
jae 0x401894
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401880
cmp esi, eax
jb 0x40189b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402120
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x468600]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x47aa6c], 0
je 0x402150
mov ecx, 0x47aa70
call fcn.00442620
mov dword [0x47aa6c], 0
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00429d20
push 0x103
lea ecx, [ebp - 0x20b]
push 0
push ecx
mov byte [ebp - 0x20c], 0
call fcn.00429d20
add esp, 0x18
push 0x104
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.LS_ESGRMA.dat
lea eax, [ebp - 0x108]
push eax
push str._s_s
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.00428091
add esp, 0x14
lea edx, [ebp - 0x20c]
push edx
mov ecx, 0x47aa70
call fcn.00442570
mov dword [0x47aa6c], eax
test eax, eax
jne 0x4021ee
xor ecx, ecx
mov dword [0x47aa68], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427f57
mov esp, ebp
pop ebp
ret
mov ecx, 0x47aa70
call fcn.00442640
mov ecx, dword [ebp - 4]
mov dword [0x47aa68], eax
mov eax, dword [0x47aa6c]
xor ecx, ebp
call fcn.00427f57
mov esp, ebp
pop ebp
ret
Function at 0x402250
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45260b
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x468600]
xor eax, esp
mov dword [esp + 0x2e8], eax
push esi
mov eax, dword [0x468600]
xor eax, esp
push eax
lea eax, [esp + 0x2f8]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
mov esi, ecx
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.00414268
call fcn.00441540
test eax, eax
jne 0x4022cd
push eax
push 0x10
push 0x45ce28
call fcn.00414ba2
jmp 0x402427
lea ecx, [esp + 0x1c4]
push ecx
mov dword [esp + 0x1c8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40231e
cmp dword [esp + 0x1d4], 2
jne 0x40231e
cmp dword [esp + 0x1c8], 6
jb 0x40231e
push 1
call fcn.00441930
add esp, 4
test eax, eax
jne 0x40231e
push eax
push 0x10
push 0x45ce50
call fcn.00414ba2
jmp 0x402427
mov byte [esp + 0x2e0], 8
mov byte [esp + 0x2e1], 0xf0
mov byte [esp + 0x2e2], 0x1f
mov byte [esp + 0x2e3], 0x9a
mov edx, dword [esp + 0x2e0]
mov dword [0x477738], edx
mov byte [esp + 0x2e4], 0x22
mov byte [esp + 0x2e5], 4
mov byte [esp + 0x2e6], 0x40
mov byte [esp + 0x2e7], 0xc6
mov eax, dword [esp + 0x2e4]
mov byte [esp + 0x2e8], 0x9b
mov byte [esp + 0x2e9], 0x1c
mov byte [esp + 0x2ea], 0x15
mov byte [esp + 0x2eb], 0x3c
mov ecx, dword [esp + 0x2e8]
mov byte [esp + 0x2ec], 0x1e
mov byte [esp + 0x2ed], 0xeb
mov byte [esp + 0x2ee], 0xb4
mov byte [esp + 0x2ef], 0xcb
mov edx, dword [esp + 0x2ec]
mov dword [str._rt_aY], eax
mov dword [0x477740], ecx
mov dword [0x477744], edx
call fcn.00402120
push 0
test eax, eax
jne 0x4023ea
push 0x10
push 0x45ce88
call fcn.00414ba2
jmp 0x402427
call fcn.00415691
add esp, 4
lea eax, [esp + 0x14]
push eax
call fcn.00402650
lea ecx, [esp + 0x14]
mov dword [esp + 0x300], 0
mov dword [esi + 0x20], ecx
call fcn.0040bc3a
lea ecx, [esp + 0x14]
mov dword [esp + 0x300], 0xffffffff
call fcn.00402890
xor eax, eax
mov ecx, dword [esp + 0x2f8]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.00427f57
mov esp, ebp
pop ebp
ret
Function at 0x404400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452038
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x468600]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0040bee6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404442
push 0x80004005
call fcn.00401ff0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0xc]
push ecx
lea edi, [ebp - 0x10]
call fcn.00405f90
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
push 0
lea edx, [ebp - 0x14]
push edx
push eax
mov eax, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044a2
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405930
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x468600]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push str.setting.ini
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0x45d354
push str.Cycle
push 0x45d808
mov esi, ecx
call edi
lea ecx, [ebp - 0x204]
push ecx
push 0x3f5
mov ecx, esi
call fcn.0040d26a
mov ecx, eax
call fcn.0040d328
push str.setting.ini
push 0x100
lea edx, [ebp - 0x204]
push edx
push 0x45d844
push str.Capacity
push 0x45d808
call edi
lea eax, [ebp - 0x204]
push eax
push 0x402
mov ecx, esi
call fcn.0040d26a
mov ecx, eax
call fcn.0040d328
push str.setting.ini
push 0x100
lea ecx, [ebp - 0x204]
push ecx
push 0x45d848
push 0x45d82c
push 0x45d808
call edi
push 0x3f9
mov ecx, esi
call fcn.0040d26a
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [ebp - 0x204]
push edx
push 0
mov esi, eax
mov eax, dword [esi + 0x20]
push 0x14c
push eax
call edi
cmp eax, 0xffffffff
je 0x405a22
mov ecx, dword [esi + 0x20]
push 0
push eax
push 0x14e
push ecx
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00427f57
mov esp, ebp
pop ebp
ret

Function at 0x408190
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor eax, eax
push eax
push 0x80
push 3
push eax
push 3
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push 0xc0000000
push eax
mov dword [ebp - 0x10], 0
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4081d3
pop edi
or eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4081fc
cmp dword [ebp - 4], 0
je 0x4081fc
mov edi, dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409900
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [esi + 0x210]
fldz
mov ecx, eax
fst qword [esi + 0x230]
and cl, 1
fstp qword [esi + 0x238]
movzx edx, cl
neg edx
sbb edx, edx
and al, 2
push ebx
movzx eax, al
push edi
and edx, 0x40a4e0
neg eax
sbb eax, eax
lea ecx, [esi + 0x220]
push ecx
and eax, 0x40a4f0
lea edi, [esi + 0x21c]
push edi
mov dword [ebp - 8], eax
lea ebx, [esi + 0x218]
push ebx
lea eax, [esi + 0x214]
mov dword [ebp - 0xc], edx
push eax
lea edx, [esi + 8]
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x40997e
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x214]
mul dword [ebx]
mov ecx, dword [edi]
push 0
push ecx
push edx
push eax
call fcn.0042c720
mov ecx, dword [esi + 0x224]
shrd eax, edx, 0x14
shr edx, 0x14
cmp ecx, 0xffffffff
je 0x4099a8
cmp ecx, eax
jbe 0x4099ae
mov dword [esi + 0x224], eax
xor edi, edi
cmp dword [ebp - 4], 0
jne 0x4099d6
mov eax, esi
call fcn.00409830
test eax, eax
jne 0x4099d6
mov eax, dword [ebp + edi*4 - 0xc]
test eax, eax
je 0x4099d0
mov ecx, esi
call eax
mov dword [ebp - 4], eax
inc edi
cmp edi, 2
jb 0x4099b0
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b140
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x468600]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push str.setting.ini
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0x45d354
push str.Cycle
push 0x45d808
mov esi, ecx
call edi
lea ecx, [ebp - 0x204]
push ecx
push 0x3f5
mov ecx, esi
call fcn.0040d26a
mov ecx, eax
call fcn.0040d328
push str.setting.ini
push 0x100
lea edx, [ebp - 0x204]
push edx
push 0x45d844
push str.Capacity
push 0x45d808
call edi
lea eax, [ebp - 0x204]
push eax
push 0x3fa
mov ecx, esi
call fcn.0040d26a
mov ecx, eax
call fcn.0040d328
push str.setting.ini
push 0x100
lea ecx, [ebp - 0x204]
push ecx
push 0x45d848
push 0x45d82c
push 0x45d808
call edi
push 0x3f9
mov ecx, esi
call fcn.0040d26a
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [ebp - 0x204]
push edx
push 0
mov esi, eax
mov eax, dword [esi + 0x20]
push 0x14c
push eax
call edi
cmp eax, 0xffffffff
je 0x40b232
mov ecx, dword [esi + 0x20]
push 0
push eax
push 0x14e
push ecx
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00427f57
mov esp, ebp
pop ebp
ret

Function at 0x40be72
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x40be96
cmp dword [edi + 0x54], 0
jne 0x40be96
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040cde9
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040be33
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40d9d1
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x451289
call fcn.0042a180
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40d9f6
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40da3c
lea ecx, [ebp - 0x10]
call fcn.00402080
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040c044
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402040
mov eax, esi
call fcn.0042a258
ret 8
Function at 0x413530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x413577
call fcn.0040cde9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x413577
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x413593
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004130a8
mov esi, eax
test edi, edi
je 0x413591
test ebx, ebx
je 0x413591
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4151ef
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x415237
call fcn.0040cde9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x415237
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x41527a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x415263
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x415263
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x415277
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc