joyce8/EMBER2024-capa huggingface dataset:
Function at 0x492b80
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
cmp dword [esi + 0x4c], 0xffffffff
je 0x492d56
push ebx
mov eax, dword [esi + 0x4c]
cmp eax, 0x7c
je 0x492d55
cmp eax, 0x29
jne 0x492bb8
cmp dword [esi + 0x10], 0
jne 0x492d55
test dword [esi + 0x50], 0x10000000
je 0x492d61
cmp eax, 0x2e
jne 0x492c15
push 5
lea ecx, [esi + 0x24]
call fcn.00492f70
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x492c09
cmp word [eax], 0x5c
jne 0x492c06
add eax, 2
cmp eax, ecx
je 0x492c06
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x492bf2
movzx edx, word [eax]
cmp edx, 0x28
je 0x492c04
cmp edx, 0x29
je 0x492c04
test cl, 0x10
jne 0x492c06
movzx ecx, word [eax]
cmp ecx, 0x7b
je 0x492c04
cmp ecx, 0x7d
jne 0x492c06
mov dword [esi], eax
add dword [esi], 2
mov ecx, esi
call fcn.00490760
jmp 0x492d42
cmp eax, 0x5c
jne 0x492c7c
mov ecx, esi
call fcn.00492b30
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x492c48
cmp word [esi + 0x48], 0x62
jne 0x492c48
push 4
lea ecx, [esi + 0x24]
call fcn.00492f70
mov ecx, esi
call fcn.00492b30
jmp 0x492d49
test eax, eax
je 0x492c70
cmp word [esi + 0x48], 0x42
jne 0x492c70
push 4
lea ecx, [esi + 0x24]
call fcn.00492f70
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.00492b30
jmp 0x492d49
mov ecx, esi
call fcn.004941f0
jmp 0x492d42
cmp eax, 0x5b
jne 0x492c9e
mov ecx, esi
call fcn.00492b30
mov ecx, esi
call fcn.004941a0
cmp dword [esi + 0x4c], 0x5d
je 0x492d3b
jmp 0x492d5a
cmp eax, 0x28
jne 0x492cce
mov ecx, esi
call fcn.00492b30
mov ecx, esi
call fcn.004942c0
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x492d61
mov ecx, esi
call fcn.00492b30
test bl, bl
je 0x492d49
jmp 0x492d42
cmp eax, 0x5e
jne 0x492ce6
push 2
lea ecx, [esi + 0x24]
call fcn.00492f70
mov ecx, esi
call fcn.00492b30
jmp 0x492d49
cmp eax, 0x24
jne 0x492cfe
push 3
lea ecx, [esi + 0x24]
call fcn.00492f70
mov ecx, esi
call fcn.00492b30
jmp 0x492d49
cmp eax, 0x2a
je 0x492d6f
cmp eax, 0x2b
je 0x492d6f
cmp eax, 0x3f
je 0x492d6f
cmp eax, 0x7b
je 0x492d6f
cmp eax, 0x7d
jne 0x492d20
test dword [esi + 0x50], 0x10000000
je 0x492d68
cmp eax, 0x5d
jne 0x492d2e
test dword [esi + 0x50], 0x10000000
je 0x492d5a
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00494510
mov ecx, esi
call fcn.00492b30
mov ecx, esi
call fcn.00494380
cmp dword [esi + 0x4c], 0xffffffff
mov cl, 1
jne 0x492b90
pop ebx
mov al, cl
pop esi
ret
push 4
call fcn.004ddafb
push 5
call fcn.004ddafb
push 6
call fcn.004ddafb
push 0xa
call fcn.004ddafb
int3
Function at 0x499310
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x5cc128]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5d36cc], 0
jne 0x4995db
push 0x11c
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.0051d210
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
push str.RtlGetVersion
push str.NtDll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4993ad
lea ecx, [ebp - 0x128]
push ecx
call eax
test eax, eax
je 0x4993ad
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4993ad
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f88bd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0
push 0x59e818
mov ecx, 0x5d3580
mov dword [0x5d2eac], 0
call fcn.00407740
mov eax, dword [ebp - 0x118]
sub eax, 0
je 0x49953c
sub eax, 1
je 0x4994ec
sub eax, 1
je 0x4993ef
push 0x59e818
jmp 0x49954b
mov eax, dword [ebp - 0x124]
cmp eax, 4
ja 0x49940e
mov dword [0x5d2eac], 0x40
push str.Windows_NT
jmp 0x49954b
cmp eax, 5
jne 0x499467
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x499431
mov dword [0x5d2eac], 0x80
push str.Windows_2000
jmp 0x49954b
cmp eax, 1
jne 0x49944a
mov dword [0x5d2eac], 0x100
push str.Windows_XP
jmp 0x49954b
cmp eax, 2
jne 0x499555
mov dword [0x5d2eac], 0x200
push str.Windows_2003
jmp 0x49954b
cmp eax, 6
jne 0x499555
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x49948e
mov dword [0x5d2eac], 0x400
push str.Windows_Vista
jmp 0x49954b
cmp eax, 1
jne 0x4994a7
mov dword [0x5d2eac], 0x800
push str.Windows_7
jmp 0x49954b
cmp eax, 2
jne 0x4994c0
mov dword [0x5d2eac], 0x1000
push str.Windows_8
jmp 0x49954b
cmp eax, 3
jne 0x4994d6
mov dword [0x5d2eac], 0x2000
push str.Windows_8.1
jmp 0x49954b
cmp eax, 4
jne 0x499555
mov dword [0x5d2eac], 0x4000
push str.Windows_10
jmp 0x49954b
cmp dword [ebp - 0x124], 4
jne 0x499555
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x499510
mov dword [0x5d2eac], 8
push str.Windows_9x
jmp 0x49954b
cmp eax, 0xa
jne 0x499526
mov dword [0x5d2eac], 8
push str.Windows_9x
jmp 0x49954b
cmp eax, 0x5a
jne 0x499555
mov dword [0x5d2eac], 0x20
push str.Windows_ME
jmp 0x49954b
mov dword [0x5d2eac], 1
push str.Windows_3.2
mov ecx, 0x5d3580
call fcn.004078b0
xorps xmm0, xmm0
mov dword [ebp - 0x140], 0
push 0x5a6dfc
push str.kernel32.dll
movaps xmmword [ebp - 0x160], xmm0
movaps xmmword [ebp - 0x150], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x499596
lea ecx, [ebp - 0x160]
push ecx
call eax
jmp 0x4995a3
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x160]
cmp ax, 9
je 0x4995c7
cmp ax, 6
je 0x4995c7
test ax, ax
jne 0x4995d1
mov dword [0x5d2ea8], 0
jmp 0x4995d1
mov dword [0x5d2ea8], 1
mov dword [0x5d36cc], 1
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.004f88bd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x499880
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5cc128]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov esi, ecx
mov edi, edx
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.0051d210
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test edi, edi
je 0x4998e4
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00407900
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004f88bd
mov esp, ebp
pop ebp
ret

