joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406704
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x436054], 0
je 0x40676b
cmp word [0x436340], 0xd7b2
jne 0x40672d
cmp dword [0x436348], 0
jbe 0x40672d
mov eax, 0x43633c
call dword [0x436358]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x406798
call fcn.00406f40
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x434026], 0
jne 0x406787
push 0
push 0x4349b2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408288
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4083ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406984
cmp si, word [0x4349f0]
jb 0x408320
cmp si, word [0x434bf0]
ja 0x408320
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408320
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4349f0]
jae 0x4082fa
mov edi, ebx
dec edi
jmp 0x40831b
cmp si, word [ebx*8 + 0x4349f0]
jbe 0x40830a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40831b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4349f4]
call fcn.004081a8
jmp 0x408320
cmp edi, dword [ebp - 8]
jae 0x4082e4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4083cf
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4083cf
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004070d8
push dword [ebp - 0x160]
push 0x408408
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004070d8
push dword [ebp - 0x164]
push 0x408418
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004070d8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407290
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4083f4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004069e4
ret
Function at 0x4085a0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4086a4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x438b84
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x438b9c]
jne 0x4085ec
mov eax, esi
mov edx, 0x438b9e
mov ecx, 0x55
call fcn.004070d8
push 0x438b84
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40868e
push 0x438b84
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406984
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40865b
cmp byte [0x438b80], 0
je 0x408620
mov edx, esi
mov eax, ebx
call fcn.00408484
jmp 0x40865b
mov edx, esi
mov eax, ebx
call fcn.00408288
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40865b
cmp dword [esi], 0
je 0x408644
mov eax, esi
mov edx, 0x4086bc
call fcn.004071b0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408288
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004071b0
push 0x438b84
call sub.kernel32.dll_EnterCriticalSection
mov word [0x438b9c], bx
mov eax, dword [esi]
call fcn.00407044
mov ecx, eax
mov eax, 0x438b9e
mov edx, 0xaa
call fcn.00408108
push 0x438b84
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4086ab
lea eax, [ebp - 4]
call fcn.00406984
ret
Function at 0x4088d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406a68
xor eax, eax
push ebp
push 0x408af9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408914
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40892e
mov eax, dword [ebp - 4]
call fcn.00407044
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408108
cmp word [ebp - 0x21a], 0
je 0x408ae3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408b08
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4089fd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408b08
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4089fd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408b44
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4089fd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408b44
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4089fd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408b78
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4089fd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408bac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408ae3
xor eax, eax
push ebp
push 0x408adc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004086e4
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408a6c
mov eax, dword [ebp - 0x10]
call fcn.00403f2c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040709c
jmp 0x408ab7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408bec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408ab7
mov eax, dword [ebp - 0x10]
call fcn.00403f2c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408bec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040709c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ae3
cmp dword [ebp - 8], 0
je 0x408ad2
mov eax, dword [ebp - 8]
call fcn.00403f48
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b00
lea eax, [ebp - 4]
call fcn.00406984
ret
Function at 0x408de8
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406a68
xor eax, eax
push ebp
push 0x408ea8
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004070d8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407208
mov eax, dword [ebx]
call fcn.00408cb0
test al, al
jne 0x408e85
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004070d8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407208
mov eax, dword [ebx]
call fcn.00408cb0
test al, al
jne 0x408e85
mov eax, ebx
call fcn.00406984
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408eaf
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004069e4
lea eax, [ebp - 4]
call fcn.00406984
ret

Function at 0x40952c
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x4165c4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4165fd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406adc
jmp 0x416606
mov eax, ebx
mov edx, esi
call fcn.00406c90
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x416610
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x416632
movzx eax, word [esp]
jmp 0x416634
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4176c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4177e5
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004174c8
mov esi, eax
mov eax, dword [0x435c40]
cmp byte [eax], 0
je 0x41778d
mov eax, dword [0x435acc]
call fcn.00404764
call fcn.00404080
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x417690]
call fcn.00407cf0
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x417800
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4177c9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x435a90]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x438c4c]
call fcn.00407da8
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4177ec
lea eax, [ebp - 4]
mov edx, dword [0x417690]
call fcn.00407cfc
ret

