joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4086a0
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 0x4087a4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x439b84
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x439b9c]
jne 0x4086ec
mov eax, esi
mov edx, 0x439b9e
mov ecx, 0x55
call fcn.004071d8
push 0x439b84
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40878e
push 0x439b84
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406a1c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40875b
cmp byte [0x439b80], 0
je 0x408720
mov edx, esi
mov eax, ebx
call fcn.00408584
jmp 0x40875b
mov edx, esi
mov eax, ebx
call fcn.00408388
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40875b
cmp dword [esi], 0
je 0x408744
mov eax, esi
mov edx, 0x4087bc
call fcn.004072b0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408388
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004072b0
push 0x439b84
call sub.kernel32.dll_EnterCriticalSection
mov word [0x439b9c], bx
mov eax, dword [esi]
call fcn.00407144
mov ecx, eax
mov eax, 0x439b9e
mov edx, 0xaa
call fcn.00408208
push 0x439b84
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4087ab
lea eax, [ebp - 4]
call fcn.00406a1c
ret
Function at 0x4089d4
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.00406b00
xor eax, eax
push ebp
push 0x408bf9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408a14
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408a2e
mov eax, dword [ebp - 4]
call fcn.00407144
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408208
cmp word [ebp - 0x21a], 0
je 0x408be3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408c08
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408afd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408c08
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408afd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408c44
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408afd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408c44
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408afd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408c78
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408afd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408cac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408be3
xor eax, eax
push ebp
push 0x408bdc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004087e4
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 0x408b6c
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.0040719c
jmp 0x408bb7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408cec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408bb7
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 0x408cec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040719c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408be3
cmp dword [ebp - 8], 0
je 0x408bd2
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 0x408c00
lea eax, [ebp - 4]
call fcn.00406a1c
ret
Function at 0x408ee8
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.00406b00
xor eax, eax
push ebp
push 0x408fa8
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.004071d8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407308
mov eax, dword [ebx]
call fcn.00408db0
test al, al
jne 0x408f85
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004071d8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407308
mov eax, dword [ebx]
call fcn.00408db0
test al, al
jne 0x408f85
mov eax, ebx
call fcn.00406a1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408faf
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406a7c
lea eax, [ebp - 4]
call fcn.00406a1c
ret

Function at 0x40962c
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 0x4165e4
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 0x41661d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406b74
jmp 0x416626
mov eax, ebx
mov edx, esi
call fcn.00406d28
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x416630
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 0x416652
movzx eax, word [esp]
jmp 0x416654
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4176e0
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 0x417805
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004174e8
mov esi, eax
mov eax, dword [0x436c98]
cmp byte [eax], 0
je 0x4177ad
mov eax, dword [0x436a84]
call fcn.00404660
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 [0x4176b0]
call fcn.00407df0
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 0x417820
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4177e9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x436a48]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x439c4c]
call fcn.00407ea8
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 0x41780c
lea eax, [ebp - 4]
mov edx, dword [0x4176b0]
call fcn.00407dfc
ret

Function at 0x418e80
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.00406e24
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040960c
mov edi, eax
cmp edi, 0x104
jbe 0x418e27
mov eax, edi
add eax, eax
call fcn.00403f2c
mov esi, eax
jmp 0x418e29
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040960c
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x418e64
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 0x418e4e
mov eax, esp
cmp esi, eax
je 0x418e71
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 0x418eac
cmp bl, 0
je 0x418ea8
cmp bl, 0x41
jl 0x418ea3
cmp bl, 0x5a
jg 0x418ea3
or bl, 0x20
xor al, bl
inc esi
jmp 0x418e87
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x418de8

Function at 0x419180
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.004071d8
add esp, 0x800
pop ebx
ret
Function at 0x420f24
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
call sub.kernel32.dll_GetEnvironmentStringsW
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], 0
je 0x420f83
mov eax, dword [ebp - 8]
call fcn.004212d8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
call fcn.00403f2c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.004046d0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 0
je 0x420f7a
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
call fcn.004040d0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeEnvironmentStringsW
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x420fe8
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x2001
push 0x44b4a0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetEnvironmentVariableW
test eax, eax
je 0x421019
mov dword [ebp - 8], 0x44b4a0
jmp 0x42118d
mov eax, dword [0x436a44]
cmp byte [eax], 0
je 0x42118d
mov edx, 0x421194
mov eax, dword [ebp - 4]
call fcn.00414c2c
test eax, eax
jne 0x421050
mov eax, 0x44b4a0
xor edx, edx
call fcn.004230a8
mov dword [ebp - 8], 0x44b4a0
jmp 0x42118d
mov edx, 0x42119c
mov eax, dword [ebp - 4]
call fcn.00414c2c
test eax, eax
jne 0x421084
push 0xa
push 0x44b4a0
mov eax, dword [0x436c54]
mov eax, dword [eax]
push eax
call sub.msvcrt.dll__ltow
add esp, 0xc
mov dword [ebp - 8], 0x44b4a0
jmp 0x42118d
mov edx, 0x4211b4
mov eax, dword [ebp - 4]
call fcn.00414c2c
test eax, eax
jne 0x4210b2
push 0xa
push 0x44b4a0
push 2
call sub.msvcrt.dll__ultow
add esp, 0xc
mov dword [ebp - 8], 0x44b4a0
jmp 0x42118d
mov edx, 0x4211d0
mov eax, dword [ebp - 4]
call fcn.00414c2c
test eax, eax
jne 0x4210d0
call sub.kernel32.dll_GetCommandLineW_1
mov dword [ebp - 8], eax
jmp 0x42118d
mov edx, 0x4211e8
mov eax, dword [ebp - 4]
call fcn.00414c2c
test eax, eax
jne 0x421110
push 0x2001
mov ecx, 0x44b4a0
mov edx, 1
xor eax, eax
call fcn.0041ce04
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov word [eax*2 + 0x44b4a0], 0
mov dword [ebp - 8], 0x44b4a0
jmp 0x42118d
mov edx, 0x4211f4
mov eax, dword [ebp - 4]
call fcn.00414c2c
test eax, eax
jne 0x421150
push 0x2001
mov ecx, 0x44b4a0
mov edx, 1
xor eax, eax
call fcn.0041d4ac
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov word [eax*2 + 0x44b4a0], 0
mov dword [ebp - 8], 0x44b4a0
jmp 0x42118d
mov edx, 0x421200
mov eax, dword [ebp - 4]
call fcn.00414c2c
test eax, eax
jne 0x42118d
call fcn.004041d0
mov eax, 0x7fff
call fcn.004041f8
mov dword [ebp - 0xc], eax
push 0xa
push 0x44b4a0
mov eax, dword [ebp - 0xc]
push eax
call sub.msvcrt.dll__ultow
add esp, 0xc
mov dword [ebp - 8], 0x44b4a0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x421324
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [0x436b7c]
mov byte [eax], 0
mov eax, dword [ebp - 8]
call fcn.00419fec
test eax, eax
jne 0x421349
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetEnvironmentVariableW
mov dword [ebp - 0x10], eax
mov eax, dword [0x44b48c]
call fcn.00403f48
call fcn.00420f24
mov dword [0x44b48c], eax
mov eax, dword [ebp - 0x10]
cmp eax, 1
sbb eax, eax
neg eax
and eax, 0x7f
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x422a04
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xe], 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov edx, dword [ebp + 8]
mov dword [edx], eax
jmp 0x422a70
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
call dword [ebp - 4]
test al, al
je 0x422a47
mov eax, dword [0x436c7c]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 0xe], 1
jmp 0x422a78
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x422a70
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FindClose_1
mov eax, dword [ebp + 8]
mov dword [eax], 0xffffffff
jmp 0x422a78
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x422a2b
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
je 0x422ac5
mov eax, dword [0x4366c0]
inc eax
push eax
mov eax, 0x44f738
mov ecx, 1
mov edx, dword [0x4229a8]
call fcn.00407df0
add esp, 4
cmp dword [0x44f738], 0
je 0x422ac1
mov eax, dword [0x44f738]
mov edx, dword [0x4366c0]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov dword [eax + edx*4], ecx
inc dword [0x4366c0]
mov byte [ebp - 0xe], 1
cmp byte [ebp - 0xe], 0
jne 0x422ad8
call sub.kernel32.dll_GetLastError_2
mov edx, dword [0x436c7c]
mov dword [edx], eax
mov al, byte [ebp - 0xe]
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret 8
Function at 0x422ccc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll__get_osfhandle
pop ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], 0x4000
jbe 0x422d6b
push 0
push 0
push 0x2000
mov eax, dword [0x4369f8]
push eax
push 0x2000
mov eax, dword [ebp - 0x14]
push eax
push 0
mov eax, dword [0x436bec]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WideCharToMultiByte_1
mov dword [ebp - 0x20], eax
add dword [ebp - 0x14], 0x4000
sub dword [ebp - 0xc], 0x4000
push 0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [0x4369f8]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x422d5c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x20]
je 0x422d62
mov byte [ebp - 0xd], 0
jmp 0x422dd2
cmp dword [ebp - 0xc], 0x4000
ja 0x422cfd
cmp dword [ebp - 0xc], 0
je 0x422dc6
push 0
push 0
push 0x2000
mov eax, dword [0x4369f8]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
push 0
mov eax, dword [0x436bec]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WideCharToMultiByte_1
dec eax
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x4369f8]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x422dc0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
je 0x422dc6
mov byte [ebp - 0xd], 0
jmp 0x422dd2
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret 4

