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

Disassembly:
push ecx
cmp byte [0x437054], 0
je 0x406e4b
cmp word [0x437340], 0xd7b2
jne 0x406e0d
cmp dword [0x437348], 0
jbe 0x406e0d
mov eax, 0x43733c
call dword [0x437358]
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, 0x406e78
call fcn.0040762c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x435026], 0
jne 0x406e67
push 0
push 0x4359b2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408bf0
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 0x408d55
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407070
cmp si, word [0x4359f0]
jb 0x408c88
cmp si, word [0x435bf0]
ja 0x408c88
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408c88
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4359f0]
jae 0x408c62
mov edi, ebx
dec edi
jmp 0x408c83
cmp si, word [ebx*8 + 0x4359f0]
jbe 0x408c72
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408c83
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4359f4]
call fcn.00408b10
jmp 0x408c88
cmp edi, dword [ebp - 8]
jae 0x408c4c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408d37
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408d37
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.004077c4
push dword [ebp - 0x160]
push 0x408d70
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004077c4
push dword [ebp - 0x164]
push 0x408d80
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004077c4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040797c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d5c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004070d0
ret
Function at 0x408f08
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 0x40900c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x439b84
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x439b9c]
jne 0x408f54
mov eax, esi
mov edx, 0x439b9e
mov ecx, 0x55
call fcn.004077c4
push 0x439b84
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408ff6
push 0x439b84
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00407070
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408fc3
cmp byte [0x439b80], 0
je 0x408f88
mov edx, esi
mov eax, ebx
call fcn.00408dec
jmp 0x408fc3
mov edx, esi
mov eax, ebx
call fcn.00408bf0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408fc3
cmp dword [esi], 0
je 0x408fac
mov eax, esi
mov edx, 0x409024
call fcn.0040789c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408bf0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040789c
push 0x439b84
call sub.kernel32.dll_EnterCriticalSection
mov word [0x439b9c], bx
mov eax, dword [esi]
call fcn.00407730
mov ecx, eax
mov eax, 0x439b9e
mov edx, 0xaa
call fcn.00408a70
push 0x439b84
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409013
lea eax, [ebp - 4]
call fcn.00407070
ret
Function at 0x40923c
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.00407154
xor eax, eax
push ebp
push 0x409461
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40927c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409296
mov eax, dword [ebp - 4]
call fcn.00407730
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408a70
cmp word [ebp - 0x21a], 0
je 0x40944b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409470
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409365
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409470
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409365
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4094ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409365
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4094ac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409365
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4094e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409365
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409514
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40944b
xor eax, eax
push ebp
push 0x409444
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040904c
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 0x4093d4
mov eax, dword [ebp - 0x10]
call fcn.0040404c
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.00407788
jmp 0x40941f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409554
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40941f
mov eax, dword [ebp - 0x10]
call fcn.0040404c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409554
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407788
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40944b
cmp dword [ebp - 8], 0
je 0x40943a
mov eax, dword [ebp - 8]
call fcn.00404068
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 0x409468
lea eax, [ebp - 4]
call fcn.00407070
ret
Function at 0x409750
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.00407154
xor eax, eax
push ebp
push 0x409810
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.004077c4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004078f4
mov eax, dword [ebx]
call fcn.00409618
test al, al
jne 0x4097ed
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004077c4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004078f4
mov eax, dword [ebx]
call fcn.00409618
test al, al
jne 0x4097ed
mov eax, ebx
call fcn.00407070
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409817
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004070d0
lea eax, [ebp - 4]
call fcn.00407070
ret

Function at 0x409e94
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 0x417000
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 0x417039
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004071c8
jmp 0x417042
mov eax, ebx
mov edx, esi
call fcn.0040737c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41704c
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 0x41706e
movzx eax, word [esp]
jmp 0x417070
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x418368
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 0x41848d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00418170
mov esi, eax
mov eax, dword [0x436c78]
cmp byte [eax], 0
je 0x418435
mov eax, dword [0x436afc]
call fcn.00404890
call fcn.004041a0
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 [0x418338]
call fcn.00408524
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 0x4184a8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x418471
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x436ac0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x439c4c]
call fcn.00408710
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 0x418494
lea eax, [ebp - 4]
mov edx, dword [0x418338]
call fcn.00408648
ret
Function at 0x4194f8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4195f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004073c4
lea eax, [ebp - 4]
call fcn.00407538
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407730
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4195e2
mov eax, ebx
call fcn.0040404c
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x4195db
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407730
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4195c5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41960c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4195c5
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4195e2
mov eax, dword [ebp - 0x10]
call fcn.00404068
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4195ff
lea eax, [ebp - 4]
call fcn.00407070
ret

Function at 0x419c8c
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.00407478
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00409e74
mov edi, eax
cmp edi, 0x104
jbe 0x419c37
mov eax, edi
add eax, eax
call fcn.0040404c
mov esi, eax
jmp 0x419c39
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00409e74
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x419c72
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 0x419c5c
mov eax, esp
cmp esi, eax
je 0x419c7f
mov eax, esi
call fcn.00404068
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 0x419cb8
cmp bl, 0
je 0x419cb4
cmp bl, 0x41
jl 0x419caf
cmp bl, 0x5a
jg 0x419caf
or bl, 0x20
xor al, bl
inc esi
jmp 0x419c93
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x419bf8

