joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408728
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.00408be8
mov byte [esp], al
cmp byte [esp], 0
jne 0x4088b1
test edi, edi
je 0x4088b1
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4087f1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4087cc
cmp edi, 0xffffffff
je 0x40878d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40878d
mov byte [esp], 0
jmp 0x4088b1
cmp dword [esi], 1
jg 0x4087cc
cmp dword [esi], 0
jne 0x4087be
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4087be
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4088b1
lea eax, [esp + 0xc]
call fcn.004083fc
dec ebp
test ebp, ebp
jg 0x408772
cmp edi, 0xffffffff
je 0x4087f1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4087ef
mov byte [esp], 0
jmp 0x4088b1
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408736
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4087f1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040892c
mov edx, eax
mov ebx, dword [0x70c8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408855
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408853
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408855
xor edi, edi
cmp byte [esp], 0
je 0x40887b
mov ebx, dword [esi]
test bl, 1
jne 0x408891
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40885b
mov byte [esp + 1], 1
jmp 0x408891
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40887b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408808
cmp byte [esp], 0
je 0x4088b1
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 0x409778
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x70c05c], 0
je 0x4097df
cmp word [0x70c348], 0xd7b2
jne 0x4097a1
cmp dword [0x70c350], 0
jbe 0x4097a1
mov eax, 0x70c344
call dword [0x70c360]
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, 0x40980c
call fcn.0040a380
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x6eb036], 0
jne 0x4097fb
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4099dc
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 [0x6eb038], 0
je 0x409a07
mov edx, edi
mov eax, esi
call dword [0x6eb038]
mov ebx, eax
jmp 0x409a18
mov eax, 8
call fcn.00406fa4
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x70c05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4099a4
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 0x409a48
mov eax, ebx
call fcn.00406fc0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40d3e4
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 0x40d54b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409b1c
cmp si, word [0x6eba10]
jb 0x40d47c
cmp si, word [0x6ebc10]
ja 0x40d47c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d47c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x6eba10]
jae 0x40d456
mov edi, ebx
dec edi
jmp 0x40d477
cmp si, word [ebx*8 + 0x6eba10]
jbe 0x40d466
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d477
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x6eba14]
call fcn.0040d300
jmp 0x40d47c
cmp edi, dword [ebp - 8]
jae 0x40d440
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d52b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d52b
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.0040a6f4
push dword [ebp - 0x160]
push 0x40d568
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a6f4
push dword [ebp - 0x164]
push 0x40d578
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a6f4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a92c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d552
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409b7c
pop eax
jmp eax
Function at 0x40d700
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 0x40d806
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x70ec14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x70ec2c]
jne 0x40d74c
mov eax, esi
mov edx, 0x70ec2e
mov ecx, 0x55
call fcn.0040a6f4
push 0x70ec14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40d7ee
push 0x70ec14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409b1c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d7bb
cmp byte [0x70ec10], 0
je 0x40d780
mov edx, esi
mov eax, ebx
call fcn.0040d5e4
jmp 0x40d7bb
mov edx, esi
mov eax, ebx
call fcn.0040d3e4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d7bb
cmp dword [esi], 0
je 0x40d7a4
mov eax, esi
mov edx, 0x40d820
call fcn.0040a84c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d3e4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a84c
push 0x70ec14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x70ec2c], bx
mov eax, dword [esi]
call fcn.0040a640
mov ecx, eax
mov eax, 0x70ec2e
mov edx, 0xaa
call fcn.0040d260
push 0x70ec14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d80d
lea eax, [ebp - 4]
call fcn.00409b1c
pop eax
jmp eax
Function at 0x40da48
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.00409c10
xor eax, eax
push ebp
push 0x40dc70
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40da8e
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40daa8
mov eax, dword [ebp - 4]
call fcn.0040a640
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040d260
cmp word [ebp - 0x21e], 0
je 0x40dc53
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40dc80
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db77
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40dc80
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db77
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40dcbc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db77
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40dcbc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db77
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40dcf0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db77
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40dd24
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40dc53
xor eax, eax
push ebp
push 0x40dc4c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040d848
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 0x40dbda
mov eax, dword [ebp - 0x14]
call fcn.00406fa4
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.0040a6a0
jmp 0x40dc25
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40dd64
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40dc25
mov eax, dword [ebp - 0x14]
call fcn.00406fa4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40dd64
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040a6a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc53
cmp dword [ebp - 0xc], 0
je 0x40dc40
mov eax, dword [ebp - 0xc]
call fcn.00406fc0
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 0x40dc77
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409b7c
pop eax
jmp eax
Function at 0x40df84
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.00409c10
xor eax, eax
push ebp
push 0x40e046
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.0040a6f4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a8a4
mov eax, dword [ebx]
call fcn.0040de2c
test al, al
jne 0x40e021
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a6f4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a8a4
mov eax, dword [ebx]
call fcn.0040de2c
test al, al
jne 0x40e021
mov eax, ebx
call fcn.00409b1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e04d
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409b7c
lea eax, [ebp - 4]
call fcn.00409b1c
pop eax
jmp eax

Function at 0x40f910
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 0x4224e8
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 0x422618
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 0x4225f0
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 0x4225d9
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040a6f4
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040ab70
test eax, eax
jle 0x4225d9
mov eax, dword [ebp - 4]
test eax, eax
je 0x42258d
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x42259b
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.0040aa14
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040a6a0
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040a8a4
jmp 0x4225f0
add ebx, 2
cmp word [ebx], 0
jne 0x4225d6
add ebx, 4
test ebx, ebx
je 0x4225ea
cmp word [ebx], 0
jne 0x42253a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42261f
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00409b7c
lea eax, [ebp - 4]
call fcn.00409b1c
pop eax
jmp eax
Function at 0x4229cc
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.0042ba1c
test al, al
je 0x422a96
xor edx, edx
mov eax, ebx
call fcn.00424194
test al, al
je 0x422a96
mov eax, ebx
call fcn.00423f48
test al, 0x20
je 0x422a96
mov eax, ebx
call fcn.0040a640
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x422a96
test ah, 4
je 0x422a96
test al, 0x10
je 0x422a33
mov edi, 0x2000000
jmp 0x422a35
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040a640
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x422a96
xor eax, eax
push ebp
push 0x422a8f
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.00422714
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422a96
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 0x422ccc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x422d25
test eax, edx
je 0x422d28
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x422ce3
movzx eax, word [eax]
sub eax, ecx
jmp 0x422d0a
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 0x422d0b
add ecx, 4
js 0x422cfb
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x422d08
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x422d0a
xor eax, eax
ret
test eax, eax
je 0x422d34
test edx, edx
jne 0x422cd4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x423f48
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 0x42409c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x423ee8]
call fcn.0040c938
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x423f18]
call fcn.0040c938
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.0042422c
test al, al
jne 0x423fbe
mov dl, 1
mov eax, esi
call fcn.00424194
test al, al
je 0x424048
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.004246f4
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.0042bf4c
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.0040a640
mov edi, eax
push edi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x424043
test byte [ebp - 0x14], 1
je 0x42400e
or bl, 1
test byte [ebp - 0x14], 2
je 0x424017
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x424020
or bl, 0x20
push edi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x424034
dec eax
je 0x424039
dec eax
je 0x42403e
dec eax
jne 0x424060
or bl, 0x10
jmp 0x424060
or bl, 4
jmp 0x424060
or bl, 8
jmp 0x424060
call fcn.0042cda8
push esi
mov ecx, dword [0x70b634]
mov dl, 1
mov eax, dword [0x41c624]
call fcn.0042ac20
call fcn.004091d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4240a3
lea eax, [ebp - 0x1c]
call fcn.00409b1c
lea eax, [ebp - 0xc]
mov edx, dword [0x423f18]
call fcn.0040ca5c
lea eax, [ebp - 8]
mov edx, dword [0x423ee8]
call fcn.0040ca5c
lea eax, [ebp - 4]
call fcn.00409b1c
pop eax
jmp eax

Function at 0x424194
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.0040a640
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4241fe
test ah, 4
je 0x4241f7
test bl, bl
jne 0x4241bc
mov al, 1
jmp 0x424225
test al, 0x10
je 0x4241c4
xor eax, eax
jmp 0x424225
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4241e8
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x424225
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x424225
test al, 0x10
sete al
jmp 0x424225
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x42421f
cmp ebx, 3
je 0x42421f
cmp ebx, 0x7b
je 0x42421f
mov eax, esi
call fcn.00424154
test al, al
jne 0x424223
xor eax, eax
jmp 0x424225
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x42422c
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.0040a640
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x4242ca
test esi, 0x400
jne 0x424261
test esi, 0x10
setne bl
jmp 0x4242ca
cmp byte [esp], 0
je 0x424295
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4242ca
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x4242ca
test esi, 0x10
je 0x4242a1
mov bl, 1
jmp 0x4242ca
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4242c8
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x4242ca
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42448c
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 0x424533
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040a640
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
test edi, 0x400
setne al
test al, bl
je 0x424516
or edi, 0xffffffff
lea edx, [ebp - 4]
mov eax, esi
call fcn.004229cc
test al, al
je 0x424516
mov eax, dword [ebp - 4]
call fcn.00424878
test al, al
je 0x424506
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00424628
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0042bf4c
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.0040a8a4
mov eax, dword [ebp - 4]
call fcn.0040a640
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 0x42453a
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00409b7c
pop eax
jmp eax

Function at 0x42907c
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 0x4290b5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409cb4
jmp 0x4290be
mov eax, ebx
mov edx, esi
call fcn.00409f0c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4290c8
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 0x4290ec
movzx eax, word [esp]
jmp 0x4290ee
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42a714
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 0x42a83b
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042a51c
mov esi, eax
mov eax, dword [0x70b53c]
cmp byte [eax], 0
je 0x42a7e1
mov eax, dword [0x70b198]
call fcn.004076c8
call fcn.00407118
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 [0x42a6e4]
call fcn.0040c938
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 0x42a854
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42a81d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x70b104]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x70f634]
call fcn.0040cf04
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 0x42a842
lea eax, [ebp - 4]
mov edx, dword [0x42a6e4]
call fcn.0040ca5c
pop eax
jmp eax