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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x14]
call fcn.0041ef2d
push str.___Internal_InstallationNotFound___
call fcn.0042075a
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x41e62a
mov esi, str.The__s_installation_couldnt_be_found._Try_re_installing_the_application_before_running_the_update.
mov ecx, 0x4827dc
call fcn.0041fee9
push eax
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0041f625
add esp, 0xc
lea eax, [ebp - 4]
mov ecx, 0x482a3c
push eax
mov eax, dword [0x483760]
or eax, 0x20019
push eax
push ebx
call fcn.0041fee9
push eax
push dword [0x482a38]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41e6d4
cmp dword [0x482a48], ebx
jne 0x41e68b
cmp dword [0x482a54], ebx
jne 0x41e68b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41e716
mov eax, 0x104
mov dword [ebp - 8], eax
push eax
lea eax, [ebp - 0x118]
push ebx
push eax
call fcn.004282e0
add esp, 0xc
lea eax, [ebp - 8]
mov ecx, 0x482a48
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
push ebx
call fcn.0041fee9
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x41e70e
cmp dword [0x482b7c], ebx
je 0x41e6f7
and dword [0x48260c], 0xffffffbf
push ebx
push str._IsUpdate_
call fcn.00420a53
mov ecx, edi
call fcn.0041868d
jmp 0x41e716
push ebx
lea ecx, [ebp - 0x14]
call fcn.0041fee9
push eax
push ebx
mov ecx, 0x482408
call fcn.0041e1f3
jmp 0x41e73a
cmp dword [0x482a54], ebx
jne 0x41e71a
mov bl, 1
jmp 0x41e73a
test byte [0x482611], 0x20
lea eax, [ebp - 0x118]
mov ecx, edi
push eax
je 0x41e733
call fcn.0041e844
jmp 0x41e738
call fcn.0041ea52
mov bl, al
lea ecx, [ebp - 0x14]
call fcn.0041f063
pop edi
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x41fc83
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
push ebx
mov esi, ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 1
push ebx
push ebx
mov edi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
jbe 0x41fcad
mov eax, edi
mov ecx, dword [ebp + 0xc]
mov edx, edi
sub edx, eax
mov dword [esi], ecx
cmp edx, ecx
jb 0x41fcbe
cmp ecx, ebx
ja 0x41fcc0
mov dword [esi], edx
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 0x41fcf1
xor eax, eax
jmp 0x41fd2b
cmp dword [esi + 4], ebx
jne 0x41fd07
mov ecx, 0x482e04
call fcn.0041fee9
push eax
call fcn.00420ba1
pop ecx
lea eax, [ebp - 4]
push ebx
push eax
mov dword [ebp - 4], ebx
push dword [esi]
push dword [esi + 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, dword [esi]
sete al
dec eax
and al, 0xfe
inc eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x41ffd9
Capabilities:
Check if file exists
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41fff6
xor ebx, ebx
xor esi, esi
test bl, 2
je 0x420000
push 2
pop esi
test bl, 0x20
je 0x420008
or esi, 0x20
test esi, esi
jne 0x420011
mov esi, 0x80
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test bl, 1
je 0x420026
mov eax, ebx
and al, 0xfe
push eax
push dword [ebp + 8]
call edi
xor eax, eax
push eax
push esi
push 2
push eax
push eax
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x420047
push 0xfffffffffffffffd
jmp 0x420081
lea eax, [ebp - 4]
push 0
push eax
mov eax, dword [ebp - 8]
and dword [ebp - 4], 0
push dword [eax]
push dword [eax + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp eax, dword [ecx]
je 0x420075
push 0xfffffffffffffffe
jmp 0x420081
test ebx, ebx
je 0x42007f
push ebx
push dword [ebp + 8]
call edi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x420c31
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 0x432518
call fcn.0041f0d0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, 0xfffffc00
mov ecx, edx
and eax, esi
test ecx, ecx
ja 0x420c84
jb 0x420c63
cmp eax, 0x100000
jae 0x420c84
mov eax, dword [ebp + 8]
push 0xa
pop ecx
call fcn.00428e40
push eax
push str._d_KB
push dword [ebp + 0x10]
call fcn.0041f625
add esp, 0xc
jmp 0x420db5
mov eax, dword [ebp + 8]
push 0xa
pop ecx
call fcn.00428e40
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 0x420cc6
lea eax, [ebp - 0xc]
push 0x42ff70
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 0x420d15
jb 0x420cdc
cmp eax, 0x100000
jae 0x420d15
push 0xa
mov eax, ebx
pop ecx
mov edx, edi
call fcn.00428e40
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.004292b0
cmp eax, 0xa
jb 0x420d05
push 9
pop eax
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push str._d_s_d_MB
jmp 0x420daa
push 0xa
mov eax, ebx
pop ecx
mov edx, edi
call fcn.00428e40
mov edi, eax
mov ebx, edx
and eax, esi
test ebx, ebx
ja 0x420d6a
jb 0x420d34
cmp eax, 0x100000
jae 0x420d6a
push 0xa
mov eax, edi
pop ecx
mov edx, ebx
call fcn.00428e40
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.004292b0
cmp eax, 0xa
jb 0x420d5d
push 9
pop eax
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push str._d_s_d_GB
jmp 0x420daa
push 0xa
mov eax, edi
pop ecx
mov edx, ebx
call fcn.00428e40
push 0xa
mov esi, eax
pop ecx
mov edi, edx
call fcn.00428e40
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.004292b0
cmp eax, 0xa
jb 0x420d9f
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.0041f625
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420dba
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 0x420dd1
or eax, 0xffffffff
jmp 0x420e78
mov dword [eax], esi
lea eax, [ebp + 8]
push eax
mov eax, dword [0x483760]
or al, 1
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x420e75
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 0x420e71
mov eax, dword [ebp + 0xc]
inc eax
push eax
call fcn.00428bb9
mov ebx, eax
pop ecx
cmp ebx, esi
jne 0x420e32
mov ecx, 0x482e04
call fcn.0041fee9
push eax
call fcn.00420ba1
pop ecx
mov eax, dword [ebp + 0xc]
inc eax
push eax
push esi
push ebx
call fcn.004282e0
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 0x420e66
mov eax, dword [ebp + 0x14]
push dword [ebp + 8]
mov dword [eax], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
jmp 0x420e77
push ebx
call fcn.00428bae
pop ecx
push 0xfffffffffffffffe
jmp 0x420e77
push 0xfffffffffffffffd
jmp 0x420e77
push 0xfffffffffffffffc
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x420ed8
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.004282e0
push esi
call fcn.00428bb9
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x420f11
mov ecx, 0x482e04
call fcn.0041fee9
push eax
call fcn.00420ba1
pop ecx
push esi
push 0
push edi
call fcn.004282e0
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 0x420f39
push 0x4317b8
push edi
call esi
jmp 0x420f48
add eax, edi
cmp byte [eax - 1], 0x5c
je 0x420f48
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.0042b91f
add esp, 0xc
push 0x4317b4
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.0040f27e
test al, al
pop ecx
jne 0x420f5c
push edi
push dword [ebp + 8]
call esi
push edi
call fcn.00428bae
mov eax, dword [ebp + 8]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421903
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push esi
push str.GetSystemWindowsDirectoryA
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x421932
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x421990
push edi
push 0x24
pop ecx
xor eax, eax
lea edi, [ebp - 0x90]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
pop edi
push dword [ebp + 0xc]
push dword [ebp + 8]
jne 0x42198a
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, eax
test esi, esi
je 0x421990
push 0x5c
push dword [ebp + 8]
call fcn.00428b00
pop ecx
test eax, eax
pop ecx
je 0x421986
and byte [eax], 0
mov eax, esi
jmp 0x421990
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
pop esi
leave
ret
Function at 0x421e2a
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x60], ebx
jne 0x421f8a
push dword [esp + 0xc]
lea ecx, [esi + 0x64]
call fcn.0041f0d0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0x60], eax
je 0x421f8e
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 0x421f8e
cmp dword [esi + 0x20], ebx
je 0x421f8e
cmp dword [esi + 0x34], ebx
je 0x421f8e
cmp dword [esi + 0x28], ebx
je 0x421f8e
cmp dword [esi], ebx
je 0x421f8e
cmp dword [esi + 0x10], ebx
je 0x421f8e
cmp dword [esi + 0x14], ebx
je 0x421f8e
cmp dword [esi + 8], ebx
je 0x421f8e
cmp dword [esi + 0xc], ebx
je 0x421f8e
cmp dword [esi + 0x18], ebx
je 0x421f8e
cmp dword [esi + 4], ebx
je 0x421f8e
cmp dword [esi + 0x1c], ebx
je 0x421f8e
cmp dword [esi + 0x30], ebx
je 0x421f8e
cmp dword [esi + 0x24], ebx
je 0x421f8e
cmp eax, ebx
je 0x421f8e
cmp dword [esi + 0x40], ebx
je 0x421f8e
mov al, 1
jmp 0x421f90
xor al, al
pop esi
pop ebx
ret 4
Function at 0x422af8
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov edi, ecx
push str.RAM:_t
lea ecx, [ebp - 0xc]
call fcn.0041ef9d
push str.GlobalMemoryStatusEx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x422b4c
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x40
push ecx
call eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
push 0x14
pop ecx
call fcn.00428e40
mov ebx, eax
test ebx, ebx
jne 0x422b63
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 0x422b69
inc ebx
mov esi, str._d_MB_t
push ebx
lea eax, [ebp - 0xc]
push esi
push eax
mov dword [0x482bb8], ebx
call fcn.0041f625
mov eax, dword [0x4825bc]
add esp, 0xc
test eax, eax
jne 0x422b9b
push eax
push 0x431928
lea ecx, [ebp - 0xc]
call fcn.0041f205
jmp 0x422bb1
push eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0041f625
add esp, 0xc
cmp ebx, dword [0x4825bc]
jb 0x422bb8
push 0x482dd4
jmp 0x422bc3
inc dword [0x482740]
push 0x482dbc
lea ecx, [ebp - 0xc]
call fcn.0041f283
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
call fcn.00422668
lea ecx, [ebp - 0xc]
mov dword [0x482744], ebx
call fcn.0041f063
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423222
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push esi
push edi
je 0x4232b8
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4232b8
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp + 0xc], eax
jbe 0x4232b1
push eax
call fcn.00428bb9
mov esi, eax
pop ecx
test esi, esi
jne 0x423260
mov eax, 0x8007000e
jmp 0x4232bd
push esi
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4232aa
and dword [ebp + 8], 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push 0x42fb94
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4232aa
mov eax, dword [ebp + 8]
test eax, eax
je 0x4232aa
mov ecx, dword [eax + 8]
push esi
mov dword [edi + 4], ecx
mov eax, dword [eax + 0xc]
mov dword [edi], eax
call fcn.00428bae
pop ecx
xor eax, eax
jmp 0x4232bd
push esi
call fcn.00428bae
pop ecx
mov eax, 0x80004005
jmp 0x4232bd
mov eax, 0x80070057
pop edi
pop esi
leave
ret
Function at 0x4238c2
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 0x42391e
mov eax, esi
jmp 0x423aa9
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.00423222
pop ecx
pop ecx
push 4
test eax, eax
pop edi
jl 0x4239c7
mov eax, dword [ebp - 4]
mov esi, 0x371
mov ecx, eax
shr ecx, 0x10
cmp cx, di
jne 0x423994
push esi
push 1
push 8
push edi
call fcn.004232c1
push edx
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004232e0
add esp, 0x20
test eax, eax
jge 0x4239c0
mov eax, dword [ebp - 4]
shr eax, 0x10
cmp ax, 5
jne 0x4239c7
push esi
push 0xa28
push 1
push 5
call fcn.004232c1
push edx
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004232e0
add esp, 0x20
test eax, eax
jl 0x4239c7
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.00423222
pop ecx
test eax, eax
pop ecx
jl 0x423a66
mov eax, dword [ebp - 4]
mov esi, 0x86
mov ecx, eax
shr ecx, 0x10
cmp cx, di
jne 0x423a33
push esi
push 0
push 9
push edi
call fcn.004232c1
push edx
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004232e0
add esp, 0x20
test eax, eax
jge 0x423a5f
mov eax, dword [ebp - 4]
shr eax, 0x10
cmp ax, 5
jne 0x423a66
push esi
push 0xe5d
push 2
push 5
call fcn.004232c1
push edx
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004232e0
add esp, 0x20
test eax, eax
jl 0x423a66
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.00423222
pop ecx
pop ecx
pop ebx
test eax, eax
jl 0x423aa6
mov dword [ebp + 8], 9
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret
Function at 0x423cf0
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.0041ef2d
push 0x13c
call fcn.00428bb9
cmp eax, esi
pop ecx
je 0x423d3b
push 0x1a
lea esi, [eax + 4]
pop ecx
mov edi, esi
mov dword [eax], ecx
mov ebx, ecx
mov ecx, edi
call fcn.0041ef2d
add edi, 0xc
dec ebx
jne 0x423d27
mov dword [ebp - 8], esi
xor esi, esi
jmp 0x423d3e
mov dword [ebp - 8], esi
cmp dword [ebp - 8], esi
je 0x423d5c
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
call esi
mov ebx, eax
push ebx
call fcn.00428bb9
mov edi, eax
pop ecx
test edi, edi
jne 0x423d67
inc dword [0x482748]
jmp 0x423f0d
push edi
push ebx
call esi
push str._HD_space_placeholder_
lea ecx, [ebp - 0x4c]
mov esi, edi
call fcn.0041ef9d
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
push eax
call fcn.00422668
cmp byte [edi], 0
je 0x423e59
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push esi
call fcn.0041f0d0
mov ecx, dword [ebp - 4]
call fcn.0041fee9
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x423e3f
inc dword [ebp - 0xc]
push 0x431d80
lea ecx, [ebp - 0x28]
call fcn.0041f0d0
push dword [ebp - 4]
lea ecx, [ebp - 0x28]
call fcn.0041f283
push 9
lea ecx, [ebp - 0x28]
call fcn.0041f1b6
mov ecx, dword [ebp - 4]
push 1
call fcn.0041fee9
push eax
call fcn.0040f179
mov ebx, edx
pop ecx
cmp ebx, dword [0x482b14]
pop ecx
mov dword [ebp - 0x1c], eax
ja 0x423e07
jb 0x423e04
cmp eax, dword [0x482b10]
jae 0x423e07
inc dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
call fcn.0041ef2d
lea eax, [ebp - 0x34]
push eax
push ebx
push dword [ebp - 0x1c]
call fcn.00420c31
add esp, 0xc
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x28]
push eax
call fcn.0041f283
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push eax
call fcn.00422668
lea ecx, [ebp - 0x34]
call fcn.0041f063
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 0x423d95
push edi
call fcn.00428bae
pop ecx
mov ecx, dword [ebp - 8]
push 3
call fcn.0041bd53
push 0x482f24
lea ecx, [ebp - 0x28]
call fcn.0041f13e
xor esi, esi
lea ecx, [ebp - 0x28]
push esi
push 0x431d7c
call fcn.0041f205
lea ecx, [ebp - 0x40]
call fcn.0041ef2d
lea eax, [ebp - 0x40]
push eax
push dword [0x482b14]
push dword [0x482b10]
call fcn.00420c31
add esp, 0xc
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.0041f283
push 9
lea ecx, [ebp - 0x28]
call fcn.0041f1b6
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x10], eax
jne 0x423ed2
inc dword [0x482740]
push 0x482dbc
jmp 0x423ed7
push 0x482dd4
lea ecx, [ebp - 0x28]
call fcn.0041f283
push 1
push esi
push esi
lea ecx, [ebp - 0x28]
call fcn.0041fee9
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041fee9
mov ecx, dword [ebp - 0x14]
push eax
call fcn.0041fdb9
lea ecx, [ebp - 0x40]
call fcn.0041f063
lea ecx, [ebp - 0x4c]
call fcn.0041f063
lea ecx, [ebp - 0x28]
call fcn.0041f063
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423f1a
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.004282e0
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x482fc0
lea ecx, [ebp - 0xc]
call fcn.0041f001
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push 0x431da0
push eax
call fcn.0041f625
add esp, 0xc
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.00422668
lea ecx, [ebp - 0xc]
call fcn.0041f063
pop esi
leave
ret
Function at 0x425e87
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 0x425ed7
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.00426826
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
leave
ret

