joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408db7
Capabilities:
Delete directory

Disassembly:
mov eax, 0x4798f0
call fcn.0045c5c4
sub esp, 0xc
push esi
mov eax, dword [0x4a94a4]
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea esi, [ecx + 4]
push 0x5c
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00469b19
cmp eax, 0xffffffff
je 0x408e1b
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00469aa1
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0046c575
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0046c488
push 0x49f918
lea ecx, [ebp - 0x14]
call fcn.00469ed4
push 0x5c
lea ecx, [ebp + 8]
call fcn.00469b19
cmp eax, 0xffffffff
pop esi
je 0x408e7b
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
call fcn.00469aa1
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0046c575
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0046c488
push 0
push dword [ebp - 0x10]
call fcn.0045de34
pop ecx
test eax, eax
pop ecx
jne 0x408e7b
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0045cd55
pop ecx
test eax, eax
pop ecx
je 0x408e7b
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0046c488
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0046c488
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0046c488
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4

Function at 0x408ead
Capabilities:
Delete directory

Disassembly:
mov eax, 0x479924
call fcn.0045c5c4
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [0x4a94a4]
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x14]
push eax
push ecx
lea eax, [esi + 4]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0046c1fd
mov ecx, esi
call fcn.00408a10
lea eax, [ebp + 8]
lea ecx, [ebp - 0x10]
push eax
call fcn.0046c575
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x408f3c
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00469aa1
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0046c575
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0046c488
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0045cd55
pop ecx
test eax, eax
pop ecx
je 0x408f41
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x10]
push 0x5c
call fcn.00469b19
cmp eax, 0xffffffff
jne 0x408f05
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0046c488
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0046c488
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0046c488
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0046c488
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x409043
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x479958
call fcn.0045c5c4
push ebx
push esi
push edi
mov esi, ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [edi + 0x2c]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0046c6d1
push eax
lea ecx, [esi + 4]
mov byte [ebp - 4], 1
call fcn.0046c575
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.0046c488
mov eax, dword [edi]
push 1
push ebx
push ebx
mov dword [esi + 8], eax
push dword [edi + 0x1c]
call fcn.0045c9e0
mov ecx, dword [edi + 0x20]
add eax, ecx
lea ecx, [ebp + 8]
adc edx, ebx
and dword [esi + 0x30], ebx
and dword [esi + 0x2c], ebx
mov dword [esi + 0x10], eax
or ebx, 0xffffffff
lea eax, [edi + 4]
push ebx
push eax
mov dword [esi + 0x14], edx
call fcn.00469567
mov eax, dword [ebp + 8]
push ebx
mov dword [esi + 0x18], eax
lea eax, [edi + 0xc]
push eax
lea ecx, [ebp + 8]
call fcn.00469567
mov eax, dword [ebp + 8]
add edi, 0x14
push ebx
push edi
lea ecx, [ebp + 8]
mov dword [esi + 0x1c], eax
call fcn.00469567
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
mov dword [ebp - 4], ebx
call fcn.0046c488
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x40a7c9
Capabilities:
Check os version

