joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x10302d08
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp], ebx
not al
movsx ax, cl
pushal
movsx ax, bl
lea eax, [0x1030269a]
jmp 0x103066e8
push esp
push esp
lea esp, [esp + 0x2c]
jne 0x10302448
not al
setns ah
push 0x5c0982ab
not al
mov byte [edi - 1], 0
jmp 0x101bf8f2
not ax
jmp 0x1019fbaa
repne scasb al, byte es:[edi]
jmp 0x101bbe0f
mov byte [esp + 0xc], dl
call fcn.1019ccf3
mov bh, 0xa8
loope 0x10306740
rol byte [edi - 0x67], 1
inc esi
ljmp 0xd908
das
sbb dword [ebx], esp
enter 0x5e66, 0x18
mov dword [0xac10aa01], eax
mov eax, 0x978666df
and eax, 0x91803d83
xor edx, esi
jns 0x10306741
sbb al, 0x92
stosd dword es:[edi], eax
lodsd eax, dword [esi]
not dword [esi - 0x4c]
sub byte [esi + ebp], al
xchg byte [ebx], bl
invalid
Function at 0x30005818
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 0x2ba]
cmp edi, ebx
je 0x30005928
cmp word [edi], bx
je 0x30005928
cmp word [esi + 0xb2], bx
lea eax, [esi + 0xb2]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
je 0x30005863
push eax
mov eax, dword [0x300022c4]
call dword [eax + 0x4c]
mov dword [ebp - 0xc], eax
cmp word [esi + 0x4c2], bx
lea eax, [esi + 0x4c2]
je 0x3000587e
push eax
mov eax, dword [0x300022c4]
call dword [eax + 0x4c]
mov dword [ebp - 8], eax
add esi, 0x502
cmp word [esi], bx
je 0x300058b3
mov eax, dword [0x300022c4]
push esi
call dword [eax + 0x4c]
cmp word [esi], bx
mov dword [ebp - 4], eax
je 0x300058b3
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
push eax
call fcn.300052f0
test eax, eax
je 0x300058b3
mov dword [ebp - 0x10], 1
jmp 0x300058f3
mov eax, dword [0x300022c4]
push edi
call dword [eax + 0x4c]
mov edi, eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
jbe 0x300058ea
cmp word [esi], bx
je 0x300058e3
push dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.300052f0
test eax, eax
je 0x300058ea
mov dword [ebp - 0x10], 1
mov eax, dword [0x300022c4]
push edi
call dword [eax + 0x28]
cmp dword [ebp - 4], ebx
je 0x30005903
push dword [ebp - 4]
mov eax, dword [0x300022c4]
call dword [eax + 0x28]
cmp dword [ebp - 8], ebx
je 0x30005913
push dword [ebp - 8]
mov eax, dword [0x300022c4]
call dword [eax + 0x28]
cmp dword [ebp - 0xc], ebx
je 0x30005923
push dword [ebp - 0xc]
mov eax, dword [0x300022c4]
call dword [eax + 0x28]
mov eax, dword [ebp - 0x10]
jmp 0x3000592a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4
Function at 0x406b08
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.004092c8
test esi, esi
jne 0x406b3e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00409450
jmp 0x406b5c
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004069ec
mov edi, eax
test esi, esi
je 0x406b5c
cmp dword [ebx], 0
je 0x406b5c
dec esi
jmp 0x406b45
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408030
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.00408414
mov byte [esp], al
cmp byte [esp], 0
jne 0x4081ba
test edi, edi
je 0x4081ba
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4080fa
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4080d5
cmp edi, 0xffffffff
je 0x408095
call sub.KERNEL32.DLL_GetTickCount_1
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408095
mov byte [esp], 0
jmp 0x4081ba
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4080d5
test ebx, ebx
jne 0x4080c7
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4080c7
call sub.KERNEL32.DLL_GetCurrentThreadId_1
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4081ba
lea eax, [esp + 0xc]
call fcn.00407d10
dec ebp
test ebp, ebp
jg 0x40807a
cmp edi, 0xffffffff
je 0x4080fa
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4080f8
mov byte [esp], 0
jmp 0x4081ba
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40803e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4080fa
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408228
mov edx, eax
mov ebx, dword [0x65e8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40815e
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40815c
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40815e
xor edi, edi
cmp byte [esp], 0
je 0x408184
mov ebx, dword [esi]
test bl, 1
jne 0x40819a
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408164
mov byte [esp + 1], 1
jmp 0x40819a
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408184
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408111
cmp byte [esp], 0
je 0x4081ba
call sub.KERNEL32.DLL_GetCurrentThreadId_1
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 0x408f60
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x65e05c], 0
je 0x408fc7
cmp word [0x65e348], 0xd7b2
jne 0x408f89
cmp dword [0x65e350], 0
jbe 0x408f89
mov eax, 0x65e344
call dword [0x65e360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x408ff4
call fcn.00409b0c
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x656032], 0
jne 0x408fe3
push 0
push 0x6569c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409188
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 [0x656034], 0
je 0x4091b3
mov edx, edi
mov eax, esi
call dword [0x656034]
mov ebx, eax
jmp 0x4091c4
mov eax, 8
call fcn.00406728
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x65e05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409150
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreateThread_1
mov esi, eax
test esi, esi
jne 0x4091f4
mov eax, ebx
call fcn.00406744
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40ba08
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 0x40bb6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004092c8
cmp si, word [0x656a00]
jb 0x40baa0
cmp si, word [0x656c00]
ja 0x40baa0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40baa0
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x656a00]
jae 0x40ba7a
mov edi, ebx
dec edi
jmp 0x40ba9b
cmp si, word [ebx*8 + 0x656a00]
jbe 0x40ba8a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40ba9b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x656a04]
call fcn.0040b928
jmp 0x40baa0
cmp edi, dword [ebp - 8]
jae 0x40ba64
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bb4f
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0x40bb4f
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409ec4
push dword [ebp - 0x160]
push 0x40bb88
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409ec4
push dword [ebp - 0x164]
push 0x40bb98
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409ec4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a0fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb74
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409328
ret
Function at 0x40bd20
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 0x40be24
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x660b8c
call sub.KERNEL32.DLL_EnterCriticalSection_1
cmp bx, word [0x660ba4]
jne 0x40bd6c
mov eax, esi
mov edx, 0x660ba6
mov ecx, 0x55
call fcn.00409ec4
push 0x660b8c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
jmp 0x40be0e
push 0x660b8c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
mov eax, esi
call fcn.004092c8
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0x40bddb
cmp byte [0x660b88], 0
je 0x40bda0
mov edx, esi
mov eax, ebx
call fcn.0040bc04
jmp 0x40bddb
mov edx, esi
mov eax, ebx
call fcn.0040ba08
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bddb
cmp dword [esi], 0
je 0x40bdc4
mov eax, esi
mov edx, 0x40be3c
call fcn.0040a01c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040ba08
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a01c
push 0x660b8c
call sub.KERNEL32.DLL_EnterCriticalSection_1
mov word [0x660ba4], bx
mov eax, dword [esi]
call fcn.00409e08
mov ecx, eax
mov eax, 0x660ba6
mov edx, 0xaa
call fcn.0040b888
push 0x660b8c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be2b
lea eax, [ebp - 4]
call fcn.004092c8
ret
Function at 0x40c054
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.004093ac
xor eax, eax
push ebp
push 0x40c279
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c094
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
jmp 0x40c0ae
mov eax, dword [ebp - 4]
call fcn.00409e08
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b888
cmp word [ebp - 0x21a], 0
je 0x40c263
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c288
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c17d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c288
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c17d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c2c4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c17d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c2c4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c17d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c2f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c17d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c32c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c263
xor eax, eax
push ebp
push 0x40c25c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040be64
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 0x40c1ec
mov eax, dword [ebp - 0x10]
call fcn.00406728
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.00409e70
jmp 0x40c237
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c36c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c237
mov eax, dword [ebp - 0x10]
call fcn.00406728
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c36c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409e70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c263
cmp dword [ebp - 8], 0
je 0x40c252
mov eax, dword [ebp - 8]
call fcn.00406744
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 0x40c280
lea eax, [ebp - 4]
call fcn.004092c8
ret
Function at 0x40c568
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.004093ac
xor eax, eax
push ebp
push 0x40c628
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409ec4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a074
mov eax, dword [ebx]
call fcn.0040c430
test al, al
jne 0x40c605
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409ec4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a074
mov eax, dword [ebx]
call fcn.0040c430
test al, al
jne 0x40c605
mov eax, ebx
call fcn.004092c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c62f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409328
lea eax, [ebp - 4]
call fcn.004092c8
ret

