joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b450
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 [0x678038], 0
je 0x40b47b
mov edx, edi
mov eax, esi
call dword [0x678038]
mov ebx, eax
jmp 0x40b48c
mov eax, 8
call fcn.00407004
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x68305d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40b418
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 0x40b4bc
mov eax, ebx
call fcn.00407020
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40ef9c
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 0x40f103
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040b590
cmp si, word [0x678a38]
jb 0x40f034
cmp si, word [0x678c38]
ja 0x40f034
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40f034
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x678a38]
jae 0x40f00e
mov edi, ebx
dec edi
jmp 0x40f02f
cmp si, word [ebx*8 + 0x678a38]
jbe 0x40f01e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40f02f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x678a3c]
call fcn.0040eeb8
jmp 0x40f034
cmp edi, dword [ebp - 8]
jae 0x40eff8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40f0e3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40f0e3
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.0040c1dc
push dword [ebp - 0x160]
push 0x40f120
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040c1dc
push dword [ebp - 0x164]
push 0x40f130
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040c1dc
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040c414
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f10a
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040b5f0
pop eax
jmp eax
Function at 0x40f2b8
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 0x40f3be
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x685c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x685c2c]
jne 0x40f304
mov eax, esi
mov edx, 0x685c2e
mov ecx, 0x55
call fcn.0040c1dc
push 0x685c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40f3a6
push 0x685c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040b590
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40f373
cmp byte [0x685c10], 0
je 0x40f338
mov edx, esi
mov eax, ebx
call fcn.0040f19c
jmp 0x40f373
mov edx, esi
mov eax, ebx
call fcn.0040ef9c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40f373
cmp dword [esi], 0
je 0x40f35c
mov eax, esi
mov edx, 0x40f3d8
call fcn.0040c334
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040ef9c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040c334
push 0x685c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x685c2c], bx
mov eax, dword [esi]
call fcn.0040c128
mov ecx, eax
mov eax, 0x685c2e
mov edx, 0xaa
call fcn.0040ee18
push 0x685c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f3c5
lea eax, [ebp - 4]
call fcn.0040b590
pop eax
jmp eax
Function at 0x40f600
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.0040b684
xor eax, eax
push ebp
push 0x40f828
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40f646
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40f660
mov eax, dword [ebp - 4]
call fcn.0040c128
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040ee18
cmp word [ebp - 0x21e], 0
je 0x40f80b
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f838
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f72f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f838
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f72f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f874
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f72f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f874
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f72f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f8a8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f72f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f8dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40f80b
xor eax, eax
push ebp
push 0x40f804
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040f400
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 0x40f792
mov eax, dword [ebp - 0x14]
call fcn.00407004
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.0040c188
jmp 0x40f7dd
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40f91c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40f7dd
mov eax, dword [ebp - 0x14]
call fcn.00407004
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40f91c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040c188
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f80b
cmp dword [ebp - 0xc], 0
je 0x40f7f8
mov eax, dword [ebp - 0xc]
call fcn.00407020
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 0x40f82f
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b5f0
pop eax
jmp eax
Function at 0x40fb3c
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.0040b684
xor eax, eax
push ebp
push 0x40fbfe
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.0040c1dc
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040c38c
mov eax, dword [ebx]
call fcn.0040f9e4
test al, al
jne 0x40fbd9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040c1dc
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040c38c
mov eax, dword [ebx]
call fcn.0040f9e4
test al, al
jne 0x40fbd9
mov eax, ebx
call fcn.0040b590
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fc05
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040b5f0
lea eax, [ebp - 4]
call fcn.0040b590
pop eax
jmp eax

Function at 0x411768
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 0x426990
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 0x426ac0
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 0x426a98
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 0x426a81
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040c1dc
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040c658
test eax, eax
jle 0x426a81
mov eax, dword [ebp - 4]
test eax, eax
je 0x426a35
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x426a43
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.0040c4fc
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040c188
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040c38c
jmp 0x426a98
add ebx, 2
cmp word [ebx], 0
jne 0x426a7e
add ebx, 4
test ebx, ebx
je 0x426a92
cmp word [ebx], 0
jne 0x4269e2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426ac7
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.0040b5f0
lea eax, [ebp - 4]
call fcn.0040b590
pop eax
jmp eax
Function at 0x426e74
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.00430e74
test al, al
je 0x426f3e
xor edx, edx
mov eax, ebx
call fcn.00428b58
test al, al
je 0x426f3e
mov eax, ebx
call fcn.00428728
test al, 0x20
je 0x426f3e
mov eax, ebx
call fcn.0040c128
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x426f3e
test ah, 4
je 0x426f3e
test al, 0x10
je 0x426edb
mov edi, 0x2000000
jmp 0x426edd
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040c128
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x426f3e
xor eax, eax
push ebp
push 0x426f37
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.00426bbc
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426f3e
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 0x427234
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x42728d
test eax, edx
je 0x427290
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x42724b
movzx eax, word [eax]
sub eax, ecx
jmp 0x427272
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 0x427273
add ecx, 4
js 0x427263
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x427270
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x427272
xor eax, eax
ret
test eax, eax
je 0x42729c
test edx, edx
jne 0x42723c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4285d4
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 0x4286b5
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
je 0x428698
test edi, edi
je 0x428698
xor edx, edx
mov eax, 6
call fcn.00430e74
test al, al
je 0x428698
lea edx, [ebp - 4]
mov eax, edi
call fcn.00429330
mov eax, dword [ebp - 4]
call fcn.00428728
test al, 0x20
je 0x428698
mov eax, esi
call fcn.004295f4
test al, al
je 0x42865e
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004313a4
lea eax, [ebp - 8]
mov edx, esi
call fcn.0040c334
mov eax, dword [ebp - 8]
call fcn.0040c128
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
jmp 0x42866d
mov eax, esi
call fcn.0040c128
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42867e
test bl, 0x10
je 0x42867e
mov ebx, 1
jmp 0x428680
xor ebx, ebx
push ebx
mov eax, esi
call fcn.0040c128
push eax
mov eax, edi
call fcn.0040c128
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 0x4286bc
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b5f0
pop eax
jmp eax

Function at 0x428728
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 0x42887c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4286c8]
call fcn.0040e4f0
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4286f8]
call fcn.0040e4f0
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.00428bf0
test al, al
jne 0x42879e
mov dl, 1
mov eax, esi
call fcn.00428b58
test al, al
je 0x428828
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00429470
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.004313a4
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.0040c128
mov edi, eax
push edi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x428823
test byte [ebp - 0x14], 1
je 0x4287ee
or bl, 1
test byte [ebp - 0x14], 2
je 0x4287f7
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x428800
or bl, 0x20
push edi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x428814
dec eax
je 0x428819
dec eax
je 0x42881e
dec eax
jne 0x428840
or bl, 0x10
jmp 0x428840
or bl, 4
jmp 0x428840
or bl, 8
jmp 0x428840
call fcn.00432200
push esi
mov ecx, dword [0x68256c]
mov dl, 1
mov eax, dword [0x420c0c]
call fcn.00430044
call fcn.0040ac4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428883
lea eax, [ebp - 0x1c]
call fcn.0040b590
lea eax, [ebp - 0xc]
mov edx, dword [0x4286f8]
call fcn.0040e614
lea eax, [ebp - 8]
mov edx, dword [0x4286c8]
call fcn.0040e614
lea eax, [ebp - 4]
call fcn.0040b590
pop eax
jmp eax
Function at 0x428b58
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.0040c128
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x428bc2
test ah, 4
je 0x428bbb
test bl, bl
jne 0x428b80
mov al, 1
jmp 0x428be9
test al, 0x10
je 0x428b88
xor eax, eax
jmp 0x428be9
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x428bac
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x428be9
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x428be9
test al, 0x10
sete al
jmp 0x428be9
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x428be3
cmp ebx, 3
je 0x428be3
cmp ebx, 0x7b
je 0x428be3
mov eax, esi
call fcn.00428b18
test al, al
jne 0x428be7
xor eax, eax
jmp 0x428be9
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x428bf0
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.0040c128
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x428c8e
test esi, 0x400
jne 0x428c25
test esi, 0x10
setne bl
jmp 0x428c8e
cmp byte [esp], 0
je 0x428c59
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x428c8e
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x428c8e
test esi, 0x10
je 0x428c65
mov bl, 1
jmp 0x428c8e
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x428c8c
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x428c8e
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x428e50
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 0x428ef7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040c128
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
test edi, 0x400
setne al
test al, bl
je 0x428eda
or edi, 0xffffffff
lea edx, [ebp - 4]
mov eax, esi
call fcn.00426e74
test al, al
je 0x428eda
mov eax, dword [ebp - 4]
call fcn.004295f4
test al, al
je 0x428eca
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00429330
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.004313a4
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.0040c38c
mov eax, dword [ebp - 4]
call fcn.0040c128
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 0x428efe
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040b5f0
pop eax
jmp eax
Function at 0x428f08
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 0x428fdd
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040b9c8
cmp byte [ebp - 9], 0
je 0x428f99
mov eax, ebx
call fcn.0040c128
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x428f99
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00426e74
test al, al
je 0x428f99
mov eax, dword [ebp - 8]
call fcn.004295f4
test al, al
je 0x428f8e
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00429330
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004313a4
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040c38c
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040b9c8
push edi
mov eax, dword [ebp - 4]
call fcn.0040c128
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x428fb3
call sub.kernel32.dll_GetLastError
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428fe4
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040b5f0
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b5f0
pop eax
jmp eax

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

Function at 0x42dfe4
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 0x42e01d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040b728
jmp 0x42e026
mov eax, ebx
mov edx, esi
call fcn.0040b980
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42e030
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 0x42e054
movzx eax, word [esp]
jmp 0x42e056
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42f770
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 0x42f897
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042f578
mov esi, eax
mov eax, dword [0x682454]
cmp byte [eax], 0
je 0x42f83d
mov eax, dword [0x682084]
call fcn.00408144
call fcn.00407178
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 [0x42f740]
call fcn.0040e4f0
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 0x42f8b0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42f879
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x681fd8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x686634]
call fcn.0040eabc
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 0x42f89e
lea eax, [ebp - 4]
mov edx, dword [0x42f740]
call fcn.0040e614
pop eax
jmp eax