joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a200
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40a392
sub esp, 0xc
mov eax, dword [esp + 0x14]
xor ebp, ebp
cmp eax, ebp
je 0x40a385
mov ebp, dword [eax]
cmp ebp, 0
je 0x40a385
movzx ebp, byte [eax + 4]
mov ebx, ebp
and ebx, 4
cmp bl, 0
je 0x40a259
mov ebx, 0x5fe2f3
mov dword [esp], ebx
mov dword [esp + 4], 0x21
call fcn.0042a340
mov eax, dword [esp + 0x14]
movzx ebp, byte [eax + 5]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
jne 0x40a2e3
mov edx, dword [eax + 0xc]
xor ecx, ecx
cmp ecx, 8
jae 0x40a291
mov esi, ecx
shl esi, 3
add esi, 8
mov ebx, edx
add ebx, esi
mov esi, dword [ebx]
mov eax, dword [ebx + 4]
cmp eax, dword [esp + 0x1c]
jne 0x40a28b
cmp esi, dword [esp + 0x18]
je 0x40a2b7
inc ecx
cmp ecx, 8
jb 0x40a26e
mov eax, dword [esp + 0x10]
movzx ebp, word [eax + 0x34]
mov eax, ebp
sub eax, 4
mov ebx, edx
add ebx, eax
mov edx, dword [ebx]
xor ebp, ebp
cmp edx, ebp
jne 0x40a267
mov ebx, 0x6da6c0
mov dword [esp + 0x20], ebx
add esp, 0xc
ret
mov ebx, edx
add ebx, ecx
movzx ebp, byte [ebx]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
je 0x40a28b
mov eax, edx
mov ebx, dword [esp + 0x10]
movzx ebp, byte [ebx + 0x32]
mov edx, ebp
imul edx, ecx
add edx, 0x48
mov ebx, eax
add ebx, edx
mov dword [esp + 0x20], ebx
add esp, 0xc
ret
lea ebx, [esp + 0x18]
xor ebx, 0
mov dword [esp], ebx
mov ebp, dword [eax + 8]
mov dword [esp + 4], ebp
mov ebx, dword [esp + 0x10]
mov ebp, dword [ebx + 0x20]
mov esi, dword [ebp + 0x10]
mov edx, dword [esi]
mov ebx, dword [edx]
call ebx
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 8]
movzx ecx, byte [edi + 5]
mov ebx, 1
cmp cl, 0x20
jae 0x40a381
shl ebx, cl
dec ebx
mov ecx, ebx
mov eax, esi
and eax, ebx
mov ebx, dword [esp + 0x10]
movzx ebp, word [ebx + 0x34]
imul eax, ebp
mov edx, dword [edi + 0xc]
add edx, eax
mov eax, dword [edi + 0x10]
xor ebp, ebp
cmp eax, ebp
je 0x40a267
shr ecx, 1
and ecx, esi
mov ebx, dword [esp + 0x10]
movzx ebp, word [ebx + 0x34]
mov ebx, ebp
mov ebp, ecx
imul ebp, ebx
mov ecx, eax
add ecx, ebp
movzx ebp, byte [ecx]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
jbe 0x40a37d
xchg ebp, eax
cmp al, 4
xchg ebp, eax
jae 0x40a37d
mov eax, 1
cmp al, 0
jne 0x40a267
mov edx, ecx
jmp 0x40a267
xor eax, eax
jmp 0x40a36d
xor ebx, ebx
jmp 0x40a31a
mov ebx, 0x6da6c0
mov dword [esp + 0x20], ebx
add esp, 0xc
ret
call fcn.00450db0
jmp fcn.0040a200
Function at 0x442cd0
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x442ebf
sub esp, 0x3c
mov edi, dword [esp + 0x40]
mov ecx, dword [edi + 4]
movzx ebp, byte [ecx]
xchg ebp, eax
cmp al, 0xe9
xchg ebp, eax
jne 0x442d17
mov ebp, dword [edi + 4]
add ebp, 5
mov dword [esp + 0xc], ebp
mov esi, ecx
inc esi
mov eax, dword [esi]
cdq
mov ebx, dword [esp + 0xc]
add ebx, eax
mov dword [edi + 4], ebx
add esp, 0x3c
ret
movzx ebp, byte [ecx]
xchg ebp, eax
cmp al, 0xeb
xchg ebp, eax
jne 0x442d42
mov ebp, dword [edi + 4]
add ebp, 2
mov dword [esp + 8], ebp
mov eax, ecx
inc eax
movzx eax, byte [eax]
movsx eax, al
cdq
mov ebx, dword [esp + 8]
add ebx, eax
mov dword [edi + 4], ebx
add esp, 0x3c
ret
movzx ebp, byte [ecx]
xchg ebp, eax
cmp al, 0xcc
xchg ebp, eax
jne 0x442d50
add esp, 0x3c
ret
movzx ebp, byte [ecx]
xor edx, edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], edx
movzx ebp, byte [ecx + 1]
xor edx, edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], edx
movzx ebp, byte [ecx + 2]
xor edx, edx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], edx
movzx ebp, byte [ecx + 3]
xor edx, edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], edx
mov dword [esp + 0x38], ecx
movzx ebp, byte [ecx + 4]
xor ecx, ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ecx
call fcn.0042ab20
mov ebx, 0x5f790a
mov dword [esp], ebx
mov dword [esp + 4], 0xc
call fcn.0042b530
mov ebx, dword [esp + 0x38]
mov dword [esp], ebx
call fcn.0042b4f0
mov ebx, 0x5f56e4
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0042b530
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call fcn.0042b3c0
mov ebx, 0x5f56e4
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0042b530
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call fcn.0042b3c0
mov ebx, 0x5f56e4
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0042b530
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.0042b3c0
mov ebx, 0x5f56e4
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0042b530
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], eax
call fcn.0042b3c0
mov ebx, 0x5f56e4
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0042b530
mov eax, dword [esp + 0x10]
mov dword [esp], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
call fcn.0042b3c0
mov ebx, 0x5f5706
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0042b530
call fcn.0042aba0
mov ebx, 0x5fe9fe
mov dword [esp], ebx
mov dword [esp + 4], 0x22
call fcn.0042a340
add esp, 0x3c
ret
call fcn.00450db0
jmp fcn.00442cd0
Function at 0x1b69780
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x89d000]
push edi
or ebp, 0xffffffff
jmp 0x1b697a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1b697a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1b69798
mov eax, 1
add ebx, ebx
jne 0x1b697bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1b697cc
jne 0x1b697eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1b697eb
dec eax
add ebx, ebx
jne 0x1b697d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1b697b0
add ebx, ebx
jne 0x1b697e7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1b6983d
xor ecx, ecx
sub eax, 3
jb 0x1b69803
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1b69872
sar eax, 1
mov ebp, eax
jmp 0x1b6980e
add ebx, ebx
jne 0x1b6980e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1b697dc
inc ecx
add ebx, ebx
jne 0x1b6981c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1b697dc
add ebx, ebx
jne 0x1b69829
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1b6981e
jne 0x1b6983a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1b6981e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1b6985c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1b6984e
jmp 0x1b6979e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1b6985c
add edi, ecx
jmp 0x1b6979e
pop esi
mov edi, esi
mov ecx, 0x247d0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1b6987a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1b6987f
lea edi, [esi + 0xc65000]
mov eax, dword [edi]
or eax, eax
je 0x1b698e7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xce6128]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xce6268]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1b698a5
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xce626c]
or eax, eax
je 0x1b698e1
mov dword [ebx], eax
add ebx, 4
jmp 0x1b698c2
call dword [esi + 0xce627c]
mov ebp, dword [esi + 0xce6270]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1b6991b
sub esp, 0xffffff80
jmp 0x15baeac
Function at 0x406a14
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.004095a8
test esi, esi
jne 0x406a4a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00409730
jmp 0x406a68
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406958
mov edi, eax
test esi, esi
je 0x406a68
cmp dword [ebx], 0
je 0x406a68
dec esi
jmp 0x406a51
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408604
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.004088a0
mov byte [esp], al
cmp byte [esp], 0
jne 0x40878e
test edi, edi
je 0x40878e
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4086ce
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4086a9
cmp edi, 0xffffffff
je 0x408669
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408669
mov byte [esp], 0
jmp 0x40878e
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4086a9
test ebx, ebx
jne 0x40869b
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40869b
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40878e
lea eax, [esp + 0xc]
call fcn.00408398
dec ebp
test ebp, ebp
jg 0x40864e
cmp edi, 0xffffffff
je 0x4086ce
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4086cc
mov byte [esp], 0
jmp 0x40878e
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408612
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4086ce
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004087fc
mov edx, eax
mov ebx, dword [0x4dd8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408732
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408730
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408732
xor edi, edi
cmp byte [esp], 0
je 0x408758
mov ebx, dword [esi]
test bl, 1
jne 0x40876e
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408738
mov byte [esp + 1], 1
jmp 0x40876e
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408758
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4086e5
cmp byte [esp], 0
je 0x40878e
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 0x40930c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4dd058], 0
je 0x409373
cmp word [0x4dd344], 0xd7b2
jne 0x409335
cmp dword [0x4dd34c], 0
jbe 0x409335
mov eax, 0x4dd340
call dword [0x4dd35c]
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, 0x4093a0
call fcn.00409ddc
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d902e], 0
jne 0x40938f
push 0
push 0x4d99ba
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40bb1c
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 0x40bc81
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004095a8
cmp si, word [0x4d99f8]
jb 0x40bbb4
cmp si, word [0x4d9bf8]
ja 0x40bbb4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bbb4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4d99f8]
jae 0x40bb8e
mov edi, ebx
dec edi
jmp 0x40bbaf
cmp si, word [ebx*8 + 0x4d99f8]
jbe 0x40bb9e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bbaf
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4d99fc]
call fcn.0040ba3c
jmp 0x40bbb4
cmp edi, dword [ebp - 8]
jae 0x40bb78
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bc63
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bc63
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.0040a17c
push dword [ebp - 0x160]
push 0x40bc9c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a17c
push dword [ebp - 0x164]
push 0x40bcac
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a17c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a3b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc88
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409608
ret
Function at 0x40be34
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 0x40bf38
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4dfb88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4dfba0]
jne 0x40be80
mov eax, esi
mov edx, 0x4dfba2
mov ecx, 0x55
call fcn.0040a17c
push 0x4dfb88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bf22
push 0x4dfb88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004095a8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40beef
cmp byte [0x4dfb84], 0
je 0x40beb4
mov edx, esi
mov eax, ebx
call fcn.0040bd18
jmp 0x40beef
mov edx, esi
mov eax, ebx
call fcn.0040bb1c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40beef
cmp dword [esi], 0
je 0x40bed8
mov eax, esi
mov edx, 0x40bf50
call fcn.0040a2d4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040bb1c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a2d4
push 0x4dfb88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4dfba0], bx
mov eax, dword [esi]
call fcn.0040a0d8
mov ecx, eax
mov eax, 0x4dfba2
mov edx, 0xaa
call fcn.0040b99c
push 0x4dfb88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf3f
lea eax, [ebp - 4]
call fcn.004095a8
ret
Function at 0x40c168
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.0040968c
xor eax, eax
push ebp
push 0x40c38d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c1a8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c1c2
mov eax, dword [ebp - 4]
call fcn.0040a0d8
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b99c
cmp word [ebp - 0x21a], 0
je 0x40c377
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c39c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c291
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c39c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c291
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c3d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c291
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c3d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c291
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c40c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c291
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c440
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c377
xor eax, eax
push ebp
push 0x40c370
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040bf78
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 0x40c300
mov eax, dword [ebp - 0x10]
call fcn.004066b4
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.0040a140
jmp 0x40c34b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c480
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c34b
mov eax, dword [ebp - 0x10]
call fcn.004066b4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c480
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a140
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c377
cmp dword [ebp - 8], 0
je 0x40c366
mov eax, dword [ebp - 8]
call fcn.004066d0
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 0x40c394
lea eax, [ebp - 4]
call fcn.004095a8
ret
Function at 0x40c67c
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.0040968c
xor eax, eax
push ebp
push 0x40c73c
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.0040a17c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a32c
mov eax, dword [ebx]
call fcn.0040c544
test al, al
jne 0x40c719
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a17c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a32c
mov eax, dword [ebx]
call fcn.0040c544
test al, al
jne 0x40c719
mov eax, ebx
call fcn.004095a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c743
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409608
lea eax, [ebp - 4]
call fcn.004095a8
ret

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

Disassembly:
cmp eax, edx
je 0x41cd3d
test eax, edx
je 0x41cd40
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41ccfb
movzx eax, word [eax]
sub eax, ecx
jmp 0x41cd22
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 0x41cd23
add ecx, 4
js 0x41cd13
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41cd20
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41cd22
xor eax, eax
ret
test eax, eax
je 0x41cd4c
test edx, edx
jne 0x41ccec
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41dbc4
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_1
test eax, eax
jne 0x41dbf1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x42177c
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 0x4217b5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409730
jmp 0x4217be
mov eax, ebx
mov edx, esi
call fcn.00409988
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4217c8
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 0x4217ea
movzx eax, word [esp]
jmp 0x4217ec
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4228a0
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 0x4229c5
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004226a8
mov esi, eax
mov eax, dword [0x4dc978]
cmp byte [eax], 0
je 0x42296d
mov eax, dword [0x4dc7ec]
call fcn.00407270
call fcn.00406808
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 [0x422870]
call fcn.0040b458
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 0x4229e0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4229a9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4dc7b0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4dfc50]
call fcn.0040b63c
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4229cc
lea eax, [ebp - 4]
mov edx, dword [0x422870]
call fcn.0040b57c
ret

Function at 0x423af8
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 0x423ba9
cmp dword [esp + 0x10], 6
ja 0x423b2d
cmp dword [esp + 0x10], 6
jne 0x423b59
cmp dword [esp + 0x14], 1
jbe 0x423b59
mov dword [esp + 8], 0xffffffff
lea ecx, [esp + 8]
lea edx, [esp + 4]
mov eax, esp
call fcn.004239a8
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 [0x4d9ed0], eax
mov eax, dword [esp + 0x10]
mov dword [0x4d9ed4], eax
mov eax, dword [esp + 0x14]
mov dword [0x4d9ed8], eax
cmp dword [0x4d9ed0], 1
jne 0x423b8d
mov eax, dword [esp + 0x18]
and eax, 0xffff
mov dword [0x4d9edc], eax
jmp 0x423b96
mov eax, dword [esp + 0x18]
mov dword [0x4d9edc], eax
mov eax, 0x4d9ee0
lea edx, [esp + 0x20]
mov ecx, 0x80
call fcn.0040a17c
add esp, 0x120
ret