joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f8f0
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 0x40f9f6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x8d0c18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x8d0c30]
jne 0x40f93c
mov eax, esi
mov edx, 0x8d0c32
mov ecx, 0x55
call fcn.0040bf80
push 0x8d0c18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40f9de
push 0x8d0c18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040b054
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40f9ab
cmp byte [0x8d0c14], 0
je 0x40f970
mov edx, esi
mov eax, ebx
call fcn.0040f7d4
jmp 0x40f9ab
mov edx, esi
mov eax, ebx
call fcn.0040f5d4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40f9ab
cmp dword [esi], 0
je 0x40f994
mov eax, esi
mov edx, 0x40fa10
call fcn.0040c0d8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040f5d4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040c0d8
push 0x8d0c18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x8d0c30], bx
mov eax, dword [esi]
call fcn.0040becc
mov ecx, eax
mov eax, 0x8d0c32
mov edx, 0xaa
call fcn.0040f454
push 0x8d0c18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f9fd
lea eax, [ebp - 4]
call fcn.0040b054
pop eax
jmp eax
Function at 0x40fc38
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.0040b148
xor eax, eax
push ebp
push 0x40fe60
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40fc7e
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40fc98
mov eax, dword [ebp - 4]
call fcn.0040becc
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040f454
cmp word [ebp - 0x21e], 0
je 0x40fe43
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40fe70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40fd67
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40fe70
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40fd67
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40feac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40fd67
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40feac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40fd67
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40fee0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40fd67
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ff14
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40fe43
xor eax, eax
push ebp
push 0x40fe3c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040fa38
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 0x40fdca
mov eax, dword [ebp - 0x14]
call fcn.00407108
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.0040bf2c
jmp 0x40fe15
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40ff54
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40fe15
mov eax, dword [ebp - 0x14]
call fcn.00407108
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40ff54
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040bf2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fe43
cmp dword [ebp - 0xc], 0
je 0x40fe30
mov eax, dword [ebp - 0xc]
call fcn.00407124
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 0x40fe67
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b0b4
pop eax
jmp eax
Function at 0x410170
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.0040b148
xor eax, eax
push ebp
push 0x410232
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.0040bf80
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040c130
mov eax, dword [ebx]
call fcn.0041001c
test al, al
jne 0x41020d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040bf80
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040c130
mov eax, dword [ebx]
call fcn.0041001c
test al, al
jne 0x41020d
mov eax, ebx
call fcn.0040b054
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410239
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040b0b4
lea eax, [ebp - 4]
call fcn.0040b054
pop eax
jmp eax

Function at 0x411d98
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 0x41beac
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov dword [esp], eax
mov eax, dword [esp]
mov eax, dword [eax + 0x28]
mov edx, dword [esp]
lea eax, [edx + eax + 0x44]
mov edx, dword [esp]
movzx edx, byte [edx + 0x3d]
shl edx, 3
lea ecx, [eax + edx]
or edx, 0xffffffff
cmp ecx, eax
je 0x41beda
xor edx, dword [eax]
add eax, 4
cmp ecx, eax
jne 0x41bed1
mov eax, edx
pop edx
ret

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

Disassembly:
push ebx
mov ebx, eax
push ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne al
pop ebx
ret
Function at 0x41d4f4
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
push ebp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x41d4fe
mov eax, dword [esp + 0x10000]
add esp, 0xfffffff0
mov dword [esp + 0xc], edx
mov ebx, eax
lea edi, [esp + 0x10]
lea ebp, [esp + 0x1000e]
mov esi, edi
mov eax, ebx
cmp al, 0xf
ja 0x41d536
and eax, 0x7f
bt word [0x841cf5], ax
jae 0x41d54b
push ebp
mov edx, dword [esp + 0x10]
mov ecx, esi
mov eax, dword [0x841cfc]
call fcn.0041d400
mov esi, eax
mov dword [esp + 4], esi
movzx eax, bl
cmp eax, 0xa
ja case.default.0x41d55b
jmp dword [eax*4 + 0x41d562]
mov eax, dword [0x841d08]
mov edx, dword [0x841d0c]
mov dword [esp], edx
jmp 0x41d683
mov eax, dword [0x841d00]
mov edx, dword [0x841d0c]
mov dword [esp], edx
jmp 0x41d683
mov eax, dword [0x841d04]
mov edx, dword [0x841d0c]
mov dword [esp], edx
jmp 0x41d683
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x10], 0
je 0x41d5d8
mov eax, dword [0x841d14]
jmp 0x41d5dd
mov eax, dword [0x841d10]
mov edx, dword [0x841d20]
mov dword [esp], edx
jmp 0x41d683
test byte [0x841cf5], 8
je 0x41d5fb
mov eax, dword [0x841d1c]
jmp 0x41d600
mov eax, dword [0x841d18]
mov edx, dword [0x841d20]
mov dword [esp], edx
jmp 0x41d683
mov eax, dword [0x841d24]
mov edx, dword [0x841d3c]
mov dword [esp], edx
jmp 0x41d683
mov eax, dword [0x841d28]
mov edx, dword [0x841d3c]
mov dword [esp], edx
jmp 0x41d683
mov eax, dword [0x841d30]
mov edx, dword [0x841d3c]
mov dword [esp], edx
jmp 0x41d683
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x14], 0
je 0x41d64c
mov eax, dword [0x841d38]
jmp 0x41d651
mov eax, dword [0x841d34]
mov edx, dword [0x841d3c]
mov dword [esp], edx
jmp 0x41d683
mov eax, dword [0x841d2c]
mov edx, dword [0x841d3c]
mov dword [esp], edx
jmp 0x41d683
mov eax, dword [0x841d40]
mov edx, dword [0x841d44]
mov dword [esp], edx
jmp 0x41d683
xor eax, eax
xor edx, edx
mov dword [esp], edx
push ebp
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.0041d400
mov esi, eax
mov word [esi], 0
mov eax, ebx
cmp al, 0xf
ja 0x41d6a7
and eax, 0x7f
bt word [0x841cf5], ax
jae 0x41d6e9
call fcn.0041d4a4
mov byte [esp + 8], al
cmp byte [esp + 8], 0
jne 0x41d6c2
call fcn.0041d4b0
test al, al
je 0x41d6dd
lea eax, [esp + 0x10]
mov ecx, esi
sub ecx, eax
sar ecx, 1
jns 0x41d6d1
adc ecx, 0
mov edx, edi
mov eax, dword [0x8da2e8]
call fcn.0041c64c
cmp byte [esp + 8], 0
jne 0x41d6e9
call fcn.0041d4d4
mov eax, ebx
cmp al, 0xf
ja 0x41d6fa
and eax, 0x7f
bt word [0x841cf3], ax
jae 0x41d702
push edi
call sub.kernel32.dll_OutputDebugStringW
cmp bl, 0xf
ja 0x41d712
and ebx, 0x7f
bt word [0x841cf7], bx
jae 0x41d725
call fcn.0041d4d4
mov edx, dword [esp]
mov eax, dword [esp + 4]
call fcn.0041c488
add esp, 0x10014
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42f9a0
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 0x42facc
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 0x42faa4
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 0x42fa8d
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040bf80
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040c454
test eax, eax
jle 0x42fa8d
mov eax, dword [ebp - 4]
test eax, eax
je 0x42fa43
mov eax, dword [eax - 4]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x42fa4f
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.0040c300
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040bf2c
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040c130
jmp 0x42faa4
add ebx, 2
cmp word [ebx], 0
jne 0x42fa8a
add ebx, 4
test ebx, ebx
je 0x42fa9e
cmp word [ebx], 0
jne 0x42f9f2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42fad3
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.0040b0b4
lea eax, [ebp - 4]
call fcn.0040b054
pop eax
jmp eax
Function at 0x42fe84
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.0043a95c
test al, al
je 0x42ff4e
xor edx, edx
mov eax, ebx
call fcn.00431b38
test al, al
je 0x42ff4e
mov eax, ebx
call fcn.004316fc
test al, 0x20
je 0x42ff4e
mov eax, ebx
call fcn.0040becc
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42ff4e
test ah, 4
je 0x42ff4e
test al, 0x10
je 0x42feeb
mov edi, 0x2000000
jmp 0x42feed
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040becc
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x42ff4e
xor eax, eax
push ebp
push 0x42ff47
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.0042fbc8
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ff4e
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 0x430148
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4301a1
test eax, edx
je 0x4301a4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x43015f
movzx eax, word [eax]
sub eax, ecx
jmp 0x430186
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 0x430187
add ecx, 4
js 0x430177
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x430184
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x430186
xor eax, eax
ret
test eax, eax
je 0x4301b0
test edx, edx
jne 0x430150
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4315a8
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 0x431689
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
je 0x43166c
test edi, edi
je 0x43166c
xor edx, edx
mov eax, 6
call fcn.0043a95c
test al, al
je 0x43166c
lea edx, [ebp - 4]
mov eax, edi
call fcn.00432118
mov eax, dword [ebp - 4]
call fcn.004316fc
test al, 0x20
je 0x43166c
mov eax, esi
call fcn.00432410
test al, al
je 0x431632
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0043ae74
lea eax, [ebp - 8]
mov edx, esi
call fcn.0040c0d8
mov eax, dword [ebp - 8]
call fcn.0040becc
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
jmp 0x431641
mov eax, esi
call fcn.0040becc
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x431652
test bl, 0x10
je 0x431652
mov ebx, 1
jmp 0x431654
xor ebx, ebx
push ebx
mov eax, esi
call fcn.0040becc
push eax
mov eax, edi
call fcn.0040becc
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 0x431690
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b0b4
pop eax
jmp eax

Function at 0x4316fc
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 0x431850
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x43169c]
call fcn.0040e884
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4316cc]
call fcn.0040e884
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.00431bd0
test al, al
jne 0x431772
mov dl, 1
mov eax, esi
call fcn.00431b38
test al, al
je 0x4317fc
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00432254
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.0043ae74
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.0040becc
mov edi, eax
push edi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x4317f7
test byte [ebp - 0x14], 1
je 0x4317c2
or bl, 1
test byte [ebp - 0x14], 2
je 0x4317cb
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x4317d4
or bl, 0x20
push edi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x4317e8
dec eax
je 0x4317ed
dec eax
je 0x4317f2
dec eax
jne 0x431814
or bl, 0x10
jmp 0x431814
or bl, 4
jmp 0x431814
or bl, 8
jmp 0x431814
call fcn.0043bcbc
push esi
mov ecx, dword [0x8cd4ac]
mov dl, 1
mov eax, dword [0x4298f0]
call fcn.00439b5c
call fcn.0040a700
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x431857
lea eax, [ebp - 0x1c]
call fcn.0040b054
lea eax, [ebp - 0xc]
mov edx, dword [0x4316cc]
call fcn.0040e9a8
lea eax, [ebp - 8]
mov edx, dword [0x43169c]
call fcn.0040e9a8
lea eax, [ebp - 4]
call fcn.0040b054
pop eax
jmp eax
Function at 0x431b38
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.0040becc
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x431ba2
test ah, 4
je 0x431b9b
test bl, bl
jne 0x431b60
mov al, 1
jmp 0x431bc9
test al, 0x10
je 0x431b68
xor eax, eax
jmp 0x431bc9
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x431b8c
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x431bc9
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x431bc9
test al, 0x10
sete al
jmp 0x431bc9
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x431bc3
cmp ebx, 3
je 0x431bc3
cmp ebx, 0x7b
je 0x431bc3
mov eax, esi
call fcn.00431af8
test al, al
jne 0x431bc7
xor eax, eax
jmp 0x431bc9
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x431bd0
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.0040becc
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x431c6e
test esi, 0x400
jne 0x431c05
test esi, 0x10
setne bl
jmp 0x431c6e
cmp byte [esp], 0
je 0x431c39
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x431c6e
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x431c6e
test esi, 0x10
je 0x431c45
mov bl, 1
jmp 0x431c6e
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x431c6c
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x431c6e
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x431d74
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 0x431e1b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040becc
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
test edi, 0x400
setne al
test al, bl
je 0x431dfe
or edi, 0xffffffff
lea edx, [ebp - 4]
mov eax, esi
call fcn.0042fe84
test al, al
je 0x431dfe
mov eax, dword [ebp - 4]
call fcn.00432410
test al, al
je 0x431dee
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00432118
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0043ae74
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.0040c130
mov eax, dword [ebp - 4]
call fcn.0040becc
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 0x431e22
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040b0b4
pop eax
jmp eax
Function at 0x431e2c
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 0x431f01
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040b48c
cmp byte [ebp - 9], 0
je 0x431ebd
mov eax, ebx
call fcn.0040becc
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x431ebd
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0042fe84
test al, al
je 0x431ebd
mov eax, dword [ebp - 8]
call fcn.00432410
test al, al
je 0x431eb2
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00432118
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0043ae74
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040c130
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040b48c
push edi
mov eax, dword [ebp - 4]
call fcn.0040becc
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x431ed7
call sub.kernel32.dll_GetLastError
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x431f08
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040b0b4
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b0b4
pop eax
jmp eax

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

Function at 0x4375e0
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 0x437619
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040b1ec
jmp 0x437622
mov eax, ebx
mov edx, esi
call fcn.0040b444
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x43762c
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 0x437650
movzx eax, word [esp]
jmp 0x437652
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x439338
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 0x43945f
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00439140
mov esi, eax
mov eax, dword [0x8cd30c]
cmp byte [eax], 0
je 0x439405
mov eax, dword [0x8ccd10]
call fcn.004081b4
call fcn.004072ec
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
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x439308]
call fcn.0040e884
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
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x439478
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x439441
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x8ccc20]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x8d163c]
call fcn.0040f0f8
push eax
call sub.user32.dll_LoadStringW
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 0x439466
lea eax, [ebp - 4]
mov edx, dword [0x439308]
call fcn.0040e9a8
pop eax
jmp eax