Function at 0x419f80
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.004077c4
add esp, 0x800
pop ebx
ret
Function at 0x41b274
Capabilities:
Encode data using xor

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

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov edi, 0x441f84
xor esi, esi
push 0x2001
push edi
push ebx
call sub.kernel32.dll_GetEnvironmentVariableW
test eax, eax
je 0x41cca7
mov esi, edi
jmp 0x41cdc6
mov eax, dword [0x436abc]
cmp byte [eax], 0
je 0x41cdc6
mov edx, 0x41cdcc
mov eax, ebx
call fcn.00415660
test eax, eax
jne 0x41ccd5
mov eax, edi
xor edx, edx
call fcn.0041ecf4
mov esi, edi
jmp 0x41cdc6
mov edx, 0x41cdd4
mov eax, ebx
call fcn.00415660
test eax, eax
jne 0x41ccff
push 0xa
push edi
mov eax, dword [0x436c3c]
mov eax, dword [eax]
push eax
call sub.msvcrt.dll__ltow
add esp, 0xc
mov esi, edi
jmp 0x41cdc6
mov edx, 0x41cdec
mov eax, ebx
call fcn.00415660
test eax, eax
jne 0x41cd23
push 0xa
push edi
push 2
call sub.msvcrt.dll__ultow
add esp, 0xc
mov esi, edi
jmp 0x41cdc6
mov edx, 0x41ce08
mov eax, ebx
call fcn.00415660
test eax, eax
jne 0x41cd3f
call sub.kernel32.dll_GetCommandLineW_1
mov esi, eax
jmp 0x41cdc6
mov edx, 0x41ce20
mov eax, ebx
call fcn.00415660
test eax, eax
jne 0x41cd6c
push 0x2001
mov ecx, edi
mov edx, 1
xor eax, eax
call fcn.0041b97c
mov word [edi + eax*2], 0
mov esi, edi
jmp 0x41cdc6
mov edx, 0x41ce2c
mov eax, ebx
call fcn.00415660
test eax, eax
jne 0x41cd99
push 0x2001
mov ecx, edi
mov edx, 1
xor eax, eax
call fcn.0041bf00
mov word [edi + eax*2], 0
mov esi, edi
jmp 0x41cdc6
mov edx, 0x41ce38
mov eax, ebx
call fcn.00415660
test eax, eax
jne 0x41cdc6
call fcn.0040440c
mov eax, 0x7fff
call fcn.00404434
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 0x41e7a8
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 0x41e806
mov eax, esi
mov edx, dword [ebp - 0xc]
call dword [ebp - 4]
test al, al
je 0x41e7e9
mov eax, dword [0x436c60]
xor edx, edx
mov dword [eax], edx
mov bl, 1
jmp 0x41e80b
push esi
mov eax, dword [edi]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x41e806
mov eax, dword [edi]
push eax
call sub.kernel32.dll_FindClose_1
mov dword [edi], 0xffffffff
jmp 0x41e80b
cmp dword [edi], 0xffffffff
jne 0x41e7d0
cmp dword [edi], 0xffffffff
je 0x41e850
mov eax, dword [0x436630]
inc eax
push eax
mov eax, 0x445f88
mov ecx, 1
mov edx, dword [0x41e764]
call fcn.00408524
add esp, 4
cmp dword [0x445f88], 0
je 0x41e84e
mov eax, dword [0x445f88]
mov edx, dword [0x436630]
mov ecx, dword [edi]
mov dword [eax + edx*4], ecx
inc dword [0x436630]
mov bl, 1
test bl, bl
jne 0x41e861
call sub.kernel32.dll_GetLastError_2
mov edx, dword [0x436c60]
mov dword [edx], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41e9dc
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 0x41ea63
push 0
push 0
push 0x2000
mov eax, dword [0x436a84]
push eax
push 0x2000
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [0x436c00]
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 [0x436a84]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x41ea55
cmp ebx, dword [edi]
je 0x41ea5b
mov byte [ebp - 1], 0
jmp 0x41eab8
cmp esi, 0x4000
ja 0x41ea04
test esi, esi
je 0x41eaaf
push 0
push 0
push 0x2000
mov eax, dword [0x436a84]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [0x436c00]
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 [0x436a84]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x41eaa9
cmp esi, dword [edi]
je 0x41eaaf
mov byte [ebp - 1], 0
jmp 0x41eab8
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 0x41ecf4
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, edx
mov esi, eax
test bx, bx
jne 0x41ed11
push esi
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
xor eax, eax
jmp 0x41ed88
mov word [esp], 0x3d
mov eax, ebx
mov edx, ebx
add edx, 0xffffff9f
sub dx, 0x1a
jae 0x41ed2a
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.0041cc84
test eax, eax
jne 0x41ed7d
mov eax, ebx
mov edx, ebx
add edx, 0xffffff9f
sub dx, 0x1a
jae 0x41ed5b
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 0x41ed88
mov edx, eax
mov eax, esi
call fcn.0041afac
xor eax, eax
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x41eed8
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 0x41eefa
cmp word [eax + 2], 0x5c
jne 0x41eefa
mov eax, 0x23bd
jmp 0x41f10d
call fcn.0041eeb0
mov ebx, eax
mov dword [esp], eax
test eax, eax
jne 0x41ef12
mov eax, 8
jmp 0x41f10d
mov eax, ebx
call fcn.0041af9c
mov edx, eax
mov eax, edx
cmp eax, 1
jl 0x41ef37
cmp word [ebx + eax*2 - 2], 0x20
je 0x41ef32
mov word [ebx + eax*2], 0
jmp 0x41ef37
dec eax
test eax, eax
jne 0x41ef22
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 0x41ef5f
movzx eax, word [esp + 0x10]
and ax, 0xffdf
mov edi, eax
mov word [esp + 8], 0x3d
movzx eax, word [ebx]
call fcn.0041b0b4
test al, al
je 0x41ef99
cmp word [ebx + 2], 0x3a
jne 0x41ef99
movzx eax, word [ebx]
mov edx, eax
mov ecx, eax
add ecx, 0xffffff9f
sub cx, 0x1a
jae 0x41ef92
mov edx, eax
and dx, 0xffdf
mov word [esp + 0xa], dx
jmp 0x41ef9e
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 0x41efd9
call sub.kernel32.dll_GetLastError_2
jmp 0x41f10d
cmp eax, 0x104
jbe 0x41efea
mov eax, 0xce
jmp 0x41f10d
cmp word [esp + 0x10], 0
je 0x41effa
cmp word [esp + 0x12], 0x3a
je 0x41f004
mov eax, 3
jmp 0x41f10d
cmp dword [esp + 4], 0
jne 0x41f020
lea eax, [esp + 0x10]
call fcn.0041af9c
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 0x41f04d
lea eax, [esp + 0x16]
cmp eax, dword [esp + 4]
jae 0x41f04d
mov eax, dword [esp + 4]
cmp word [eax - 2], 0x5c
jne 0x41f04d
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 0x41f074
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41f074
cmp eax, 3
je 0x41f074
cmp eax, 0x7b
jne 0x41f10d
mov eax, dword [0x436abc]
cmp byte [eax], 0
je 0x41f089
lea eax, [esp + 0x10]
xor edx, edx
call fcn.0041ed90
cmp esi, 2
je 0x41f0b5
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x41f0ae
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
jne 0x41f10d
mov eax, 3
jmp 0x41f10d
test eax, 0x410
je 0x41f108
test esi, esi
je 0x41f0c3
dec esi
jne 0x41f0d1
cmp di, word [esp + 0xa]
jne 0x41f0d1
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
je 0x41f101
lea edx, [esp + 0x10]
lea eax, [esp + 8]
call fcn.0041cf34
test eax, eax
jne 0x41f0fa
mov eax, dword [0x436d0c]
xor edx, edx
call fcn.0041ecf4
mov eax, dword [esp]
call fcn.0042eaf0
xor eax, eax
jmp 0x41f10d
mov eax, 8
jmp 0x41f10d
call sub.kernel32.dll_GetLastError_2
jmp 0x41f10d
mov eax, 0x10b
add esp, 0x21c
pop edi
pop esi
pop ebx
ret
Function at 0x41f13c
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.00430670
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 0x41f27e
lea ebx, [esp + 0x258]
mov edx, 0x41f290
mov ecx, 4
mov eax, ebx
call fcn.004156c0
test eax, eax
jne 0x41f204
add ebx, 8
mov dword [esp + 4], ebx
mov edx, ebx
mov eax, edi
call fcn.004157b0
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x41f1e5
cmp edi, dword [esp + 4]
jae 0x41f1e5
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 0x41f1de
cmp esi, 1
sbb eax, eax
inc eax
jmp 0x41f284
xor eax, eax
jmp 0x41f284
push edi
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41f1fd
cmp esi, 1
sbb eax, eax
inc eax
jmp 0x41f284
xor eax, eax
jmp 0x41f284
cmp dword [esp + 4], 0
je 0x41f215
mov eax, dword [esp + 4]
cmp word [eax], 0
jne 0x41f228
push ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne al
mov esi, eax
and esi, 0x7f
jmp 0x41f27e
push esp
lea ecx, [esp + 0xc]
mov edx, 0x37
mov eax, ebx
call fcn.0041e86c
mov esi, eax
and esi, 0x7f
mov eax, dword [esp]
call fcn.0041e8f0
test esi, esi
jne 0x41f27e
lea eax, [ebx + 2]
cmp word [eax], 0x5c
je 0x41f26e
lea eax, [ebx + 2]
cmp word [eax], 0x3a
jne 0x41f27e
lea eax, [ebx + 4]
cmp word [eax], 0x5c
jne 0x41f27e
lea eax, [ebx + 6]
cmp word [eax], 0
jne 0x41f27e
push ebx
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
jbe 0x41f27e
mov esi, 1
cmp esi, 1
sbb eax, eax
inc eax
add esp, 0x66c
pop edi
pop esi
pop ebx
ret