joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a500
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0040a9c0
mov byte [esp], al
cmp byte [esp], 0
jne 0x40a689
test edi, edi
je 0x40a689
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40a5c9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40a5a4
cmp edi, 0xffffffff
je 0x40a565
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40a565
mov byte [esp], 0
jmp 0x40a689
cmp dword [esi], 1
jg 0x40a5a4
cmp dword [esi], 0
jne 0x40a596
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40a596
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40a689
lea eax, [esp + 0xc]
call fcn.0040a198
dec ebp
test ebp, ebp
jg 0x40a54a
cmp edi, 0xffffffff
je 0x40a5c9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40a5c7
mov byte [esp], 0
jmp 0x40a689
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40a50e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a5c9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040a704
mov edx, eax
mov ebx, dword [0x739900]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40a62d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40a62b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40a62d
xor edi, edi
cmp byte [esp], 0
je 0x40a653
mov ebx, dword [esi]
test bl, 1
jne 0x40a669
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a633
mov byte [esp + 1], 1
jmp 0x40a669
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a653
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40a5e0
cmp byte [esp], 0
je 0x40a689
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40b560
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x73905c], 0
je 0x40b5c7
cmp word [0x73934c], 0xd7b2
jne 0x40b589
cmp dword [0x739354], 0
jbe 0x40b589
mov eax, 0x739348
call dword [0x739364]
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, 0x40b5f4
call fcn.0040c1b8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x72c038], 0
jne 0x40b5e3
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40b7c4
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 [0x72c03c], 0
je 0x40b7ef
mov edx, edi
mov eax, esi
call dword [0x72c03c]
mov ebx, eax
jmp 0x40b800
mov eax, 8
call fcn.00406eb0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x73905d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40b78c
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 0x40b830
mov eax, ebx
call fcn.00406ecc
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40f6ac
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 0x40f813
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040b904
cmp si, word [0x72ca20]
jb 0x40f744
cmp si, word [0x72cc20]
ja 0x40f744
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40f744
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x72ca20]
jae 0x40f71e
mov edi, ebx
dec edi
jmp 0x40f73f
cmp si, word [ebx*8 + 0x72ca20]
jbe 0x40f72e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40f73f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x72ca24]
call fcn.0040f5cc
jmp 0x40f744
cmp edi, dword [ebp - 8]
jae 0x40f708
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40f7f3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40f7f3
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.0040c4bc
push dword [ebp - 0x160]
push 0x40f830
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040c4bc
push dword [ebp - 0x164]
push 0x40f840
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040c4bc
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040c6f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f81a
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040b964
pop eax
jmp eax
Function at 0x40f9c8
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 0x40face
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x73bc18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x73bc30]
jne 0x40fa14
mov eax, esi
mov edx, 0x73bc32
mov ecx, 0x55
call fcn.0040c4bc
push 0x73bc18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40fab6
push 0x73bc18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040b904
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40fa83
cmp byte [0x73bc14], 0
je 0x40fa48
mov edx, esi
mov eax, ebx
call fcn.0040f8ac
jmp 0x40fa83
mov edx, esi
mov eax, ebx
call fcn.0040f6ac
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40fa83
cmp dword [esi], 0
je 0x40fa6c
mov eax, esi
mov edx, 0x40fae8
call fcn.0040c618
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040f6ac
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040c618
push 0x73bc18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x73bc30], bx
mov eax, dword [esi]
call fcn.0040c408
mov ecx, eax
mov eax, 0x73bc32
mov edx, 0xaa
call fcn.0040f52c
push 0x73bc18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fad5
lea eax, [ebp - 4]
call fcn.0040b904
pop eax
jmp eax
Function at 0x40fd10
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.0040b9f8
xor eax, eax
push ebp
push 0x40ff38
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40fd56
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40fd70
mov eax, dword [ebp - 4]
call fcn.0040c408
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040f52c
cmp word [ebp - 0x21e], 0
je 0x40ff1b
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ff48
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40fe3f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ff48
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40fe3f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ff84
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40fe3f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ff84
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40fe3f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ffb8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40fe3f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ffec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40ff1b
xor eax, eax
push ebp
push 0x40ff14
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040fb10
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 0x40fea2
mov eax, dword [ebp - 0x14]
call fcn.00406eb0
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.0040c468
jmp 0x40feed
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x41002c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40feed
mov eax, dword [ebp - 0x14]
call fcn.00406eb0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x41002c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040c468
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ff1b
cmp dword [ebp - 0xc], 0
je 0x40ff08
mov eax, dword [ebp - 0xc]
call fcn.00406ecc
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 0x40ff3f
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b964
pop eax
jmp eax
Function at 0x410248
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.0040b9f8
xor eax, eax
push ebp
push 0x41030a
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.0040c4bc
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040c670
mov eax, dword [ebx]
call fcn.004100f4
test al, al
jne 0x4102e5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040c4bc
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040c670
mov eax, dword [ebx]
call fcn.004100f4
test al, al
jne 0x4102e5
mov eax, ebx
call fcn.0040b904
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410311
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040b964
lea eax, [ebp - 4]
call fcn.0040b904
pop eax
jmp eax

