joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10026b10
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10035040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x28], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10026c0a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10026c03
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x10026be9
call ebx
cmp dword [ebp - 0x14], eax
jne 0x10026be9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10026be9
mov edx, dword [esi]
test edx, edx
jne 0x10026bb2
push 0x200
push edx
push dword [0x10042278]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10026c03
jmp 0x10026bdd
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10026bdd
shl eax, 3
push eax
push edx
push 0
push dword [0x10042278]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10026c03
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10026b71
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x10026c62
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x10026c62
xor ecx, ecx
mov dword [ebp - 0x24], ecx
nop dword [eax + eax]
mov eax, dword [esi]
push dword [eax + ecx]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10026c53
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x28]
mov ecx, edi
call fcn.100269a0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x24]
inc ebx
add ecx, 4
mov dword [ebp - 0x24], ecx
cmp ebx, dword [esi + 8]
jb 0x10026c20
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002821c
mov esp, ebp
pop ebp
ret

Function at 0x10026c80
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x10026ce4
push ebx
xor ebx, ebx
cmp dword [edi + 8], ebx
jbe 0x10026cd3
xor ecx, ecx
mov dword [ebp - 4], ecx
push esi
nop word [eax + eax]
mov eax, dword [edi]
push dword [eax + ecx]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x10026cc3
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
inc ebx
add ecx, 4
mov dword [ebp - 4], ecx
cmp ebx, dword [edi + 8]
jb 0x10026ca0
pop esi
push dword [edi]
push 0
push dword [0x10042278]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10026cf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10035040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x100423a0]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10026d51
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002821c
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10026d72
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10026d93
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10026d93
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10026d8d
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x10026d93
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x14], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.1002821c
mov esp, ebp
pop ebp
ret
Function at 0x100280d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x10028108
sub eax, 1
jne 0x1002813d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push dword [ebp + 8]
push 0x10028080
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
cmp dword [0x10042300], 0
je 0x1002813d
xor edx, edx
xor ecx, ecx
call fcn.100271c0
push dword [0x100422ec]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [0x100422ec], 0
mov dword [0x10042300], 0
mov eax, 1
pop ebp
ret 0xc
Function at 0x406e54
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.0040934c
test esi, esi
jne 0x406e8a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406d98
mov edi, eax
test esi, esi
je 0x406ea8
cmp dword [ebx], 0
je 0x406ea8
dec esi
jmp 0x406e91

Function at 0x406edc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x71f008], 0x8088405
inc edx
mov dword [ebx + 0x71f008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x407fa8
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.0040838c
mov byte [esp], al
cmp byte [esp], 0
jne 0x408132
test edi, edi
je 0x408132
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408072
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40804d
cmp edi, 0xffffffff
je 0x40800d
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40800d
mov byte [esp], 0
jmp 0x408132
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40804d
test ebx, ebx
jne 0x40803f
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40803f
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408132
lea eax, [esp + 0xc]
call fcn.00407c88
dec ebp
test ebp, ebp
jg 0x407ff2
cmp edi, 0xffffffff
je 0x408072
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408070
mov byte [esp], 0
jmp 0x408132
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407fb6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408072
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004081a0
mov edx, eax
mov ebx, dword [0x72b8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4080d6
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4080d4
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4080d6
xor edi, edi
cmp byte [esp], 0
je 0x4080fc
mov ebx, dword [esi]
test bl, 1
jne 0x408112
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4080dc
mov byte [esp + 1], 1
jmp 0x408112
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4080fc
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408089
cmp byte [esp], 0
je 0x408132
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 0x408fdc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x72b05c], 0
je 0x409043
cmp word [0x72b348], 0xd7b2
jne 0x409005
cmp dword [0x72b350], 0
jbe 0x409005
mov eax, 0x72b344
call dword [0x72b360]
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, 0x409070
call fcn.00409d88
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x71f034], 0
jne 0x40905f
push 0
push 0x71f9d2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40920c
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 [0x71f038], 0
je 0x409237
mov edx, edi
mov eax, esi
call dword [0x71f038]
mov ebx, eax
jmp 0x409248
mov eax, 8
call fcn.00406ad4
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x72b05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4091d4
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 0x409278
mov eax, ebx
call fcn.00406af0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c240
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 0x40c3a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040934c
cmp si, word [0x71fa10]
jb 0x40c2d8
cmp si, word [0x71fc10]
ja 0x40c2d8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c2d8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x71fa10]
jae 0x40c2b2
mov edi, ebx
dec edi
jmp 0x40c2d3
cmp si, word [ebx*8 + 0x71fa10]
jbe 0x40c2c2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c2d3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x71fa14]
call fcn.0040c160
jmp 0x40c2d8
cmp edi, dword [ebp - 8]
jae 0x40c29c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c387
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x40c387
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.0040a398
push dword [ebp - 0x160]
push 0x40c3c0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a398
push dword [ebp - 0x164]
push 0x40c3d0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a398
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a5d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c3ac
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004093ac
ret
Function at 0x40c558
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 0x40c65c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x72db8c
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x72dba4]
jne 0x40c5a4
mov eax, esi
mov edx, 0x72dba6
mov ecx, 0x55
call fcn.0040a398
push 0x72db8c
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x40c646
push 0x72db8c
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.0040934c
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x40c613
cmp byte [0x72db88], 0
je 0x40c5d8
mov edx, esi
mov eax, ebx
call fcn.0040c43c
jmp 0x40c613
mov edx, esi
mov eax, ebx
call fcn.0040c240
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c613
cmp dword [esi], 0
je 0x40c5fc
mov eax, esi
mov edx, 0x40c674
call fcn.0040a4f0
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c240
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a4f0
push 0x72db8c
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x72dba4], bx
mov eax, dword [esi]
call fcn.0040a2dc
mov ecx, eax
mov eax, 0x72dba6
mov edx, 0xaa
call fcn.0040c0c0
push 0x72db8c
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c663
lea eax, [ebp - 4]
call fcn.0040934c
ret
Function at 0x40c88c
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.00409430
xor eax, eax
push ebp
push 0x40cab1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c8cc
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x40c8e6
mov eax, dword [ebp - 4]
call fcn.0040a2dc
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c0c0
cmp word [ebp - 0x21a], 0
je 0x40ca9b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cac0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x40c9b5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cac0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x40c9b5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cafc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x40c9b5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cafc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x40c9b5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cb30
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x40c9b5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cb64
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x40ca9b
xor eax, eax
push ebp
push 0x40ca94
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c69c
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_1
test eax, eax
jne 0x40ca24
mov eax, dword [ebp - 0x10]
call fcn.00406ad4
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_1
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a344
jmp 0x40ca6f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40cba4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x40ca6f
mov eax, dword [ebp - 0x10]
call fcn.00406ad4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40cba4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a344
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca9b
cmp dword [ebp - 8], 0
je 0x40ca8a
mov eax, dword [ebp - 8]
call fcn.00406af0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cab8
lea eax, [ebp - 4]
call fcn.0040934c
ret
Function at 0x40cda0
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.00409430
xor eax, eax
push ebp
push 0x40ce60
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.0040a398
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a548
mov eax, dword [ebx]
call fcn.0040cc68
test al, al
jne 0x40ce3d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a398
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a548
mov eax, dword [ebx]
call fcn.0040cc68
test al, al
jne 0x40ce3d
mov eax, ebx
call fcn.0040934c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce67
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004093ac
lea eax, [ebp - 4]
call fcn.0040934c
ret

