joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408cb8
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.00409178
mov byte [esp], al
cmp byte [esp], 0
jne 0x408e41
test edi, edi
je 0x408e41
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408d81
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408d5c
cmp edi, 0xffffffff
je 0x408d1d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408d1d
mov byte [esp], 0
jmp 0x408e41
cmp dword [esi], 1
jg 0x408d5c
cmp dword [esi], 0
jne 0x408d4e
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408d4e
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408e41
lea eax, [esp + 0xc]
call fcn.00408990
dec ebp
test ebp, ebp
jg 0x408d02
cmp edi, 0xffffffff
je 0x408d81
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408d7f
mov byte [esp], 0
jmp 0x408e41
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408cc6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408d81
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408ebc
mov edx, eax
mov ebx, dword [0x4d98fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408de5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408de3
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408de5
xor edi, edi
cmp byte [esp], 0
je 0x408e0b
mov ebx, dword [esi]
test bl, 1
jne 0x408e21
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408deb
mov byte [esp + 1], 1
jmp 0x408e21
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408e0b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408d98
cmp byte [esp], 0
je 0x408e41
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 0x409d08
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d905c], 0
je 0x409d6f
cmp word [0x4d9348], 0xd7b2
jne 0x409d31
cmp dword [0x4d9350], 0
jbe 0x409d31
mov eax, 0x4d9344
call dword [0x4d9360]
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, 0x409d9c
call fcn.0040a87c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d1036], 0
jne 0x409d8b
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409f30
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 [0x4d1038], 0
je 0x409f5b
mov edx, edi
mov eax, esi
call dword [0x4d1038]
mov ebx, eax
jmp 0x409f6c
mov eax, 8
call fcn.00407264
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4d905d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409ef8
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 0x409f9c
mov eax, ebx
call fcn.00407280
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40d8a8
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 0x40da0f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a070
cmp si, word [0x4d1a18]
jb 0x40d940
cmp si, word [0x4d1c18]
ja 0x40d940
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d940
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4d1a18]
jae 0x40d91a
mov edi, ebx
dec edi
jmp 0x40d93b
cmp si, word [ebx*8 + 0x4d1a18]
jbe 0x40d92a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d93b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4d1a1c]
call fcn.0040d7c4
jmp 0x40d940
cmp edi, dword [ebp - 8]
jae 0x40d904
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d9ef
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d9ef
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.0040ab64
push dword [ebp - 0x160]
push 0x40da2c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040ab64
push dword [ebp - 0x164]
push 0x40da3c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ab64
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ad9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40da16
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a0d0
pop eax
jmp eax
Function at 0x40dbc4
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 0x40dcca
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4dbc18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4dbc30]
jne 0x40dc10
mov eax, esi
mov edx, 0x4dbc32
mov ecx, 0x55
call fcn.0040ab64
push 0x4dbc18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40dcb2
push 0x4dbc18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a070
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dc7f
cmp byte [0x4dbc14], 0
je 0x40dc44
mov edx, esi
mov eax, ebx
call fcn.0040daa8
jmp 0x40dc7f
mov edx, esi
mov eax, ebx
call fcn.0040d8a8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40dc7f
cmp dword [esi], 0
je 0x40dc68
mov eax, esi
mov edx, 0x40dce4
call fcn.0040acbc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d8a8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040acbc
push 0x4dbc18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4dbc30], bx
mov eax, dword [esi]
call fcn.0040aac8
mov ecx, eax
mov eax, 0x4dbc32
mov edx, 0xaa
call fcn.0040d724
push 0x4dbc18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dcd1
lea eax, [ebp - 4]
call fcn.0040a070
pop eax
jmp eax
Function at 0x40df0c
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.0040a164
xor eax, eax
push ebp
push 0x40e134
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40df52
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40df6c
mov eax, dword [ebp - 4]
call fcn.0040aac8
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040d724
cmp word [ebp - 0x21e], 0
je 0x40e117
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e144
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e03b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e144
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e03b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e180
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e03b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e180
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e03b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e1b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e03b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e1e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e117
xor eax, eax
push ebp
push 0x40e110
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040dd0c
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 0x40e09e
mov eax, dword [ebp - 0x14]
call fcn.00407264
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.0040ab28
jmp 0x40e0e9
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e228
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e0e9
mov eax, dword [ebp - 0x14]
call fcn.00407264
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e228
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ab28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e117
cmp dword [ebp - 0xc], 0
je 0x40e104
mov eax, dword [ebp - 0xc]
call fcn.00407280
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 0x40e13b
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a0d0
pop eax
jmp eax
Function at 0x40e448
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.0040a164
xor eax, eax
push ebp
push 0x40e50a
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.0040ab64
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ad14
mov eax, dword [ebx]
call fcn.0040e2f0
test al, al
jne 0x40e4e5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040ab64
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ad14
mov eax, dword [ebx]
call fcn.0040e2f0
test al, al
jne 0x40e4e5
mov eax, ebx
call fcn.0040a070
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e511
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a0d0
lea eax, [ebp - 4]
call fcn.0040a070
pop eax
jmp eax

Function at 0x40fe64
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 0x41efd4
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 0x41f104
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 0x41f0dc
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 0x41f0c5
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040ab64
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040af88
test eax, eax
jle 0x41f0c5
mov eax, dword [ebp - 4]
test eax, eax
je 0x41f079
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x41f087
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.0040aee4
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040ab28
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040ad14
jmp 0x41f0dc
add ebx, 2
cmp word [ebx], 0
jne 0x41f0c2
add ebx, 4
test ebx, ebx
je 0x41f0d6
cmp word [ebx], 0
jne 0x41f026
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f10b
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.0040a0d0
lea eax, [ebp - 4]
call fcn.0040a070
pop eax
jmp eax
Function at 0x41f4b8
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.0042849c
test al, al
je 0x41f582
xor edx, edx
mov eax, ebx
call fcn.00420bf4
test al, al
je 0x41f582
mov eax, ebx
call fcn.004207c4
test al, 0x20
je 0x41f582
mov eax, ebx
call fcn.0040aac8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41f582
test ah, 4
je 0x41f582
test al, 0x10
je 0x41f51f
mov edi, 0x2000000
jmp 0x41f521
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040aac8
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x41f582
xor eax, eax
push ebp
push 0x41f57b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.0041f200
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f582
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 0x41f630
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41f689
test eax, edx
je 0x41f68c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41f647
movzx eax, word [eax]
sub eax, ecx
jmp 0x41f66e
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 0x41f66f
add ecx, 4
js 0x41f65f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41f66c
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41f66e
xor eax, eax
ret
test eax, eax
je 0x41f698
test edx, edx
jne 0x41f638
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4207c4
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 0x420918
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x420764]
call fcn.0040ce34
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x420794]
call fcn.0040ce34
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.00420c8c
test al, al
jne 0x42083a
mov dl, 1
mov eax, esi
call fcn.00420bf4
test al, al
je 0x4208c4
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00421134
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.00428878
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.0040aac8
mov edi, eax
push edi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x4208bf
test byte [ebp - 0x14], 1
je 0x42088a
or bl, 1
test byte [ebp - 0x14], 2
je 0x420893
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x42089c
or bl, 0x20
push edi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x4208b0
dec eax
je 0x4208b5
dec eax
je 0x4208ba
dec eax
jne 0x4208dc
or bl, 0x10
jmp 0x4208dc
or bl, 4
jmp 0x4208dc
or bl, 8
jmp 0x4208dc
call fcn.004291c8
push esi
mov ecx, dword [0x4d8a50]
mov dl, 1
mov eax, dword [0x419d2c]
call fcn.0042779c
call fcn.00409768
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42091f
lea eax, [ebp - 0x1c]
call fcn.0040a070
lea eax, [ebp - 0xc]
mov edx, dword [0x420794]
call fcn.0040cf58
lea eax, [ebp - 8]
mov edx, dword [0x420764]
call fcn.0040cf58
lea eax, [ebp - 4]
call fcn.0040a070
pop eax
jmp eax

Function at 0x420bf4
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.0040aac8
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x420c5e
test ah, 4
je 0x420c57
test bl, bl
jne 0x420c1c
mov al, 1
jmp 0x420c85
test al, 0x10
je 0x420c24
xor eax, eax
jmp 0x420c85
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x420c48
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x420c85
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x420c85
test al, 0x10
sete al
jmp 0x420c85
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x420c7f
cmp ebx, 3
je 0x420c7f
cmp ebx, 0x7b
je 0x420c7f
mov eax, esi
call fcn.00420bb4
test al, al
jne 0x420c83
xor eax, eax
jmp 0x420c85
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x420c8c
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.0040aac8
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x420d2a
test esi, 0x400
jne 0x420cc1
test esi, 0x10
setne bl
jmp 0x420d2a
cmp byte [esp], 0
je 0x420cf5
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x420d2a
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x420d2a
test esi, 0x10
je 0x420d01
mov bl, 1
jmp 0x420d2a
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x420d28
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x420d2a
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Function at 0x425d1c
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 0x425d55
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a208
jmp 0x425d5e
mov eax, ebx
mov edx, esi
call fcn.0040a460
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x425d68
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 0x425d8c
movzx eax, word [esp]
jmp 0x425d8e
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4271c0
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 0x4272e7
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00426fc8
mov esi, eax
mov eax, dword [0x4d89d4]
cmp byte [eax], 0
je 0x42728d
mov eax, dword [0x4d87e8]
call fcn.00407d00
call fcn.004073d8
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 [0x427190]
call fcn.0040ce34
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 0x427300
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x4272c9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4d87a4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4dc63c]
call fcn.0040d3c8
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 0x4272ee
lea eax, [ebp - 4]
mov edx, dword [0x427190]
call fcn.0040cf58
pop eax
jmp eax
Function at 0x4281c4
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x11c]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x428207
mov eax, dword [ebp - 0x10c]
mov dword [0x4dc954], eax
mov eax, 0x4dc958
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040ab64
mov eax, 0x4dc95c
call fcn.0040a070
xor eax, eax
mov dword [0x4dc960], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x4dc818], 0xa
jl 0x42835d
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x428368
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x42835d
xor eax, eax
push ebp
push 0x428356
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x4283c4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4282b6
cmp dword [ebp - 8], 2
jle 0x4282b6
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x428289
adc edx, 0
mov eax, 0x4dc95c
call fcn.0040ac3c
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4dc95c]
call fcn.0040aac8
push eax
push 0
push 0
push 0x4283c4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x428310
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x4283e4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x428310
cmp dword [ebp - 8], 2
jle 0x428310
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x4282e5
adc edx, 0
mov eax, 0x4dc95c
call fcn.0040ac3c
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4dc95c]
call fcn.0040aac8
push eax
push 0
push 0
push 0x4283e4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x4dc960
push 0
push 0
push 0x4283f8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x42833d
xor eax, eax
mov dword [0x4dc960], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42835d
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x4d3300], 1
mov esp, ebp
pop ebp
ret