Function at 0x426216
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp dword [0x4829f0], ebx
push edi
mov edi, dword [eax + 0x34]
jle 0x426256
mov esi, 0x4829e4
push ebx
mov ecx, esi
call fcn.00421fe1
cmp eax, edi
je 0x42624b
inc ebx
inc ebx
cmp ebx, dword [0x4829f0]
jl 0x426233
jmp 0x426256
inc ebx
mov ecx, esi
push ebx
call fcn.00421fe1
mov edi, eax
xor esi, esi
cmp dword [0x4829dc], esi
jle 0x4262f7
push esi
mov ecx, 0x4829d0
call fcn.00421fe1
cmp dword [eax], edi
je 0x42627e
inc esi
cmp esi, dword [0x4829dc]
jl 0x426264
jmp 0x4262f7
add eax, 4
xor esi, esi
cmp eax, esi
je 0x4262f7
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
mov ecx, eax
call fcn.0041fee9
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4262f7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0xc
mov dword [ebp + 8], eax
call fcn.00428bb9
cmp eax, esi
pop ecx
je 0x4262ce
mov ecx, eax
call fcn.0041ef2d
mov ebx, eax
jmp 0x4262d0
xor ebx, ebx
push dword [ebp + 8]
mov ecx, ebx
call fcn.0041f81a
cmp eax, esi
jne 0x426300
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
je 0x4262f7
mov ecx, ebx
call fcn.0041f063
push ebx
call fcn.00428bae
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
lea ecx, [ebp - 4]
push esi
push ecx
mov dword [ebp - 4], esi
push dword [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
je 0x4262e5
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
jne 0x4262e5
mov eax, ebx
jmp 0x4262f9