Function at 0x411efc
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 0x427af4
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 0x427c49
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 0x427c21
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 0x427c0a
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040c4bc
mov eax, dword [ebp - 4]
test eax, eax
je 0x427b87
mov eax, dword [eax - 4]
mov esi, eax
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040c994
dec eax
jne 0x427c0a
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.00432e1c
test al, al
je 0x427baf
mov al, 1
jmp 0x427bbe
mov eax, dword [ebp - 8]
test eax, eax
je 0x427bb9
mov eax, dword [eax - 4]
cmp eax, esi
sete al
test al, al
je 0x427c0a
mov edi, dword [ebp - 8]
test edi, edi
je 0x427bcc
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.0040c840
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040c468
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040c670
jmp 0x427c21
add ebx, 2
cmp word [ebx], 0
jne 0x427c07
add ebx, 4
test ebx, ebx
je 0x427c1b
cmp word [ebx], 0
jne 0x427b46
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427c50
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.0040b964
lea eax, [ebp - 4]
call fcn.0040b904
pop eax
jmp eax
Function at 0x428000
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.004329ac
test al, al
je 0x4280ca
xor edx, edx
mov eax, ebx
call fcn.00429948
test al, al
je 0x4280ca
mov eax, ebx
call fcn.004296fc
test al, 0x20
je 0x4280ca
mov eax, ebx
call fcn.0040c408
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4280ca
test ah, 4
je 0x4280ca
test al, 0x10
je 0x428067
mov edi, 0x2000000
jmp 0x428069
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040c408
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4280ca
xor eax, eax
push ebp
push 0x4280c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.00427d44
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4280ca
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 0x428324
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x42837d
test eax, edx
je 0x428380
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x42833b
movzx eax, word [eax]
sub eax, ecx
jmp 0x428362
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 0x428363
add ecx, 4
js 0x428353
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x428360
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x428362
xor eax, eax
ret
test eax, eax
je 0x42838c
test edx, edx
jne 0x42832c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4296fc
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 0x429850
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x42969c]
call fcn.0040ead0
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4296cc]
call fcn.0040ead0
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.004299e0
test al, al
jne 0x429772
mov dl, 1
mov eax, esi
call fcn.00429948
test al, al
je 0x4297fc
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.0042a190
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.00432ec4
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.0040c408
mov edi, eax
push edi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x4297f7
test byte [ebp - 0x14], 1
je 0x4297c2
or bl, 1
test byte [ebp - 0x14], 2
je 0x4297cb
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x4297d4
or bl, 0x20
push edi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x4297e8
dec eax
je 0x4297ed
dec eax
je 0x4297f2
dec eax
jne 0x429814
or bl, 0x10
jmp 0x429814
or bl, 4
jmp 0x429814
or bl, 8
jmp 0x429814
call fcn.00433f18
push esi
mov ecx, dword [0x738400]
mov dl, 1
mov eax, dword [0x421ae4]
call fcn.00431b50
call fcn.0040afb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429857
lea eax, [ebp - 0x1c]
call fcn.0040b904
lea eax, [ebp - 0xc]
mov edx, dword [0x4296cc]
call fcn.0040ebf4
lea eax, [ebp - 8]
mov edx, dword [0x42969c]
call fcn.0040ebf4
lea eax, [ebp - 4]
call fcn.0040b904
pop eax
jmp eax

Function at 0x429948
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.0040c408
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4299b2
test ah, 4
je 0x4299ab
test bl, bl
jne 0x429970
mov al, 1
jmp 0x4299d9
test al, 0x10
je 0x429978
xor eax, eax
jmp 0x4299d9
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42999c
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x4299d9
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4299d9
test al, 0x10
sete al
jmp 0x4299d9
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4299d3
cmp ebx, 3
je 0x4299d3
cmp ebx, 0x7b
je 0x4299d3
mov eax, esi
call fcn.00429908
test al, al
jne 0x4299d7
xor eax, eax
jmp 0x4299d9
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4299e0
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.0040c408
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x429a7e
test esi, 0x400
jne 0x429a15
test esi, 0x10
setne bl
jmp 0x429a7e
cmp byte [esp], 0
je 0x429a49
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x429a7e
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x429a7e
test esi, 0x10
je 0x429a55
mov bl, 1
jmp 0x429a7e
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x429a7c
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x429a7e
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x429b84
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 0x429c2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040c408
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
test edi, 0x400
setne al
test al, bl
je 0x429c0e
or edi, 0xffffffff
lea edx, [ebp - 4]
mov eax, esi
call fcn.00428000
test al, al
je 0x429c0e
mov eax, dword [ebp - 4]
call fcn.0042a314
test al, al
je 0x429bfe
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.0042a054
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00432ec4
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.0040c670
mov eax, dword [ebp - 4]
call fcn.0040c408
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 0x429c32
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040b964
pop eax
jmp eax
Function at 0x429c3c
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 0x429d11
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040bd3c
cmp byte [ebp - 9], 0
je 0x429ccd
mov eax, ebx
call fcn.0040c408
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x429ccd
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00428000
test al, al
je 0x429ccd
mov eax, dword [ebp - 8]
call fcn.0042a314
test al, al
je 0x429cc2
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0042a054
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00432ec4
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040c670
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040bd3c
push edi
mov eax, dword [ebp - 4]
call fcn.0040c408
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x429ce7
call sub.kernel32.dll_GetLastError
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429d18
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040b964
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b964
pop eax
jmp eax

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

Function at 0x42f2ac
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 0x42f2e5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040ba9c
jmp 0x42f2ee
mov eax, ebx
mov edx, esi
call fcn.0040bcf4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42f2f8
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 0x42f31c
movzx eax, word [esp]
jmp 0x42f31e
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret