joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409784
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x776034], 0
je 0x4097af
mov edx, edi
mov eax, esi
call dword [0x776034]
mov ebx, eax
jmp 0x4097c0
mov eax, 8
call fcn.00406ee8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x7b005d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40974c
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x4097f0
mov eax, ebx
call fcn.00406f04
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40c75c
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 0x40c8c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004098c4
cmp si, word [0x776a08]
jb 0x40c7f4
cmp si, word [0x776c08]
ja 0x40c7f4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c7f4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x776a08]
jae 0x40c7ce
mov edi, ebx
dec edi
jmp 0x40c7ef
cmp si, word [ebx*8 + 0x776a08]
jbe 0x40c7de
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c7ef
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x776a0c]
call fcn.0040c67c
jmp 0x40c7f4
cmp edi, dword [ebp - 8]
jae 0x40c7b8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c8a3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c8a3
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.0040a5e8
push dword [ebp - 0x160]
push 0x40c8dc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a5e8
push dword [ebp - 0x164]
push 0x40c8ec
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a5e8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a820
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c8c8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409924
ret
Function at 0x40ca74
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 0x40cb78
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x7b2c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x7b2c2c]
jne 0x40cac0
mov eax, esi
mov edx, 0x7b2c2e
mov ecx, 0x55
call fcn.0040a5e8
push 0x7b2c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40cb62
push 0x7b2c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004098c4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cb2f
cmp byte [0x7b2c10], 0
je 0x40caf4
mov edx, esi
mov eax, ebx
call fcn.0040c958
jmp 0x40cb2f
mov edx, esi
mov eax, ebx
call fcn.0040c75c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40cb2f
cmp dword [esi], 0
je 0x40cb18
mov eax, esi
mov edx, 0x40cb90
call fcn.0040a740
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c75c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a740
push 0x7b2c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x7b2c2c], bx
mov eax, dword [esi]
call fcn.0040a52c
mov ecx, eax
mov eax, 0x7b2c2e
mov edx, 0xaa
call fcn.0040c5dc
push 0x7b2c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb7f
lea eax, [ebp - 4]
call fcn.004098c4
ret
Function at 0x40cda8
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.004099a8
xor eax, eax
push ebp
push 0x40cfcd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40cde8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40ce02
mov eax, dword [ebp - 4]
call fcn.0040a52c
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c5dc
cmp word [ebp - 0x21a], 0
je 0x40cfb7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cfdc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ced1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cfdc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ced1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d018
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ced1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d018
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ced1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d04c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ced1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d080
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40cfb7
xor eax, eax
push ebp
push 0x40cfb0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040cbb8
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 0x40cf40
mov eax, dword [ebp - 0x10]
call fcn.00406ee8
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.0040a594
jmp 0x40cf8b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40d0c0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40cf8b
mov eax, dword [ebp - 0x10]
call fcn.00406ee8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40d0c0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a594
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cfb7
cmp dword [ebp - 8], 0
je 0x40cfa6
mov eax, dword [ebp - 8]
call fcn.00406f04
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 0x40cfd4
lea eax, [ebp - 4]
call fcn.004098c4
ret
Function at 0x40d2bc
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.004099a8
xor eax, eax
push ebp
push 0x40d37c
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.0040a5e8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a798
mov eax, dword [ebx]
call fcn.0040d184
test al, al
jne 0x40d359
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a5e8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a798
mov eax, dword [ebx]
call fcn.0040d184
test al, al
jne 0x40d359
mov eax, ebx
call fcn.004098c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d383
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409924
lea eax, [ebp - 4]
call fcn.004098c4
ret

