joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409aa4
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x506b9c
cmp dword [ebp + 0xc], 2
jl 0x409ab8
mov ebx, 0x506bcc
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x409af0
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x4051f8
mov dword [0x50401c], eax
mov eax, 0x405200
mov dword [0x504020], eax
mov eax, ebx
call fcn.00409988
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x409b25
cmp al, 3
jge 0x409b25
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x409b36
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x409b41
call dword [ecx + eax*4]
cmp dword [0x504040], 0
jne 0x409b57
mov byte [0x504048], 1
fnstcw word [0x4fb02c]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00409e04
call fcn.00409a38
ret 4

Function at 0x409d6c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x504058], 0
je 0x409dd3
cmp word [0x504348], 0xd7b2
jne 0x409d95
cmp dword [0x504350], 0
jbe 0x409d95
mov eax, 0x504344
call dword [0x504360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x409e00
call fcn.0040a8e8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4fb036], 0
jne 0x409def
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409f94
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 [0x4fb038], 0
je 0x409fbf
mov edx, edi
mov eax, esi
call dword [0x4fb038]
mov ebx, eax
jmp 0x409fd0
mov eax, 8
call fcn.00406dd8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x504059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409f5c
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 0x40a000
mov eax, ebx
call fcn.00406df4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40db08
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 0x40dc6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a0d4
cmp si, word [0x4fba18]
jb 0x40dba0
cmp si, word [0x4fbc18]
ja 0x40dba0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40dba0
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4fba18]
jae 0x40db7a
mov edi, ebx
dec edi
jmp 0x40db9b
cmp si, word [ebx*8 + 0x4fba18]
jbe 0x40db8a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40db9b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4fba1c]
call fcn.0040da28
jmp 0x40dba0
cmp edi, dword [ebp - 8]
jae 0x40db64
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40dc4f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dc4f
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.0040abd0
push dword [ebp - 0x160]
push 0x40dc8c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040abd0
push dword [ebp - 0x164]
push 0x40dc9c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040abd0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ae08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc76
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a134
pop eax
jmp eax
Function at 0x40de24
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 0x40df2a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x506c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x506c2c]
jne 0x40de70
mov eax, esi
mov edx, 0x506c2e
mov ecx, 0x55
call fcn.0040abd0
push 0x506c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40df12
push 0x506c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a0d4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dedf
cmp byte [0x506c10], 0
je 0x40dea4
mov edx, esi
mov eax, ebx
call fcn.0040dd08
jmp 0x40dedf
mov edx, esi
mov eax, ebx
call fcn.0040db08
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40dedf
cmp dword [esi], 0
je 0x40dec8
mov eax, esi
mov edx, 0x40df44
call fcn.0040ad28
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040db08
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ad28
push 0x506c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x506c2c], bx
mov eax, dword [esi]
call fcn.0040ab34
mov ecx, eax
mov eax, 0x506c2e
mov edx, 0xaa
call fcn.0040d988
push 0x506c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40df31
lea eax, [ebp - 4]
call fcn.0040a0d4
pop eax
jmp eax
Function at 0x40e16c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a1c8
xor eax, eax
push ebp
push 0x40e394
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e1b2
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e1cc
mov eax, dword [ebp - 4]
call fcn.0040ab34
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040d988
cmp word [ebp - 0x21e], 0
je 0x40e377
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e3a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e29b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e3a4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e29b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e3e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e29b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e3e0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e29b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e414
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e29b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e448
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e377
xor eax, eax
push ebp
push 0x40e370
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040df6c
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e2fe
mov eax, dword [ebp - 0x14]
call fcn.00406dd8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ab94
jmp 0x40e349
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e488
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e349
mov eax, dword [ebp - 0x14]
call fcn.00406dd8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e488
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ab94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e377
cmp dword [ebp - 0xc], 0
je 0x40e364
mov eax, dword [ebp - 0xc]
call fcn.00406df4
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e39b
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a134
pop eax
jmp eax
Function at 0x40e6a4
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.0040a1c8
xor eax, eax
push ebp
push 0x40e766
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.0040abd0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ad80
mov eax, dword [ebx]
call fcn.0040e550
test al, al
jne 0x40e741
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040abd0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ad80
mov eax, dword [ebx]
call fcn.0040e550
test al, al
jne 0x40e741
mov eax, ebx
call fcn.0040a0d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e76d
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a134
lea eax, [ebp - 4]
call fcn.0040a0d4
pop eax
jmp eax

