joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4073e0
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 [0x4eb034], 0
je 0x40740b
mov edx, edi
mov eax, esi
call dword [0x4eb034]
mov ebx, eax
jmp 0x40741c
mov eax, 8
call fcn.00404560
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4f1059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4073a8
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 0x407451
mov edx, 8
mov eax, ebx
call fcn.0040457c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x409a1c
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 0x409b81
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407524
cmp si, word [0x4eba08]
jb 0x409ab4
cmp si, word [0x4ebc08]
ja 0x409ab4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409ab4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4eba08]
jae 0x409a8e
mov edi, ebx
dec edi
jmp 0x409aaf
cmp si, word [ebx*8 + 0x4eba08]
jbe 0x409a9e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x409aaf
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4eba0c]
call fcn.0040992c
jmp 0x409ab4
cmp edi, dword [ebp - 8]
jae 0x409a78
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x409b63
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409b63
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.00408194
push dword [ebp - 0x160]
push 0x409b9c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00408194
push dword [ebp - 0x164]
push 0x409bac
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00408194
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004083cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409b88
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407584
ret
Function at 0x409d34
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 0x409e37
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4f3b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4f3ba0]
jne 0x409d80
mov eax, esi
mov edx, 0x4f3ba2
mov ecx, 0x55
call fcn.00408194
push 0x4f3b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409e21
push 0x4f3b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00407524
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409def
cmp byte [0x4f3b84], 0
je 0x409db4
mov edx, esi
mov eax, ebx
call fcn.00409c18
jmp 0x409def
mov edx, esi
mov eax, ebx
call fcn.00409a1c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409def
cmp dword [esi], 0
je 0x409dd8
mov eax, esi
mov edx, 0x409e50
call fcn.004082ec
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409a1c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004082ec
push 0x4f3b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4f3ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.004080d8
push eax
push 0x4f3ba2
call sub.kernel32.dll_lstrcpynW
push 0x4f3b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409e3e
lea eax, [ebp - 4]
call fcn.00407524
ret
Function at 0x40a06c
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.00407608
xor eax, eax
push ebp
push 0x40a291
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40a0ac
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40a0c6
push 0x105
mov eax, dword [ebp - 4]
call fcn.004080d8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40a27b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a2a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a195
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a2a0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a195
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a2dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a195
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a2dc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a195
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a310
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a195
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a344
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40a27b
xor eax, eax
push ebp
push 0x40a274
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409e78
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 0x40a204
mov eax, dword [ebp - 0x10]
call fcn.00404560
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.00408140
jmp 0x40a24f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40a384
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a24f
mov eax, dword [ebp - 0x10]
call fcn.00404560
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40a384
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00408140
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a27b
cmp dword [ebp - 8], 0
je 0x40a26a
mov eax, dword [ebp - 8]
call fcn.0040457c
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 0x40a298
lea eax, [ebp - 4]
call fcn.00407524
ret
Function at 0x40a574
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.00407608
xor eax, eax
push ebp
push 0x40a634
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.00408194
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408344
mov eax, dword [ebx]
call fcn.0040a43c
test al, al
jne 0x40a611
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00408194
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408344
mov eax, dword [ebx]
call fcn.0040a43c
test al, al
jne 0x40a611
mov eax, ebx
call fcn.00407524
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a63b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407584
lea eax, [ebp - 4]
call fcn.00407524
ret

Function at 0x40b074
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 0x41afac
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 0x41b0d5
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 0x41b0af
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 0x41b098
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.00408194
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00408660
test eax, eax
jle 0x41b098
mov eax, dword [ebp - 4]
test eax, eax
je 0x41b04c
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x41b05a
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.004084b4
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.00408140
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.00408344
jmp 0x41b0af
add ebx, 2
cmp word [ebx], 0
jne 0x41b095
add ebx, 4
test ebx, ebx
je 0x41b0a9
cmp word [ebx], 0
jne 0x41affe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b0dc
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00407584
lea eax, [ebp - 4]
call fcn.00407524
ret
Function at 0x41b1c8
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 0x41b405
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.00407524
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 0x41b29f
cmp dword [ebp - 0x14], 0
jne 0x41b29f
xor edx, edx
mov eax, 6
call fcn.00423c90
test al, al
je 0x41b29f
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 0x41b29f
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.00408194
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.0041afac
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.00407904
mov byte [ebp - 9], 1
jmp 0x41b3e7
test ebx, ebx
jne 0x41b2ad
cmp dword [ebp - 0x14], 0
je 0x41b39b
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 0x41b39b
xor eax, eax
push ebp
push 0x41b394
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 0x41b37d
xor eax, eax
push ebp
push 0x41b376
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.0040d6c8
test eax, eax
jbe 0x41b35f
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.00408194
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.0041afac
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.00407904
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b37d
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 0x41b39b
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp byte [ebp - 9], 0
jne 0x41b3e7
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.0041b0e4
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.00407904
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x41b3e7
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0041afac
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.00407904
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b40c
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.00407584
ret
Function at 0x41b418
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.00423c90
test al, al
je 0x41b4e0
xor edx, edx
mov eax, ebx
call fcn.0041cb20
test al, al
je 0x41b4e0
mov eax, ebx
call fcn.0041c8f0
test al, 0x20
je 0x41b4e0
mov eax, ebx
call fcn.004080d8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41b4e0
test ah, 4
je 0x41b4e0
test al, 0x10
je 0x41b47f
mov edi, 0x2000000
jmp 0x41b481
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.004080d8
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x41b4e0
xor eax, eax
push ebp
push 0x41b4d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.0041b1c8
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b4e0
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 0x41b710
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41b769
test eax, edx
je 0x41b76c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41b727
movzx eax, word [eax]
sub eax, ecx
jmp 0x41b74e
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 0x41b74f
add ecx, 4
js 0x41b73f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41b74c
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41b74e
xor eax, eax
ret
test eax, eax
je 0x41b778
test edx, edx
jne 0x41b718
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x41bd50
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 0x41bd68
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x41bd70
mov al, 1
jmp 0x41bd8d
movzx esi, word [ebp]
mov eax, esi
call fcn.0040d964
test al, al
jne 0x41bd89
cmp si, 0x5f
je 0x41bd89
xor eax, eax
jmp 0x41bd8b
mov al, 1
xor al, 1
test al, al
jne 0x41be1d
test bl, bl
je 0x41bddd
mov eax, ebp
test eax, eax
je 0x41bda4
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41be19
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040d9f0
test al, al
jne 0x41bdd1
cmp di, 0x5f
je 0x41bdd1
cmp di, 0x2e
je 0x41bdd1
xor eax, eax
jmp 0x41bdd3
mov al, 1
test al, al
je 0x41be1d
inc esi
dec ebx
jne 0x41bdb1
jmp 0x41be19
mov eax, ebp
test eax, eax
je 0x41bde8
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41be19
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040d9f0
test al, al
jne 0x41be0f
cmp di, 0x5f
je 0x41be0f
xor eax, eax
jmp 0x41be11
mov al, 1
test al, al
je 0x41be1d
inc esi
dec ebx
jne 0x41bdf5
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41c8f0
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 0x41ca24
push dword fs:[eax]
mov dword fs:[eax], esp
movzx ebx, byte [0x41ca34]
mov dl, 1
mov eax, esi
call fcn.0041cbb8
test al, al
jne 0x41c941
mov dl, 1
mov eax, esi
call fcn.0041cb20
test al, al
je 0x41c9d7
lea edx, [ebp - 0x424]
mov eax, esi
call fcn.0041d05c
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 4]
call fcn.00424158
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.004080d8
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x41c9d2
test byte [ebp - 0xc], 1
je 0x41c99d
or bl, 1
test byte [ebp - 0xc], 2
je 0x41c9a6
or bl, 2
test byte [ebp - 0xc], 0x80
je 0x41c9af
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x41c9c3
dec eax
je 0x41c9c8
dec eax
je 0x41c9cd
dec eax
jne 0x41c9fe
or bl, 0x10
jmp 0x41c9fe
or bl, 4
jmp 0x41c9fe
or bl, 8
jmp 0x41c9fe
call fcn.00424d60
lea edx, [ebp - 0x428]
mov eax, dword [0x4f0cc4]
call fcn.0040afc0
mov ecx, dword [ebp - 0x428]
mov dl, 1
mov eax, dword [0x417c00]
call fcn.00422c7c
call fcn.00406bfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ca2b
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.00407584
lea eax, [ebp - 4]
call fcn.00407524
ret
Function at 0x41cb20
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.004080d8
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41cb8a
test ah, 4
je 0x41cb83
test bl, bl
jne 0x41cb48
mov al, 1
jmp 0x41cbb1
test al, 0x10
je 0x41cb50
xor eax, eax
jmp 0x41cbb1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41cb74
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41cbb1
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41cbb1
test al, 0x10
sete al
jmp 0x41cbb1
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41cbab
cmp ebx, 3
je 0x41cbab
cmp ebx, 0x7b
je 0x41cbab
mov eax, esi
call fcn.0041cae0
test al, al
jne 0x41cbaf
xor eax, eax
jmp 0x41cbb1
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x41cbb8
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.004080d8
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41cc5f
test esi, 0x400
jne 0x41cbf4
test esi, 0x10
setne bl
jmp 0x41cc7e
cmp byte [esp], 0
je 0x41cc28
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41cc7e
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41cc7e
test esi, 0x10
je 0x41cc34
mov bl, 1
jmp 0x41cc7e
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41cc5b
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41cc7e
mov bl, 1
jmp 0x41cc7e
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41cc78
cmp eax, 3
je 0x41cc78
cmp eax, 0x7b
je 0x41cc78
cmp eax, 0x35
jne 0x41cc7c
xor ebx, ebx
jmp 0x41cc7e
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41ce3c
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.004080d8
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x41ce91
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41ce8b
test ah, 4
je 0x41ce8b
test al, 0x10
je 0x41ce8b
mov eax, esi
call fcn.004080d8
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x41ce91
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x421de8
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 0x421e21
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004076ac
jmp 0x421e2a
mov eax, ebx
mov edx, esi
call fcn.00407904
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x422b2c
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 0x422c51
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00422934
mov esi, eax
mov eax, dword [0x4f0bf4]
cmp byte [eax], 0
je 0x422bf9
mov eax, dword [0x4f086c]
call fcn.00404ea0
call fcn.004046b4
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 [0x422afc]
call fcn.0040949c
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 0x422c6c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x422c35
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4f07e0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4f3c50]
call fcn.00409560
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 0x422c58
lea eax, [ebp - 4]
mov edx, dword [0x422afc]
call fcn.004094a8
ret