joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427bc5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 1
push 0
mov edi, ecx
mov dword [ebp - 0x14], edx
push 0
push edi
mov dword [ebp - 0xc], edi
mov ebx, 0x43d860
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, 0x1fff
cmp esi, eax
jb 0x427bfe
mov dword [ebp + 8], eax
mov esi, eax
push 0x44be6c
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
mov eax, dword [ebp + 0xc]
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
push 0x44be6c
mov esi, eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
test esi, esi
je 0x427d5c
mov esi, dword [ebp + 0xc]
mov edi, dword [esi]
test edi, edi
je 0x427d5c
cmp dword [0x435618], 0xfde9
mov ecx, edi
mov dword [ebp - 4], edi
jne 0x427c83
cmp dword [ebp - 8], 0
jne 0x427c83
cmp dword [ebp + 8], 3
jbe 0x427c83
push 3
push 0x403644
push ebx
call sub.msvcrt.dll_memcmp
add esp, 0xc
mov ecx, edi
test eax, eax
jne 0x427c83
add edi, 0xfffffffd
mov dword [ebp - 8], 3
mov ebx, 0x43d863
mov dword [esi], edi
mov dword [ebp - 4], edi
mov ecx, edi
mov dword [ebp - 0x10], ebx
test edi, edi
jle 0x427ccf
cmp ecx, 3
jl 0x427ca5
mov al, byte [ebx]
cmp al, 0xa
jne 0x427c9b
cmp byte [ebx + 1], 0xd
je 0x427cf6
cmp al, 0xd
jne 0x427ca5
cmp byte [ebx + 1], 0xa
je 0x427cf6
movzx eax, byte [ebx]
cmp byte [eax + 0x44bb58], 0
je 0x427cbe
cmp ecx, 1
je 0x427d16
push 2
pop eax
push 0xfffffffffffffffe
pop edx
jmp 0x427cc4
xor eax, eax
inc eax
or edx, 0xffffffff
add ecx, edx
add ebx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
jg 0x427c8a
push dword [ebp + 8]
mov ecx, dword [0x435618]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
call fcn.0040d13e
neg eax
sbb eax, eax
neg eax
push eax
push ecx
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
mov dword [esi], eax
jmp 0x427d5e
xor eax, eax
mov edi, ebx
sub edi, dword [ebp - 0x10]
push eax
push eax
mov byte [ebx + 2], al
add edi, 2
mov eax, dword [ebp - 8]
add eax, edi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
jmp 0x427ccf
push 0x44be6c
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
push 0
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebx + 1]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
push 0x44be6c
mov esi, eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
test esi, esi
je 0x427d56
cmp dword [ebp - 4], 0
je 0x427d56
mov esi, dword [ebp + 0xc]
inc edi
jmp 0x427ccf
mov eax, dword [ebp + 0xc]
and dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4288bb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push esi
push edi
mov edi, ecx
mov esi, edx
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x4288dc
call fcn.0040974c
movzx eax, word [eax]
test ax, ax
je 0x4288dc
cmp eax, 0xa
jne 0x428905
mov ecx, dword [edi + 0x3c]
push 0x3b
pop edx
call fcn.0040f66b
test eax, eax
je 0x428905
mov ecx, 0x402598
test esi, esi
jne 0x4288f9
mov ecx, 0x402794
mov edx, 0x4021a0
pop edi
pop esi
jmp fcn.00409548
mov ecx, dword [edi + 0x3c]
mov edx, 0x403648
push 5
call fcn.0040ab20
cmp word [eax], 0
je 0x42892c
mov ecx, 0x402598
test esi, esi
jne 0x428928
mov ecx, 0x402794
mov edx, eax
jmp 0x4288fe
mov edi, 0x402598
mov ecx, edi
push ebx
mov ebx, 0x402794
test esi, esi
jne 0x42893f
mov ecx, ebx
call fcn.0040d89b
test esi, esi
jne 0x42894a
mov edi, ebx
push eax
push edi
push 0x4036c8
call fcn.00408ec2
add esp, 0xc
xor eax, eax
pop ebx
pop edi
pop esi
ret

