joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4093b8
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 [0x5a2034], 0
je 0x4093e3
mov edx, edi
mov eax, esi
call dword [0x5a2034]
mov ebx, eax
jmp 0x4093f4
mov eax, 8
call fcn.00404554
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5a8059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409380
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 0x409429
mov edx, 8
mov eax, ebx
call fcn.00404570
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40bd3c
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 0x40bea1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004094fc
cmp si, word [0x5a2a30]
jb 0x40bdd4
cmp si, word [0x5a2c30]
ja 0x40bdd4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bdd4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5a2a30]
jae 0x40bdae
mov edi, ebx
dec edi
jmp 0x40bdcf
cmp si, word [ebx*8 + 0x5a2a30]
jbe 0x40bdbe
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bdcf
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5a2a34]
call fcn.0040bc4c
jmp 0x40bdd4
cmp edi, dword [ebp - 8]
jae 0x40bd98
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40be83
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40be83
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.0040a364
push dword [ebp - 0x160]
push 0x40bebc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a364
push dword [ebp - 0x164]
push 0x40becc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a364
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a59c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bea8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040955c
ret
Function at 0x40c054
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 0x40c157
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5aab88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5aaba0]
jne 0x40c0a0
mov eax, esi
mov edx, 0x5aaba2
mov ecx, 0x55
call fcn.0040a364
push 0x5aab88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c141
push 0x5aab88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004094fc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c10f
cmp byte [0x5aab84], 0
je 0x40c0d4
mov edx, esi
mov eax, ebx
call fcn.0040bf38
jmp 0x40c10f
mov edx, esi
mov eax, ebx
call fcn.0040bd3c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c10f
cmp dword [esi], 0
je 0x40c0f8
mov eax, esi
mov edx, 0x40c170
call fcn.0040a4bc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040bd3c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a4bc
push 0x5aab88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5aaba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040a2c0
push eax
push 0x5aaba2
call sub.kernel32.dll_lstrcpynW
push 0x5aab88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c15e
lea eax, [ebp - 4]
call fcn.004094fc
ret
Function at 0x40c38c
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.004095e0
xor eax, eax
push ebp
push 0x40c5b1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c3cc
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c3e6
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040a2c0
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40c59b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c5c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c4b5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c5c0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c4b5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c5fc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c4b5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c5fc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c4b5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c630
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c4b5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c664
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c59b
xor eax, eax
push ebp
push 0x40c594
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c198
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 0x40c524
mov eax, dword [ebp - 0x10]
call fcn.00404554
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.0040a328
jmp 0x40c56f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c6a4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c56f
mov eax, dword [ebp - 0x10]
call fcn.00404554
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c6a4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a328
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c59b
cmp dword [ebp - 8], 0
je 0x40c58a
mov eax, dword [ebp - 8]
call fcn.00404570
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 0x40c5b8
lea eax, [ebp - 4]
call fcn.004094fc
ret
Function at 0x40c894
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.004095e0
xor eax, eax
push ebp
push 0x40c954
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.0040a364
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a514
mov eax, dword [ebx]
call fcn.0040c75c
test al, al
jne 0x40c931
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a364
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a514
mov eax, dword [ebx]
call fcn.0040c75c
test al, al
jne 0x40c931
mov eax, ebx
call fcn.004094fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c95b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040955c
lea eax, [ebp - 4]
call fcn.004094fc
ret

Function at 0x40d318
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 0x420ea4
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 0x420fcd
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 0x420fa7
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 0x420f90
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040a364
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a830
test eax, eax
jle 0x420f90
mov eax, dword [ebp - 4]
test eax, eax
je 0x420f44
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x420f52
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.0040a684
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040a328
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040a514
jmp 0x420fa7
add ebx, 2
cmp word [ebx], 0
jne 0x420f8d
add ebx, 4
test ebx, ebx
je 0x420fa1
cmp word [ebx], 0
jne 0x420ef6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420fd4
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.0040955c
lea eax, [ebp - 4]
call fcn.004094fc
ret
Function at 0x4210c0
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 0x4212fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.004094fc
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_1
mov ebx, eax
test ebx, ebx
jne 0x421197
cmp dword [ebp - 0x14], 0
jne 0x421197
xor edx, edx
mov eax, 6
call fcn.00428c40
test al, al
je 0x421197
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 0x421197
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040a364
mov eax, dword [ebp - 0x22c]
dec dword [ebp - 0x2276b]
invalid
call fcn.00420ea4
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.004098dc
mov byte [ebp - 9], 1
jmp 0x4212df
test ebx, ebx
jne 0x4211a5
cmp dword [ebp - 0x14], 0
je 0x421293
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 0x421293
xor eax, eax
push ebp
push 0x42128c
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 0x421275
xor eax, eax
push ebp
push 0x42126e
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.004125b0
test eax, eax
jbe 0x421257
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040a364
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.00420ea4
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.004098dc
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421275
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 0x421293
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp byte [ebp - 9], 0
jne 0x4212df
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.00420fdc
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.004098dc
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x4212df
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00420ea4
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.004098dc
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421304
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.0040955c
ret
Function at 0x421310
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.00428c40
test al, al
je 0x4213d8
xor edx, edx
mov eax, ebx
call fcn.00422c9c
test al, al
je 0x4213d8
mov eax, ebx
call fcn.00422a6c
test al, 0x20
je 0x4213d8
mov eax, ebx
call fcn.0040a2c0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4213d8
test ah, 4
je 0x4213d8
test al, 0x10
je 0x421377
mov edi, 0x2000000
jmp 0x421379
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040a2c0
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4213d8
xor eax, eax
push ebp
push 0x4213d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.004210c0
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4213d8
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 0x4216b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x421709
test eax, edx
je 0x42170c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4216c7
movzx eax, word [eax]
sub eax, ecx
jmp 0x4216ee
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 0x4216ef
add ecx, 4
js 0x4216df
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4216ec
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4216ee
xor eax, eax
ret
test eax, eax
je 0x421718
test edx, edx
jne 0x4216b8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x421edc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, edx
mov ebp, eax
mov byte [esp], 0
mov eax, ebp
test eax, eax
je 0x421ef4
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x421efc
mov al, 1
jmp 0x421f19
movzx esi, word [ebp]
mov eax, esi
call fcn.004128dc
test al, al
jne 0x421f15
cmp si, 0x5f
je 0x421f15
xor eax, eax
jmp 0x421f17
mov al, 1
xor al, 1
test al, al
jne 0x421fa9
test bl, bl
je 0x421f69
mov eax, ebp
test eax, eax
je 0x421f30
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x421fa5
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.00412968
test al, al
jne 0x421f5d
cmp di, 0x5f
je 0x421f5d
cmp di, 0x2e
je 0x421f5d
xor eax, eax
jmp 0x421f5f
mov al, 1
test al, al
je 0x421fa9
inc esi
dec ebx
jne 0x421f3d
jmp 0x421fa5
mov eax, ebp
test eax, eax
je 0x421f74
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x421fa5
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.00412968
test al, al
jne 0x421f9b
cmp di, 0x5f
je 0x421f9b
xor eax, eax
jmp 0x421f9d
mov al, 1
test al, al
je 0x421fa9
inc esi
dec ebx
jne 0x421f81
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x422a6c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x422ba0
push dword fs:[eax]
mov dword fs:[eax], esp
movzx ebx, byte [0x422bb0]
mov dl, 1
mov eax, esi
call fcn.00422d34
test al, al
jne 0x422abd
mov dl, 1
mov eax, esi
call fcn.00422c9c
test al, al
je 0x422b53
lea edx, [ebp - 0x424]
mov eax, esi
call fcn.00422fb0
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 4]
call fcn.00429100
push 0x104
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a2c0
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x422b4e
test byte [ebp - 0xc], 1
je 0x422b19
or bl, 1
test byte [ebp - 0xc], 2
je 0x422b22
or bl, 2
test byte [ebp - 0xc], 0x80
je 0x422b2b
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x422b3f
dec eax
je 0x422b44
dec eax
je 0x422b49
dec eax
jne 0x422b7a
or bl, 0x10
jmp 0x422b7a
or bl, 4
jmp 0x422b7a
or bl, 8
jmp 0x422b7a
call fcn.00429948
lea edx, [ebp - 0x428]
mov eax, dword [0x5a7558]
call fcn.0040d264
mov ecx, dword [ebp - 0x428]
mov dl, 1
mov eax, dword [0x41caec]
call fcn.00427c2c
call fcn.00408c30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422ba7
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.0040955c
lea eax, [ebp - 4]
call fcn.004094fc
ret
Function at 0x422c9c
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.0040a2c0
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x422d06
test ah, 4
je 0x422cff
test bl, bl
jne 0x422cc4
mov al, 1
jmp 0x422d2d
test al, 0x10
je 0x422ccc
xor eax, eax
jmp 0x422d2d
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x422cf0
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x422d2d
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x422d2d
test al, 0x10
sete al
jmp 0x422d2d
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x422d27
cmp ebx, 3
je 0x422d27
cmp ebx, 0x7b
je 0x422d27
mov eax, esi
call fcn.00422c5c
test al, al
jne 0x422d2b
xor eax, eax
jmp 0x422d2d
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x422d34
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.0040a2c0
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x422ddb
test esi, 0x400
jne 0x422d70
test esi, 0x10
setne bl
jmp 0x422dfa
cmp byte [esp], 0
je 0x422da4
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x422dfa
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x422dfa
test esi, 0x10
je 0x422db0
mov bl, 1
jmp 0x422dfa
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x422dd7
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x422dfa
mov bl, 1
jmp 0x422dfa
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x422df4
cmp eax, 3
je 0x422df4
cmp eax, 0x7b
je 0x422df4
cmp eax, 0x35
jne 0x422df8
xor ebx, ebx
jmp 0x422dfa
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x422e04
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 0x422ed7
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409924
cmp byte [ebp - 9], 0
je 0x422e95
mov eax, ebx
call fcn.0040a2c0
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x422e95
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00421310
test al, al
je 0x422e95
mov eax, dword [ebp - 8]
call fcn.00423194
test al, al
je 0x422e8a
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00422f74
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00429100
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040a514
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00409924
push edi
mov eax, dword [ebp - 4]
call fcn.0040a2c0
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x422eaf
call sub.kernel32.dll_GetLastError_2
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422ede
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040955c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040955c
ret

Function at 0x426d98
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 0x426dd1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409684
jmp 0x426dda
mov eax, ebx
mov edx, esi
call fcn.004098dc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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