Disassembly:
mov eax, 0x479c97
call fcn.0045c5c4
sub esp, 0x98
mov eax, dword [0x4a94a4]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ebx, [esi + 0x30]
mov dword [ebx], eax
xor edi, edi
xor eax, eax
inc edi
push str.Unknown_OS
mov ecx, ebx
mov dword [ebp - 4], eax
mov dword [esi], vtable.CIROSVersionInfo.0
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
call fcn.0046c5c5
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40a914
mov ecx, dword [ebp - 0x94]
mov eax, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x9c]
mov dword [esi + 0x20], ecx
dec ecx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], edx
je 0x40a8d3
dec ecx
jne 0x40a917
mov ecx, dword [ebp - 0x98]
cmp eax, 3
mov dword [esi + 0x2c], ecx
jne 0x40a887
push str.Windows_NT_3
mov ecx, ebx
call fcn.0046c5c5
mov dword [esi + 0x10], edi
cmp dword [esi + 0x24], 4
jne 0x40a89c
push str.Windows_NT_4
mov ecx, ebx
call fcn.0046c5c5
mov dword [esi + 0x14], edi
cmp dword [esi + 0x24], 5
jne 0x40a917
cmp dword [esi + 0x28], 0
jne 0x40a8b7
push str.Windows_2000
mov ecx, ebx
call fcn.0046c5c5
mov dword [esi + 0x18], edi
cmp dword [esi + 0x24], 5
jne 0x40a917
cmp dword [esi + 0x28], edi
jne 0x40a917
push str.Windows_XP
mov ecx, ebx
call fcn.0046c5c5
mov dword [esi + 0x1c], edi
jmp 0x40a917
movzx ecx, word [ebp - 0x98]
cmp eax, 4
mov dword [esi + 0x2c], ecx
ja 0x40a8f4
jne 0x40a8e8
test edx, edx
ja 0x40a8f4
mov dword [esi + 4], edi
push str.Windows_95
mov ecx, ebx
jmp 0x40a903
cmp edx, 0xa
mov ecx, ebx
ja 0x40a90a
mov dword [esi + 8], edi
push str.Windows_98
call fcn.0046c5c5
jmp 0x40a917
mov dword [esi + 0xc], edi
push str.Windows_ME
jmp 0x40a903
mov dword [esi + 4], edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x414b5e
Capabilities:
Get disk information

Disassembly:
mov eax, 0x47b3dc
call fcn.0045c5c4
sub esp, 0x18
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [esi + 0x19c]
cmp byte [eax + 0x1e8], bl
jne 0x414b96
push ebx
push 0x594
call fcn.0046cfcd
mov ecx, eax
call fcn.0046d1be
jmp 0x414cb5
mov eax, dword [0x4a94a4]
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0x147
push dword [esi + 0x78]
mov byte [ebp - 4], 1
call edi
cmp eax, 0xffffffff
je 0x414c9d
push ebx
push eax
push 0x150
push dword [esi + 0x78]
call edi
push eax
lea ecx, [ebp - 0x10]
call fcn.0046c5c5
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
call edi
cmp eax, 3
je 0x414c0c
push dword [ebp - 0x10]
call edi
cmp eax, 4
je 0x414c0c
push ebx
push 0x594
mov ecx, esi
call fcn.0046cfcd
mov ecx, eax
call fcn.0046d1be
jmp 0x414c9d
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x10]
call fcn.0041fae6
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x24]
push eax
call fcn.0041f03d
add esp, 0x14
mov edi, eax
mov eax, dword [esi + 0x19c]
mov ecx, dword [esi + 0x1a8]
mov byte [ebp - 4], 2
push dword [eax + 0x1b8]
lea eax, [ebp - 0x18]
push eax
call fcn.0044ee28
push dword [edi]
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x14]
push 0x4a03b0
push eax
call fcn.00469ec1
add esp, 0x10
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0046c488
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0046c488
mov edi, 0x594
push 1
push edi
mov ecx, esi
call fcn.0046cfcd
mov ecx, eax
call fcn.0046d1be
push dword [ebp - 0x14]
mov ecx, esi
push edi
call fcn.0046d025
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0046c488
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0046c488
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x417cd1
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and byte [ebp - 0x18], 0
and byte [ebp - 0x17], 0
and byte [ebp - 0x16], 0
and byte [ebp - 0x15], 0
and byte [ebp - 0x14], 0
lea eax, [ebp - 8]
push edi
push eax
push 1
push 8
mov byte [ebp - 0x13], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x417d36
call edi
cmp eax, 0x3f0
jne 0x417d2f
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x417d36
xor eax, eax
jmp 0x417dfc
push ebx
push esi
mov esi, 0x1000
push esi
call fcn.0045c821
mov ebx, eax
pop ecx
lea eax, [ebp - 0xc]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push ebx
push 2
push dword [ebp - 8]
call esi
mov dword [ebp - 4], eax
call edi
cmp dword [ebp - 4], 0
jne 0x417d8a
cmp eax, 0x7a
jne 0x417d8a
push dword [ebp - 0xc]
push ebx
call fcn.0045dfea
pop ecx
mov ebx, eax
pop ecx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push ebx
push 2
push dword [ebp - 8]
call esi
mov dword [ebp - 4], eax
call edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp dword [ebp - 4], esi
je 0x417df1
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
lea eax, [ebp - 0x18]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x417df1
cmp dword [ebx], esi
mov dword [ebp - 4], esi
jbe 0x417de5
lea edi, [ebx + 4]
push dword [edi]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x417dde
inc esi
add edi, 8
cmp esi, dword [ebx]
jb 0x417dc5
jmp 0x417de5
mov dword [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov esi, dword [ebp - 4]
push ebx
call fcn.0045c738
pop ecx
mov eax, esi
pop esi
pop ebx
pop edi
leave
ret
Function at 0x41be86
Capabilities:
Create directory
Set current directory

Disassembly:
mov eax, 0x47c244
call fcn.0045c5c4
sub esp, 0x10c
push ebx
push esi
push edi
xor ebx, ebx
push 0x5c
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
call fcn.00469f27
mov esi, 0x49f918
lea ecx, [ebp + 8]
push esi
call fcn.0046c818
mov eax, dword [ebp + 8]
push 0x104
push ebx
mov edi, dword [eax - 8]
lea eax, [ebp - 0x118]
push eax
call fcn.0045c6e0
add esp, 0xc
cmp edi, 2
jle 0x41bfd2
mov eax, dword [ebp + 8]
cmp byte [eax + 1], 0x3a
jne 0x41bf3f
xor esi, esi
cmp edi, ebx
jle 0x41bfd5
cmp dword [ebp - 0x10], ebx
je 0x41bfd5
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x5c
mov byte [ebp + esi - 0x118], al
jne 0x41bf35
cmp esi, 2
je 0x41bf35
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x41bf35
lea eax, [ebp - 0x118]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x10], eax
inc esi
cmp esi, edi
jl 0x41bef4
jmp 0x41bfd5
lea eax, [ebp - 0x14]
push 2
push eax
lea ecx, [ebp + 8]
call fcn.00469aa1
mov eax, dword [eax]
push 0x49fb8c
push eax
call fcn.0045d01b
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb bl, bl
lea ecx, [ebp - 0x14]
inc bl
call fcn.0046c488
test bl, bl
je 0x41bfcc
push 2
push esi
lea ecx, [ebp + 8]
call fcn.00469b49
xor esi, esi
mov ebx, eax
test edi, edi
jle 0x41bfd5
cmp dword [ebp - 0x10], 0
je 0x41bfd5
cmp ebx, 0xffffffff
je 0x41bfd5
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x5c
mov byte [ebp + esi - 0x118], al
jne 0x41bfc5
cmp esi, ebx
jle 0x41bfc5
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x41bfc5
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x10], eax
inc esi
cmp esi, edi
jl 0x41bf83
jmp 0x41bfd5
and dword [ebp - 0x10], 0
jmp 0x41bfd5
mov dword [ebp - 0x10], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0046c488
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41bff3
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x47c268
call fcn.0045c5c4
mov eax, 0x9550
call fcn.0045c960
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x4a94a4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
cmp dword [eax - 8], ebx
jne 0x41c029
xor esi, esi
jmp 0x41c16e
push 4
push eax
call fcn.0045de34
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x41c022
mov eax, dword [ebp + 0x10]
cmp dword [eax - 8], ebx
je 0x41c022
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x41c022
push edi
call fcn.0046ab69
push dword [ebp + 0xc]
lea eax, [ebp - 0x955c]
push 0x7d00
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov edi, 0xc8
mov dword [ebp - 0x24], eax
push edi
lea eax, [ebp - 0xec]
push ebx
push eax
call fcn.0045c6e0
mov esi, 0x1770
lea eax, [ebp - 0x185c]
push esi
push ebx
push eax
call fcn.0045c6e0
add esp, 0x18
xor ecx, ecx
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ecx
jle 0x41c16a
mov al, byte [ebp + ecx - 0x955c]
cmp al, bl
jne 0x41c133
cmp ecx, ebx
jle 0x41c15d
cmp byte [ebp + ecx - 0x955d], bl
je 0x41c15d
lea eax, [ebp - 0xec]
lea ecx, [ebp - 0x10]
push eax
call fcn.0046c5c5
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0046ac90
lea eax, [ebp - 0x185c]
lea ecx, [ebp - 0x10]
push eax
call fcn.0046c5c5
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0046ac90
push edi
lea eax, [ebp - 0xec]
push ebx
push eax
call fcn.0045c6e0
push esi
lea eax, [ebp - 0x185c]
push ebx
push eax
call fcn.0045c6e0
mov ecx, dword [ebp - 0x20]
add esp, 0x18
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
jmp 0x41c15d
cmp al, 0x3d
jne 0x41c13c
mov dword [ebp - 0x1c], ebx
jmp 0x41c15d
cmp dword [ebp - 0x1c], ebx
je 0x41c150
mov edx, dword [ebp - 0x14]
inc dword [ebp - 0x14]
mov byte [ebp + edx - 0xec], al
jmp 0x41c15d
mov edx, dword [ebp - 0x18]
inc dword [ebp - 0x18]
mov byte [ebp + edx - 0x185c], al
inc ecx
cmp ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
jl 0x41c0ac
xor esi, esi
pop edi
inc esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0046c488
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.0046c488
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0046c488
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41c1a1
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x47c284
call fcn.0045c5c4
mov eax, 0x7dd0
call fcn.0045c960
push ebx
push esi
mov eax, dword [0x4a94a4]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
cmp dword [eax - 8], ebx
jne 0x41c1d7
xor esi, esi
jmp 0x41c284
push 4
push eax
call fcn.0045de34
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x41c1d0
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x41c1d0
push edi
call fcn.0046ab69
push dword [ebp + 0xc]
lea eax, [ebp - 0x7ddc]
push 0x7d00
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov esi, 0xc8
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0xdc]
push ebx
push eax
call fcn.0045c6e0
add esp, 0xc
xor ecx, ecx
xor edi, edi
cmp dword [ebp - 0x14], ebx
jle 0x41c280
mov al, byte [ebp + edi - 0x7ddc]
cmp al, bl
jne 0x41c272
cmp edi, ebx
jle 0x41c27a
cmp byte [ebp + edi - 0x7ddd], bl
je 0x41c27a
lea eax, [ebp - 0xdc]
lea ecx, [ebp - 0x10]
push eax
call fcn.0046c5c5
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0046ac90
push esi
lea eax, [ebp - 0xdc]
push ebx
push eax
call fcn.0045c6e0
add esp, 0xc
xor ecx, ecx
jmp 0x41c27a
mov byte [ebp + ecx - 0xdc], al
inc ecx
inc edi
cmp edi, dword [ebp - 0x14]
jl 0x41c22a
xor esi, esi
pop edi
inc esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0046c488
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0046c488
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41c434
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x4a94a4]
push ebx
push esi
push edi
push 0x44
mov dword [ebp - 4], eax
pop edi
xor esi, esi
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.0045c6e0
push 0x10
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0045c6e0
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x74], edi
xor edi, edi
add esp, 0x18
inc edi
sub eax, esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x40], esi
mov word [ebp - 0x42], si
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x48], edi
je 0x41c49a
dec eax
je 0x41c492
dec eax
jne 0x41c49e
mov word [ebp - 0x44], 3
jmp 0x41c49e
mov word [ebp - 0x44], 6
jmp 0x41c49e
mov word [ebp - 0x44], di
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
call ebx
test eax, eax
lea eax, [ebp - 0x268]
jne 0x41c4bf
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x41c4d4
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.__s___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push dword [ebp + 0x10]
call ebx
test eax, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x268]
jne 0x41c4ee
push esi
jmp 0x41c4f1
push dword [ebp + 0x10]
push esi
push 0x20
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x41c568
cmp dword [ebp + 0x14], esi
je 0x41c55f
mov ebx, 0xff
lea eax, [ebp - 0x14]
push ebx
push 0xffffffffffffffff
push esi
push eax
push edi
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x41c558
cmp dword [ebp - 0x2c], 0xf
jne 0x41c53b
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push esi
push esi
lea eax, [ebp - 0x30]
push esi
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jg 0x41c521
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push esi
push eax
push 1
call edi
cmp eax, 1
je 0x41c53b
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 4]
call fcn.0046c488
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push esi
xor esi, esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41cf01
test al, 1
je 0x41cf01
inc esi
lea ecx, [esp + 8]
call fcn.0046c488
mov eax, esi
pop esi
ret
Function at 0x41d36e
Capabilities:
Get disk information
Get file system object information

