joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd61930
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0xde16ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x60], 0
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x60]
push ecx
push 0
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp + 8]
call fcn.00d58bb0
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00d2d370
add esp, 8
mov ecx, eax
call fcn.00bc4c40
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x65], al
lea ecx, [ebp - 0x3c]
call fcn.00bc4e90
lea ecx, [ebp - 0x20]
call fcn.00c80ca0
movzx ecx, byte [ebp - 0x65]
test ecx, ecx
je 0xd619b6
xor al, al
jmp 0xd619de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 2
je 0xd619d4
cmp dword [ebp - 0x64], 3
je 0xd619d4
mov dword [ebp - 0x70], 0
jmp 0xd619db
mov dword [ebp - 0x70], 1
mov al, byte [ebp - 0x70]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00d08a41
mov esp, ebp
pop ebp
ret 4

Function at 0xd619f0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0xde16ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x7c], ecx
push 1
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00d58bb0
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00d2d370
add esp, 8
mov ecx, eax
call fcn.00bc4c40
push eax
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp + 8]
call fcn.00d58bb0
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00d2d370
add esp, 8
mov ecx, eax
call fcn.00bc4c40
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x75], al
lea ecx, [ebp - 0x74]
call fcn.00bc4e90
lea ecx, [ebp - 0x58]
call fcn.00c80ca0
lea ecx, [ebp - 0x3c]
call fcn.00bc4e90
lea ecx, [ebp - 0x20]
call fcn.00c80ca0
mov al, byte [ebp - 0x75]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00d08a41
mov esp, ebp
pop ebp
ret 8
Function at 0xd61a90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0xde16ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x258], ecx
lea eax, [ebp - 0x250]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0xd61ac6
xor al, al
jmp 0xd61b56
call fcn.00d62470
movzx ecx, al
test ecx, ecx
jne 0xd61af3
push 0x105
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0xd61af3
xor al, al
jmp 0xd61b56
lea ecx, [ebp - 0x250]
push ecx
call fcn.00d62450
add esp, 4
push eax
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.00d58bb0
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00d2d370
add esp, 8
mov ecx, eax
call fcn.00bc4c40
push eax
call fcn.00d624b0
add esp, 0xc
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x251], al
lea ecx, [ebp - 0x3c]
call fcn.00bc4e90
lea ecx, [ebp - 0x20]
call fcn.00c80ca0
mov al, byte [ebp - 0x251]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00d08a41
mov esp, ebp
pop ebp
ret 4
Function at 0xd61d80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0xde16ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x274], ecx
movzx eax, byte [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0xfffffff9
add eax, 0x23
mov dword [ebp - 0x5c], eax
push 1
mov ecx, dword [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x270]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0xd61dca
xor al, al
jmp 0xd61f7a
call fcn.00d62470
movzx eax, al
test eax, eax
jne 0xd61dfa
push 0x105
lea ecx, [ebp - 0x270]
push ecx
lea edx, [ebp - 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0xd61dfa
xor al, al
jmp 0xd61f7a
push 0xffffffffffffffff
push 0xd8ea6c
push 0x105
lea eax, [ebp - 0x270]
push eax
call fcn.00d62570
add esp, 0x10
mov dword [ebp - 0x60], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x274]
add ecx, 4
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.00d2d370
add esp, 8
mov ecx, eax
call fcn.00bc4c40
push eax
mov eax, 0x105
sub eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x60]
lea edx, [ebp + ecx*2 - 0x270]
push edx
call fcn.00d62500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x20]
call fcn.00bc4e90
cmp dword [ebp - 0x60], 0
jbe 0xd61ea1
mov eax, dword [ebp - 0x60]
movzx ecx, word [ebp + eax*2 - 0x272]
cmp ecx, 0x5c
je 0xd61ea1
push 0xffffffffffffffff
push 0xd8eb0c
mov edx, 0x105
sub edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x60]
lea ecx, [ebp + eax*2 - 0x270]
push ecx
call fcn.00d62500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
push 0xffffffffffffffff
mov edx, dword [ebp - 0x274]
add edx, 0x20
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.00d2d370
add esp, 8
mov ecx, eax
call fcn.00bc4c40
push eax
mov ecx, 0x105
sub ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x60]
lea eax, [ebp + edx*2 - 0x270]
push eax
call fcn.00d62500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x3c]
call fcn.00bc4e90
cmp dword [ebp - 0x60], 0
jbe 0xd61f2a
mov ecx, dword [ebp - 0x60]
movzx edx, word [ebp + ecx*2 - 0x272]
cmp edx, 0x5c
je 0xd61f2a
push 0xffffffffffffffff
push 0xd8ebbc
mov eax, 0x105
sub eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x60]
lea edx, [ebp + ecx*2 - 0x270]
push edx
call fcn.00d62500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0x104
jb 0xd61f37
xor al, al
jmp 0xd61f7a
mov ecx, dword [ebp + 8]
call fcn.00d58b20
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.00d5a380
add esp, 8
push eax
mov ecx, dword [ebp + 8]
call fcn.00d58f80
lea ecx, [ebp - 0x58]
call fcn.00c80ca0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x274]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x274]
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00d08a41
mov esp, ebp
pop ebp
ret 8
Function at 0xd62000
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0xde16ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], ecx
cmp dword [ebp + 0xc], 0
jne 0xd62026
xor al, al
jmp 0xd6223c
lea ecx, [ebp - 0x218]
call fcn.00bc50e0
mov dword [ebp - 0x1fc], 0
push 4
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp + 8]
call fcn.00d59310
movzx ecx, al
test ecx, ecx
je 0xd620a1
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x20]
call fcn.00bc6550
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00d2d370
add esp, 8
push eax
lea ecx, [ebp - 0x218]
call fcn.00bcfd10
lea ecx, [ebp - 0x3c]
call fcn.00bc4e90
lea ecx, [ebp - 0x20]
call fcn.00c80ca0
lea ecx, [ebp - 0x218]
call fcn.00bc4c40
mov dword [ebp - 0x1fc], eax
jmp 0xd62108
push 0xd8ec5c
push 2
push 0
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
call fcn.00d58e60
mov ecx, eax
call fcn.00bcb350
push eax
call fcn.00bce3d0
add esp, 8
mov byte [ebp - 0x231], al
lea ecx, [ebp - 0x74]
call fcn.00c80ca0
lea ecx, [ebp - 0x58]
call fcn.00c80ca0
movzx ecx, byte [ebp - 0x231]
test ecx, ecx
je 0xd62108
mov byte [ebp - 0x232], 0
lea ecx, [ebp - 0x218]
call fcn.00bc4e90
mov al, byte [ebp - 0x232]
jmp 0xd6223c
mov edx, dword [ebp - 0x1fc]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x228]
and eax, 4
jne 0xd62131
mov ecx, dword [ebp - 0x228]
and ecx, 0
je 0xd6219b
xor edx, edx
je 0xd6217e
lea eax, [ebp - 0x224]
push eax
push str._remove_or_unknown_drive
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x138]
call fcn.00d34170
mov ecx, eax
call fcn.00d2f550
push eax
call fcn.00bc16a0
add esp, 8
push eax
call fcn.00bc16a0
add esp, 8
lea ecx, [ebp - 0x138]
call fcn.00d34580
jmp 0xd62131
mov byte [ebp - 0x233], 0
lea ecx, [ebp - 0x218]
call fcn.00bc4e90
mov al, byte [ebp - 0x233]
jmp 0xd6223c
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1fc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0xd621da
mov byte [ebp - 0x234], 1
lea ecx, [ebp - 0x218]
call fcn.00bc4e90
mov al, byte [ebp - 0x234]
jmp 0xd6223c
xor edx, edx
je 0xd62217
push str._GetDiskFreeSpaceEx_returns_error
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x1f8]
call fcn.00d34170
mov ecx, eax
call fcn.00d2f550
push eax
call fcn.00bc16a0
add esp, 8
lea ecx, [ebp - 0x1f8]
call fcn.00d34580
jmp 0xd621da
mov byte [ebp - 0x235], 0
lea ecx, [ebp - 0x218]
call fcn.00bc4e90
mov al, byte [ebp - 0x235]
jmp 0xd6223c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00d08a41
mov esp, ebp
pop ebp
ret 8
Function at 0xd62250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0xde16ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x154], ecx
lea ecx, [ebp - 0x140]
call fcn.00d589b0
mov dword [ebp - 0x148], 0
push 0
lea ecx, [ebp - 0x144]
call fcn.00d4b8e0
lea ecx, [ebp - 0x144]
call fcn.00d2da50
push eax
mov eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
jne 0xd62328
xor ecx, ecx
je 0xd622fb
push str.::GetCurrentDirectory___failed
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 4
push 0x1c0
push str.P:p_agentshpam2.eem_recipes201152726_base_branchesinputtools_win_release_branchgoogleclient_third_partylibjingle_files_talk_basewin32filesystem.cc
lea ecx, [ebp - 0xc8]
call fcn.00d34170
mov ecx, eax
call fcn.00d2f550
push eax
call fcn.00bc16a0
add esp, 8
lea ecx, [ebp - 0xc8]
call fcn.00d34580
jmp 0xd622b3
lea edx, [ebp - 0x140]
push edx
mov ecx, dword [ebp + 8]
call fcn.00d62400
lea ecx, [ebp - 0x144]
call fcn.00d624d0
lea ecx, [ebp - 0x140]
call fcn.00d4f370
mov eax, dword [ebp + 8]
jmp 0xd623e2
mov eax, dword [ebp - 0x14c]
cmp eax, dword [ebp - 0x148]
jg 0xd62338
jmp 0xd62388
xor ecx, ecx
mov eax, dword [ebp - 0x14c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00d07a7c
add esp, 4
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
push eax
lea ecx, [ebp - 0x144]
call fcn.00d2da10
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x148], ecx
mov edx, 1
test edx, edx
jne 0xd6228b
lea ecx, [ebp - 0x144]
call fcn.00d2da50
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.00d5a380
add esp, 8
push eax
lea ecx, [ebp - 0x140]
call fcn.00d58f80
lea ecx, [ebp - 0xe4]
call fcn.00c80ca0
lea ecx, [ebp - 0x140]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00d62400
lea ecx, [ebp - 0x144]
call fcn.00d624d0
lea ecx, [ebp - 0x140]
call fcn.00d4f370
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00d08a41
mov esp, ebp
pop ebp
ret 4

