joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59de00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5b38f0
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 0x59ded2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.0059a7a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x59de61
mov edx, dword [eax]
jmp 0x59de63
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.0059c050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x59debf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x59debf
cmp esi, edi
je 0x59debf
mov ecx, esi
call fcn.00595a00
push esi
call fcn.005a31c8
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.0059a990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x59def5
mov eax, dword [eax]
jmp 0x59def7
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.00599640
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 0x59df25
mov eax, dword [eax]
jmp 0x59df27
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 0x59df76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x59df76
cmp esi, edi
je 0x59df76
mov eax, dword [esi]
cmp eax, edi
je 0x59df5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x59df6d
push eax
call fcn.005a31c8
add esp, 4
push esi
call fcn.005a31c8
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 0x59df90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x59dffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x59e035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.0059de00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x59dfc5
mov edi, 0x5b88b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x59e035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0059de00
add edi, 4
add esp, 0xc
cmp edi, 0x5b88c0
jb 0x59e000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x59e070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.005a4082
mov esi, eax
add esp, 8
test esi, esi
je 0x59e107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x59e102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.005a3946
add esp, 8
test eax, eax
je 0x59e0e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x59e0e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.005a3946
add esp, 8
test eax, eax
jne 0x59e0c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x59e102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x59ef10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5b39fb
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 0x59f002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.005a2dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x59f002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.0059a6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.005a320b
push 0x10
call fcn.005a31d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x59efc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.0058f1c0
jmp 0x59efc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.0059eb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x59eff0
mov ecx, edi
call fcn.0058f2c0
push edi
call fcn.005a31c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x59f021
inc ebx
cmp ebx, 0x20
jb 0x59ef3e
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 0x5a0250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b4808
push 0x5a4288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x5a0329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x5a0329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.005a31d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x5a0329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x5a0329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x5a032c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.005a0351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5a0d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x5a0d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x5a0d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x5a0d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5a0d94
push eax
push esi
call fcn.005a320b
add esp, 8
pop esi
ret 0x10