Function at 0x428d94
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4310b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x210], esi
push edi
test edx, edx
jne 0x428e9b
xor edi, edi
mov ebx, edi
mov dword [ebp - 0x214], edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
jne 0x428e88
cmp word [ebp - 0x20c], 0x2e
jne 0x428e4f
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
call fcn.0042986e
mov ebx, eax
test ebx, ebx
je 0x428e71
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x428e1a
sub ecx, edx
sar ecx, 1
je 0x428e42
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x4036c8
call fcn.00408ec2
add esp, 0xc
mov esi, eax
mov ecx, ebx
call fcn.0040cb50
mov ebx, dword [ebp - 0x214]
cmp dword [0x435614], edi
jne 0x428e80
inc ebx
mov dword [ebp - 0x214], ebx
test esi, esi
jne 0x428f23
mov esi, dword [ebp - 0x210]
jmp 0x428dc6
push edi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
call fcn.004128ff
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x428f25
cmp esi, 0x103
jne 0x428f23
mov esi, edi
jmp 0x428f23
mov ecx, edx
call fcn.0040974c
mov ecx, eax
call fcn.00409880
mov ebx, eax
test ebx, ebx
je 0x428e80
push 0x20
pop edx
mov ecx, ebx
call fcn.0040f211
test eax, eax
je 0x428ec2
xor ecx, ecx
mov word [eax], cx
mov edx, ebx
mov ecx, esi
call fcn.0042986e
mov edx, eax
mov dword [ebp - 0x210], edx
test edx, edx
je 0x428eff
mov ecx, edx
xor edi, edi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x428ede
sub ecx, esi
sar ecx, 1
je 0x428eff
push edx
push ebx
push 0x4036c8
call fcn.00408ec2
mov esi, eax
jmp 0x428f0e
xor esi, esi
push ebx
inc esi
push esi
push 0x400023a3
call fcn.004128ff
mov ecx, dword [ebp - 0x210]
add esp, 0xc
call fcn.0040cb50
mov ecx, ebx
call fcn.0040cb50
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417b90
leave
ret
Function at 0x429757
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4310b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov ebx, edi
test ecx, ecx
jne 0x42977b
xor eax, eax
jmp 0x429859
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push ecx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x429856
push 0x40
lea edx, [ebp - 0x48]
mov ecx, esi
call fcn.0042998a
test eax, eax
je 0x42984f
mov eax, 0x5a4d
cmp ax, word [ebp - 0x48]
jne 0x42984f
push edi
push edi
push dword [ebp - 0xc]
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x42984f
push 4
lea edx, [ebp - 0x60]
mov ecx, esi
call fcn.0042998a
test eax, eax
je 0x42984f
cmp dword [ebp - 0x60], 0x4550
jne 0x42984f
push 0x14
lea edx, [ebp - 0x5c]
mov ecx, esi
call fcn.0042998a
test eax, eax
je 0x42984f
mov ax, word [ebp - 0x4c]
test ax, ax
je 0x42984f
movzx eax, ax
push eax
push 8
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x42984f
movzx eax, word [ebp - 0x4c]
mov edx, edi
push eax
mov ecx, esi
call fcn.0042998a
test eax, eax
je 0x42983f
mov ecx, dword [ebp - 0x5c]
mov edx, edi
call fcn.00429957
test eax, eax
je 0x42983f
movzx ebx, word [eax]
push edi
push 0
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
push esi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov ax, bx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417b90
leave
ret
Function at 0x42986e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1c
push 0x430218
call fcn.004182a0
mov edi, ecx
mov dword [ebp - 0x2c], edi
xor ebx, ebx
mov esi, ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], ebx
test edx, edx
je 0x4298ae
cmp word [edx], bx
je 0x4298ae
lea eax, [ebp - 0x1c]
push eax
push 1
push ebx
push edx
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x4298ae
push eax
jmp 0x429918
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
cmp eax, 2
jne 0x4298d8
mov ecx, 0x4021a0
call fcn.00409880
mov esi, eax
mov dword [ebp - 0x20], esi
jmp 0x42991e
test eax, eax
jne 0x4298ab
mov ecx, dword [ebp - 0x24]
call fcn.0040cbc0
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
je 0x429916
lea eax, [ebp - 0x24]
push eax
push esi
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
je 0x42991e
mov ecx, esi
call fcn.0040cb50
xor esi, esi
mov dword [ebp - 0x20], esi
push ebx
jmp 0x429918
push 8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
call fcn.00429942
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x429aae
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push 0x18
push 0x4301f8
call fcn.004182a0
mov ebx, edx
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 8]
xor edi, edi
test eax, eax
je 0x429b5f
cmp word [eax], di
je 0x429b5f
push edi
lea eax, [ebp - 0x20]
push eax
push edi
push 2
push edi
push edi
push edi
push ebx
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x429b46
mov edx, dword [ebp + 8]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x429af9
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push edi
push edi
push dword [ebp - 0x20]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
push dword [ebp - 0x20]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
jne 0x429b46
push dword [ebp + 8]
push ebx
push 0x4036c8
call fcn.00408ec2
add esp, 0xc
jmp 0x429bc8
push edi
push esi
call fcn.004128ff
push ebx
push 1
push 0x235d
call fcn.004128ff
add esp, 0x14
jmp 0x429bc8
push edi
push edi
push ebx
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x429bcc
lea eax, [ebp - 0x20]
push eax
push 0x2000000
push edi
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x429b9f
cmp esi, 2
je 0x429bc8
push edi
push esi
call fcn.004128ff
pop ecx
pop ecx
jmp 0x429bc8
push 0x4021a0
push dword [ebp - 0x20]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x429bbf
push edi
push esi
call fcn.004128ff
pop ecx
pop ecx
push dword [ebp - 0x20]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
jne 0x429c0f
mov dword [ebp - 4], edi
call fcn.004183be
test al, al
je 0x429be6
push edi
push edi
push edi
push 0x8000000
call dword [sym.imp.ext_ms_win_cmd_util_l1_1_0.dll_DoSHChangeNotify]
mov dword [ebp - 4], 0xfffffffe
jmp 0x429c0f
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x429c29
Capabilities:
Delete registry value
Persist via default file association registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4310b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
mov dword [ebp - 0x218], ecx
push esi
mov esi, ebx
xor ecx, ecx
push edi
mov edi, dword [ebp + 8]
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, cx
jne 0x429c53
sub esi, edx
sar esi, 1
lea eax, [esi + 0x14]
mov esi, 0x104
cmp eax, esi
jbe 0x429c83
push ecx
push 0x400023db
call fcn.004128ff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x429e48
push ebx
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.0040dfe0
push 0x403f94
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.0040ebf0
lea eax, [ebp - 0x210]
push eax
push 0x2000000
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x429daa
test edi, edi
je 0x429d95
xor eax, eax
cmp word [edi], ax
je 0x429d95
lea esi, [ebp - 0x20c]
movzx eax, word [esi]
mov ecx, eax
mov dword [ebp - 0x214], ecx
test ax, ax
je 0x429d1d
mov edx, eax
movzx ecx, dx
mov dword [ebp - 0x214], ecx
cmp dx, 0x5c
je 0x429d1d
add esi, 2
movzx eax, word [esi]
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x214], ecx
test ax, ax
jne 0x429cf9
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
xor eax, eax
push eax
push 0x2000000
push eax
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x429d7a
mov eax, dword [ebp - 0x214]
test ax, ax
je 0x429dae
push dword [ebp - 0x210]
mov word [esi], ax
add esi, 2
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x429ce7
push ebx
push 1
push 0x400023a5
call fcn.004128ff
mov eax, dword [ebp - 0x21c]
add esp, 0xc
jmp 0x429e48
push ebx
push 1
push 0x400023a5
call fcn.004128ff
add esp, 0xc
jmp 0x429e46
test edi, edi
je 0x429e15
xor esi, esi
cmp word [edi], si
je 0x429e17
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x429dba
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 2
push esi
push 0x4021a0
push dword [ebp - 0x210]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x429dfa
push edi
push ebx
push 0x4036c8
call fcn.00408ec2
jmp 0x429e37
xor eax, eax
push eax
push esi
call fcn.004128ff
push ebx
push 1
push 0x235d
call fcn.004128ff
add esp, 0x14
jmp 0x429e3a
xor esi, esi
push esi
push dword [ebp - 0x210]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
je 0x429e3a
push ebx
push 1
push 0x400023a5
call fcn.004128ff
add esp, 0xc
push dword [ebp - 0x210]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417b90
leave
ret 4
Function at 0x42c098
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
push dword [esi]
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FlushFileBuffers]
mov ecx, dword [esi]
call fcn.0040fa2d
push ecx
push ecx
xor edx, edx
mov ecx, edi
call fcn.0041736a
mov ecx, eax
mov dword [esi], ecx
cmp ecx, 0xffffffff
je 0x42c162
mov ebx, dword [ebp + 8]
mov eax, ebx
push 2
push 0
neg eax
push eax
push ecx
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x42c158
cmp dword [ebp - 4], ebx
jne 0x42c158
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x42c158
mov ecx, dword [esi]
call fcn.0040fa2d
push ecx
xor edx, edx
push ecx
inc edx
mov ecx, edi
call fcn.0041736a
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x42c162
push 2
push 0
push 0
push eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
xor eax, eax
jmp 0x42c175
mov ecx, dword [esi]
call fcn.0040fa2d
or dword [esi], 0xffffffff
push edi
push 1
push 0x4000271f
call fcn.004128ff
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42ca1c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
push ecx
push ecx
push 2
mov dword [ebp - 8], edx
pop edx
call fcn.0041736a
mov esi, eax
cmp esi, 0xffffffff
jne 0x42ca55
push 0x6e
pop ecx
call fcn.0042d440
xor edx, edx
xor ecx, ecx
inc edx
call fcn.0042c182
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x42cb0a
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov ebx, edi
mov ecx, dword [edx + 0x1c]
test ecx, 0xc000
jne 0x42cab1
cmp ebx, 2
jbe 0x42caa8
mov eax, dword [ebp + 8]
mov edx, 0xfeff
cmp word [eax], dx
mov edx, dword [ebp - 8]
jne 0x42caa8
or ecx, 0x4000
jmp 0x42caae
or ecx, 0x8000
mov dword [edx + 0x1c], ecx
test ebx, ebx
je 0x42cadb
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
mov eax, 0x8002
and ecx, eax
sub ecx, eax
neg ecx
sbb ecx, ecx
inc ecx
call fcn.0042a943
mov edi, dword [ebp - 4]
mov dword [ebp - 0xc], eax
jmp 0x42cade
mov eax, dword [ebp - 0xc]
cmp edi, dword [ebp + 0xc]
je 0x42ca55
test eax, eax
jne 0x42cb01
push esi
sub edi, ebx
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push 1
push 0
push edi
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, esi
mov dword [0x439820], eax
call fcn.0040fa2d
push 0
push dword [0x439820]
call fcn.004128ff
pop ecx
pop ecx
jmp 0x42ca4b
Function at 0x42cfe3
Capabilities:
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4310b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x104
mov byte [ebp - 0x1c], 1
xor edi, edi
mov dword [ebp - 0x18], ebx
and dword [ebp - 0x20], edi
lea eax, [ebp - 0x228]
push ebx
push edi
push eax
mov esi, ecx
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, ebx
push eax
call fcn.0040d300
test eax, eax
jns 0x42d04a
mov eax, dword [ebp - 0x20]
and dword [ebp - 0x20], edi
jmp 0x42d146
push 0x3d
pop eax
mov word [ebp - 0xc], ax
lea ecx, [ebp - 0xc]
lea eax, [esi + 0x40]
mov word [ebp - 0xa], ax
push 0x3a
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
call fcn.0040d89b
mov esi, eax
test esi, esi
je 0x42d08c
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetCurrentDirectoryW]
test al, al
jne 0x42d123
push 1
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetErrorMode]
mov edi, eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x42d099
lea ecx, [ebp - 0x228]
mov ax, word [ebp - 0xa]
mov word [ecx], ax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x42d0ad
lea ecx, [ebp - 0x228]
mov ax, word [ebp - 8]
mov word [ecx + 2], ax
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x42d0c2
lea eax, [ebp - 0x228]
push 0x5c
pop ecx
mov word [eax + 4], cx
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x42d0d6
lea eax, [ebp - 0x228]
xor ecx, ecx
mov word [eax + 6], cx
mov edx, dword [ebp - 0x20]
test edx, edx
jne 0x42d0e9
lea edx, [ebp - 0x228]
lea ecx, [ebp - 0xc]
call fcn.00409548
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x42d0fe
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x42d118
push eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
call fcn.004128ff
pop ecx
pop ecx
test esi, esi
je 0x42d123
push edi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetErrorMode]
mov ecx, dword [0x44be60]
test ecx, ecx
jne 0x42d132
mov ecx, 0x44bc58
mov edx, dword [0x44be68]
push 0
call fcn.004083c5
mov eax, dword [ebp - 0x20]
and dword [ebp - 0x20], 0
test eax, eax
je 0x42d152
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417b90
leave
ret
Function at 0x42d574
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4310b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, 0x104
xor edi, edi
push eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], edi
push edi
inc ebx
mov dword [ebp - 0x18], edi
push eax
mov esi, ecx
mov byte [ebp - 0x14], bl
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, 0xfdc6
add eax, 0x208
push eax
call fcn.0040d300
test eax, eax
js 0x42d631
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42d5e8
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x224]
push ecx
push eax
push dword [ebp - 0x10]
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFullPathNameW]
test eax, eax
je 0x42d631
cmp eax, 0xffce
jbe 0x42d631
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42d612
lea eax, [ebp - 0x220]
xor ecx, ecx
mov word [eax + 6], cx
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42d625
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
cmp eax, 4
je 0x42d633
mov ebx, edi
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x18], edi
test ecx, ecx
je 0x42d645
push ecx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417b90
leave
ret

Function at 0x42d6bd
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push 0xd
push 1
lea eax, [ebp - 1]
mov byte [ebp - 1], 1
push eax
lea eax, [ebp - 0xc]
push eax
push ecx
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
xor ecx, ecx
test eax, eax
setns cl
mov eax, ecx
leave
ret