Disassembly:
sub esp, 0x160
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x4c], eax
je 0x41d388
or eax, 0xffffffff
jmp 0x41d459
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push eax
push eax
call ebx
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.0046b66c
pop ecx
mov dword [esi + 0x4c], eax
push eax
push edi
call ebx
dec edi
cmp eax, edi
je 0x41d3b2
push 0xfffffffffffffffe
pop eax
jmp 0x41d459
mov edi, dword [esi + 0x4c]
push ebp
push edi
call fcn.0045cfa0
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x41d43f
push 0x200
lea eax, [esp + 0x14]
push 0x160
push eax
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
jne 0x41d3ee
push eax
push eax
push str.SHGetFileInfo_failed__no_more_details_available_n
call fcn.00473858
jmp 0x41d435
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
dec eax
dec eax
je 0x41d411
dec eax
je 0x41d40c
dec eax
je 0x41d407
dec eax
jne 0x41d418
mov eax, dword [esi + 0x48]
jmp 0x41d414
mov eax, dword [esi + 0x40]
jmp 0x41d414
mov eax, dword [esi + 0x3c]
jmp 0x41d414
mov eax, dword [esi + 0x44]
test eax, eax
je 0x41d435
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push 0x14a
push dword [esi + 0x1c]
call ebx
push edi
push eax
push 0x151
push dword [esi + 0x1c]
call ebx
lea edi, [edi + ebp + 1]
push edi
call fcn.0045cfa0
mov ebp, eax
pop ecx
test ebp, ebp
ja 0x41d3c4
push 0
push 0
push 0x146
push dword [esi + 0x1c]
call ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x160
ret 4
Function at 0x41e939
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x47caa3
call fcn.0045c5c4
sub esp, 0x238
push ebx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [0x4a94a4]
push esi
mov dword [ebp - 0x10], eax
xor esi, esi
inc esi
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 4], esi
je 0x41ea5b
push ebx
push dword [ebp + 0x14]
call fcn.0045de34
pop ecx
test eax, eax
pop ecx
jne 0x41ea5b
lea eax, [ebp - 0x244]
mov dword [ebp - 0x14], esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x20
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.0045c6e0
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x140]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], esi
je 0x41e9ce
mov dword [ebp - 0x28], 0x41e8f7
lea eax, [ebp - 0x3c]
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
mov edi, eax
cmp edi, ebx
je 0x41ea1d
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x41ea00
lea eax, [ebp - 0x140]
lea ecx, [ebp - 0x10]
push eax
call fcn.0046c5c5
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x18]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x14], ebx
pop edi
je 0x41ea30
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0046c1fd
mov dword [ebp - 0x1c], esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0046c488
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov dword [ebp - 0x14], ebx
jmp 0x41e998