Function at 0x420f5c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x420fb5
test eax, edx
je 0x420fb8
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x420f73
movzx eax, word [eax]
sub eax, ecx
jmp 0x420f9a
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 0x420f9b
add ecx, 4
js 0x420f8b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x420f98
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x420f9a
xor eax, eax
ret
test eax, eax
je 0x420fc4
test edx, edx
jne 0x420f64
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4223a8
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 0x4223d5
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x4224a8
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.00409e08
mov edi, eax
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x422512
test ah, 4
je 0x42250b
test bl, bl
jne 0x4224d0
mov al, 1
jmp 0x422539
test al, 0x10
je 0x4224d8
xor eax, eax
jmp 0x422539
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x4224fc
push eax
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
jmp 0x422539
call sub.KERNEL32.DLL_GetLastError_1
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x422539
test al, 0x10
sete al
jmp 0x422539
call sub.KERNEL32.DLL_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x422533
cmp ebx, 3
je 0x422533
cmp ebx, 0x7b
je 0x422533
mov eax, esi
call fcn.00422468
test al, al
jne 0x422537
xor eax, eax
jmp 0x422539
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x422540
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.00409e08
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x4225e7
test esi, 0x400
jne 0x42257c
test esi, 0x10
setne bl
jmp 0x422617
cmp byte [esp], 0
je 0x4225b0
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x422617
push eax
call sub.KERNEL32.DLL_CloseHandle
test esi, 0x10
setne bl
jmp 0x422617
test esi, 0x10
je 0x4225bc
mov bl, 1
jmp 0x422617
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x4225e3
push eax
call sub.KERNEL32.DLL_CloseHandle
xor ebx, ebx
jmp 0x422617
mov bl, 1
jmp 0x422617
call sub.KERNEL32.DLL_GetLastError_1
cmp eax, 2
je 0x422611
cmp eax, 3
je 0x422611
cmp eax, 0xa1
je 0x422611
cmp eax, 0x7b
je 0x422611
cmp eax, 0x35
je 0x422611
cmp eax, 0x15
je 0x422611
cmp eax, 0x43
jne 0x422615
xor ebx, ebx
jmp 0x422617
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4264a8
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 0x4264e1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409450
jmp 0x4264ea
mov eax, ebx
mov edx, esi
call fcn.004096a8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4264f4
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 0x426516
movzx eax, word [esp]
jmp 0x426518
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4275c4
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 0x4276e9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004273cc
mov esi, eax
mov eax, dword [0x65d8f0]
cmp byte [eax], 0
je 0x427691
mov eax, dword [0x65d2c8]
call fcn.00407044
call fcn.0040689c
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 [0x427594]
call fcn.0040b314
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 0x427704
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x4276cd
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x65d1dc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x660c54]
call fcn.0040b528
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 0x4276f0
lea eax, [ebp - 4]
mov edx, dword [0x427594]
call fcn.0040b438
ret

Function at 0x42883c
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffee0
mov dword [esp + 0xc], 0x114
lea eax, [esp + 0xc]
push eax
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x4288ed
cmp dword [esp + 0x10], 6
ja 0x428871
cmp dword [esp + 0x10], 6
jne 0x42889d
cmp dword [esp + 0x14], 1
jbe 0x42889d
mov dword [esp + 8], 0xffffffff
lea ecx, [esp + 8]
lea edx, [esp + 4]
mov eax, esp
call fcn.004286ec
mov eax, dword [esp]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
mov dword [0x656edc], eax
mov eax, dword [esp + 0x10]
mov dword [0x656ee0], eax
mov eax, dword [esp + 0x14]
mov dword [0x656ee4], eax
cmp dword [0x656edc], 1
jne 0x4288d1
mov eax, dword [esp + 0x18]
and eax, 0xffff
mov dword [0x656ee8], eax
jmp 0x4288da
mov eax, dword [esp + 0x18]
mov dword [0x656ee8], eax
mov eax, 0x656eec
lea edx, [esp + 0x20]
mov ecx, 0x80
call fcn.00409ec4
add esp, 0x120
ret