Function at 0x499d80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5cc128]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov esi, ecx
mov edi, edx
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.0051d210
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test edi, edi
je 0x499de4
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00407900
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004f88bd
mov esp, ebp
pop ebp
ret

Function at 0x49afa0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push ecx
mov esi, ecx
call fcn.0049af40
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x49afbf
mov dword [esi + 4], 0xffffffff
jmp 0x49aff0
cmp dword [esi], 0
mov edx, 0xc0000000
push 0
push 0x80
push 4
push 0
mov eax, SysReAllocString
push 3
cmovne eax, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x49b082
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x49b002
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
jmp 0x49b00d
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x10], eax
or eax, ecx
mov dword [esi + 0x14], ecx
jne 0x49b02b
cmp dword [esi], eax
je 0x49b02b
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x10]
mov cl, 0x20
mov edx, dword [esi + 0x14]
push ebx
xor ebx, ebx
cmp dword [esi], ebx
push 0
push dword [esi + 0x10]
setne bl
lea ebx, [ebx*2 + 2]
call fcn.00571ed0
push eax
push ebx
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
pop ebx
test eax, eax
je 0x49b082
cmp dword [esi], 0
mov edx, 0xf001f
push 0
push 0
mov ecx, 4
push 0
cmovne ecx, edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
cmp dword [esi + 0xc], 0
jne 0x49b090
push ecx
mov ecx, esi
call fcn.0049af40
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49b1e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5bb3c8
push 0x520ce0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5cc128]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x34], eax
mov ebx, ecx
mov dword [ebp - 0x30], ebx
xor edi, edi
mov dword [ebp - 0x28], edi
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], esi
mov ecx, eax
call fcn.0049e6c0
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x49b2b4
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x49b2b4
push esi
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x30]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x49b2b4
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x5a74a4
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x49b2b4
push ecx
mov eax, dword [ebp - 0x1c]
shr eax, 2
push eax
mov ecx, dword [ebp - 0x34]
call fcn.0049e660
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.0049e6f0
push eax
call fcn.0051cc90
add esp, 0xc
mov edi, 1
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.0049b2da
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49b740
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c768
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5cc128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], edx
mov edi, ecx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call esi
test eax, eax
je 0x49b811
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call ebx
test eax, eax
jne 0x49b811
push edi
call esi
test eax, eax
je 0x49b811
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x49b7ab
push edi
call ebx
test eax, eax
jne 0x49b811
cmp dword [ebp - 0x10], 0
je 0x49b828
lea ecx, [ebp - 0x10]
call fcn.00407f00
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
lea eax, [ebp - 0x10]
push str._s._lu
push eax
call fcn.00423d10
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
call ebx
push 1
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call edi
push 4
push 0
push esi
call edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49b811
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
neg eax
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 0x49c6f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c958
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x5cc128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x1c], ebx
mov edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], 0
call fcn.00407e20
mov ecx, eax
test ecx, ecx
jne 0x49c73e
push 0x80004005
call fcn.004079f0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x49c7ec
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49c7ec
xor ecx, ecx
lea edx, [ebp - 0x58]
mov dword [ebp - 0x14], ecx
xor esi, esi
mov ecx, dword [ebp - 0x1c]
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov ecx, dword [ecx]
call fcn.0049b140
test eax, eax
je 0x49c7a6
mov eax, dword [ebp - 0x50]
mov esi, eax
movzx eax, ax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x4c]
mov ebx, eax
movzx eax, ax
shr esi, 0x10
shr ebx, 0x10
mov dword [ebp - 0x14], eax
jmp 0x49c7a8
xor eax, eax
push eax
push ebx
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push esi
push str._d._d._d._d
push eax
call fcn.00423d10
mov eax, dword [ebp + 8]
add esp, 0x18
test eax, eax
je 0x49c7c8
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x49c7d4
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x49c7dd
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x49c7e9
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov esi, dword [ebp - 0x18]
add esi, 0xfffffff0
push esi
call fcn.00406e20
add eax, 0x10
add esp, 4
mov dword [edi], eax
or eax, 0xffffffff
mov dword [ebp - 4], eax
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49c815
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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 0x49c830
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c98b
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x5cc128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x49c882
push 0x5a738c
push eax
call fcn.0051d36a
add esp, 8
test eax, eax
je 0x49c882
sub eax, dword [esi]
sar eax, 1
cmp eax, 1
je 0x49c8b1
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x49c9df
push 0x5a75a0
push eax
call fcn.0051d36a
add esp, 8
test eax, eax
je 0x49c9df
sub eax, dword [esi]
sar eax, 1
cmp eax, 1
jne 0x49c9df
push 2
lea eax, [ebp - 0x824]
mov ecx, esi
push eax
call fcn.00415580
lea eax, [ebp - 0x824]
mov dword [ebp - 4], 0
push eax
mov edx, str.._
lea ecx, [ebp - 0x820]
call fcn.0044c0f0
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x828], 0
push 0
push eax
call fcn.0051d210
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 1
push 0x20000
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x49c977
push 0
lea eax, [ebp - 0x828]
mov dword [ebp - 0x81c], 0
push eax
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x818], 0
push eax
push 0xc
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x80c], 0x800
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x49c9bf
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov edx, dword [ebp - 0x820]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49c999
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x824]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x49c9bb
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
jmp 0x49c9e1
mov eax, dword [ebp - 0x7f4]
xor esi, esi
cmp eax, 4
je 0x49c9d1
cmp eax, 7
jne 0x49c9d6
mov esi, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49c979
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f88bd
mov esp, ebp
pop ebp
ret
Function at 0x49cf40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57cacb
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x5cc128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0051d210
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x49d02a
mov ecx, ebx
call fcn.0048daf0
cmp word [ebp - 0x218], 0
lea esi, [ebp - 0x218]
je 0x49d025
nop dword [eax]
mov eax, esi
lea ecx, [ebp - 0x218]
sub eax, ecx
sar eax, 1
cmp eax, edi
jae 0x49d025
push esi
lea ecx, [ebp - 0x21c]
call fcn.00407900
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.0048db60
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax - 0xc]
lea edx, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lea esi, [esi + ecx*2]
add esi, 2
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49d01f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp word [esi], 0
jne 0x49cfc0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f88bd
mov esp, ebp
pop ebp
ret

