joyce8/EMBER2024-capa huggingface dataset:
Function at 0x103bb058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.103bb1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x103bb07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103bb06a
add dl, dl
jne 0x103bb089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103bb0dc
xor eax, eax
add dl, dl
jne 0x103bb096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103bb17d
add dl, dl
jne 0x103bb0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103bb0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103bb0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103bb0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x103bb0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x103bb075
mov eax, 1
add dl, dl
jne 0x103bb0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103bb0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103bb0e1
sub eax, ebx
mov ebx, 1
jne 0x103bb128
mov ecx, 1
add dl, dl
jne 0x103bb10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x103bb119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103bb105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103bb075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x103bb13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x103bb14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103bb136
cmp eax, 0x7d00
jae 0x103bb16d
cmp eax, 0x500
jb 0x103bb168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103bb075
cmp eax, 0x7f
ja 0x103bb170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103bb075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x103bb19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x103bb075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x42660b
Capabilities:
Terminate process

Disassembly:
call fcn.00426618
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x401026
Capabilities:
Create process on windows
Delete file
Read file on windows
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov edx, section..text
push edi
push esi
push ebx
sub esp, 0x574
lea ecx, [esp + 0x64]
cmp edx, entry0
jae 0x40104c
movzx eax, byte [edx]
inc edx
xor al, 0xd9
mov byte [ecx], al
inc ecx
jmp 0x401039
mov byte [ecx], 0
lea esi, [esp + 0x64]
push esi
push 1
push 0
call 0x401220
push 0x104
lea ebx, [esp + 0x468]
push ebx
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 2
push 0
push 0xffffffffffffff9c
push eax
call sub.KERNEL32.dll_SetFilePointer
push 0
lea ebp, [esp + 4]
push ebp
push 0x64
push esi
push ebx
call sub.KERNEL32.dll_ReadFile
push ebx
call sub.KERNEL32.dll_CloseHandle
lea edx, [esp + 0x65]
lea ecx, [esp + 0xc7]
cmp edx, ecx
jae 0x4010d4
movzx eax, byte [esp + 0x64]
xor byte [edx], al
inc edx
jmp 0x4010c6
lea edx, [esp + 0x14]
lea eax, [esp + 0x58]
cmp edx, eax
jae 0x4010e6
mov byte [edx], 0
inc edx
jmp 0x4010dc
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x8d]
push eax
call sub.KERNEL32.dll_CreateProcessA
test eax, eax
jne 0x401205
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x47c]
push eax
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 2
mov eax, 0xffffff9c
push 0
sub eax, dword [esp + 0x6d]
push eax
push ebx
call sub.KERNEL32.dll_SetFilePointer
push 0
push ebp
push dword [esp + 0x6d]
push dword [esp + 0x71]
push 0
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapAlloc
push eax
mov esi, eax
push ebx
call sub.KERNEL32.dll_ReadFile
push ebx
call sub.KERNEL32.dll_CloseHandle
mov eax, esi
mov edx, esi
add eax, dword [esp + 0x65]
cmp esi, eax
jae 0x40119b
movzx eax, byte [esp + 0x64]
xor byte [edx], al
mov eax, esi
inc edx
add eax, dword [esp + 0x65]
cmp edx, eax
jmp 0x401187
push pe_nt_image_headers32
lea edi, [esp + 0x6d]
push edi
call sub.KERNEL32.dll_SetFileAttributesA
push edi
call sub.KERNEL32.dll_DeleteFileA
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push edi
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 0
push ebp
push dword [esp + 0x6d]
push esi
push eax
call sub.KERNEL32.dll_WriteFile
push ebx
call sub.KERNEL32.dll_CloseHandle
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call sub.KERNEL32.dll_CreateProcessA
push 0
call sub.KERNEL32.dll_ExitProcess
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp dword [sym.imp.KERNEL32.dll_CreateMutexA]
Function at 0x4083c4
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.00408824
mov byte [esp], al
cmp byte [esp], 0
jne 0x40854e
test edi, edi
je 0x40854e
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40848e
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408469
cmp edi, 0xffffffff
je 0x408429
call sub.KERNEL32.DLL_GetTickCount_1
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408429
mov byte [esp], 0
jmp 0x40854e
mov ebx, dword [esi]
cmp ebx, 1
jg 0x408469
test ebx, ebx
jne 0x40845b
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40845b
call sub.KERNEL32.DLL_GetCurrentThreadId_1
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40854e
lea eax, [esp + 0xc]
call fcn.004080a4
dec ebp
test ebp, ebp
jg 0x40840e
cmp edi, 0xffffffff
je 0x40848e
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 0x40848c
mov byte [esp], 0
jmp 0x40854e
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4083d2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40848e
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 4], eax
mov eax, esi
call fcn.004085bc
mov edx, eax
mov ebx, dword [0x5d88fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4084f2
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 0x4084f0
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4084f2
xor edi, edi
cmp byte [esp], 0
je 0x408518
mov ebx, dword [esi]
test bl, 1
jne 0x40852e
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4084f8
mov byte [esp + 1], 1
jmp 0x40852e
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408518
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4084a5
cmp byte [esp], 0
je 0x40854e
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 0x409390
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5d805c], 0
je 0x4093f7
cmp word [0x5d8348], 0xd7b2
jne 0x4093b9
cmp dword [0x5d8350], 0
jbe 0x4093b9
mov eax, 0x5d8344
call dword [0x5d8360]
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, 0x409424
call fcn.00409f44
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x5d2032], 0
jne 0x409413
push 0
push 0x5d29c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4095c0
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 [0x5d2034], 0
je 0x4095eb
mov edx, edi
mov eax, esi
call dword [0x5d2034]
mov ebx, eax
jmp 0x4095fc
mov eax, 8
call fcn.00406a24
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5d805d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409588
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 0x40962c
mov eax, ebx
call fcn.00406a40
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40bfbc
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 0x40c121
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409700
cmp si, word [0x5d2a00]
jb 0x40c054
cmp si, word [0x5d2c00]
ja 0x40c054
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c054
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5d2a00]
jae 0x40c02e
mov edi, ebx
dec edi
jmp 0x40c04f
cmp si, word [ebx*8 + 0x5d2a00]
jbe 0x40c03e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c04f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5d2a04]
call fcn.0040bedc
jmp 0x40c054
cmp edi, dword [ebp - 8]
jae 0x40c018
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c103
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0x40c103
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.0040a2e4
push dword [ebp - 0x160]
push 0x40c13c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a2e4
push dword [ebp - 0x164]
push 0x40c14c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a2e4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a51c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c128
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409760
ret
Function at 0x40c2d4
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 0x40c3d8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5dab8c
call sub.KERNEL32.DLL_EnterCriticalSection_1
cmp bx, word [0x5daba4]
jne 0x40c320
mov eax, esi
mov edx, 0x5daba6
mov ecx, 0x55
call fcn.0040a2e4
push 0x5dab8c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
jmp 0x40c3c2
push 0x5dab8c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
mov eax, esi
call fcn.00409700
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0x40c38f
cmp byte [0x5dab88], 0
je 0x40c354
mov edx, esi
mov eax, ebx
call fcn.0040c1b8
jmp 0x40c38f
mov edx, esi
mov eax, ebx
call fcn.0040bfbc
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c38f
cmp dword [esi], 0
je 0x40c378
mov eax, esi
mov edx, 0x40c3f0
call fcn.0040a43c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040bfbc
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a43c
push 0x5dab8c
call sub.KERNEL32.DLL_EnterCriticalSection_1
mov word [0x5daba4], bx
mov eax, dword [esi]
call fcn.0040a240
mov ecx, eax
mov eax, 0x5daba6
mov edx, 0xaa
call fcn.0040be3c
push 0x5dab8c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c3df
lea eax, [ebp - 4]
call fcn.00409700
ret
Function at 0x40c608
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.004097e4
xor eax, eax
push ebp
push 0x40c82d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c648
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
jmp 0x40c662
mov eax, dword [ebp - 4]
call fcn.0040a240
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040be3c
cmp word [ebp - 0x21a], 0
je 0x40c817
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c83c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c731
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c83c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c731
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c878
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c731
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c878
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c731
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c8ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c731
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c8e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c817
xor eax, eax
push ebp
push 0x40c810
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c418
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 0x40c7a0
mov eax, dword [ebp - 0x10]
call fcn.00406a24
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.0040a2a8
jmp 0x40c7eb
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c920
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c7eb
mov eax, dword [ebp - 0x10]
call fcn.00406a24
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c920
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a2a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c817
cmp dword [ebp - 8], 0
je 0x40c806
mov eax, dword [ebp - 8]
call fcn.00406a40
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 0x40c834
lea eax, [ebp - 4]
call fcn.00409700
ret
Function at 0x40cb1c
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.004097e4
xor eax, eax
push ebp
push 0x40cbdc
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.0040a2e4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a494
mov eax, dword [ebx]
call fcn.0040c9e4
test al, al
jne 0x40cbb9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a2e4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a494
mov eax, dword [ebx]
call fcn.0040c9e4
test al, al
jne 0x40cbb9
mov eax, ebx
call fcn.00409700
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cbe3
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409760
lea eax, [ebp - 4]
call fcn.00409700
ret
Function at 0x420100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x420159
test eax, edx
je 0x42015c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x420117
movzx eax, word [eax]
sub eax, ecx
jmp 0x42013e
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 0x42013f
add ecx, 4
js 0x42012f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x42013c
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x42013e
xor eax, eax
ret
test eax, eax
je 0x420168
test edx, edx
jne 0x420108
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x42135c
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 0x421389
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x42145c
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.0040a240
mov edi, eax
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4214c6
test ah, 4
je 0x4214bf
test bl, bl
jne 0x421484
mov al, 1
jmp 0x4214ed
test al, 0x10
je 0x42148c
xor eax, eax
jmp 0x4214ed
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x4214b0
push eax
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
jmp 0x4214ed
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4214ed
test al, 0x10
sete al
jmp 0x4214ed
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4214e7
cmp ebx, 3
je 0x4214e7
cmp ebx, 0x7b
je 0x4214e7
mov eax, esi
call fcn.0042141c
test al, al
jne 0x4214eb
xor eax, eax
jmp 0x4214ed
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4215d4
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.0040a240
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x421629
call sub.KERNEL32.DLL_GetLastError
mov edi, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x421623
test ah, 4
je 0x421623
test al, 0x10
je 0x421623
mov eax, esi
call fcn.0040a240
push eax
call sub.KERNEL32.DLL_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x421629
push edi
call sub.KERNEL32.DLL_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x425368
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 0x4253a1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409888
jmp 0x4253aa
mov eax, ebx
mov edx, esi
call fcn.00409ae0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4253b4
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 0x4253d6
movzx eax, word [esp]
jmp 0x4253d8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4266d0
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 0x4267f5
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004264d8
mov esi, eax
mov eax, dword [0x5d6e60]
cmp byte [eax], 0
je 0x42679d
mov eax, dword [0x5d6b3c]
call fcn.004072f4
call fcn.00406b98
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 [0x4266a0]
call fcn.0040b6bc
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 0x426810
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x4267d9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5d6ab8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5dac54]
call fcn.0040badc
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 0x4267fc
lea eax, [ebp - 4]
mov edx, dword [0x4266a0]
call fcn.0040b7e0
ret