Function at 0x40ec18
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 0x420420
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42054e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetLogicalDriveStringsW
mov esi, eax
test esi, esi
jle 0x420528
lea ebx, [ebp - 0x218]
lea eax, [ebx + 4]
mov word [eax], 0
push 0x104
lea eax, [ebp - 0x424]
push eax
push ebx
call sub.kernel32.dll_QueryDosDeviceW
mov esi, eax
test esi, esi
jle 0x420511
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040a5e8
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040ab78
test eax, eax
jle 0x420511
mov eax, dword [ebp - 4]
test eax, eax
je 0x4204c5
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x4204d3
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x428]
push eax
mov ecx, edi
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.0040a968
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040a594
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040a798
jmp 0x420528
add ebx, 2
cmp word [ebx], 0
jne 0x42050e
add ebx, 4
test ebx, ebx
je 0x420522
cmp word [ebx], 0
jne 0x420472
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420555
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00409924
lea eax, [ebp - 4]
call fcn.004098c4
ret
Function at 0x420648
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x420885
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.004098c4
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize
mov ebx, eax
test ebx, ebx
jne 0x42071f
cmp dword [ebp - 0x14], 0
jne 0x42071f
xor edx, edx
mov eax, 6
call fcn.00428b08
test al, al
je 0x42071f
push 2
push 0x104
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFinalPathNameByHandleW
test eax, eax
jbe 0x42071f
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040a5e8
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.00420420
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.00409ca4
mov byte [ebp - 9], 1
jmp 0x420867
test ebx, ebx
jne 0x42072d
cmp dword [ebp - 0x14], 0
je 0x42081b
push 0
push 1
push 0
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3ee
je 0x42081b
xor eax, eax
push ebp
push 0x420814
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4207fd
xor eax, eax
push ebp
push 0x4207f6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
call sub.kernel32.dll_GetCurrentProcess
lea ecx, [ebp - 0x224]
mov edx, dword [ebp - 0x18]
call fcn.00414630
test eax, eax
jbe 0x4207df
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040a5e8
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.00420420
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.00409ca4
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4207fd
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42081b
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp byte [ebp - 9], 0
jne 0x420867
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.0042055c
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.00409ca4
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x420867
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00420420
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.00409ca4
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42088c
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.00409924
ret
Function at 0x420898
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov byte [ebp - 1], 0
xor edx, edx
mov eax, 6
call fcn.00428b08
test al, al
je 0x420960
xor edx, edx
mov eax, ebx
call fcn.0042238c
test al, al
je 0x420960
mov eax, ebx
call fcn.004220bc
test al, 0x20
je 0x420960
mov eax, ebx
call fcn.0040a52c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x420960
test ah, 4
je 0x420960
test al, 0x10
je 0x4208ff
mov edi, 0x2000000
jmp 0x420901
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040a52c
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x420960
xor eax, eax
push ebp
push 0x420959
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.00420648
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420960
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x420c58
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x420cb1
test eax, edx
je 0x420cb4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x420c6f
movzx eax, word [eax]
sub eax, ecx
jmp 0x420c96
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x420c97
add ecx, 4
js 0x420c87
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x420c94
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x420c96
xor eax, eax
ret
test eax, eax
je 0x420cc0
test edx, edx
jne 0x420c60
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4220bc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x422220
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x42205c]
call fcn.0040be60
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x42208c]
call fcn.0040be60
add esp, 4
movzx ebx, byte [0x422230]
mov dl, 1
mov eax, esi
call fcn.00422424
test al, al
jne 0x422136
mov dl, 1
mov eax, esi
call fcn.0042238c
test al, al
je 0x4221c0
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00422a9c
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.0042917c
push 0x104
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x104
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a52c
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x4221bb
test byte [ebp - 0x14], 1
je 0x422186
or bl, 1
test byte [ebp - 0x14], 2
je 0x42218f
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x422198
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x4221ac
dec eax
je 0x4221b1
dec eax
je 0x4221b6
dec eax
jne 0x4221e1
or bl, 0x10
jmp 0x4221e1
or bl, 4
jmp 0x4221e1
or bl, 8
jmp 0x4221e1
call fcn.00429f98
lea edx, [ebp - 0x20]
mov eax, dword [0x7af7e0]
call fcn.0040eb64
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x41a7c0]
call fcn.00427e3c
call fcn.00408f3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422227
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00409924
lea eax, [ebp - 0xc]
mov edx, dword [0x42208c]
call fcn.0040bf84
lea eax, [ebp - 8]
mov edx, dword [0x42205c]
call fcn.0040bf84
lea eax, [ebp - 4]
call fcn.004098c4
ret

Function at 0x42228c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x4222b9
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x42238c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040a52c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4223f6
test ah, 4
je 0x4223ef
test bl, bl
jne 0x4223b4
mov al, 1
jmp 0x42241d
test al, 0x10
je 0x4223bc
xor eax, eax
jmp 0x42241d
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4223e0
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x42241d
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x42241d
test al, 0x10
sete al
jmp 0x42241d
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x422417
cmp ebx, 3
je 0x422417
cmp ebx, 0x7b
je 0x422417
mov eax, esi
call fcn.0042234c
test al, al
jne 0x42241b
xor eax, eax
jmp 0x42241d
mov al, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040a52c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x4224cb
test esi, 0x400
jne 0x422460
test esi, 0x10
setne bl
jmp 0x4224fb
cmp byte [esp], 0
je 0x422494
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4224fb
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x4224fb
test esi, 0x10
je 0x4224a0
mov bl, 1
jmp 0x4224fb
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4224c7
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x4224fb
mov bl, 1
jmp 0x4224fb
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x4224f5
cmp eax, 3
je 0x4224f5
cmp eax, 0xa1
je 0x4224f5
cmp eax, 0x7b
je 0x4224f5
cmp eax, 0x35
je 0x4224f5
cmp eax, 0x15
je 0x4224f5
cmp eax, 0x43
jne 0x4224f9
xor ebx, ebx
jmp 0x4224fb
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x422608
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4226db
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409cec
cmp byte [ebp - 9], 0
je 0x422699
mov eax, ebx
call fcn.0040a52c
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x422699
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00420898
test al, al
je 0x422699
mov eax, dword [ebp - 8]
call fcn.00422fe4
test al, al
je 0x42268e
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.004229f8
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0042917c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040a798
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00409cec
push edi
mov eax, dword [ebp - 4]
call fcn.0040a52c
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x4226b3
call sub.kernel32.dll_GetLastError_2
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4226e2
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409924
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409924
ret

Function at 0x422814
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.0040a52c
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x422869
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x422863
test ah, 4
je 0x422863
test al, 0x10
je 0x422863
mov eax, esi
call fcn.0040a52c
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x422869
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x426c48
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 0x426c81
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409a4c
jmp 0x426c8a
mov eax, ebx
mov edx, esi
call fcn.00409ca4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x426c94
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 0x426cb6
movzx eax, word [esp]
jmp 0x426cb8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x427ccc
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 0x427df1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00427ad4
mov esi, eax
mov eax, dword [0x7af5fc]
cmp byte [eax], 0
je 0x427d99
mov eax, dword [0x7aeeb8]
call fcn.004075c8
call fcn.00407078
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 [0x427c9c]
call fcn.0040be60
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 0x427e0c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x427dd5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x7aed9c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x7b3628]
call fcn.0040c280
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 0x427df8
lea eax, [ebp - 4]
mov edx, dword [0x427c9c]
call fcn.0040bf84
ret