Function at 0x49d050
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x49d07c
push 0x5a75a0
push eax
call fcn.0051d36a
add esp, 8
test eax, eax
je 0x49d07c
sub eax, dword [esi]
sar eax, 1
cmp eax, 1
je 0x49d0a3
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x49d10c
push 0x5a738c
push eax
call fcn.0051d36a
add esp, 8
test eax, eax
je 0x49d10c
sub eax, dword [esi]
sar eax, 1
cmp eax, 1
jne 0x49d10c
xorps xmm0, xmm0
lea eax, [ebp - 4]
push 3
push eax
mov ecx, esi
movq qword [ebp - 0xc], xmm0
movq qword [ebp - 0x14], xmm0
call fcn.00415580
push 0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov edx, dword [ebp - 4]
mov esi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x49d0ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x49d10c
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x49d102
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x49d850
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57cbcd
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x5cc128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x1a4], edi
push 0xc8
lea eax, [ebp - 0x1a0]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x1ac], edi
mov dword [ebp - 0x1a8], 0
call fcn.0051d210
push 0xc8
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.0051d210
add esp, 0x18
call fcn.00407e20
mov ecx, eax
test ecx, ecx
jne 0x49d8dc
push 0x80004005
call fcn.004079f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 3
lea eax, [ebp - 0x1a4]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
mov dword [ebp - 0x1a8], 1
call fcn.00415580
push 0xc8
lea eax, [ebp - 0xd8]
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x1a4]
push eax
push 0
push 0
push 0
push 0xc8
lea eax, [ebp - 0x1a0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x49d964
lea ecx, [ebp - 0xd8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49d946
sub ecx, edx
lea eax, [ebp - 0xd8]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00407740
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49d980
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f88bd
mov esp, ebp
pop ebp
ret
Function at 0x49f030
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57cd70
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5cc128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x18], esi
mov edx, str.PDFConverter_LY
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x10]
call fcn.00499d80
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x49f09c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp - 0x10]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test edi, edi
je 0x49f0f6
push edi
lea ecx, [ebp - 0x14]
call fcn.00407900
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.0049b940
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
add esp, 4
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49f0df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jmp 0x49f122
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00406e20
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add esp, 4
mov dword [esi], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49f12c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret