joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4246f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4cca78
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50a4c0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [str.SGPO]
xor edi, edi
or ebx, 0xffffffff
mov esi, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], str..pipe_sgppPopup2
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x38], edi
call fcn.00424690
cmp eax, ebx
jne 0x42477b
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x42476c
push eax
call fcn.004a588e
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x4247f5
lea edx, [esp + 0x18]
push edx
mov eax, esi
call fcn.00424160
mov ebp, eax
cmp ebp, 1
jne 0x4247d3
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x18]
call fcn.00424690
cmp eax, ebx
jne 0x4247b4
lea esi, [esp + 0x18]
mov dword [esp + 0x38], ebx
call fcn.00424820
mov eax, ebx
jmp 0x4247f5
lea eax, [esp + 0x18]
push eax
mov eax, esi
call fcn.00424160
lea esi, [esp + 0x18]
mov edi, eax
mov dword [esp + 0x38], ebx
call fcn.00424820
mov eax, edi
jmp 0x4247f5
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x4247e8
push eax
call fcn.004a588e
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004a4a25
add esp, 0x28
ret
Function at 0x425d80
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4c7b4b
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x32c], eax
push esi
push edi
mov eax, dword [0x50a4c0]
xor eax, esp
push eax
lea eax, [esp + 0x33c]
mov dword fs:[0], eax
xor eax, eax
push 0x206
mov edi, ecx
push eax
lea ecx, [esp + 0x13a]
push ecx
mov esi, edx
mov word [esp + 0x13c], ax
call fcn.004a7380
add esp, 0xc
lea edx, [esp + 0x130]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x425e2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.0042c990
mov esi, eax
push 0x4f0b5c
push 0x4f0ffc
mov edx, esi
call fcn.00430eb0
push edi
push 0x4f2bbc
mov edx, esi
call fcn.00430eb0
add esp, 0x10
xor al, al
jmp 0x425edb
lea eax, [esp + 0x130]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x425e37
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x12e], 0x5c
jne 0x425e79
lea eax, [esp + 0x130]
lea edx, [eax + 2]
jmp 0x425e60
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x425e60
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x12e], cx
lea ecx, [esp + 0xc]
call fcn.00430920
lea eax, [esp + 0x130]
lea edx, [esp + 0xc]
call fcn.00430b00
cmp byte [esp + 0x128], 0
lea eax, [esp + 0x18]
jne 0x425ea4
mov eax, dword [esp + 0x14]
add eax, 4
lea edx, [edi + 0x130]
call fcn.00430b00
cmp byte [esp + 0x128], 0
mov dword [esp + 0xc], vtable.t_str.0
jne 0x425ed9
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
cmp eax, edx
je 0x425ed9
push eax
call fcn.004a4a7f
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x33c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x32c]
xor ecx, esp
call fcn.004a4a25
add esp, 0x33c
ret
Function at 0x426a50
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
call edi
call edi
lea edx, [esi + 0x4d4]
call fcn.00430b00
cmp byte [esi + 0x5f0], 0
lea eax, [esi + 0x4e0]
jne 0x426a7e
mov eax, dword [esi + 0x4dc]
add esi, 0x5f8
add eax, 4
mov edx, esi
call fcn.00430b00
mov eax, esi
call fcn.00431200
pop edi
mov al, 1
pop esi
ret
Function at 0x428580
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c8af6
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
mov eax, dword [0x50a4c0]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], vtable.t_reg.0
call fcn.00430920
xor ebx, ebx
mov eax, str.MACHINE
lea edx, [esp + 0x28]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], reloc.OLEAUT32.dll_SysReAllocString
call fcn.00430b00
mov dword [esp + 0x160], ebx
mov byte [esp + 0x10], bl
mov dword [esp + 0xc], ebx
push 1
push ebx
push ebx
push 0x4eef0c
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x174], 1
call fcn.00431bf0
lea ecx, [esp + 0xc]
test al, al
jne 0x42866b
call fcn.0042c930
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], vtable.t_reg.0
cmp eax, ebx
je 0x42863d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], vtable.t_str.0
cmp byte [esp + 0x144], bl
jne 0x428667
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
cmp eax, ecx
je 0x428667
push eax
call fcn.004a4a7f
add esp, 4
mov al, 1
jmp 0x4286c3
push 4
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
mov eax, str.SpecialProcLog
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 4
call fcn.00431db0
lea ecx, [esp + 0xc]
test al, al
jne 0x4286ac
call fcn.0042c930
lea ecx, [esp + 0x1c]
call fcn.00431ba0
mov al, 1
jmp 0x4286c3
cmp dword [esp + 0x14], ebx
sete bl
call fcn.0042c930
lea ecx, [esp + 0x1c]
call fcn.00431ba0
mov al, bl
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.004a4a25
mov esp, ebp
pop ebp
ret

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

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
mov dword [edi], 0
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x42a17d
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42a195
shr eax, 4
not al
and al, 1
jne 0x42a1a6
mov ecx, esi
call fcn.0042a1e0
test al, al
je 0x42a1a6
or dword [edi], 0x4000
pop edi
pop esi
ret 4

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