Function at 0x420600
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x420659
test eax, edx
je 0x42065c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x420617
movzx eax, word [eax]
sub eax, ecx
jmp 0x42063e
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 0x42063f
add ecx, 4
js 0x42062f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x42063c
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x42063e
xor eax, eax
ret
test eax, eax
je 0x420668
test edx, edx
jne 0x420608
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4218c0
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 0x4218ed
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x4219c8
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.0040a2dc
mov edi, eax
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x421a32
test ah, 4
je 0x421a2b
test bl, bl
jne 0x4219f0
mov al, 1
jmp 0x421a59
test al, 0x10
je 0x4219f8
xor eax, eax
jmp 0x421a59
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x421a1c
push eax
call sub.KERNEL32.DLL_CloseHandle_1
mov al, 1
jmp 0x421a59
call sub.KERNEL32.DLL_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x421a59
test al, 0x10
sete al
jmp 0x421a59
call sub.KERNEL32.DLL_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x421a53
cmp ebx, 3
je 0x421a53
cmp ebx, 0x7b
je 0x421a53
mov eax, esi
call fcn.00421988
test al, al
jne 0x421a57
xor eax, eax
jmp 0x421a59
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x421a60
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.0040a2dc
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x421b07
test esi, 0x400
jne 0x421a9c
test esi, 0x10
setne bl
jmp 0x421b37
cmp byte [esp], 0
je 0x421ad0
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x421b37
push eax
call sub.KERNEL32.DLL_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x421b37
test esi, 0x10
je 0x421adc
mov bl, 1
jmp 0x421b37
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x421b03
push eax
call sub.KERNEL32.DLL_CloseHandle_1
xor ebx, ebx
jmp 0x421b37
mov bl, 1
jmp 0x421b37
call sub.KERNEL32.DLL_GetLastError_2
cmp eax, 2
je 0x421b31
cmp eax, 3
je 0x421b31
cmp eax, 0xa1
je 0x421b31
cmp eax, 0x7b
je 0x421b31
cmp eax, 0x35
je 0x421b31
cmp eax, 0x15
je 0x421b31
cmp eax, 0x43
jne 0x421b35
xor ebx, ebx
jmp 0x421b37
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x421c6c
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.0040a2dc
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x421cc1
call sub.KERNEL32.DLL_GetLastError_2
mov edi, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x421cbb
test ah, 4
je 0x421cbb
test al, 0x10
je 0x421cbb
mov eax, esi
call fcn.0040a2dc
push eax
call sub.KERNEL32.DLL_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x421cc1
push edi
call sub.KERNEL32.DLL_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x425d40
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 0x425d79
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004094d4
jmp 0x425d82
mov eax, ebx
mov edx, esi
call fcn.0040972c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x426ef0
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 0x427015
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00426cf8
mov esi, eax
mov eax, dword [0x72a878]
cmp byte [eax], 0
je 0x426fbd
mov eax, dword [0x72a088]
call fcn.00407068
call fcn.00406c48
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 [0x426ec0]
call fcn.0040b9f8
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 0x427030
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
jmp 0x426ff9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x729f74]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x72dc54]
call fcn.0040bd60
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 0x42701c
lea eax, [ebp - 4]
mov edx, dword [0x426ec0]
call fcn.0040bb1c
ret