Function at 0x418e60
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00406d8c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040950c
mov edi, eax
cmp edi, 0x104
jbe 0x418e07
mov eax, edi
add eax, eax
call fcn.00403f2c
mov esi, eax
jmp 0x418e09
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040950c
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x418e44
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x418e2e
mov eax, esp
cmp esi, eax
je 0x418e51
mov eax, esi
call fcn.00403f48
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x418e8c
cmp bl, 0
je 0x418e88
cmp bl, 0x41
jl 0x418e83
cmp bl, 0x5a
jg 0x418e83
or bl, 0x20
xor al, bl
inc esi
jmp 0x418e67
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x418dc8

Function at 0x419160
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.004070d8
add esp, 0x800
pop ebx
ret
Function at 0x41a2bc
Capabilities:
Encode data using xor

Disassembly:
mov ecx, eax
mov eax, edx
dec eax
test eax, eax
jl 0x41a2cd
inc eax
xor byte [ecx], 0xff
inc ecx
dec eax
jne 0x41a2c6
ret
Function at 0x41bcc4
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov edi, 0x440f84
xor esi, esi
push 0x2001
push edi
push ebx
call sub.kernel32.dll_GetEnvironmentVariableW
test eax, eax
je 0x41bce7
mov esi, edi
jmp 0x41be06
mov eax, dword [0x435a8c]
cmp byte [eax], 0
je 0x41be06
mov edx, 0x41be0c
mov eax, ebx
call fcn.00414c0c
test eax, eax
jne 0x41bd15
mov eax, edi
xor edx, edx
call fcn.0041dd34
mov esi, edi
jmp 0x41be06
mov edx, 0x41be14
mov eax, ebx
call fcn.00414c0c
test eax, eax
jne 0x41bd3f
push 0xa
push edi
mov eax, dword [0x435c04]
mov eax, dword [eax]
push eax
call sub.msvcrt.dll__ltow
add esp, 0xc
mov esi, edi
jmp 0x41be06
mov edx, 0x41be2c
mov eax, ebx
call fcn.00414c0c
test eax, eax
jne 0x41bd63
push 0xa
push edi
push 2
call sub.msvcrt.dll__ultow
add esp, 0xc
mov esi, edi
jmp 0x41be06
mov edx, 0x41be48
mov eax, ebx
call fcn.00414c0c
test eax, eax
jne 0x41bd7f
call sub.kernel32.dll_GetCommandLineW_1
mov esi, eax
jmp 0x41be06
mov edx, 0x41be60
mov eax, ebx
call fcn.00414c0c
test eax, eax
jne 0x41bdac
push 0x2001
mov ecx, edi
mov edx, 1
xor eax, eax
call fcn.0041a9c4
mov word [edi + eax*2], 0
mov esi, edi
jmp 0x41be06
mov edx, 0x41be6c
mov eax, ebx
call fcn.00414c0c
test eax, eax
jne 0x41bdd9
push 0x2001
mov ecx, edi
mov edx, 1
xor eax, eax
call fcn.0041af40
mov word [edi + eax*2], 0
mov esi, edi
jmp 0x41be06
mov edx, 0x41be78
mov eax, ebx
call fcn.00414c0c
test eax, eax
jne 0x41be06
call fcn.004042ec
mov eax, 0x7fff
call fcn.00404314
push 0xa
push edi
push eax
call sub.msvcrt.dll__ultow
add esp, 0xc
mov esi, edi
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x41d7e8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push esi
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [edi], eax
jmp 0x41d846
mov eax, esi
mov edx, dword [ebp - 0xc]
call dword [ebp - 4]
test al, al
je 0x41d829
mov eax, dword [0x435c28]
xor edx, edx
mov dword [eax], edx
mov bl, 1
jmp 0x41d84b
push esi
mov eax, dword [edi]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x41d846
mov eax, dword [edi]
push eax
call sub.kernel32.dll_FindClose_1
mov dword [edi], 0xffffffff
jmp 0x41d84b
cmp dword [edi], 0xffffffff
jne 0x41d810
cmp dword [edi], 0xffffffff
je 0x41d890
mov eax, dword [0x435608]
inc eax
push eax
mov eax, 0x444f88
mov ecx, 1
mov edx, dword [0x41d7a4]
call fcn.00407cf0
add esp, 4
cmp dword [0x444f88], 0
je 0x41d88e
mov eax, dword [0x444f88]
mov edx, dword [0x435608]
mov ecx, dword [edi]
mov dword [eax + edx*4], ecx
inc dword [0x435608]
mov bl, 1
test bl, bl
jne 0x41d8a1
call sub.kernel32.dll_GetLastError_2
mov edx, dword [0x435c28]
mov dword [edx], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41da1c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], esi
push eax
call sub.msvcrt.dll__get_osfhandle
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
cmp esi, 0x4000
jbe 0x41daa3
push 0
push 0
push 0x2000
mov eax, dword [0x435a54]
push eax
push 0x2000
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [0x435bc8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
add dword [ebp - 8], 0x4000
sub esi, 0x4000
push 0
push edi
push ebx
mov eax, dword [0x435a54]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x41da95
cmp ebx, dword [edi]
je 0x41da9b
mov byte [ebp - 1], 0
jmp 0x41daf8
cmp esi, 0x4000
ja 0x41da44
test esi, esi
je 0x41daef
push 0
push 0
push 0x2000
mov eax, dword [0x435a54]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [0x435bc8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
dec esi
push 0
push edi
push esi
mov eax, dword [0x435a54]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x41dae9
cmp esi, dword [edi]
je 0x41daef
mov byte [ebp - 1], 0
jmp 0x41daf8
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
mov byte [ebp - 1], 1
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41dd34
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, edx
mov esi, eax
test bx, bx
jne 0x41dd51
push esi
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
xor eax, eax
jmp 0x41ddc8
mov word [esp], 0x3d
mov eax, ebx
mov edx, ebx
add edx, 0xffffff9f
sub dx, 0x1a
jae 0x41dd6a
mov eax, ebx
and ax, 0xffdf
mov word [esp + 2], ax
mov word [esp + 4], 0x3a
mov word [esp + 6], 0
mov eax, esp
call fcn.0041bcc4
test eax, eax
jne 0x41ddbd
mov eax, ebx
mov edx, ebx
add edx, 0xffffff9f
sub dx, 0x1a
jae 0x41dd9b
mov eax, ebx
and ax, 0xffdf
mov word [esi], ax
add esi, 2
mov word [esi], 0x3a
add esi, 2
mov word [esi], 0x5c
add esi, 2
mov word [esi], 0
mov eax, 1
jmp 0x41ddc8
mov edx, eax
mov eax, esi
call fcn.00419ff4
xor eax, eax
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x41df18
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set current directory

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffde4
mov esi, edx
cmp word [eax], 0x5c
jne 0x41df3a
cmp word [eax + 2], 0x5c
jne 0x41df3a
mov eax, 0x23bd
jmp 0x41e14c
call fcn.0041def0
mov ebx, eax
mov dword [esp], eax
test eax, eax
jne 0x41df52
mov eax, 8
jmp 0x41e14c
mov eax, ebx
call fcn.00419fe4
mov edx, eax
mov eax, edx
cmp eax, 1
jl 0x41df77
cmp word [ebx + eax*2 - 2], 0x20
je 0x41df72
mov word [ebx + eax*2], 0
jmp 0x41df77
dec eax
test eax, eax
jne 0x41df62
lea eax, [esp + 0x10]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
movzx edx, word [esp + 0x10]
mov eax, edx
add edx, 0xffffff9f
sub dx, 0x1a
jae 0x41df9f
movzx eax, word [esp + 0x10]
and ax, 0xffdf
mov edi, eax
mov word [esp + 8], 0x3d
movzx eax, word [ebx]
call fcn.0041a0fc
test al, al
je 0x41dfd8
cmp word [ebx + 2], 0x3a
jne 0x41dfd8
movzx edx, word [ebx]
mov eax, edx
mov ecx, edx
add ecx, 0xffffff9f
sub cx, 0x1a
jae 0x41dfd1
mov eax, edx
and ax, 0xffdf
mov word [esp + 0xa], ax
jmp 0x41dfdd
mov word [esp + 0xa], di
mov word [esp + 0xc], 0x3a
mov word [esp + 0xe], 0
mov word [esp + 0x216], 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x14]
push eax
push 0x104
push ebx
call sub.kernel32.dll_GetFullPathNameW
test eax, eax
jne 0x41e018
call sub.kernel32.dll_GetLastError_2
jmp 0x41e14c
cmp eax, 0x104
jbe 0x41e029
mov eax, 0xce
jmp 0x41e14c
cmp word [esp + 0x10], 0
je 0x41e039
cmp word [esp + 0x12], 0x3a
je 0x41e043
mov eax, 3
jmp 0x41e14c
cmp dword [esp + 4], 0
jne 0x41e05f
lea eax, [esp + 0x10]
call fcn.00419fe4
add eax, eax
lea edx, [esp + 0x10]
add eax, edx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
cmp word [eax], 0
jne 0x41e08c
lea eax, [esp + 0x16]
cmp eax, dword [esp + 4]
jae 0x41e08c
mov eax, dword [esp + 4]
cmp word [eax - 2], 0x5c
jne 0x41e08c
sub dword [esp + 4], 2
mov eax, dword [esp + 4]
mov word [eax], 0
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x41e0b3
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41e0b3
cmp eax, 3
je 0x41e0b3
cmp eax, 0x7b
jne 0x41e14c
mov eax, dword [0x435a8c]
cmp byte [eax], 0
je 0x41e0c8
lea eax, [esp + 0x10]
xor edx, edx
call fcn.0041ddd0
cmp esi, 2
je 0x41e0f4
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x41e0ed
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
jne 0x41e14c
mov eax, 3
jmp 0x41e14c
test eax, 0x410
je 0x41e147
test esi, esi
je 0x41e102
dec esi
jne 0x41e110
cmp di, word [esp + 0xa]
jne 0x41e110
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
je 0x41e140
lea edx, [esp + 0x10]
lea eax, [esp + 8]
call fcn.0041bf74
test eax, eax
jne 0x41e139
mov eax, dword [0x435ccc]
xor edx, edx
call fcn.0041dd34
mov eax, dword [esp]
call fcn.0042db38
xor eax, eax
jmp 0x41e14c
mov eax, 8
jmp 0x41e14c
call sub.kernel32.dll_GetLastError_2
jmp 0x41e14c
mov eax, 0x10b
add esp, 0x21c
pop edi
pop esi
pop ebx
ret
Function at 0x41e17c
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff994
mov edi, eax
mov eax, edi
call fcn.0042f5d8
mov ebx, eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x25c]
push eax
push 0x208
push ebx
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
test esi, esi
je 0x41e2be
lea ebx, [esp + 0x258]
mov edx, 0x41e2d0
mov ecx, 4
mov eax, ebx
call fcn.00414c6c
test eax, eax
jne 0x41e244
add ebx, 8
mov dword [esp + 4], ebx
mov edx, ebx
mov eax, edi
call fcn.00414d5c
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x41e225
cmp edi, dword [esp + 4]
jae 0x41e225
mov eax, dword [esp + 4]
movzx ebx, word [eax]
mov eax, dword [esp + 4]
mov word [eax], 0
push edi
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
mov eax, dword [esp + 4]
mov word [eax], bx
cmp esi, 0xffffffff
je 0x41e21e
cmp esi, 1
sbb eax, eax
inc eax
jmp 0x41e2c4
xor eax, eax
jmp 0x41e2c4
push edi
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41e23d
cmp esi, 1
sbb eax, eax
inc eax
jmp 0x41e2c4
xor eax, eax
jmp 0x41e2c4
cmp dword [esp + 4], 0
je 0x41e255
mov eax, dword [esp + 4]
cmp word [eax], 0
jne 0x41e268
push ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne al
mov esi, eax
and esi, 0x7f
jmp 0x41e2be
push esp
lea ecx, [esp + 0xc]
mov edx, 0x37
mov eax, ebx
call fcn.0041d8ac
mov esi, eax
and esi, 0x7f
mov eax, dword [esp]
call fcn.0041d930
test esi, esi
jne 0x41e2be
lea eax, [ebx + 2]
cmp word [eax], 0x5c
je 0x41e2ae
lea eax, [ebx + 2]
cmp word [eax], 0x3a
jne 0x41e2be
lea eax, [ebx + 4]
cmp word [eax], 0x5c
jne 0x41e2be
lea eax, [ebx + 6]
cmp word [eax], 0
jne 0x41e2be
push ebx
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
jbe 0x41e2be
mov esi, 1
cmp esi, 1
sbb eax, eax
inc eax
add esp, 0x66c
pop edi
pop esi
pop ebx
ret