Disassembly:
cmp byte [ecx + 0x11c], 0
lea eax, [ecx + 0xc]
jne 0x42a1bf
mov eax, dword [ecx + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42a1d1
xor al, al
ret
shr eax, 4
not eax
and eax, 1
ret
Function at 0x42ac70
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4c85c7
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x248], eax
push esi
push edi
mov eax, dword [0x50a4c0]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov edi, dword [esp + 0x268]
mov esi, ecx
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x42acc1
mov eax, dword [esi + 8]
push 2
add eax, 4
push 0x4f0410
push eax
call fcn.004a6e24
add esp, 0xc
test eax, eax
je 0x42aec6
mov ecx, esi
call fcn.0042a1e0
test al, al
je 0x42ad6f
cmp byte [esp + 0x26c], 0
je 0x42aec6
cmp byte [esi + 0x11c], 0
je 0x42ad07
add esi, 0xc
jmp 0x42ad0a
mov esi, dword [esi + 8]
lea ecx, [esp + 0xc]
call fcn.00430920
lea eax, [esi + 4]
lea edx, [esp + 0xc]
call fcn.00430b00
push 0x4f12d0
mov ecx, edi
mov dword [esp + 0x264], 1
call fcn.0042c990
mov edi, eax
lea eax, [esp + 0x10]
call fcn.0042cc40
cmp byte [esp + 0x128], 0
mov dword [esp + 0xc], vtable.t_str.0
jne 0x42ad68
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
cmp eax, ecx
je 0x42ad68
push eax
call fcn.004a4a7f
add esp, 4
xor al, al
jmp 0x42aec8
lea ecx, [esp + 0x130]
call fcn.00429ba0
lea edx, [esp + 0x130]
push edx
mov ecx, esi
mov dword [esp + 0x264], 2
call fcn.0042b500
test al, al
je 0x42adcf
lea eax, [esp + 0x130]
call fcn.00429f10
test al, al
jne 0x42adcf
push 0
push edi
lea ecx, [esp + 0x138]
call fcn.0042ac70
test al, al
jne 0x42adcf
lea ecx, [esp + 0x130]
call fcn.00430ad0
xor al, al
jmp 0x42aec8
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x42adde
mov eax, dword [esi + 8]
push 0
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42ae88
cmp byte [esi + 0x11c], al
je 0x42adff
add esi, 0xc
jmp 0x42ae02
mov esi, dword [esi + 8]
lea ecx, [esp + 0xc]
call fcn.00430920
lea eax, [esi + 4]
lea edx, [esp + 0xc]
call fcn.00430b00
push 0x4f12ec
mov ecx, edi
mov byte [esp + 0x264], 4
call fcn.0042caa0
mov edi, eax
lea eax, [esp + 0x10]
call fcn.0042cc40
cmp byte [esp + 0x128], 0
mov esi, vtable.t_str.0
mov dword [esp + 0xc], esi
jne 0x42ae5e
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
cmp eax, ecx
je 0x42ae5e
push eax
call fcn.004a4a7f
add esp, 4
cmp byte [esp + 0x24c], 0
mov dword [esp + 0x130], esi
jne 0x42ad68
mov eax, dword [esp + 0x138]
lea edx, [esp + 0x13c]
cmp eax, edx
jmp 0x42ad5d
mov eax, esi
call fcn.0042c120
mov eax, esi
call fcn.0042bfb0
cmp byte [esp + 0x24c], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x42aec6
mov eax, dword [esp + 0x138]
lea ecx, [esp + 0x13c]
cmp eax, ecx
je 0x42aec6
push eax
call fcn.004a4a7f
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.004a4a25
add esp, 0x258
ret 8
Function at 0x42c180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4cb9c6
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50a4c0]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x154]
mov edi, ecx
cmp byte [edi + 0x11c], 0
lea eax, [edi + 0xc]
jne 0x42c1c5
mov eax, dword [edi + 8]
lea esi, [eax + 4]
call fcn.00439510
mov ecx, edi
mov bl, al
call fcn.0042a1e0
test al, al
jne 0x42c301
cmp byte [edi + 0x11c], al
lea eax, [edi + 0xc]
jne 0x42c1ec
mov eax, dword [edi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42c208
shr eax, 4
not al
and al, 1
jne 0x42c28b
test ebp, ebp
je 0x42c213
mov dword [ebp], 1
cmp byte [edi + 0x11c], 0
je 0x42c221
add edi, 0xc
jmp 0x42c224
mov edi, dword [edi + 8]
lea ecx, [esp + 0x1c]
call fcn.00430920
lea eax, [edi + 4]
lea edx, [esp + 0x1c]
call fcn.00430b00
mov ecx, dword [esp + 0x150]
push 0x4f131c
mov dword [esp + 0x14c], 1
call fcn.0042c990
mov edi, eax
lea eax, [esp + 0x20]
call fcn.0042cc40
cmp byte [esp + 0x138], 0
mov dword [esp + 0x1c], vtable.t_str.0
jne 0x42c287
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x42c287
push eax
call fcn.004a4a7f
add esp, 4
xor al, al
jmp 0x42c303
test bl, bl
je 0x42c301
cmp byte [edi + 0x11c], 0
lea eax, [edi + 0xc]
jne 0x42c29e
mov eax, dword [edi + 8]
add eax, 4
push eax
call fcn.0042d350
test ebp, ebp
je 0x42c2ae
mov dword [ebp], eax
test eax, eax
je 0x42c301
cmp byte [edi + 0x11c], 0
je 0x42c2c0
add edi, 0xc
jmp 0x42c2c3
mov edi, dword [edi + 8]
mov ecx, dword [esp + 0x150]
push eax
push 0x4f1938
call fcn.00401000
mov ecx, eax
call fcn.0042cc00
mov esi, eax
push 0x4f1948
push 0x4f0ffc
mov edx, esi
call fcn.00430eb0
add esp, 8
add edi, 4
push edi
mov ecx, esi
call fcn.0042cc20
xor al, al
jmp 0x42c303
mov al, 1
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x138
ret 8
Function at 0x42de20
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4c7946
mov eax, dword fs:[0]
push eax
sub esp, 0x92c
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x928], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50a4c0]
xor eax, esp
push eax
lea eax, [esp + 0x940]
mov dword fs:[0], eax
mov edi, dword [esp + 0x950]
lea ecx, [esp + 0x18]
call fcn.00430920
mov eax, edi
lea edx, [esp + 0x18]
call fcn.00430b00
mov dword [esp + 0x948], 1
xor esi, esi
cmp byte [esp + 0x134], 0
lea eax, [esp + 0x24]
jne 0x42de95
mov eax, dword [esp + 0x20]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42dead
shr eax, 4
not al
and al, 1
jne 0x42dec3
lea ecx, [esp + 0x18]
call fcn.0042a1e0
test al, al
je 0x42df46
mov esi, 0x4000
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test esi, 0x4000
je 0x42e01a
push edi
lea edx, [esp + 0x140]
push str._s.
push edx
call fcn.00430330
add esp, 0xc
push 0x51e558
lea eax, [esp + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42e01a
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop
mov ecx, 0x4ef614
mov eax, 0x51e584
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42df74
test dx, dx
je 0x42df42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42df74
add eax, 4
add ecx, 4
test dx, dx
jne 0x42df20
xor eax, eax
jmp 0x42df79
cmp byte [esp + 0x134], 0
mov dword [esp + 0x18], vtable.t_str.0
jne 0x42df6d
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
cmp eax, ecx
je 0x42df6d
push eax
call fcn.004a4a7f
add esp, 4
xor eax, eax
jmp 0x42e04c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42e003
mov ecx, 0x4ef618
mov eax, 0x51e584
jmp 0x42df90
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42dfb6
test dx, dx
je 0x42dfb2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42dfb6
add eax, 4
add ecx, 4
test dx, dx
jne 0x42df90
xor eax, eax
jmp 0x42dfbb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42e003
push 0x51e584
push edi
lea ecx, [esp + 0x144]
push 0x4ef484
push ecx
call fcn.00430330
add esp, 0x10
test byte [0x51e558], 0x10
je 0x42dff5
lea edx, [esp + 0x13c]
push edx
call fcn.0042de20
add esp, 4
jmp 0x42e003
push 4
push 0
lea eax, [esp + 0x144]
push eax
call ebx
push 0x51e558
push esi
call ebp
test eax, eax
jne 0x42df10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 4
push 0
push edi
call ebx
cmp byte [esp + 0x134], 0
mov esi, eax
mov dword [esp + 0x18], vtable.t_str.0
jne 0x42e04a
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
cmp eax, ecx
je 0x42e04a
push eax
call fcn.004a4a7f
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x940]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x928]
xor ecx, esp
call fcn.004a4a25
add esp, 0x938
ret
Function at 0x42e130
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cc3ac
mov eax, dword fs:[0]
push eax
sub esp, 0xa60
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0xa58], eax
push ebx
push esi
push edi
mov eax, dword [0x50a4c0]
xor eax, esp
push eax
lea eax, [esp + 0xa70]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, edi
call fcn.0042e080
test al, al
je 0x42e1db
lea ecx, [esp + 0x14]
xor esi, esi
call fcn.00430920
mov eax, edi
lea edx, [esp + 0x14]
call fcn.00430b00
lea eax, [esp + 0x10]
mov dword [esp + 0xa78], 1
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], esi
call fcn.0042a160
test al, al
jne 0x42e1e2
mov dword [esp + 0x14], vtable.t_str.0
cmp byte [esp + 0x130], al
jne 0x42e1db
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x42e1db
push eax
call fcn.004a4a7f
add esp, 4
xor eax, eax
jmp 0x42e383
test dword [esp + 0x10], 0x4000
je 0x42e2fb
push edi
lea edx, [esp + 0x268]
push str._s.
push edx
call fcn.00430330
add esp, 0xc
push 0x51ea48
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42e2f0
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ebx, [ebx]
mov ecx, 0x4ef614
mov eax, 0x51ea74
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42e266
test dx, dx
je 0x42e262
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42e266
add eax, 4
add ecx, 4
test dx, dx
jne 0x42e240
xor eax, eax
jmp 0x42e26b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42e2d9
mov ecx, 0x4ef618
mov eax, 0x51ea74
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42e2a6
test dx, dx
je 0x42e2a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42e2a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x42e280
xor eax, eax
jmp 0x42e2ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42e2d9
push 0x51ea74
push edi
lea ecx, [esp + 0x26c]
push 0x4ef484
push ecx
call fcn.00430330
lea edx, [esp + 0x274]
push 1
push edx
call fcn.0042e130
add esp, 0x18
push 0x51ea48
push esi
call ebx
test eax, eax
jne 0x42e230
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
jmp 0x42e35a
lea ecx, [esp + 0x13c]
call fcn.00430920
mov eax, edi
lea edx, [esp + 0x13c]
call fcn.00430b00
push esi
lea ecx, [esp + 0x140]
mov byte [esp + 0xa7c], 3
call fcn.0042a700
cmp byte [esp + 0x258], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x42e35a
mov eax, dword [esp + 0x144]
lea ecx, [esp + 0x148]
cmp eax, ecx
je 0x42e35a
push eax
call fcn.004a4a7f
add esp, 4
cmp byte [esp + 0x130], 0
mov dword [esp + 0x14], vtable.t_str.0
jne 0x42e381
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
cmp eax, edx
je 0x42e381
push eax
call fcn.004a4a7f
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xa70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa58]
xor ecx, esp
call fcn.004a4a25
mov esp, ebp
pop ebp
ret
Function at 0x42e580
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
push edi
mov byte [esp + 0x13], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x42e5b7
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
push eax
call fcn.004a4b5c
mov ecx, dword [esp + 0x10]
add esp, 4
mov ebx, eax
push ebx
push ecx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42e639
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0x4f0024
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42e639
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + 0xa]
mov word [esi], cx
movzx edx, word [eax + 8]
mov word [esi + 2], dx
movzx ecx, word [eax + 0xe]
mov word [esi + 4], cx
movzx edx, word [eax + 0xc]
mov word [esi + 6], dx
test ebp, ebp
je 0x42e634
movzx ecx, word [eax + 0x12]
mov word [ebp], cx
movzx edx, word [eax + 0x10]
mov word [ebp + 2], dx
movzx ecx, word [eax + 0x16]
mov word [ebp + 4], cx
movzx edx, word [eax + 0x14]
mov word [ebp + 6], dx
mov byte [esp + 0xb], 1
test ebx, ebx
je 0x42e646
push ebx
call fcn.004a4a7f
add esp, 4
mov al, byte [esp + 0xb]
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x42e650
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
mov ebp, dword [esp + 0x224]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
push ecx
mov word [esp + 0x20], ax
call fcn.004a7380
add esp, 0xc
push 0x104
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x42e6b2
xor al, al
pop ebp
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004a4a25
add esp, 0x21c
ret
push esi
push edi
push 0x4f29ac
lea eax, [esp + 0x20]
push 0x104
push eax
call fcn.004a58e6
lea ecx, [esp + 0x18]
push ecx
lea esi, [esp + 0x24]
lea edi, [esp + 0x2c]
call fcn.0042e580
add esp, 0x10
pop edi
pop esi
test al, al
je 0x42e69a
movzx edx, word [esp + 0xc]
movzx eax, word [esp + 0xe]
movzx ecx, word [esp + 0x10]
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
xor edx, edx
mov eax, 2
mov dword [ebx], 0x114
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], eax
mov word [ebx + 0x14], dx
test ebp, ebp
je 0x42e73b
movzx ecx, word [esp + 4]
movzx edx, word [esp + 6]
mov dword [ebp + 4], ecx
movzx ecx, word [esp + 8]
mov dword [ebp + 8], edx
xor edx, edx
mov dword [ebp], 0x114
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], eax
mov word [ebp + 0x14], dx
mov ecx, dword [esp + 0x21c]
pop ebp
xor ecx, esp
mov al, 1
call fcn.004a4a25
add esp, 0x21c
ret
Function at 0x42ed10
Capabilities:
Get disk information