Function at 0x4230a8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov word [ebp - 6], dx
mov dword [ebp - 4], eax
cmp word [ebp - 6], 0
jne 0x4230d1
mov eax, dword [ebp - 4]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x42314d
mov word [ebp - 0x14], 0x3d
mov ax, word [ebp - 6]
call fcn.00404214
mov word [ebp - 0x12], ax
mov word [ebp - 0x10], 0x3a
mov word [ebp - 0xe], 0
lea eax, [ebp - 0x14]
call fcn.00420fe8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x42313d
mov ax, word [ebp - 6]
call fcn.00404214
mov edx, dword [ebp - 4]
mov word [edx], ax
add dword [ebp - 4], 2
mov eax, dword [ebp - 4]
mov word [eax], 0x3a
add dword [ebp - 4], 2
mov eax, dword [ebp - 4]
mov word [eax], 0x5c
add dword [ebp - 4], 2
mov eax, dword [ebp - 4]
mov word [eax], 0
mov dword [ebp - 0xc], 1
jmp 0x42314d
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0041a014
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4238d4
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff97c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042af54
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x682]
push eax
push 0x208
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x423a64
lea eax, [ebp - 0x682]
mov dword [ebp - 0x18], eax
mov edx, 0x423a78
mov ecx, 4
mov eax, dword [ebp - 0x18]
call fcn.00414c8c
test eax, eax
jne 0x4239ca
add dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00414d7c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4239a0
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 4]
jbe 0x4239a0
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 0x1c]
mov word [eax], 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dx, word [ebp - 0x12]
mov word [eax], dx
cmp dword [ebp - 0x10], 0xffffffff
je 0x423997
cmp dword [ebp - 0x10], 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
jmp 0x423a6e
mov byte [ebp - 5], 0
jmp 0x423a6e
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4239c1
cmp dword [ebp - 0x10], 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
jmp 0x423a6e
mov byte [ebp - 5], 0
jmp 0x423a6e
cmp dword [ebp - 0x1c], 0
je 0x4239d9
mov eax, dword [ebp - 0x1c]
cmp word [eax], 0
jne 0x4239f0
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 0x7f
mov dword [ebp - 0x10], eax
jmp 0x423a64
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x270]
mov edx, 0x37
mov eax, dword [ebp - 0x18]
call fcn.00422ae8
and eax, 0x7f
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
call fcn.00422ba8
cmp dword [ebp - 0x10], 0
jne 0x423a64
mov eax, dword [ebp - 0x18]
add eax, 2
cmp word [eax], 0x5c
je 0x423a4b
mov eax, dword [ebp - 0x18]
add eax, 2
cmp word [eax], 0x3a
jne 0x423a64
mov eax, dword [ebp - 0x18]
add eax, 4
cmp word [eax], 0x5c
jne 0x423a64
mov eax, dword [ebp - 0x18]
add eax, 6
cmp word [eax], 0
jne 0x423a64
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GetDriveTypeW
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
jbe 0x423a64
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x426250
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
xor ecx, ecx
mov dword [ebp - 0x444], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x426437
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], 0
jne 0x426354
xor eax, eax
mov dword [ebp - 0x10], eax
push 0x20a
lea eax, [ebp - 0x226]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegEnumKeyW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4262c2
cmp dword [ebp - 0x14], 0x103
jne 0x426418
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x426418
cmp word [ebp - 0x226], 0x2e
jne 0x426336
mov dword [ebp - 0x1c], 0x20a
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x226]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x426418
lea eax, [ebp - 0x226]
mov dword [ebp - 0x440], eax
mov byte [ebp - 0x43c], 0xa
lea eax, [ebp - 0x430]
mov dword [ebp - 0x438], eax
mov byte [ebp - 0x434], 0xa
lea edx, [ebp - 0x440]
mov eax, 0x426448
mov ecx, 1
call fcn.00423c4c
mov eax, dword [0x436ba8]
cmp dword [eax], 0
je 0x42634c
mov dword [ebp - 0xc], 1
jmp 0x42641e
inc dword [ebp - 0x10]
jmp 0x426289
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0042ad74
mov dword [ebp - 8], eax
mov dx, 0x20
mov eax, dword [ebp - 8]
call fcn.00419f78
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42637e
mov eax, dword [ebp - 0x18]
mov word [eax], 0
mov dword [ebp - 0x1c], 0x20a
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x430]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4263e0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x440], eax
mov byte [ebp - 0x43c], 0xa
lea eax, [ebp - 0x430]
mov dword [ebp - 0x438], eax
mov byte [ebp - 0x434], 0xa
lea edx, [ebp - 0x440]
mov eax, 0x426448
mov ecx, 1
call fcn.00423c4c
jmp 0x426418
push 0
lea edx, [ebp - 0x444]
mov eax, dword [0x436bc0]
call fcn.00409578
mov eax, dword [ebp - 0x444]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x44c], edx
mov byte [ebp - 0x448], 0xa
lea ecx, [ebp - 0x44c]
mov edx, 1
call fcn.0042a3c8
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42643e
lea eax, [ebp - 0x444]
call fcn.00406a1c
ret