joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a084
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x60e05c], 0
je 0x40a0eb
cmp word [0x60e348], 0xd7b2
jne 0x40a0ad
cmp dword [0x60e350], 0
jbe 0x40a0ad
mov eax, 0x60e344
call dword [0x60e360]
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, 0x40a118
call fcn.0040ac04
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x604036], 0
jne 0x40a107
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a2ac
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 [0x604038], 0
je 0x40a2d7
mov edx, edi
mov eax, esi
call dword [0x604038]
mov ebx, eax
jmp 0x40a2e8
mov eax, 8
call fcn.00406fcc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x60e05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a274
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 0x40a318
mov eax, ebx
call fcn.00406fe8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40db68
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 0x40dccf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a3ec
cmp si, word [0x604a18]
jb 0x40dc00
cmp si, word [0x604c18]
ja 0x40dc00
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40dc00
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x604a18]
jae 0x40dbda
mov edi, ebx
dec edi
jmp 0x40dbfb
cmp si, word [ebx*8 + 0x604a18]
jbe 0x40dbea
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40dbfb
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x604a1c]
call fcn.0040da84
jmp 0x40dc00
cmp edi, dword [ebp - 8]
jae 0x40dbc4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40dcaf
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dcaf
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.0040aeec
push dword [ebp - 0x160]
push 0x40dcec
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040aeec
push dword [ebp - 0x164]
push 0x40dcfc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040aeec
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b124
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dcd6
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a44c
pop eax
jmp eax
Function at 0x40de84
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 0x40df8a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x610c18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x610c30]
jne 0x40ded0
mov eax, esi
mov edx, 0x610c32
mov ecx, 0x55
call fcn.0040aeec
push 0x610c18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40df72
push 0x610c18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a3ec
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40df3f
cmp byte [0x610c14], 0
je 0x40df04
mov edx, esi
mov eax, ebx
call fcn.0040dd68
jmp 0x40df3f
mov edx, esi
mov eax, ebx
call fcn.0040db68
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40df3f
cmp dword [esi], 0
je 0x40df28
mov eax, esi
mov edx, 0x40dfa4
call fcn.0040b044
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040db68
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b044
push 0x610c18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x610c30], bx
mov eax, dword [esi]
call fcn.0040ae50
mov ecx, eax
mov eax, 0x610c32
mov edx, 0xaa
call fcn.0040d9e4
push 0x610c18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40df91
lea eax, [ebp - 4]
call fcn.0040a3ec
pop eax
jmp eax
Function at 0x40e1cc
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.0040a4e0
xor eax, eax
push ebp
push 0x40e3f4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e212
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e22c
mov eax, dword [ebp - 4]
call fcn.0040ae50
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040d9e4
cmp word [ebp - 0x21e], 0
je 0x40e3d7
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e404
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e2fb
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e404
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e2fb
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e440
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e2fb
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e440
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e2fb
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e474
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e2fb
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e4a8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e3d7
xor eax, eax
push ebp
push 0x40e3d0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040dfcc
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 0x40e35e
mov eax, dword [ebp - 0x14]
call fcn.00406fcc
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.0040aeb0
jmp 0x40e3a9
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e4e8
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e3a9
mov eax, dword [ebp - 0x14]
call fcn.00406fcc
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e4e8
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040aeb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e3d7
cmp dword [ebp - 0xc], 0
je 0x40e3c4
mov eax, dword [ebp - 0xc]
call fcn.00406fe8
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 0x40e3fb
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a44c
pop eax
jmp eax
Function at 0x40e708
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.0040a4e0
xor eax, eax
push ebp
push 0x40e7ca
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.0040aeec
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b09c
mov eax, dword [ebx]
call fcn.0040e5b0
test al, al
jne 0x40e7a5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040aeec
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b09c
mov eax, dword [ebx]
call fcn.0040e5b0
test al, al
jne 0x40e7a5
mov eax, ebx
call fcn.0040a3ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e7d1
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a44c
lea eax, [ebp - 4]
call fcn.0040a3ec
pop eax
jmp eax

Function at 0x410330
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 0x42522c
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 0x42535c
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 0x425334
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 0x42531d
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040aeec
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040b368
test eax, eax
jle 0x42531d
mov eax, dword [ebp - 4]
test eax, eax
je 0x4252d1
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x4252df
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.0040b20c
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040aeb0
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040b09c
jmp 0x425334
add ebx, 2
cmp word [ebx], 0
jne 0x42531a
add ebx, 4
test ebx, ebx
je 0x42532e
cmp word [ebx], 0
jne 0x42527e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x425363
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.0040a44c
lea eax, [ebp - 4]
call fcn.0040a3ec
pop eax
jmp eax
Function at 0x425710
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.0042f220
test al, al
je 0x4257da
xor edx, edx
mov eax, ebx
call fcn.0042709c
test al, al
je 0x4257da
mov eax, ebx
call fcn.00426e50
test al, 0x20
je 0x4257da
mov eax, ebx
call fcn.0040ae50
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4257da
test ah, 4
je 0x4257da
test al, 0x10
je 0x425777
mov edi, 0x2000000
jmp 0x425779
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040ae50
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4257da
xor eax, eax
push ebp
push 0x4257d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.00425458
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4257da
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 0x425a84
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x425add
test eax, edx
je 0x425ae0
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x425a9b
movzx eax, word [eax]
sub eax, ecx
jmp 0x425ac2
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 0x425ac3
add ecx, 4
js 0x425ab3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x425ac0
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x425ac2
xor eax, eax
ret
test eax, eax
je 0x425aec
test edx, edx
jne 0x425a8c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x426cfc
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 0x426ddd
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
je 0x426dc0
test edi, edi
je 0x426dc0
xor edx, edx
mov eax, 6
call fcn.0042f220
test al, al
je 0x426dc0
lea edx, [ebp - 4]
mov eax, edi
call fcn.004277a0
mov eax, dword [ebp - 4]
call fcn.00426e50
test al, 0x20
je 0x426dc0
mov eax, esi
call fcn.00427a64
test al, al
je 0x426d86
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0042f750
lea eax, [ebp - 8]
mov edx, esi
call fcn.0040b044
mov eax, dword [ebp - 8]
call fcn.0040ae50
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
jmp 0x426d95
mov eax, esi
call fcn.0040ae50
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x426da6
test bl, 0x10
je 0x426da6
mov ebx, 1
jmp 0x426da8
xor ebx, ebx
push ebx
mov eax, esi
call fcn.0040ae50
push eax
mov eax, edi
call fcn.0040ae50
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 0x426de4
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a44c
pop eax
jmp eax

Function at 0x426e50
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 0x426fa4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x426df0]
call fcn.0040d0c4
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x426e20]
call fcn.0040d0c4
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.00427134
test al, al
jne 0x426ec6
mov dl, 1
mov eax, esi
call fcn.0042709c
test al, al
je 0x426f50
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.004278e0
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.0042f750
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.0040ae50
mov edi, eax
push edi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x426f4b
test byte [ebp - 0x14], 1
je 0x426f16
or bl, 1
test byte [ebp - 0x14], 2
je 0x426f1f
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x426f28
or bl, 0x20
push edi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x426f3c
dec eax
je 0x426f41
dec eax
je 0x426f46
dec eax
jne 0x426f68
or bl, 0x10
jmp 0x426f68
or bl, 4
jmp 0x426f68
or bl, 8
jmp 0x426f68
call fcn.004305ac
push esi
mov ecx, dword [0x60d3f0]
mov dl, 1
mov eax, dword [0x41f4a8]
call fcn.0042e424
call fcn.00409ae4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426fab
lea eax, [ebp - 0x1c]
call fcn.0040a3ec
lea eax, [ebp - 0xc]
mov edx, dword [0x426e20]
call fcn.0040d1e8
lea eax, [ebp - 8]
mov edx, dword [0x426df0]
call fcn.0040d1e8
lea eax, [ebp - 4]
call fcn.0040a3ec
pop eax
jmp eax
Function at 0x42709c
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.0040ae50
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x427106
test ah, 4
je 0x4270ff
test bl, bl
jne 0x4270c4
mov al, 1
jmp 0x42712d
test al, 0x10
je 0x4270cc
xor eax, eax
jmp 0x42712d
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4270f0
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x42712d
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x42712d
test al, 0x10
sete al
jmp 0x42712d
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x427127
cmp ebx, 3
je 0x427127
cmp ebx, 0x7b
je 0x427127
mov eax, esi
call fcn.0042705c
test al, al
jne 0x42712b
xor eax, eax
jmp 0x42712d
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x427134
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.0040ae50
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x4271d2
test esi, 0x400
jne 0x427169
test esi, 0x10
setne bl
jmp 0x4271d2
cmp byte [esp], 0
je 0x42719d
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4271d2
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x4271d2
test esi, 0x10
je 0x4271a9
mov bl, 1
jmp 0x4271d2
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4271d0
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x4271d2
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x427394
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 0x42743b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040ae50
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
test edi, 0x400
setne al
test al, bl
je 0x42741e
or edi, 0xffffffff
lea edx, [ebp - 4]
mov eax, esi
call fcn.00425710
test al, al
je 0x42741e
mov eax, dword [ebp - 4]
call fcn.00427a64
test al, al
je 0x42740e
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.004277a0
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0042f750
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.0040b09c
mov eax, dword [ebp - 4]
call fcn.0040ae50
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 0x427442
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040a44c
pop eax
jmp eax
Function at 0x42744c
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 0x427521
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a824
cmp byte [ebp - 9], 0
je 0x4274dd
mov eax, ebx
call fcn.0040ae50
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x4274dd
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00425710
test al, al
je 0x4274dd
mov eax, dword [ebp - 8]
call fcn.00427a64
test al, al
je 0x4274d2
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.004277a0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0042f750
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040b09c
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040a824
push edi
mov eax, dword [ebp - 4]
call fcn.0040ae50
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x4274f7
call sub.kernel32.dll_GetLastError
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427528
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a44c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a44c
pop eax
jmp eax

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

Function at 0x42c220
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 0x42c259
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a584
jmp 0x42c262
mov eax, ebx
mov edx, esi
call fcn.0040a7dc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42c26c
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 0x42c290
movzx eax, word [esp]
jmp 0x42c292
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42d9b0
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 0x42dad7
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042d7b8
mov esi, eax
mov eax, dword [0x60d2f8]
cmp byte [eax], 0
je 0x42da7d
mov eax, dword [0x60cf98]
call fcn.00407dbc
call fcn.00407140
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 [0x42d980]
call fcn.0040d0c4
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 0x42daf0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42dab9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x60cf08]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x61163c]
call fcn.0040d688
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 0x42dade
lea eax, [ebp - 4]
mov edx, dword [0x42d980]
call fcn.0040d1e8
pop eax
jmp eax