Disassembly:
sub esp, 0x220
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x228]
push ebp
mov ebp, dword [esp + 0x228]
cmp word [ebp], 0x5c
mov dword [esp + 4], eax
je 0x42ed68
push ebp
push 0x104
push eax
call fcn.004a575e
add esp, 0xc
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.004a4a25
add esp, 0x220
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov esi, eax
test esi, esi
jne 0x42ed94
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.004a4a25
add esp, 0x220
ret
lea eax, [esi + esi + 2]
push ebx
push eax
call fcn.004a4b5c
add esp, 4
mov ebx, eax
push ebx
lea ecx, [esi + 1]
push ecx
mov dword [esp + 0x1c], ebx
call edi
cmp eax, esi
ja 0x42eed8
test eax, eax
je 0x42eed8
mov edx, dword [0x4f2a48]
mov ax, word [0x4f2a4c]
xor ecx, ecx
push 0x206
mov dword [esp + 0x20], edx
push ecx
lea edx, [esp + 0x2e]
push edx
mov edi, ebx
mov word [esp + 0x2c], ax
mov word [esp + 0x30], cx
call fcn.004a7380
add esp, 0xc
xor bl, bl
mov ax, word [edi]
push 0x104
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
mov word [esp + 0x28], ax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x42ee51
lea eax, [esp + 0x24]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42ee20
sub eax, edx
sar eax, 1
mov esi, eax
cmp esi, 0x104
jae 0x42ee51
push esi
lea eax, [esp + 0x28]
push eax
push ebp
call fcn.004a669b
add esp, 0xc
test eax, eax
sete bl
test bl, bl
jne 0x42eea0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42ee56
sub eax, edx
sar eax, 1
je 0x42eec6
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42ee70
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 + 2], cx
lea edi, [edi + eax*2 + 2]
jne 0x42edf2
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004a4a7f
add esp, 4
movzx eax, bl
jmp 0x42eee3
mov eax, dword [esp + 0x10]
lea ecx, [ebp + esi*2]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x4f2a50
push 0x103
push 0x104
push eax
call fcn.004a56ec
add esp, 0x18
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004a4a7f
add esp, 4
movzx eax, bl
jmp 0x42eee3
push ebx
call fcn.004a4a7f
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x22c]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004a4a25
add esp, 0x220
ret