joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460ecc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x460ee3
add esp, 0xfffffff0
call fcn.00404698
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d914
mov eax, dword [0x4b80cc]
cmp word [eax + 2], 0
jne 0x460f0b
mov eax, dword [0x4b80cc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00462994
mov eax, dword [0x4b8210]
cmp word [eax + 2], 0
jne 0x460f25
mov eax, dword [0x4b8210]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00462ba0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x413fdc]
call fcn.00404344
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x413fdc]
call fcn.00404344
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x413fdc]
call fcn.00404344
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x422230]
call fcn.00429d68
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4610dc
mov eax, dword [0x4b7f44]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042a13c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x463270
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4b7f44]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040e914
test eax, eax
je 0x46102c
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040a7ec
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e948
test eax, eax
je 0x461040
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004054c4
mov byte [ebx + 0xd4], 0
push ebx
push 0x4624dc
call fcn.0041ea90
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4b7cf4]
cmp byte [eax], 0
jne 0x461091
mov eax, ebx
call fcn.00461220
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0046344c
mov eax, ebx
call fcn.00463fac
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4610d1
call fcn.004046f0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4614a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4bc5b4]
cmp dword [eax + 0x30], 0
je 0x46154a
cmp dword [ebx + 0x94], 0
jne 0x461544
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x461430
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x461544
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46150a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x461544
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004166d8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x461519
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x462264
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x462299
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00405344
jmp 0x4622a6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004052a8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x463630
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46369e
mov eax, esi
call fcn.0044dd10
test al, al
je 0x46369e
mov eax, dword [ebx + 0x84]
call fcn.0044d970
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46369e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x463692
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044d970
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00445cb4
jmp 0x46369e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0046346c
pop esi
pop ebx
ret

Function at 0x469794
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x469804
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x104
call fcn.004059a0
mov eax, dword [ebx]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
test esi, esi
je 0x4697ce
sub esi, 4
mov esi, dword [esi]
mov eax, dword [ebx]
call fcn.00405718
push eax
push esi
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
xchg edx, eax
call fcn.004059a0
lea edx, [ebp - 8]
mov eax, dword [ebx]
call fcn.0046943c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46980b
lea eax, [ebp - 8]
call fcn.00405254
ret
Function at 0x46fe50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x46feaa
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0046fe40
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00465be0
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004657d8
mov edx, dword [esi + 0xc]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46feb1
lea eax, [ebp - 4]
call fcn.00405254
ret
Function at 0x47b3f4
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x47b3fc
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x47b5ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x47b604
mov eax, esi
call fcn.0046e764
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004052a8
lea ecx, [ebp - 0x10]
mov edx, 0x47b618
mov eax, esi
call fcn.0046e764
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004052a8
lea ecx, [ebp - 0x14]
mov edx, 0x47b630
mov eax, esi
call fcn.0046e764
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004052a8
lea ecx, [ebp - 0x18]
mov edx, 0x47b64c
mov eax, esi
call fcn.0046e764
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004052a8
lea ecx, [ebp - 0x1c]
mov edx, 0x47b668
mov eax, esi
call fcn.0046e764
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004052a8
lea ecx, [ebp - 0x24]
mov edx, 0x47b680
mov eax, esi
call fcn.0046e764
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004096fc
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00409b58
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x47b698
mov eax, esi
call fcn.0046e764
mov eax, dword [ebp - 0x28]
call fcn.0046a1b8
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x47b6a8
mov eax, esi
call fcn.0046e764
mov eax, dword [ebp - 0x2c]
call fcn.0046a1b8
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x47b6c0
mov eax, esi
call fcn.0046e764
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00409b58
inc eax
je 0x47b591
lea ecx, [ebp - 0x34]
mov edx, 0x47b6c0
mov eax, esi
call fcn.0046e764
mov eax, dword [ebp - 0x34]
call fcn.00409b1c
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
movzx edx, word [ebp - 4]
movzx eax, word [ebp - 8]
call fcn.0040b7d0
fstp qword [ebp - 0x3c]
wait
call fcn.0040bba8
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x47b5ac
lea ecx, [ebp - 0x40]
mov edx, 0x47b6c0
mov eax, esi
call fcn.0046e764
mov eax, dword [ebp - 0x40]
call fcn.0046a1b8
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x47b6d0
mov eax, esi
call fcn.0046e764
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004052a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b5f5
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00405278
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00405278
ret
Function at 0x482994
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405708
xor eax, eax
push ebp
push 0x4829f2
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.00482b14
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x4829da
lea eax, [ebp - 4]
call fcn.00482b14
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x4829dc
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4829f9
lea eax, [ebp - 4]
call fcn.00405254
ret

Function at 0x482a00
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405708
xor eax, eax
push ebp
push 0x482a64
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 4]
call fcn.00482b14
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040a9f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482a6b
lea eax, [ebp - 4]
call fcn.00405254
ret

Function at 0x482a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405708
xor eax, eax
push ebp
push 0x482ad4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
push eax
push 0
push 0x482ae0
lea eax, [ebp - 4]
call fcn.00482b14
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.00482854
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482adb
lea eax, [ebp - 4]
call fcn.00405254
ret
Function at 0x483448
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405708
xor eax, eax
push ebp
push 0x483541
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [esi + 4]
mov word [ebx + 4], ax
movzx eax, word [esi + 6]
mov word [ebx + 6], ax
movzx eax, word [esi + 8]
mov word [ebx + 8], ax
movzx eax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.00482298
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
movzx eax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
movzx eax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
movzx eax, word [esi + 0x20]
mov word [ebx + 0x22], ax
movzx eax, word [esi + 0x22]
mov word [ebx + 0x24], ax
movzx eax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a4e0
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0048466c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a3a0
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004846e4
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483548
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405278
ret
Function at 0x483550
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405708
xor eax, eax
push ebp
push 0x483659
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
movzx eax, word [esi + 4]
mov word [ebx + 6], ax
movzx eax, word [esi + 6]
mov word [ebx + 8], ax
movzx eax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.00482298
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
movzx eax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
movzx eax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
cmp dword [ebp - 4], 0
je 0x48361f
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a4e0
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0048466c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a3a0
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004846e4
jmp 0x483631
xor edx, edx
mov eax, ebx
call fcn.0048466c
xor edx, edx
mov eax, ebx
call fcn.004846e4
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483660
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405278
ret
Function at 0x4877c8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x487939
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x487914
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.0040543c
lea eax, [ebp - 0x118]
mov edx, 0x487950
call fcn.00405520
mov eax, dword [ebp - 0x118]
call fcn.00405718
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x487886
lea eax, [ebp - 0x111]
call fcn.0040a7b0
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00405344
jmp 0x48788d
mov eax, esi
call fcn.00405254
cmp bl, 0x61
jae 0x4878ae
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040e7e0
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.004052a8
jmp 0x4878c8
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040e74c
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.004052a8
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x48795c
call fcn.0040aee4
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.004052a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48791b
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x48c38c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x170]
mov edx, ebx
mov eax, edi
call fcn.0048c490
mov esi, eax
mov dword [edi + 0x170], esi
and esi, 0xff
add dword [edi + 0x174], esi
imul esi, dword [edi + 0x174], 0x8088405
inc esi
mov dword [edi + 0x174], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x178]
mov eax, edi
call fcn.0048c490
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
ret
Function at 0x48d0c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48d2a6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x48d262
mov eax, dword [ebp - 4]
call fcn.0048e880
cmp ebx, eax
jge 0x48d262
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.0048019c
mov edx, dword [0x482ee8]
call fcn.00404524
mov esi, eax
mov eax, esi
call fcn.004845e0
test al, al
je 0x48d258
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x48d24c
xor eax, eax
push ebp
push 0x48d245
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0048d594
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.004191d0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.004059a0
mov eax, dword [ebp - 8]
call fcn.00405770
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx eax, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0048d43c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx edx, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d290
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x48d244
mov eax, dword [ebp - 4]
call fcn.0048d618
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040a9f4
jmp 0x48d290
mov eax, dword [ebp - 8]
call fcn.00405254
jmp 0x48d290
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.00409e90
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x413db4]
call fcn.0040d97c
call fcn.00404be8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d2ad
lea eax, [ebp - 0x54]
call fcn.00405254
ret
Function at 0x494958
Capabilities:
Get disk size

