joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48d5e8
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x48d7f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x30], 0x20
lea eax, [ebp - 0x30]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov byte [ebp - 9], 1
cmp dword [ebp - 4], 1
jne 0x48d645
mov eax, esi
call fcn.0042db54
mov eax, dword [eax + 0x14]
mov edx, 0xff00
call fcn.00421a7c
jmp 0x48d659
mov eax, esi
call fcn.0042db54
mov eax, dword [eax + 0x14]
mov edx, 0x8000
call fcn.00421a7c
mov ebx, 0x5f
test edi, edi
jle 0x48d6c0
mov eax, ebx
sub eax, 2
push eax
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x28
mov edx, ebx
mov eax, 0x14
call fcn.004168fc
lea eax, [ebp - 0x40]
push eax
mov eax, esi
call fcn.0042db54
pop edx
call fcn.00421e68
mov eax, ebx
sub eax, 2
push eax
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x3e
mov edx, ebx
mov eax, 0x2a
call fcn.004168fc
lea eax, [ebp - 0x40]
push eax
mov eax, esi
call fcn.0042db54
pop edx
call fcn.00421e68
sub ebx, 4
dec edi
jne 0x48d662
mov eax, esi
call fcn.0042db54
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.00421a7c
push 0x5f
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x50
mov edx, 0x69
mov eax, 0x14
call fcn.004168fc
lea eax, [ebp - 0x40]
push eax
mov eax, esi
call fcn.0042db54
pop edx
call fcn.00421e68
mov eax, esi
call fcn.0042db54
mov eax, dword [eax + 0xc]
mov edx, 0xff00
call fcn.004212b0
push 0
mov eax, esi
call fcn.0042db54
call fcn.004223bc
push eax
call sub.gdi32.dll_SetBkMode
mov eax, esi
call fcn.0042db54
mov eax, dword [eax + 0xc]
mov edx, 0x48d814
call fcn.004214d8
mov eax, esi
call fcn.0042db54
mov eax, dword [eax + 0xc]
mov edx, 8
call fcn.00421550
cmp dword [ebp - 8], 0x16
je 0x48d78f
cmp dword [ebp - 4], 1
jne 0x48d773
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 8]
call fcn.00408c64
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x10]
mov ecx, 0x48d824
call fcn.00404440
mov eax, dword [ebp - 0x10]
push eax
mov eax, esi
call fcn.0042db54
mov ecx, 0x5f
mov edx, 0x23
call fcn.004220ac
jmp 0x48d7d4
cmp dword [ebp - 4], 1
jne 0x48d7aa
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x24]
shr eax, 0x14
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x10]
call fcn.00408d50
lea eax, [ebp - 0x48]
mov ecx, 0x48d830
mov edx, dword [ebp - 0x10]
call fcn.00404440
mov eax, dword [ebp - 0x48]
push eax
mov eax, esi
call fcn.0042db54
mov ecx, 0x5f
mov edx, 0x1e
call fcn.004220ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d7fe
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404158
lea eax, [ebp - 0x10]
call fcn.00404134
ret
Function at 0x48e908
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x408], eax
xor eax, eax
push ebp
push 0x48e9db
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, 0x48e9f4
call fcn.0048e850
lea ecx, [ebp - 4]
lea eax, [ebp - 0x404]
mov edx, 0x400
call fcn.0046c994
test eax, eax
je 0x48e9c2
mov eax, dword [ebp - 4]
mov dword [ebp - 0x410], eax
xor eax, eax
mov dword [ebp - 0x40c], eax
fild qword [ebp - 0x410]
fdiv dword [0x48ea08]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x408]
call fcn.0040a0ec
mov eax, dword [ebp - 0x408]
call fcn.00408dd0
mov edi, eax
dec edi
test edi, edi
jl 0x48e9c0
inc edi
lea ebx, [ebp - 0x404]
mov eax, dword [ebx]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
je 0x48e9b4
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call sub.kernel32.dll_SetProcessWorkingSetSize
push esi
call sub.kernel32.dll_CloseHandle
add ebx, 4
dec edi
jne 0x48e995
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e9e2
lea eax, [ebp - 0x408]
call fcn.00404134
ret
Function at 0x407228
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00409fa0
test esi, esi
jne 0x40725e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040a128
jmp 0x40727c
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040716c
mov edi, eax
test esi, esi
je 0x40727c
cmp dword [ebx], 0
je 0x40727c
dec esi
jmp 0x407265
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408bf0
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.004090b0
mov byte [esp], al
cmp byte [esp], 0
jne 0x408d79
test edi, edi
je 0x408d79
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408cb9
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408c94
cmp edi, 0xffffffff
je 0x408c55
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408c55
mov byte [esp], 0
jmp 0x408d79
cmp dword [esi], 1
jg 0x408c94
cmp dword [esi], 0
jne 0x408c86
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408c86
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408d79
lea eax, [esp + 0xc]
call fcn.004088ac
dec ebp
test ebp, ebp
jg 0x408c3a
cmp edi, 0xffffffff
je 0x408cb9
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408cb7
mov byte [esp], 0
jmp 0x408d79
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408bfe
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408cb9
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408df4
mov edx, eax
mov ebx, dword [0x7178fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408d1d
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408d1b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408d1d
xor edi, edi
cmp byte [esp], 0
je 0x408d43
mov ebx, dword [esi]
test bl, 1
jne 0x408d59
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408d23
mov byte [esp + 1], 1
jmp 0x408d59
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408d43
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408cd0
cmp byte [esp], 0
je 0x408d79
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 0x409c38
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x71705c], 0
je 0x409c9f
cmp word [0x717348], 0xd7b2
jne 0x409c61
cmp dword [0x717350], 0
jbe 0x409c61
mov eax, 0x717344
call dword [0x717360]
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, 0x409ccc
call fcn.0040a7b8
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x70d032], 0
jne 0x409cbb
push 0
push 0x70d9d3
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409e60
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 [0x70d034], 0
je 0x409e8b
mov edx, edi
mov eax, esi
call dword [0x70d034]
mov ebx, eax
jmp 0x409e9c
mov eax, 8
call fcn.00406ea4
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x71705d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409e28
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 0x409ecc
mov eax, ebx
call fcn.00406ec0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40d41c
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 0x40d581
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409fa0
cmp si, word [0x70da10]
jb 0x40d4b4
cmp si, word [0x70dc10]
ja 0x40d4b4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d4b4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x70da10]
jae 0x40d48e
mov edi, ebx
dec edi
jmp 0x40d4af
cmp si, word [ebx*8 + 0x70da10]
jbe 0x40d49e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d4af
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x70da14]
call fcn.0040d33c
jmp 0x40d4b4
cmp edi, dword [ebp - 8]
jae 0x40d478
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d563
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x40d563
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.0040aac0
push dword [ebp - 0x160]
push 0x40d59c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040aac0
push dword [ebp - 0x164]
push 0x40d5ac
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040aac0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040acf8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d588
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a000
ret
Function at 0x40d734
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 0x40d838
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x719c14
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x719c2c]
jne 0x40d780
mov eax, esi
mov edx, 0x719c2e
mov ecx, 0x55
call fcn.0040aac0
push 0x719c14
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x40d822
push 0x719c14
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.00409fa0
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x40d7ef
cmp byte [0x719c10], 0
je 0x40d7b4
mov edx, esi
mov eax, ebx
call fcn.0040d618
jmp 0x40d7ef
mov edx, esi
mov eax, ebx
call fcn.0040d41c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d7ef
cmp dword [esi], 0
je 0x40d7d8
mov eax, esi
mov edx, 0x40d850
call fcn.0040ac18
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d41c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ac18
push 0x719c14
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x719c2c], bx
mov eax, dword [esi]
call fcn.0040aa08
mov ecx, eax
mov eax, 0x719c2e
mov edx, 0xaa
call fcn.0040d29c
push 0x719c14
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d83f
lea eax, [ebp - 4]
call fcn.00409fa0
ret
Function at 0x40da68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a084
xor eax, eax
push ebp
push 0x40dc8d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40daa8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x40dac2
mov eax, dword [ebp - 4]
call fcn.0040aa08
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d29c
cmp word [ebp - 0x21a], 0
je 0x40dc77
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dc9c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db91
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dc9c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db91
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dcd8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db91
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dcd8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db91
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dd0c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40db91
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dd40
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40dc77
xor eax, eax
push ebp
push 0x40dc70
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d878
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40dc00
mov eax, dword [ebp - 0x10]
call fcn.00406ea4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040aa6c
jmp 0x40dc4b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40dd80
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40dc4b
mov eax, dword [ebp - 0x10]
call fcn.00406ea4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40dd80
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040aa6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc77
cmp dword [ebp - 8], 0
je 0x40dc66
mov eax, dword [ebp - 8]
call fcn.00406ec0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc94
lea eax, [ebp - 4]
call fcn.00409fa0
ret
Function at 0x40df94
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.0040a084
xor eax, eax
push ebp
push 0x40e054
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.0040aac0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ac70
mov eax, dword [ebx]
call fcn.0040de44
test al, al
jne 0x40e031
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040aac0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ac70
mov eax, dword [ebx]
call fcn.0040de44
test al, al
jne 0x40e031
mov eax, ebx
call fcn.00409fa0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e05b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a000
lea eax, [ebp - 4]
call fcn.00409fa0
ret

