joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4068d0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x406912
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x406932
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00409f6c
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x406b28
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.00409384
test esi, esi
jne 0x406b5e
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.0040950c
jmp 0x406b7c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406a6c
mov edi, eax
test esi, esi
je 0x406b7c
cmp dword [ebx], 0
je 0x406b7c
dec esi
jmp 0x406b65
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x4080f0
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.004084d4
mov byte [esp], al
cmp byte [esp], 0
jne 0x40827a
test edi, edi
je 0x40827a
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4081ba
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408195
cmp edi, 0xffffffff
je 0x408155
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408155
mov byte [esp], 0
jmp 0x40827a
mov ebx, dword [esi]
cmp ebx, 1
jg 0x408195
test ebx, ebx
jne 0x408187
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408187
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40827a
lea eax, [esp + 0xc]
call fcn.00407dd0
dec ebp
test ebp, ebp
jg 0x40813a
cmp edi, 0xffffffff
je 0x4081ba
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4081b8
mov byte [esp], 0
jmp 0x40827a
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4080fe
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4081ba
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004082e8
mov edx, eax
mov ebx, dword [0x5f68fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40821e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40821c
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40821e
xor edi, edi
cmp byte [esp], 0
je 0x408244
mov ebx, dword [esi]
test bl, 1
jne 0x40825a
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408224
mov byte [esp + 1], 1
jmp 0x40825a
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408244
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4081d1
cmp byte [esp], 0
je 0x40827a
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 0x409020
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5f605c], 0
je 0x409087
cmp word [0x5f6348], 0xd7b2
jne 0x409049
cmp dword [0x5f6350], 0
jbe 0x409049
mov eax, 0x5f6344
call dword [0x5f6360]
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, 0x4090b4
call fcn.00409bc8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5f0032], 0
jne 0x4090a3
push 0
push 0x5f09c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409244
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 [0x5f0034], 0
je 0x40926f
mov edx, edi
mov eax, esi
call dword [0x5f0034]
mov ebx, eax
jmp 0x409280
mov eax, 8
call fcn.004066f8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5f605d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40920c
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 0x4092b0
mov eax, ebx
call fcn.00406714
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40ba3c
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 0x40bba1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409384
cmp si, word [0x5f0a00]
jb 0x40bad4
cmp si, word [0x5f0c00]
ja 0x40bad4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bad4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5f0a00]
jae 0x40baae
mov edi, ebx
dec edi
jmp 0x40bacf
cmp si, word [ebx*8 + 0x5f0a00]
jbe 0x40babe
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bacf
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5f0a04]
call fcn.0040b95c
jmp 0x40bad4
cmp edi, dword [ebp - 8]
jae 0x40ba98
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bb83
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bb83
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.00409f6c
push dword [ebp - 0x160]
push 0x40bbbc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409f6c
push dword [ebp - 0x164]
push 0x40bbcc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409f6c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a1a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bba8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004093e4
ret
Function at 0x40bd54
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 0x40be58
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5f8b8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5f8ba4]
jne 0x40bda0
mov eax, esi
mov edx, 0x5f8ba6
mov ecx, 0x55
call fcn.00409f6c
push 0x5f8b8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40be42
push 0x5f8b8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409384
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40be0f
cmp byte [0x5f8b88], 0
je 0x40bdd4
mov edx, esi
mov eax, ebx
call fcn.0040bc38
jmp 0x40be0f
mov edx, esi
mov eax, ebx
call fcn.0040ba3c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40be0f
cmp dword [esi], 0
je 0x40bdf8
mov eax, esi
mov edx, 0x40be70
call fcn.0040a0c4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040ba3c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a0c4
push 0x5f8b8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5f8ba4], bx
mov eax, dword [esi]
call fcn.00409ec8
mov ecx, eax
mov eax, 0x5f8ba6
mov edx, 0xaa
call fcn.0040b8bc
push 0x5f8b8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be5f
lea eax, [ebp - 4]
call fcn.00409384
ret
Function at 0x40c088
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.00409468
xor eax, eax
push ebp
push 0x40c2ad
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c0c8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c0e2
mov eax, dword [ebp - 4]
call fcn.00409ec8
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b8bc
cmp word [ebp - 0x21a], 0
je 0x40c297
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c2bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c1b1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c2bc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c1b1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c2f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c1b1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c2f8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c1b1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c32c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c1b1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c360
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c297
xor eax, eax
push ebp
push 0x40c290
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040be98
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 0x40c220
mov eax, dword [ebp - 0x10]
call fcn.004066f8
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.00409f30
jmp 0x40c26b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c3a0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c26b
mov eax, dword [ebp - 0x10]
call fcn.004066f8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c3a0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409f30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c297
cmp dword [ebp - 8], 0
je 0x40c286
mov eax, dword [ebp - 8]
call fcn.00406714
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 0x40c2b4
lea eax, [ebp - 4]
call fcn.00409384
ret
Function at 0x40c59c
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.00409468
xor eax, eax
push ebp
push 0x40c65c
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.00409f6c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a11c
mov eax, dword [ebx]
call fcn.0040c464
test al, al
jne 0x40c639
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409f6c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a11c
mov eax, dword [ebx]
call fcn.0040c464
test al, al
jne 0x40c639
mov eax, ebx
call fcn.00409384
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c663
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004093e4
lea eax, [ebp - 4]
call fcn.00409384
ret

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

Disassembly:
cmp eax, edx
je 0x420e65
test eax, edx
je 0x420e68
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x420e23
movzx eax, word [eax]
sub eax, ecx
jmp 0x420e4a
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 0x420e4b
add ecx, 4
js 0x420e3b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x420e48
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x420e4a
xor eax, eax
ret
test eax, eax
je 0x420e74
test edx, edx
jne 0x420e14
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x422208
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 ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x42236c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4221a8]
call fcn.0040b348
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4221d8]
call fcn.0040b348
add esp, 4
movzx ebx, byte [0x42237c]
mov dl, 1
mov eax, esi
call fcn.00422570
test al, al
jne 0x422282
mov dl, 1
mov eax, esi
call fcn.004224d8
test al, al
je 0x42230c
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.004228b8
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.00428cfc
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.00409ec8
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x422307
test byte [ebp - 0x14], 1
je 0x4222d2
or bl, 1
test byte [ebp - 0x14], 2
je 0x4222db
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x4222e4
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x4222f8
dec eax
je 0x4222fd
dec eax
je 0x422302
dec eax
jne 0x42232d
or bl, 0x10
jmp 0x42232d
or bl, 4
jmp 0x42232d
or bl, 8
jmp 0x42232d
call fcn.004296b0
lea edx, [ebp - 0x20]
mov eax, dword [0x5f59e4]
call fcn.0040cef8
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x41af6c]
call fcn.00427848
call fcn.00408a8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422373
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004093e4
lea eax, [ebp - 0xc]
mov edx, dword [0x4221d8]
call fcn.0040b46c
lea eax, [ebp - 8]
mov edx, dword [0x4221a8]
call fcn.0040b46c
lea eax, [ebp - 4]
call fcn.00409384
ret

Function at 0x4223d8
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 0x422405
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x4224d8
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.00409ec8
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x422542
test ah, 4
je 0x42253b
test bl, bl
jne 0x422500
mov al, 1
jmp 0x422569
test al, 0x10
je 0x422508
xor eax, eax
jmp 0x422569
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42252c
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x422569
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x422569
test al, 0x10
sete al
jmp 0x422569
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x422563
cmp ebx, 3
je 0x422563
cmp ebx, 0x7b
je 0x422563
mov eax, esi
call fcn.00422498
test al, al
jne 0x422567
xor eax, eax
jmp 0x422569
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x422570
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.00409ec8
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x422617
test esi, 0x400
jne 0x4225ac
test esi, 0x10
setne bl
jmp 0x422647
cmp byte [esp], 0
je 0x4225e0
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x422647
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x422647
test esi, 0x10
je 0x4225ec
mov bl, 1
jmp 0x422647
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x422613
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x422647
mov bl, 1
jmp 0x422647
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x422641
cmp eax, 3
je 0x422641
cmp eax, 0xa1
je 0x422641
cmp eax, 0x7b
je 0x422641
cmp eax, 0x35
je 0x422641
cmp eax, 0x15
je 0x422641
cmp eax, 0x43
jne 0x422645
xor ebx, ebx
jmp 0x422647
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4265fc
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_1
test eax, eax
jle 0x426635
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040950c
jmp 0x42663e
mov eax, ebx
mov edx, esi
call fcn.00409764
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x426648
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_1
test eax, eax
jle 0x42666a
movzx eax, word [esp]
jmp 0x42666c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4276f8
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 0x42781d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00427500
mov esi, eax
mov eax, dword [0x5f5918]
cmp byte [eax], 0
je 0x4277c5
mov eax, dword [0x5f55ec]
call fcn.0040703c
call fcn.0040686c
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_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4276c8]
call fcn.0040b348
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_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x427838
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x427801
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5f555c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5f8c54]
call fcn.0040b55c
push eax
call sub.user32.dll_LoadStringW_1
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 0x427824
lea eax, [ebp - 4]
mov edx, dword [0x4276c8]
call fcn.0040b46c
ret

Function at 0x42885c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x428932
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004097ac
lea eax, [ebp - 4]
call fcn.0040990c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00409ec8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42891c
mov eax, ebx
call fcn.004066f8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x428915
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00409ec8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4288ff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x428944
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4288ff
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42891c
mov eax, dword [ebp - 0x10]
call fcn.00406714
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428939
lea eax, [ebp - 4]
call fcn.00409384
ret
Function at 0x4294f4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00409854
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040cf8c
mov edi, eax
cmp edi, 0x104
jbe 0x42949b
mov eax, edi
add eax, eax
call fcn.004066f8
mov esi, eax
jmp 0x42949d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040cf8c
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4294d8
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4294c2
mov eax, esp
cmp esi, eax
je 0x4294e5
mov eax, esi
call fcn.00406714
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x429520
cmp bl, 0
je 0x42951c
cmp bl, 0x41
jl 0x429517
cmp bl, 0x5a
jg 0x429517
or bl, 0x20
xor al, bl
inc esi
jmp 0x4294fb
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42945c

Function at 0x429d9c
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00409f6c
add esp, 0x800
pop ebx
ret

Function at 0x438a94
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x438ae6
test eax, edx
je 0x438ae9
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x438aa9
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x438acf
add ecx, 4
js 0x438abf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x438acc
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x438af5
test edx, edx
jne 0x438a9c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret