joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4053ba
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4224a8], 0x44
push eax
xor eax, eax
push 0x4224a8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4053f5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40547f
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0040572e
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4054b3
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423f28], eax
jmp 0x405647
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4054d1
test eax, eax
je 0x4055f2
test byte [ebp + 0xc], 2
je 0x4055f2
mov esi, 0x4214a8
push edi
push esi
call fcn.00405b5a
test ebx, ebx
je 0x4054ee
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4054f4
push edi
call fcn.00405694
cmp byte [edi], 0
jne 0x405502
cmp byte [0x4214a8], 0x5c
jne 0x40550d
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4055e8
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405678
cmp byte [eax], 0
je 0x405553
cmp byte [ebp - 0x18], 0
je 0x405553
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405569
mov al, byte [esi + 1]
test al, al
je 0x4055c7
cmp al, 0x2e
jne 0x405569
cmp byte [esi + 2], 0
je 0x4055c7
push esi
push ebx
call fcn.00405b5a
test byte [ebp - 0x148], 0x10
je 0x40558e
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055c7
push dword [ebp + 0xc]
push edi
call fcn.0040547f
jmp 0x4055c7
push edi
call fcn.00405812
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4055bf
test byte [ebp + 0xc], 4
je 0x4055b7
push edi
push 0xfffffffffffffff1
call fcn.00404ef8
push 0
push edi
call fcn.004058a8
jmp 0x4055c7
inc dword [0x423f28]
jmp 0x4055c7
push edi
push 0xfffffffffffffff2
call fcn.00404ef8
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405531
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4055f2
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405647
cmp dword [ebp - 8], esi
jne 0x405607
inc dword [0x423f28]
jmp 0x405647
push edi
call fcn.00405e51
test eax, eax
je 0x405647
push edi
call fcn.0040564d
push edi
call fcn.00405812
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40563f
test byte [ebp + 0xc], 4
je 0x4055ff
push edi
push 0xfffffffffffffff1
call fcn.00404ef8
push esi
push edi
call fcn.004058a8
jmp 0x405647
push edi
push 0xffffffffffffffe5
call fcn.00404ef8
pop edi
pop esi
leave
ret 8
Function at 0x405ee4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f1b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405ef5
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405ef0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f4c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f2e
pop edi
not eax
pop esi
ret 0xc
Function at 0x4014e0
Capabilities:
Get common file path

Disassembly:
push edi
push esi
mov edi, eax
push ebx
sub esp, 0x220
lea esi, [esp + 0x18]
mov dword [esp], 0x104
mov dword [esp + 4], esi
call sub.KERNEL32.dll_GetCurrentDirectoryW
lea eax, [edi + 8]
sub esp, 8
mov dword [esp], esi
mov dword [edi], eax
call sub.msvcrt.dll_wcslen
lea ebx, [eax + eax]
sar ebx, 1
cmp ebx, 7
mov dword [esp + 0x14], ebx
ja 0x401540
cmp ebx, 1
mov edx, ebx
mov eax, dword [edi]
je 0x401580
test ebx, ebx
jne 0x401562
xor ecx, ecx
mov dword [edi + 4], edx
mov word [eax + edx*2], cx
add esp, 0x220
mov eax, edi
pop ebx
pop esi
pop edi
ret
lea eax, [esp + 0x14]
mov dword [esp + 4], 0
mov ecx, edi
mov dword [esp], eax
call fcn.0048c290
sub esp, 8
mov dword [edi], eax
mov edx, dword [esp + 0x14]
mov dword [edi + 8], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00415080
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
jmp 0x40152a
movzx ecx, word [esp + 0x18]
mov word [eax], cx
jmp 0x40152a

Function at 0x401590
Capabilities:
Enumerate processes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24c
mov dword [esp + 4], 0
mov dword [esp], 2
mov ebp, dword [esp + 0x260]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
sub esp, 8
xor eax, eax
cmp ebx, 0xffffffff
je 0x401624
lea edi, [esp + 0x14]
mov ecx, 0x8b
lea esi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x14], 0x22c
call sub.KERNEL32.dll_Process32FirstW
sub esp, 8
test eax, eax
lea edi, [esp + 0x38]
jne 0x401604
jmp 0x401630
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.KERNEL32.dll_Process32NextW
sub esp, 8
test eax, eax
je 0x401630
mov dword [esp], edi
mov ecx, ebp
call fcn.0042a350
sub esp, 4
test eax, eax
jne 0x4015f1
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [esp + 0x1c]
add esp, 0x24c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
xor eax, eax
add esp, 0x24c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41d730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1b
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ebp - 0x84]
mov esi, str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_http:__gcc.gnu.org_bugs.html_:_n
sub esp, 0x9c
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
lea eax, [edx + 1]
mov dword [ebp - 0x8c], eax
lea eax, [edx + 0x8a]
and eax, 0xfffffff0
call fcn.0040b680
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x84]
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
movzx eax, word [esi]
mov word [edi], ax
movzx eax, byte [esi + 2]
mov byte [edi + 2], al
lea eax, [ebx + 0x6b]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x8c]
mov byte [ebx + eax + 0x6a], 0
mov dword [esp], ebx
call fcn.00494d90
nop
nop
nop
nop
nop
nop
nop
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4a3adc], 0
jne 0x41d804
mov byte [0x4a3adc], 1
call fcn.0049b0c0
test eax, eax
je 0x41d89e
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0xffffffff
sete al
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call fcn.0040a980
mov esi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov ebp, eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
lea edi, [esi + 0x40]
mov dword [esp + 0xc], edi
call sub.msvcrt.dll_fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp + 4], edi
je 0x41d7fa
mov dword [esp], ebx
call sub.msvcrt.dll_fputs
lea eax, [esi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4a44fd
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
cmp dword [esp + 0x1c], 0
je 0x41d831
call fcn.0049b4c0
mov dword [esp], ebp
call sub.msvcrt.dll_fputs
jmp 0x41d7cb
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
mov dword [esp], ebp
call fcn.0041a660
jmp 0x41d7f5
call sub.msvcrt.dll_abort
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
jmp 0x41d899
Function at 0x405cc8
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.00405f64
mov byte [esp], al
cmp byte [esp], 0
jne 0x405e52
test edi, edi
je 0x405e52
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405d92
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x405d6d
cmp edi, 0xffffffff
je 0x405d2d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405d2d
mov byte [esp], 0
jmp 0x405e52
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405d6d
test ebx, ebx
jne 0x405d5f
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x405d5f
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405e52
lea eax, [esp + 0xc]
call fcn.00405a5c
dec ebp
test ebp, ebp
jg 0x405d12
cmp edi, 0xffffffff
je 0x405d92
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405d90
mov byte [esp], 0
jmp 0x405e52
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405cd6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405d92
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405ec0
mov edx, eax
mov ebx, dword [0x4448f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405df6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405df4
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405df6
xor edi, edi
cmp byte [esp], 0
je 0x405e1c
mov ebx, dword [esi]
test bl, 1
jne 0x405e32
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405dfc
mov byte [esp + 1], 1
jmp 0x405e32
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405e1c
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405da9
cmp byte [esp], 0
je 0x405e52
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 0x4067a4
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x446b18
cmp dword [ebp + 0xc], 2
jl 0x4067b8
mov ebx, 0x446b48
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x4067f0
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x402e70
mov dword [0x44401c], eax
mov eax, 0x402e78
mov dword [0x444020], eax
mov eax, ebx
call fcn.00406688
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x406825
cmp al, 3
jge 0x406825
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x406836
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x406841
call dword [ecx + eax*4]
cmp dword [0x444040], 0
jne 0x406857
mov byte [0x444048], 1
fnstcw word [0x441024]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00406ae8
call fcn.00406738
ret 4

Function at 0x406a50
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x444058], 0
je 0x406ab7
cmp word [0x444344], 0xd7b2
jne 0x406a79
cmp dword [0x44434c], 0
jbe 0x406a79
mov eax, 0x444340
call dword [0x44435c]
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, 0x406ae4
call fcn.004074a8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x44102e], 0
jne 0x406ad3
push 0
push 0x4419ba
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408e14
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 0x408f79
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406cf4
cmp si, word [0x4419f8]
jb 0x408eac
cmp si, word [0x441bf8]
ja 0x408eac
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408eac
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4419f8]
jae 0x408e86
mov edi, ebx
dec edi
jmp 0x408ea7
cmp si, word [ebx*8 + 0x4419f8]
jbe 0x408e96
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408ea7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4419fc]
call fcn.00408d34
jmp 0x408eac
cmp edi, dword [ebp - 8]
jae 0x408e70
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408f5b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408f5b
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.00407848
push dword [ebp - 0x160]
push 0x408f94
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407848
push dword [ebp - 0x164]
push 0x408fa4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407848
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407a14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f80
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406d54
ret
Function at 0x40912c
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 0x409230
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x446b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x446ba0]
jne 0x409178
mov eax, esi
mov edx, 0x446ba2
mov ecx, 0x55
call fcn.00407848
push 0x446b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40921a
push 0x446b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406cf4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4091e7
cmp byte [0x446b84], 0
je 0x4091ac
mov edx, esi
mov eax, ebx
call fcn.00409010
jmp 0x4091e7
mov edx, esi
mov eax, ebx
call fcn.00408e14
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4091e7
cmp dword [esi], 0
je 0x4091d0
mov eax, esi
mov edx, 0x409248
call fcn.00407934
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408e14
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407934
push 0x446b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x446ba0], bx
mov eax, dword [esi]
call fcn.004077a4
mov ecx, eax
mov eax, 0x446ba2
mov edx, 0xaa
call fcn.00408c94
push 0x446b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409237
lea eax, [ebp - 4]
call fcn.00406cf4
ret
Function at 0x409460
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.00406dd8
xor eax, eax
push ebp
push 0x409685
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4094a0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4094ba
mov eax, dword [ebp - 4]
call fcn.004077a4
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408c94
cmp word [ebp - 0x21a], 0
je 0x40966f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409694
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409589
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409694
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409589
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4096d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409589
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4096d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409589
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409704
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409589
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409738
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40966f
xor eax, eax
push ebp
push 0x409668
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409270
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 0x4095f8
mov eax, dword [ebp - 0x10]
call fcn.00404af4
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.0040780c
jmp 0x409643
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409778
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409643
mov eax, dword [ebp - 0x10]
call fcn.00404af4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409778
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040780c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40966f
cmp dword [ebp - 8], 0
je 0x40965e
mov eax, dword [ebp - 8]
call fcn.00404b10
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 0x40968c
lea eax, [ebp - 4]
call fcn.00406cf4
ret
Function at 0x409974
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.00406dd8
xor eax, eax
push ebp
push 0x409a34
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.00407848
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040798c
mov eax, dword [ebx]
call fcn.0040983c
test al, al
jne 0x409a11
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407848
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040798c
mov eax, dword [ebx]
call fcn.0040983c
test al, al
jne 0x409a11
mov eax, ebx
call fcn.00406cf4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a3b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406d54
lea eax, [ebp - 4]
call fcn.00406cf4
ret

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

Disassembly:
cmp eax, edx
je 0x415921
test eax, edx
je 0x415924
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4158df
movzx eax, word [eax]
sub eax, ecx
jmp 0x415906
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 0x415907
add ecx, 4
js 0x4158f7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x415904
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x415906
xor eax, eax
ret
test eax, eax
je 0x415930
test edx, edx
jne 0x4158d0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41a078
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 0x41a0b1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406e4c
jmp 0x41a0ba
mov eax, ebx
mov edx, esi
call fcn.004070a4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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