Disassembly:
push ebx
add esp, 0xffffffc4
mov ebx, eax
call fcn.00494800
test al, al
je 0x494985
lea edx, [esp + 0x10]
mov eax, ebx
call fcn.004948f8
test al, al
jne 0x49497b
call fcn.0040f254
mov eax, dword [esp + 0x14]
imul dword [esp + 0x18]
jmp 0x4949b6
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
mov eax, ebx
call fcn.00405718
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
jne 0x4949af
call fcn.0040f254
mov eax, dword [esp]
imul dword [esp + 4]
add esp, 0x3c
pop ebx
ret

Function at 0x496f9c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x497079
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x49704b
inc ebx
xor esi, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp word [eax + 0x20a], 0
je 0x497017
mov byte [ebp - 1], 0
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov edi, dword [eax - 4]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov eax, dword [edi + 0x20c]
call dword [edi + 0x208]
cmp byte [ebp - 1], 0
jne 0x497047
lea ecx, [ebp - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x10]
call fcn.00405718
push eax
call sub.kernel32.dll_DeleteFileA_1
cmp eax, 1
sbb eax, eax
inc eax
inc esi
dec ebx
jne 0x496fd4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00404374
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 0xc], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497080
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00405278
ret
Function at 0x498ba4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x498d5a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x1d8]
movzx eax, byte [eax + 0x21]
test al, al
je 0x498d3f
cmp al, 1
jne 0x498c8a
mov eax, dword [ebx + 0x284]
call fcn.00404374
xor eax, eax
mov dword [ebx + 0x284], eax
mov eax, ebx
call fcn.00498acc
lea ecx, [ebx + 0x2a8]
mov edx, dword [ebx + 0x12c]
add edx, 2
mov eax, ebx
call fcn.0048e93c
cmp dword [ebx + 0x2a8], 0
jne 0x498c30
lea edx, [ebp - 8]
mov eax, 0xbb
call fcn.00409e90
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x48b400]
call fcn.0040d940
call fcn.00404be8
inc dword [ebx + 0x12c]
mov eax, dword [ebx + 0x2a8]
call fcn.00409fa4
test al, al
je 0x498c56
mov eax, dword [ebx + 0x2a8]
call fcn.00405718
push eax
call sub.kernel32.dll_DeleteFileA_1
cmp word [ebx + 0x232], 0
je 0x498c75
mov ecx, dword [ebx + 0x12c]
inc ecx
mov edx, ebx
mov eax, dword [ebx + 0x234]
call dword [ebx + 0x230]
mov eax, ebx
call fcn.00498a08
mov dword [ebx + 0x260], eax
mov dword [ebx + 0x264], edx
jmp 0x498cf2
mov eax, dword [ebx + 0x284]
call fcn.00404374
xor eax, eax
mov dword [ebx + 0x284], eax
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x2a8]
call fcn.004052ec
lea eax, [ebx + 0x2a8]
mov edx, dword [ebx + 0x1a8]
call fcn.004052a8
push 1
mov ecx, dword [ebx + 0x12c]
add ecx, 2
lea edx, [ebx + 0x2a8]
mov eax, ebx
call fcn.0048eacc
inc dword [ebx + 0x12c]
mov eax, dword [ebx + 0x1d8]
mov edx, dword [eax + 8]
mov dword [ebx + 0x260], edx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0x264], edx
push 0xffff
movzx eax, byte [ebx + 0x105]
push eax
mov eax, dword [ebx + 0x108]
push eax
mov ecx, dword [ebx + 0x2a8]
mov dl, 1
mov eax, dword [0x4814d4]
call fcn.0048164c
mov dword [ebx + 0x284], eax
mov dword [ebx + 0x258], 0
mov dword [ebx + 0x25c], 0
xor edx, edx
mov eax, dword [ebx + 0x2a0]
call fcn.00484e34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498d61
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405278
ret
Function at 0x49aa6c
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffed0
mov esi, edx
mov ebx, eax
cmp dword [ebx + 0x1e0], 0
je 0x49aa90
mov eax, dword [ebx + 0x1e0]
call fcn.004824cc
test al, al
jne 0x49aaa6
push esp
push 0x12d
call sub.kernel32.dll_GetTempPathA
mov edx, esi
mov eax, esp
call fcn.00482854
jmp 0x49aab3
mov eax, esi
mov edx, dword [ebx + 0x1e0]
call fcn.004052a8
add esp, 0x130
pop esi
pop ebx
ret