Function at 0x40fc94
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 0x424de0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x424e39
test eax, edx
je 0x424e3c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x424df7
movzx eax, word [eax]
sub eax, ecx
jmp 0x424e1e
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 [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x424e1f
add ecx, 4
js 0x424e0f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x424e1c
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x424e1e
xor eax, eax
ret
test eax, eax
je 0x424e48
test edx, edx
jne 0x424de8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x426408
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x426435
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x426508
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.0040aa08
mov edi, eax
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x426572
test ah, 4
je 0x42656b
test bl, bl
jne 0x426530
mov al, 1
jmp 0x426599
test al, 0x10
je 0x426538
xor eax, eax
jmp 0x426599
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x42655c
push eax
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
jmp 0x426599
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x426599
test al, 0x10
sete al
jmp 0x426599
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x426593
cmp ebx, 3
je 0x426593
cmp ebx, 0x7b
je 0x426593
mov eax, esi
call fcn.004264c8
test al, al
jne 0x426597
xor eax, eax
jmp 0x426599
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4265a0
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.0040aa08
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42663e
test esi, 0x400
jne 0x4265d5
test esi, 0x10
setne bl
jmp 0x42663e
cmp byte [esp], 0
je 0x426609
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x42663e
push eax
call sub.KERNEL32.DLL_CloseHandle
test esi, 0x10
setne bl
jmp 0x42663e
test esi, 0x10
je 0x426615
mov bl, 1
jmp 0x42663e
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x42663c
push eax
call sub.KERNEL32.DLL_CloseHandle
xor ebx, ebx
jmp 0x42663e
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42a6a4
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 0x42a6dd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a128
jmp 0x42a6e6
mov eax, ebx
mov edx, esi
call fcn.0040a380
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42a6f0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x42a712
movzx eax, word [esp]
jmp 0x42a714
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x42b9fc
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 0x42bb21
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042b804
mov esi, eax
mov eax, dword [0x716ce0]
cmp byte [eax], 0
je 0x42bac9
mov eax, dword [0x7168f8]
call fcn.0040798c
call fcn.00407018
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 [0x42b9cc]
call fcn.0040cb20
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 0x42bb3c
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x42bb05
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x716864]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x71a634]
call fcn.0040cf40
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 0x42bb28
lea eax, [ebp - 4]
mov edx, dword [0x42b9cc]
call fcn.0040cc44
ret