joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cac5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x41cafb
push 0xfffffffffffffffd
pop eax
jmp 0x41cbc2
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 4]
push 2
push ecx
push ebx
push eax
mov dword [ebp - 4], ebx
call edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp + 0xc], ecx
jbe 0x41cb2c
mov dword [ebp + 0xc], ecx
sub ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
cmp ecx, eax
jb 0x41cb3c
cmp eax, ebx
ja 0x41cb3e
mov dword [esi], ecx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esi]
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [esi], ebx
mov dword [esi + 8], eax
jne 0x41cb78
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41cbc2
cmp dword [esi + 4], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x41cb99
push dword [ebp + 8]
call edi
mov ecx, 0x47e924
call fcn.0041cd1e
push eax
call fcn.0041d881
pop ecx
lea eax, [ebp - 8]
push ebx
push eax
mov dword [ebp - 8], ebx
push dword [esi]
push dword [esi + 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 8]
call edi
mov ecx, dword [ebp - 8]
xor eax, eax
cmp ecx, dword [esi]
sete al
dec eax
and al, 0xfe
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41ce0e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41ce3c
push 0xfffffffffffffffd
pop eax
jmp 0x41ce65
lea eax, [ebp + 8]
push edi
push eax
mov dword [ebp + 8], edi
push dword [esi]
push dword [esi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [esi]
sete al
dec eax
and al, 0xfd
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x41d95e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
push 0x42e0c8
call fcn.0041bf12
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, 0xfffffc00
mov ecx, edx
and eax, esi
test ecx, ecx
ja 0x41d9b1
jb 0x41d990
cmp eax, 0x100000
jae 0x41d9b1
mov eax, dword [ebp + 8]
push 0xa
pop ecx
call fcn.00425060
push eax
push str._d_KB
push dword [ebp + 0x10]
call fcn.0041c467
add esp, 0xc
jmp 0x41dae2
mov eax, dword [ebp + 8]
push 0xa
pop ecx
call fcn.00425060
and byte [ebp - 0xc], 0
mov ebx, eax
xor eax, eax
lea edi, [ebp - 0xb]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
push 0xa
push eax
push 0xe
push 0x400
mov dword [ebp + 0xc], edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x41d9f3
lea eax, [ebp - 0xc]
push 0x42c0c8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [ebp + 0xc]
mov eax, ebx
mov ecx, edi
and eax, esi
test ecx, ecx
ja 0x41da42
jb 0x41da09
cmp eax, 0x100000
jae 0x41da42
push 0xa
mov eax, ebx
pop ecx
mov edx, edi
call fcn.00425060
mov esi, eax
xor ecx, ecx
shl eax, 0xa
sub ebx, eax
push ecx
sbb edi, ecx
push 0x64
push edi
push ebx
call fcn.00425250
cmp eax, 0xa
jb 0x41da32
push 9
pop eax
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push str._d_s_d_MB
jmp 0x41dad7
push 0xa
mov eax, ebx
pop ecx
mov edx, edi
call fcn.00425060
mov edi, eax
mov ebx, edx
and eax, esi
test ebx, ebx
ja 0x41da97
jb 0x41da61
cmp eax, 0x100000
jae 0x41da97
push 0xa
mov eax, edi
pop ecx
mov edx, ebx
call fcn.00425060
mov esi, eax
xor ecx, ecx
shl eax, 0xa
sub edi, eax
push ecx
sbb ebx, ecx
push 0x64
push ebx
push edi
call fcn.00425250
cmp eax, 0xa
jb 0x41da8a
push 9
pop eax
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push str._d_s_d_GB
jmp 0x41dad7
push 0xa
mov eax, edi
pop ecx
mov edx, ebx
call fcn.00425060
push 0xa
mov esi, eax
pop ecx
mov edi, edx
call fcn.00425060
mov ebx, eax
xor ecx, ecx
shl eax, 0xa
sub esi, eax
push ecx
sbb edi, ecx
push 0x64
push edi
push esi
call fcn.00425250
cmp eax, 0xa
jb 0x41dacc
push 9
pop eax
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str._d_s_d_TB
push dword [ebp + 0x10]
call fcn.0041c467
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41dae7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
xor esi, esi
cmp eax, esi
push edi
jne 0x41dafe
or eax, 0xffffffff
jmp 0x41db9f
mov dword [eax], esi
lea eax, [ebp + 8]
push eax
push 1
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41db9c
lea eax, [ebp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push esi
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp + 0xc], esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x41db98
mov eax, dword [ebp + 0xc]
inc eax
push eax
call fcn.00424dd9
mov ebx, eax
pop ecx
cmp ebx, esi
jne 0x41db59
mov ecx, 0x47e924
call fcn.0041cd1e
push eax
call fcn.0041d881
pop ecx
mov eax, dword [ebp + 0xc]
inc eax
push eax
push esi
push ebx
call fcn.00424500
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x41db8d
mov eax, dword [ebp + 0x14]
push dword [ebp + 8]
mov dword [eax], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
jmp 0x41db9e
push ebx
call fcn.00424dce
pop ecx
push 0xfffffffffffffffe
jmp 0x41db9e
push 0xfffffffffffffffd
jmp 0x41db9e
push 0xfffffffffffffffc
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41dbff
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, 0x104
push edi
push esi
push 0
push dword [ebp + 8]
call fcn.00424500
push esi
call fcn.00424dd9
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x41dc38
mov ecx, 0x47e924
call fcn.0041cd1e
push eax
call fcn.0041d881
pop ecx
push esi
push 0
push edi
call fcn.00424500
add esp, 0xc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
jne 0x41dc60
push 0x42d590
push edi
call esi
jmp 0x41dc6f
add eax, edi
cmp byte [eax - 1], 0x5c
je 0x41dc6f
mov byte [eax], 0x5c
and byte [eax + 1], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea ebx, [eax + edi]
mov eax, dword [ebp - 4]
and byte [ebx], 0
inc dword [ebp - 4]
lea ecx, [ebp - 0x14]
push 0xa
push ecx
push eax
call fcn.004278bf
add esp, 0xc
push 0x42d58c
push edi
call esi
lea eax, [ebp - 0x14]
push eax
push edi
call esi
push dword [ebp + 0xc]
push edi
call esi
push edi
call fcn.0040df52
test al, al
pop ecx
jne 0x41dc83
push edi
push dword [ebp + 8]
call esi
push edi
call fcn.00424dce
mov eax, dword [ebp + 8]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41e6a9
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x60], ebx
jne 0x41e809
push dword [esp + 0xc]
lea ecx, [esi + 0x64]
call fcn.0041bf12
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0x60], eax
je 0x41e80d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MP3Close
push eax
call edi
push str.MP3DeInit
mov dword [esi], eax
push dword [esi + 0x60]
call edi
push str.MP3GetCurrentPos
mov dword [esi + 4], eax
push dword [esi + 0x60]
call edi
push str.MP3GetLength
mov dword [esi + 8], eax
push dword [esi + 0x60]
call edi
push str.MP3GetMPEG_Args
mov dword [esi + 0xc], eax
push dword [esi + 0x60]
call edi
push str.MP3GetPlayer
mov dword [esi + 0x10], eax
push dword [esi + 0x60]
call edi
push str.MP3GetPlayerMode
mov dword [esi + 0x14], eax
push dword [esi + 0x60]
call edi
push str.MP3Init
mov dword [esi + 0x18], eax
push dword [esi + 0x60]
call edi
push str.MP3Open
mov dword [esi + 0x1c], eax
push dword [esi + 0x60]
call edi
push str.MP3Pause
mov dword [esi + 0x20], eax
push dword [esi + 0x60]
call edi
push str.MP3Play
mov dword [esi + 0x24], eax
push dword [esi + 0x60]
call edi
push str.MP3SetDevice
mov dword [esi + 0x28], eax
push dword [esi + 0x60]
call edi
push str.MP3SetExternalValues
mov dword [esi + 0x2c], eax
push dword [esi + 0x60]
call edi
push str.MP3SetPriority
mov dword [esi + 0x30], eax
push dword [esi + 0x60]
call edi
push str.MP3Stop
mov dword [esi + 0x34], eax
push dword [esi + 0x60]
call edi
push str.MP3Resume
mov dword [esi + 0x38], eax
push dword [esi + 0x60]
call edi
push str.MP3Suspend
mov dword [esi + 0x40], eax
push dword [esi + 0x60]
call edi
cmp dword [esi + 0x2c], ebx
mov dword [esi + 0x3c], eax
pop edi
je 0x41e80d
cmp dword [esi + 0x20], ebx
je 0x41e80d
cmp dword [esi + 0x34], ebx
je 0x41e80d
cmp dword [esi + 0x28], ebx
je 0x41e80d
cmp dword [esi], ebx
je 0x41e80d
cmp dword [esi + 0x10], ebx
je 0x41e80d
cmp dword [esi + 0x14], ebx
je 0x41e80d
cmp dword [esi + 8], ebx
je 0x41e80d
cmp dword [esi + 0xc], ebx
je 0x41e80d
cmp dword [esi + 0x18], ebx
je 0x41e80d
cmp dword [esi + 4], ebx
je 0x41e80d
cmp dword [esi + 0x1c], ebx
je 0x41e80d
cmp dword [esi + 0x30], ebx
je 0x41e80d
cmp dword [esi + 0x24], ebx
je 0x41e80d
cmp eax, ebx
je 0x41e80d
cmp dword [esi + 0x40], ebx
je 0x41e80d
mov al, 1
jmp 0x41e80f
xor al, al
pop esi
pop ebx
ret 4
Function at 0x41f355
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
push str.RAM:_t
lea ecx, [ebp - 0xc]
call fcn.0041be35
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ebx, dword [ebp - 0x24]
shr ebx, 0x14
test bl, 1
je 0x41f38a
inc ebx
mov esi, str._d_MB_t
push ebx
lea eax, [ebp - 0xc]
push esi
push eax
mov dword [0x47e6f0], ebx
call fcn.0041c467
mov eax, dword [0x47e13c]
add esp, 0xc
test eax, eax
jne 0x41f3bc
push eax
push 0x42d6e4
lea ecx, [ebp - 0xc]
call fcn.0041c047
jmp 0x41f3d2
push eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0041c467
add esp, 0xc
cmp ebx, dword [0x47e13c]
jb 0x41f3d9
push 0x47e8f4
jmp 0x41f3e4
inc dword [0x47e2c0]
push 0x47e8dc
lea ecx, [ebp - 0xc]
call fcn.0041c0c5
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
call fcn.0041eec5
lea ecx, [ebp - 0xc]
mov dword [0x47e2c4], ebx
call fcn.0041befb
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41f9cc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push esi
push edi
je 0x41fa62
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x41fa62
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp + 0xc], eax
jbe 0x41fa5b
push eax
call fcn.00424dd9
mov esi, eax
pop ecx
test esi, esi
jne 0x41fa0a
mov eax, 0x8007000e
jmp 0x41fa67
push esi
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41fa54
and dword [ebp + 8], 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push 0x42bc5c
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41fa54
mov eax, dword [ebp + 8]
test eax, eax
je 0x41fa54
mov ecx, dword [eax + 8]
push esi
mov dword [edi + 4], ecx
mov eax, dword [eax + 0xc]
mov dword [edi], eax
call fcn.00424dce
pop ecx
xor eax, eax
jmp 0x41fa67
push esi
call fcn.00424dce
pop ecx
mov eax, 0x80004005
jmp 0x41fa67
mov eax, 0x80070057
pop edi
pop esi
leave
ret
Function at 0x41fb81
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push 0x47dfbc
lea ecx, [ebp - 0x10]
call fcn.0041be99
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
dec eax
push eax
call fcn.0041bfe3
cmp al, 0x5c
je 0x41fbb2
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.0041bff8
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push str.Microsoft.NETFramework_
lea ecx, [ebp - 0x10]
call fcn.0041c047
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041be99
push ebx
push 0x42bf90
lea ecx, [ebp - 0x28]
call fcn.0041c047
push 0x140
lea eax, [ebp - 0x168]
push ebx
push eax
call fcn.00424500
add esp, 0xc
lea eax, [ebp - 0x168]
lea ecx, [ebp - 0x28]
push eax
call fcn.0041cd1e
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41fcef
test byte [ebp - 0x168], 0x10
je 0x41fccb
cmp byte [ebp - 0x13c], 0x2e
je 0x41fccb
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push eax
call fcn.0041be99
lea eax, [ebp - 0x13c]
push ebx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041c047
push ebx
push str._system.dll
lea ecx, [ebp - 0x1c]
call fcn.0041c047
lea ecx, [ebp - 0x1c]
call fcn.0041cd1e
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41fcc3
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 4
jb 0x41fcc3
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x26b]
mov byte [ebp - 0x26c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x139]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.00425080
cmp byte [ebp - 0x26c], 0x31
pop ecx
pop ecx
je 0x41fce0
cmp byte [ebp - 0x26c], 0x30
jne 0x41fcc3
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x1c]
call fcn.0041befb
lea eax, [ebp - 0x168]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jmp 0x41fc13
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
call fcn.0041befb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x28]
call fcn.0041befb
lea ecx, [ebp - 0x10]
call fcn.0041befb
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41fd0e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
and byte [ebp - 0x408], 0
push esi
push edi
push 0x7f
pop ecx
xor eax, eax
lea edi, [ebp - 0x407]
and byte [ebp - 0x208], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
mov esi, dword [ebp + 8]
push 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x408]
mov dword [ebp + 8], esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x41fd6a
mov eax, esi
jmp 0x41fef5
lea eax, [ebp - 0x408]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
lea eax, [ebp - 0x208]
push eax
call ebx
lea eax, [ebp - 0x208]
push str.d3d8.dll
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0041f9cc
pop ecx
pop ecx
push 4
test eax, eax
pop edi
jl 0x41fe13
mov eax, dword [ebp - 4]
mov esi, 0x371
mov ecx, eax
shr ecx, 0x10
cmp cx, di
jne 0x41fde0
push esi
push 1
push 8
push edi
call fcn.0041fa6b
push edx
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041fa8a
add esp, 0x20
test eax, eax
jge 0x41fe0c
mov eax, dword [ebp - 4]
shr eax, 0x10
cmp ax, 5
jne 0x41fe13
push esi
push 0xa28
push 1
push 5
call fcn.0041fa6b
push edx
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041fa8a
add esp, 0x20
test eax, eax
jl 0x41fe13
mov dword [ebp + 8], 0x10008
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x208]
push eax
call ebx
lea eax, [ebp - 0x208]
push str.dpnet.dll
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0041f9cc
pop ecx
test eax, eax
pop ecx
jl 0x41feb2
mov eax, dword [ebp - 4]
mov esi, 0x86
mov ecx, eax
shr ecx, 0x10
cmp cx, di
jne 0x41fe7f
push esi
push 0
push 9
push edi
call fcn.0041fa6b
push edx
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041fa8a
add esp, 0x20
test eax, eax
jge 0x41feab
mov eax, dword [ebp - 4]
shr eax, 0x10
cmp ax, 5
jne 0x41feb2
push esi
push 0xe5d
push 2
push 5
call fcn.0041fa6b
push edx
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041fa8a
add esp, 0x20
test eax, eax
jl 0x41feb2
mov dword [ebp + 8], 0x20008
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x208]
push eax
call ebx
lea eax, [ebp - 0x208]
push str.d3d9.dll
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0041f9cc
pop ecx
pop ecx
pop ebx
test eax, eax
jl 0x41fef2
mov dword [ebp + 8], 9
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret
Function at 0x420151
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov dword [ebp - 0x14], ecx
xor esi, esi
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call fcn.0041bdc5
push 0x13c
call fcn.00424dd9
cmp eax, esi
pop ecx
je 0x42019c
push 0x1a
lea esi, [eax + 4]
pop ecx
mov edi, esi
mov dword [eax], ecx
mov ebx, ecx
mov ecx, edi
call fcn.0041bdc5
add edi, 0xc
dec ebx
jne 0x420188
mov dword [ebp - 8], esi
xor esi, esi
jmp 0x42019f
mov dword [ebp - 8], esi
cmp dword [ebp - 8], esi
je 0x4201bd
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
call esi
mov ebx, eax
push ebx
call fcn.00424dd9
mov edi, eax
pop ecx
test edi, edi
jne 0x4201c8
inc dword [0x47e2c8]
jmp 0x42036e
push edi
push ebx
call esi
push str._HD_space_placeholder_
lea ecx, [ebp - 0x4c]
mov esi, edi
call fcn.0041be35
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
push eax
call fcn.0041eec5
cmp byte [edi], 0
je 0x4202ba
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push esi
call fcn.0041bf12
mov ecx, dword [ebp - 4]
call fcn.0041cd1e
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x4202a0
inc dword [ebp - 0xc]
push str.
lea ecx, [ebp - 0x28]
call fcn.0041bf12
push dword [ebp - 4]
lea ecx, [ebp - 0x28]
call fcn.0041c0c5
push 9
lea ecx, [ebp - 0x28]
call fcn.0041bff8
mov ecx, dword [ebp - 4]
push 1
call fcn.0041cd1e
push eax
call fcn.0040de4d
mov ebx, edx
pop ecx
cmp ebx, dword [0x47e654]
pop ecx
mov dword [ebp - 0x1c], eax
ja 0x420268
jb 0x420265
cmp eax, dword [0x47e650]
jae 0x420268
inc dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
call fcn.0041bdc5
lea eax, [ebp - 0x34]
push eax
push ebx
push dword [ebp - 0x1c]
call fcn.0041d95e
add esp, 0xc
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x28]
push eax
call fcn.0041c0c5
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push eax
call fcn.0041eec5
lea ecx, [ebp - 0x34]
call fcn.0041befb
add dword [ebp - 4], 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x4201f6
push edi
call fcn.00424dce
pop ecx
mov ecx, dword [ebp - 8]
push 3
call fcn.004190ec
push 0x47ea44
lea ecx, [ebp - 0x28]
call fcn.0041bf80
xor esi, esi
lea ecx, [ebp - 0x28]
push esi
push 0x42d930
call fcn.0041c047
lea ecx, [ebp - 0x40]
call fcn.0041bdc5
lea eax, [ebp - 0x40]
push eax
push dword [0x47e654]
push dword [0x47e650]
call fcn.0041d95e
add esp, 0xc
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.0041c0c5
push 9
lea ecx, [ebp - 0x28]
call fcn.0041bff8
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x10], eax
jne 0x420333
inc dword [0x47e2c0]
push 0x47e8dc
jmp 0x420338
push 0x47e8f4
lea ecx, [ebp - 0x28]
call fcn.0041c0c5
push 1
push esi
push esi
lea ecx, [ebp - 0x28]
call fcn.0041cd1e
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041cd1e
mov ecx, dword [ebp - 0x14]
push eax
call fcn.0041cbf9
lea ecx, [ebp - 0x40]
call fcn.0041befb
lea ecx, [ebp - 0x4c]
call fcn.0041befb
lea ecx, [ebp - 0x28]
call fcn.0041befb
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42037b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push 0x24
lea eax, [ebp - 0x30]
push 0
mov esi, ecx
push eax
call fcn.00424500
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x47eae0
lea ecx, [ebp - 0xc]
call fcn.0041be99
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push 0x42d954
push eax
call fcn.0041c467
add esp, 0xc
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0041eec5
lea ecx, [ebp - 0xc]
call fcn.0041befb
pop esi
leave
ret
Function at 0x421f81
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
cmp dword [0x47e19c], ebx
je 0x421fa0
push ebx
push dword [ebp + 8]
call fcn.00421d4b
jmp 0x4220e8
push esi
mov esi, 0x104
push edi
push esi
call fcn.00424dd9
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x421fc5
mov ecx, 0x47e924
call fcn.0041cd1e
push eax
call fcn.0041d881
pop ecx
push esi
push ebx
push edi
call fcn.00424500
add esp, 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebx
cmp byte [eax + edi - 1], 0x5c
je 0x421fef
push edi
call ebx
mov byte [eax + edi], 0x5c
push str.wininit.ini
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x10]
call fcn.0041bdc5
push 0
push 0
push edi
lea ecx, [ebp - 0x10]
call fcn.0041cac5
test eax, eax
jle 0x4220d7
push str.NUL
lea ecx, [ebp - 0x1c]
call fcn.0041be35
push esi
call fcn.00424dd9
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x422043
mov ecx, 0x47e924
call fcn.0041cd1e
push eax
call fcn.0041d881
pop ecx
push esi
push 0
push ebx
call fcn.00424500
add esp, 0xc
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
xor esi, esi
lea ecx, [ebp - 0x1c]
push esi
push ebx
call fcn.0041c047
push ebx
call fcn.00424dce
pop ecx
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x28]
xor ebx, ebx
call fcn.0041bdc5
push dword [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.0041c9d2
test al, al
je 0x4220c7
lea eax, [ebp - 0x1c]
push esi
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041c92f
mov ecx, eax
call fcn.0041c176
test al, al
jne 0x4220af
mov ebx, dword [ebp - 4]
push ebx
jmp 0x42207d
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x10]
sub eax, ebx
push eax
push ebx
call fcn.0041c3a9
push edi
lea ecx, [ebp - 0x10]
call fcn.0041ce0e
lea ecx, [ebp - 0x28]
call fcn.0041befb
lea ecx, [ebp - 0x1c]
call fcn.0041befb
push edi
call fcn.00424dce
pop ecx
lea ecx, [ebp - 0x10]
call fcn.0041befb
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x422166
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov edx, ecx
xor cl, cl
cmp byte [edx + 0x93], cl
lea eax, [edx + 0x93]
je 0x4221b6
push edi
push 0x40
mov byte [eax], cl
mov byte [ebp - 0x104], cl
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
mov ecx, edx
push eax
call fcn.00422a86
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
leave
ret