Function at 0x5a0da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5a0e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x5a0e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x5b9320
push ecx
mov dword [esp + 0x1c], 4
call fcn.005a2dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x5a0dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x5a0e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5a0ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x5a0eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x5b9320
push ecx
mov dword [esp + 0x1c], 4
call fcn.005a2dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x5a0eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x5a0e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x5a1000
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 0x5a1131
push esi
call fcn.005a4145
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.00593080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x5a1131
push 0
push ebp
call fcn.005933a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00593260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x5a108b
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.005932f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x5a1121
push 0x5b9918
push edi
call fcn.005a23f0
push eax
push ebx
push esi
call fcn.005a0f60
push 0x5b98f8
push edi
call fcn.005a23f0
push eax
push ebx
push esi
call fcn.005a0f60
push 0x5b98d8
push edi
call fcn.005a23f0
push eax
push ebx
push esi
call fcn.005a0f60
push 0x5b98c0
push edi
call fcn.005a23f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.005a0f60
push 0x5b98a0
push edi
call fcn.005a23f0
push eax
push ebx
push esi
call fcn.005a0f60
push 0x5b9888
push edi
call fcn.005a23f0
push eax
push ebx
push esi
call fcn.005a0f60
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 0x5a21b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.005a2140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.005a2140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.005a2140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.005a2140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x5a2bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5a2c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x5b487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5a2c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x5a2c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x404d42
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 4
pop edi
lea eax, [ebp - 4]
mov dword [ebp - 0xc], edi
push eax
push 0x2000000
push 0
push 0x401f30
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x404dab
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x401f24
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x404dab
cmp dword [ebp - 8], edi
jne 0x404dab
mov eax, dword [ebp - 0x10]
pop edi
leave
ret
xor eax, eax
jmp 0x404da8
Function at 0x4053cb
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, dword [ebp + 0xc]
mov eax, ecx
mov dword [ebp - 4], eax
mov esi, dword [esi]
neg esi
sbb esi, esi
and dword [edi], 0
add esi, 3
push esi
push ebx
push eax
call dword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
test eax, eax
je 0x41961e
xor eax, eax
inc eax
mov dword [edi], eax
pop edi
pop esi
pop ebx
leave
ret 8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
jne 0x419668
push 0x400023d4
mov edx, 0x400023d3
mov ecx, ebx
call fcn.00429c2e
sub eax, 0
je 0x419660
dec eax
sub eax, 1
jne 0x41964d
mov eax, dword [ebp + 8]
and dword [eax], 0
or esi, 1
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
jmp 0x405401
xor eax, eax
inc eax
jmp 0x405403
xor eax, eax
jmp 0x405403
Function at 0x407334
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x47c
mov eax, dword [0x42e0b4]
xor eax, esp
mov dword [esp + 0x478], eax
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
je 0x4074a9
mov eax, 0x104
mov byte [esp + 0x224], 1
push eax
xor esi, esi
mov dword [esp + 0x22c], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x224], esi
push esi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [esp + 0x24]
add esp, 0xc
cmp byte [esp + 0x224], al
sete al
dec eax
and eax, 0xfdc6
add eax, 0x208
push eax
call fcn.0040e3f0
test eax, eax
js 0x4074ad
mov eax, dword [esp + 0x220]
test eax, eax
je 0x41a863
lea ecx, [esp + 0x10]
push ecx
push eax
push dword [esp + 0x230]
mov ecx, edi
call fcn.00410060
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFullPathNameW]
mov ebx, eax
test ebx, ebx
je 0x407452
mov esi, dword [esp + 0x220]
test esi, esi
je 0x41a86c
push 4
push 0x402008
push esi
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x41a875
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41a8dd
xor edi, edi
cmp word [eax], di
je 0x41a8dd
lea eax, [esp + 0x14]
mov edx, esi
push eax
lea eax, [esp + 0x234]
mov ecx, fcn.004159d0
push eax
push edi
push 0x1037
call fcn.0041589a
mov ecx, dword [esp + 0x14]
movzx ebx, al
call fcn.00408b4d
test ebx, ebx
je 0x407483
xor esi, esi
mov eax, dword [esp + 0x220]
mov dword [esp + 0x220], esi
test eax, eax
je 0x40746c
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, ebx
mov ecx, dword [esp + 0x484]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00416b30
mov esp, ebp
pop ebp
ret
movzx eax, word [esi + 2]
push 0x5c
pop ecx
cmp ax, cx
je 0x41a8c5
cmp eax, 0x3a
jne 0x407450
cmp word [esi + 4], cx
jne 0x407450
cmp word [esi + 6], di
jne 0x407450
jmp 0x41a8c5
xor eax, eax
jmp 0x40746e
mov ebx, esi
jmp 0x407452
lea eax, [esp + 0x18]
jmp 0x4073c1
lea esi, [esp + 0x18]
jmp 0x4073f1
add esi, 8
push esi
push edi
mov dword [esp + 0x18], esi
call dword [sym.imp.msvcrt.dll_wcsstr]
mov dword [esp + 0x18], eax
pop ecx
pop ecx
test eax, eax
je 0x41a8ac
cmp eax, edi
jbe 0x41a8ac
movzx esi, word [eax]
xor ecx, ecx
push edi
mov word [eax], cx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
mov ebx, eax
mov eax, dword [esp + 0x10]
mov word [eax], si
jmp 0x41a8b5
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
mov ebx, eax
xor esi, esi
cmp ebx, 0xffffffff
jne 0x407452
jmp 0x4074ad
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x407450
xor ebx, ebx
inc ebx
jmp 0x407450
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
jmp 0x407450
Function at 0x407f47
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x42e0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x104
mov byte [ebp - 0x1c], 1
xor ebx, ebx
mov dword [ebp - 0x18], edi
push edi
lea eax, [ebp - 0x228]
mov dword [ebp - 0x20], ebx
push ebx
push eax
mov si, cx
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [ebp - 0x228]
add esp, 0xc
cmp byte [ebp - 0x1c], al
sete al
dec eax
and eax, 0x7ee3
add eax, edi
push eax
call fcn.0040e3f0
test eax, eax
js 0x408001
push 0x3a
pop eax
mov word [ebp - 0xe], ax
push 0x5c
pop eax
mov word [ebp - 0xc], ax
xor eax, eax
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x10]
push eax
mov word [ebp - 0x10], si
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x41b033
cmp eax, 2
je 0x408001
cmp eax, 5
je 0x408001
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x408024
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x230]
push ecx
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
test eax, eax
je 0x41b040
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], ebx
test eax, eax
je 0x408013
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416b30
leave
ret
lea eax, [ebp - 0x228]
jmp 0x407fe0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], ebx
test eax, eax
je 0x41b061
push eax
jmp 0x41b05a
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 5
jne 0x408001
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x20], ebx
test ecx, ecx
je 0x41b061
push ecx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
xor eax, eax
inc eax
jmp 0x408015
Function at 0x40802c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x42e0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov byte [ebp - 0x14], 1
mov esi, 0x104
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x10], esi
push eax
mov edi, ecx
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [ebp - 0x220]
add esp, 0xc
cmp byte [ebp - 0x14], al
sete al
dec eax
and eax, 0x7ee3
add eax, esi
push eax
call fcn.0040e3f0
test eax, eax
js 0x4081ae
push 0x24
pop ecx
call fcn.0040dcd0
mov esi, eax
test esi, esi
je 0x41b092
mov ecx, esi
mov dword [esi], edi
call fcn.00408f21
mov eax, dword [esi + 0x18]
mov ecx, 0xffce
mov ebx, dword [esi]
mov edi, dword [esi + 0xc]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], ebx
call fcn.0040dcd0
test eax, eax
je 0x41b092
push 0
mov edx, 0x7fe7
mov dword [0x4367a4], eax
mov ecx, eax
call fcn.00408e9e
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x41b069
mov edx, dword [ebp - 0x10]
push ebx
call fcn.00411cd5
test eax, eax
jne 0x4081ae
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x41b074
push 0x5c
pop eax
mov edx, eax
call fcn.004101f5
xor ecx, ecx
mov word [eax + 2], cx
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41b07f
push eax
mov ecx, 0x448bf0
call fcn.0040a641
test edi, edi
je 0x4081da
movzx eax, word [edi]
push 0x3a
pop edx
cmp ax, dx
je 0x4081da
push 0x5c
pop ecx
cmp ax, cx
jne 0x40817e
cmp edi, ebx
je 0x41b08a
mov eax, ebx
xor ecx, ecx
cmp word [eax], cx
je 0x408166
mov ecx, eax
add eax, 2
cmp eax, edi
jne 0x408156
movzx eax, word [ecx]
cmp ax, dx
je 0x41b08a
push 0x5c
pop ecx
cmp ax, cx
je 0x41b08a
movzx ebx, word [edi]
xor eax, eax
push dword [ebp - 0x224]
mov word [edi], ax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4081d6
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [0x4367a8], eax
mov word [edi], bx
cmp dword [0x4367a8], 0
je 0x4081da
xor esi, esi
inc esi
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x4081c5
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416b30
leave
ret
xor eax, eax
jmp 0x40819d
mov ecx, esi
call fcn.00408f21
mov eax, dword [ebp - 0x228]
mov dword [esi + 0x18], eax
jmp 0x4081b1
lea ecx, [ebp - 0x220]
jmp 0x4080eb
lea ecx, [ebp - 0x220]
jmp 0x408107
lea eax, [ebp - 0x220]
jmp 0x408122
add edi, 2
jmp 0x40817e
call fcn.00429922
push 1
push 0x440a30
call dword [sym.imp.msvcrt.dll_longjmp]
int3
Function at 0x408e9e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x42e0b4]
xor eax, esp
mov dword [esp + 0xc], eax
cmp word [ebp + 8], 0
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x408ede
push esi
push edi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryW]
xor eax, eax
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
call fcn.00416b30
mov esp, ebp
pop ebp
ret 4
push 0x3d
pop eax
push dword [ebp + 8]
mov word [esp + 0x10], ax
call dword [sym.imp.msvcrt.dll_towupper]
pop ecx
mov word [esp + 0xe], ax
lea ecx, [esp + 0xc]
push 0x3a
pop eax
mov word [esp + 0x10], ax
xor eax, eax
mov word [esp + 0x12], ax
call fcn.0040ec2e
test eax, eax
je 0x41b787
push eax
mov edx, edi
mov ecx, esi
call fcn.0040f3a0
jmp 0x408ec9
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_towupper]
pop ecx
mov word [esi], ax
push 0x3a
pop eax
mov word [esi + 2], ax
push 0x5c
pop eax
mov word [esi + 4], ax
xor eax, eax
mov word [esi + 6], ax
inc eax
jmp 0x408ecb