Function at 0xd63a45
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0xd63a6c
call fcn.00d0aeef
mov dword [eax], esi
call fcn.00d0aedc
push 0x16
pop esi
mov dword [eax], esi
call fcn.00d08cab
mov eax, esi
jmp 0xd63ac1
test dword [ebp + 0xc], 0xfffffff9
jne 0xd63a52
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0xd63a99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00d0af02
pop ecx
call fcn.00d0aedc
mov eax, dword [eax]
jmp 0xd63ac1
test al, 0x10
jne 0xd63abf
test al, 1
je 0xd63abf
test byte [ebp + 0xc], 2
je 0xd63abf
call fcn.00d0aeef
mov dword [eax], 5
call fcn.00d0aedc
mov dword [eax], 0xd
jmp 0xd63a90
xor eax, eax
pop esi
pop ebp
ret
Function at 0x875080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x8750c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x89a458
push ecx
call fcn.008851e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.008851e1
add esp, 0x10
jmp 0x8750d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0088520b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00884dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00875050
mov eax, dword [0x89f728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x87513b
push esi
call fcn.00874fb0
add esp, 4
mov dword [0x89f728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x87514c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00874ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x878440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x8784b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x87848e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x878471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x87847e
add edx, ecx
cmp ebx, edx
jb 0x87848a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x878467
xor ecx, ecx
jmp 0x8784a2
test eax, eax
jne 0x878492
xor ecx, ecx
jmp 0x8784a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.008783c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x8788f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x878921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x878946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x87896e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x878993
push ecx
push esi
call fcn.008784c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x87fe00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x8958f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x87fed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.0087c7a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x87fe61
mov edx, dword [eax]
jmp 0x87fe63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.0087e050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x87febf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x87febf
cmp esi, edi
je 0x87febf
mov ecx, esi
call fcn.00877a00
push esi
call fcn.008851c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.0087c990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x87fef5
mov eax, dword [eax]
jmp 0x87fef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.0087b640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x87ff25
mov eax, dword [eax]
jmp 0x87ff27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0x87ff76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x87ff76
cmp esi, edi
je 0x87ff76
mov eax, dword [esi]
cmp eax, edi
je 0x87ff5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x87ff6d
push eax
call fcn.008851c8
add esp, 4
push esi
call fcn.008851c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x880f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x8959fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x881002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00884dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x881002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.0087c6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0088520b
push 0x10
call fcn.008851d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x880fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.008711c0
jmp 0x880fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00880b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x880ff0
mov ecx, edi
call fcn.008712c0
push edi
call fcn.008851c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x881021
inc ebx
cmp ebx, 0x20
jb 0x880f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x883000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x883131
push esi
call fcn.00886145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00875080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x883131
push 0
push ebp
call fcn.008753a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00875260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x88308b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.008752f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x883121
push 0x89b918
push edi
call fcn.008843f0
push eax
push ebx
push esi
call fcn.00882f60
push 0x89b8f8
push edi
call fcn.008843f0
push eax
push ebx
push esi
call fcn.00882f60
push 0x89b8d8
push edi
call fcn.008843f0
push eax
push ebx
push esi
call fcn.00882f60
push 0x89b8c0
push edi
call fcn.008843f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00882f60
push 0x89b8a0
push edi
call fcn.008843f0
push eax
push ebx
push esi
call fcn.00882f60
push 0x89b888
push edi
call fcn.008843f0
push eax
push ebx
push esi
call fcn.00882f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x401904
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x46d0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi], edi
je 0x401983
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], edi
je 0x401983
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], edi
je 0x401983
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401983
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0042c1a0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, esi
push 0x104
push eax
push dword [esi + 4]
call fcn.00401bd4
test eax, eax
je 0x401983
push dword [esi + 0xc]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004019fc
neg eax
sbb eax, eax
inc eax
jmp 0x401985
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00417f15
leave
ret

Function at 0x401bd4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.00418040
mov eax, dword [0x46d0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x401cb2
test edi, edi
je 0x401cb2
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x104
jl 0x401cb2
push 0x4000
lea eax, [ebp - 0x4004]
push 0
push eax
call fcn.0042c1a0
add esp, 0xc
lea eax, [ebp - 0x400c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x401cb2
cmp eax, 0x3fff
ja 0x401cb2
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x401cb2
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x4008]
push eax
push 0x454380
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401cb2
push ebx
push 0
push edi
call fcn.0042c1a0
mov ecx, dword [ebp - 0x4008]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x4543b8
lea eax, [ebx - 1]
push eax
push edi
call fcn.004020cc
xor eax, eax
add esp, 0x28
inc eax
jmp 0x401cb4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417f15
leave
ret 0xc