Function at 0x4102c8
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 0x42185c
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 0x421988
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 0x421960
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 0x421949
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040abd0
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040af90
test eax, eax
jle 0x421949
mov eax, dword [ebp - 4]
test eax, eax
je 0x4218ff
mov eax, dword [eax - 4]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x42190b
mov edi, dword [edi - 4]
lea eax, [ebp - 0x428]
push eax
mov ecx, edi
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.0040aef0
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040ab94
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040ad80
jmp 0x421960
add ebx, 2
cmp word [ebx], 0
jne 0x421946
add ebx, 4
test ebx, ebx
je 0x42195a
cmp word [ebx], 0
jne 0x4218ae
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42198f
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.0040a134
lea eax, [ebp - 4]
call fcn.0040a0d4
pop eax
jmp eax
Function at 0x421d40
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.0042b998
test al, al
je 0x421e0a
xor edx, edx
mov eax, ebx
call fcn.004230f8
test al, al
je 0x421e0a
mov eax, ebx
call fcn.00422eac
test al, 0x20
je 0x421e0a
mov eax, ebx
call fcn.0040ab34
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x421e0a
test ah, 4
je 0x421e0a
test al, 0x10
je 0x421da7
mov edi, 0x2000000
jmp 0x421da9
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040ab34
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x421e0a
xor eax, eax
push ebp
push 0x421e03
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.00421a84
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421e0a
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
pop eax
jmp eax
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x421efc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x421f55
test eax, edx
je 0x421f58
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x421f13
movzx eax, word [eax]
sub eax, ecx
jmp 0x421f3a
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 [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x421f3b
add ecx, 4
js 0x421f2b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x421f38
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x421f3a
xor eax, eax
ret
test eax, eax
je 0x421f64
test edx, edx
jne 0x421f04
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x422d58
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x422e39
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
je 0x422e1c
test edi, edi
je 0x422e1c
xor edx, edx
mov eax, 6
call fcn.0042b998
test al, al
je 0x422e1c
lea edx, [ebp - 4]
mov eax, edi
call fcn.004237b0
mov eax, dword [ebp - 4]
call fcn.00422eac
test al, 0x20
je 0x422e1c
mov eax, esi
call fcn.004239fc
test al, al
je 0x422de2
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0042bdc0
lea eax, [ebp - 8]
mov edx, esi
call fcn.0040ad28
mov eax, dword [ebp - 8]
call fcn.0040ab34
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
jmp 0x422df1
mov eax, esi
call fcn.0040ab34
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x422e02
test bl, 0x10
je 0x422e02
mov ebx, 1
jmp 0x422e04
xor ebx, ebx
push ebx
mov eax, esi
call fcn.0040ab34
push eax
mov eax, edi
call fcn.0040ab34
push eax
call sub.kernel32.dll_CreateSymbolicLinkW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422e40
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a134
pop eax
jmp eax

Function at 0x422eac
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 ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x423000
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x422e4c]
call fcn.0040cf5c
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x422e7c]
call fcn.0040cf5c
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.00423190
test al, al
jne 0x422f22
mov dl, 1
mov eax, esi
call fcn.004230f8
test al, al
je 0x422fac
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.004238ec
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.0042bdc0
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.0040ab34
mov edi, eax
push edi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x422fa7
test byte [ebp - 0x14], 1
je 0x422f72
or bl, 1
test byte [ebp - 0x14], 2
je 0x422f7b
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x422f84
or bl, 0x20
push edi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x422f98
dec eax
je 0x422f9d
dec eax
je 0x422fa2
dec eax
jne 0x422fc4
or bl, 0x10
jmp 0x422fc4
or bl, 4
jmp 0x422fc4
or bl, 8
jmp 0x422fc4
call fcn.0042cba4
push esi
mov ecx, dword [0x503bec]
mov dl, 1
mov eax, dword [0x41b768]
call fcn.0042ae38
call fcn.0040973c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423007
lea eax, [ebp - 0x1c]
call fcn.0040a0d4
lea eax, [ebp - 0xc]
mov edx, dword [0x422e7c]
call fcn.0040d080
lea eax, [ebp - 8]
mov edx, dword [0x422e4c]
call fcn.0040d080
lea eax, [ebp - 4]
call fcn.0040a0d4
pop eax
jmp eax
Function at 0x4230f8
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.0040ab34
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x423162
test ah, 4
je 0x42315b
test bl, bl
jne 0x423120
mov al, 1
jmp 0x423189
test al, 0x10
je 0x423128
xor eax, eax
jmp 0x423189
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42314c
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x423189
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x423189
test al, 0x10
sete al
jmp 0x423189
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x423183
cmp ebx, 3
je 0x423183
cmp ebx, 0x7b
je 0x423183
mov eax, esi
call fcn.004230b8
test al, al
jne 0x423187
xor eax, eax
jmp 0x423189
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x423190
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.0040ab34
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42322e
test esi, 0x400
jne 0x4231c5
test esi, 0x10
setne bl
jmp 0x42322e
cmp byte [esp], 0
je 0x4231f9
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42322e
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x42322e
test esi, 0x10
je 0x423205
mov bl, 1
jmp 0x42322e
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42322c
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x42322e
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4233ec
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x423493
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040ab34
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
test edi, 0x400
setne al
test al, bl
je 0x423476
or edi, 0xffffffff
lea edx, [ebp - 4]
mov eax, esi
call fcn.00421d40
test al, al
je 0x423476
mov eax, dword [ebp - 4]
call fcn.004239fc
test al, al
je 0x423466
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.004237b0
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0042bdc0
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.0040ad80
mov eax, dword [ebp - 4]
call fcn.0040ab34
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42349a
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040a134
pop eax
jmp eax
Function at 0x4234a4
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 0x423579
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a50c
cmp byte [ebp - 9], 0
je 0x423535
mov eax, ebx
call fcn.0040ab34
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x423535
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00421d40
test al, al
je 0x423535
mov eax, dword [ebp - 8]
call fcn.004239fc
test al, al
je 0x42352a
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.004237b0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0042bdc0
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040ad80
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040a50c
push edi
mov eax, dword [ebp - 4]
call fcn.0040ab34
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x42354f
call sub.kernel32.dll_GetLastError
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423580
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a134
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a134
pop eax
jmp eax

Function at 0x4236b8
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.0040ab34
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x42370d
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x423707
test ah, 4
je 0x423707
test al, 0x10
je 0x423707
mov eax, esi
call fcn.0040ab34
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x42370d
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x428594
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
test eax, eax
jle 0x4285cd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a26c
jmp 0x4285d6
mov eax, ebx
mov edx, esi
call fcn.0040a4c4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4285e0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x428604
movzx eax, word [esp]
jmp 0x428606
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret