joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45cff0
Capabilities:
Encrypt data using aes via x86 extensions
Hash data using murmur3

Disassembly:
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0xc073c0]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x45b66b
je 0x45b6ba
cmp ebx, 0x20
jbe 0x45b6c0
cmp ebx, 0x40
jbe 0x45b6fe
jmp 0x45b78f
test ebx, ebx
je 0x45b6b0
add eax, 0x10
test ax, 0xff0
je 0x45b69c
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x9ed240]
aesenc xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0x9ed340]
jmp 0x45b688
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x45b688
pxor xmm1, xmmword [0xc073d0]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
aesenc xmm2, xmm0
aesenc xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0xc073d0]
pxor xmm2, xmmword [0xc073e0]
pxor xmm3, xmmword [0xc073f0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0xc073d0]
pxor xmm2, xmmword [0xc073e0]
pxor xmm3, xmmword [0xc073f0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x45b7ee
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
cmp byte [0xc06f64], 0
je 0x45d00a
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x45b630
jmp fcn.00408690
Function at 0x45d070
Capabilities:
Hash data using murmur3

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x408950
mov eax, dword [0xc072e0]
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov ebx, dword [esp + 8]
lea eax, [ebx + eax*8]
xor eax, edx
imul eax, eax, 0xbce2d621
rol eax, 0xf
imul eax, eax, 0xc70f85e1
xor ecx, eax
imul eax, ecx, 0xbce2d621
rol eax, 0xf
imul eax, eax, 0xc70f85e1
mov ecx, eax
shr eax, 0x11
xor eax, ecx
imul eax, eax, 0x319bca41
mov ecx, eax
shr eax, 0xd
xor eax, ecx
imul eax, eax, 0x8b421a21
mov ecx, eax
shr eax, 0x10
xor eax, ecx
mov dword [esp + 0xc], eax
ret
call fcn.0045bbc0
jmp 0x4088e0
cmp byte [0xc06f64], 0
je 0x45d0ab
mov eax, dword [esp + 4]
movq xmm0, qword [eax]
pinsrd xmm0, dword [esp + 8], 2
aesenc xmm0, xmmword [0xc073c0]
aesenc xmm0, xmmword [0xc073d0]
aesenc xmm0, xmmword [0xc073e0]
movd dword [esp + 0xc], xmm0
ret
jmp 0x4088e0

Function at 0x45de60
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
mov eax, esp
mov dword [edx + 4], eax
sub eax, 0x10000
mov dword [edx], eax
add eax, 0xba0
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
lea esi, [ecx + 0x30]
mov dword fs:[0x14], esi
mov dword [edx + 0x18], ecx
mov dword [esi], edx
cld
call fcn.0045cf70
call fcn.00436a60
ret

Function at 0x45df80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword fs:[0x14]
mov edx, esp
sub esp, 0x21c
mov dword [esp], esp
mov dword [esp + 4], 0x21c
call fcn.0045d930
lea ecx, [esp + 0x30]
mov dword fs:[0x14], ecx
mov ebx, esp
sub esp, 0xd8
mov dword [ecx], esp
mov dword [ebx], esp
mov dword [esp], esp
mov dword [esp + 4], 0xd8
call fcn.0045d930
lea ebx, [esp + 0xd8]
mov dword [esp + 0x18], ebx
lea ecx, [esp - 0x8000]
mov dword [esp], ecx
add ecx, 0xba0
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edx
push eax
push dword [ebp + 0x10]
call dword [ebp + 8]
pop ecx
pop eax
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov esp, dword [ecx + 4]
pop dword fs:[0x14]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x43a480
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2d000]
push edi
jmp 0x43a49a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43a4a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43a490
mov eax, 1
add ebx, ebx
jne 0x43a4b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43a4a8
jne 0x43a4c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43a4a8
xor ecx, ecx
sub eax, 3
jb 0x43a4d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43a54a
mov ebp, eax
add ebx, ebx
jne 0x43a4e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43a4f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43a514
inc ecx
add ebx, ebx
jne 0x43a500
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43a4f5
jne 0x43a511
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43a4f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43a534
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43a525
jmp 0x43a496
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43a534
add edi, ecx
jmp 0x43a496
pop esi
mov edi, esi
mov ecx, 0x6d0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43a552
cmp byte [edi], 0x11
jne 0x43a552
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
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 0x43a557
lea edi, [esi + 0x38000]
mov eax, dword [edi]
or eax, eax
je 0x43a5cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3b67c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3b744]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43a584
mov ecx, edi
jns 0x43a5b3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3b748]
or eax, eax
je 0x43a5c9
mov dword [ebx], eax
add ebx, 4
jmp 0x43a5a1
call dword [esi + 0x3b758]
mov ebp, dword [esi + 0x3b74c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x43a603
sub esp, 0xffffff80
jmp 0x40a7b1
Function at 0x66655c8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x666560a
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryW
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryW
test bl, bl
je 0x666562a
lea eax, [esp + 0x212]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.06668778
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x6665820
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.06667bac
test esi, esi
jne 0x6665856
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.06667d34
jmp 0x6665874
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.06665764
mov edi, eax
test esi, esi
je 0x6665874
cmp dword [ebx], 0
je 0x6665874
dec esi
jmp 0x666585d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x684e008], 0x8088405
inc edx
mov dword [ebx + 0x684e008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x6666864
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.06666cd8
mov byte [esp], al
cmp byte [esp], 0
jne 0x66669ed
test edi, edi
je 0x66669ed
mov byte [esp + 1], 0
test ebp, ebp
jle 0x666692d
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x6666908
cmp edi, 0xffffffff
je 0x66668c9
call sub.KERNEL32.DLL_GetTickCount_1
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x66668c9
mov byte [esp], 0
jmp 0x66669ed
cmp dword [esi], 1
jg 0x6666908
cmp dword [esi], 0
jne 0x66668fa
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x66668fa
call sub.KERNEL32.DLL_GetCurrentThreadId_1
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x66669ed
lea eax, [esp + 0xc]
call fcn.06666540
dec ebp
test ebp, ebp
jg 0x66668ae
cmp edi, 0xffffffff
je 0x666692d
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 0x666692b
mov byte [esp], 0
jmp 0x66669ed
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x6666872
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x666692d
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 4], eax
mov eax, esi
call fcn.06666a5c
mov edx, eax
mov ebx, dword [0x685a8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x6666991
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 0x666698f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x6666991
xor edi, edi
cmp byte [esp], 0
je 0x66669b7
mov ebx, dword [esi]
test bl, 1
jne 0x66669cd
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x6666997
mov byte [esp + 1], 1
jmp 0x66669cd
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x66669b7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x6666944
cmp byte [esp], 0
je 0x66669ed
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 0x6667844
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x685a05c], 0
je 0x66678ab
cmp word [0x685a348], 0xd7b2
jne 0x666786d
cmp dword [0x685a350], 0
jbe 0x666786d
mov eax, 0x685a344
call dword [0x685a360]
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, 0x66678d8
call fcn.066683d0
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x684e032], 0
jne 0x66678c7
push 0
push 0x684e9c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x6667a6c
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 [0x684e034], 0
je 0x6667a97
mov edx, edi
mov eax, esi
call dword [0x684e034]
mov ebx, eax
jmp 0x6667aa8
mov eax, 8
call fcn.06665424
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x685a05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x6667a34
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 0x6667ad8
mov eax, ebx
call fcn.06665440
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x666a6f8
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 0x666a85d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.06667bac
cmp si, word [0x684ea00]
jb 0x666a790
cmp si, word [0x684ec00]
ja 0x666a790
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x666a790
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x684ea00]
jae 0x666a76a
mov edi, ebx
dec edi
jmp 0x666a78b
cmp si, word [ebx*8 + 0x684ea00]
jbe 0x666a77a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x666a78b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x684ea04]
call fcn.0666a618
jmp 0x666a790
cmp edi, dword [ebp - 8]
jae 0x666a754
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x666a83f
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0x666a83f
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.06668778
push dword [ebp - 0x160]
push 0x666a878
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.06668778
push dword [ebp - 0x164]
push 0x666a888
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.06668778
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.066689b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x666a864
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.06667c0c
ret
Function at 0x666aa10
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 0x666ab14
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x685cb8c
call sub.KERNEL32.DLL_EnterCriticalSection_1
cmp bx, word [0x685cba4]
jne 0x666aa5c
mov eax, esi
mov edx, 0x685cba6
mov ecx, 0x55
call fcn.06668778
push 0x685cb8c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
jmp 0x666aafe
push 0x685cb8c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
mov eax, esi
call fcn.06667bac
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0x666aacb
cmp byte [0x685cb88], 0
je 0x666aa90
mov edx, esi
mov eax, ebx
call fcn.0666a8f4
jmp 0x666aacb
mov edx, esi
mov eax, ebx
call fcn.0666a6f8
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x666aacb
cmp dword [esi], 0
je 0x666aab4
mov eax, esi
mov edx, 0x666ab2c
call fcn.066688d0
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0666a6f8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.066688d0
push 0x685cb8c
call sub.KERNEL32.DLL_EnterCriticalSection_1
mov word [0x685cba4], bx
mov eax, dword [esi]
call fcn.066686cc
mov ecx, eax
mov eax, 0x685cba6
mov edx, 0xaa
call fcn.0666a578
push 0x685cb8c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x666ab1b
lea eax, [ebp - 4]
call fcn.06667bac
ret
Function at 0x666ad44
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.06667c90
xor eax, eax
push ebp
push 0x666af69
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x666ad84
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
jmp 0x666ad9e
mov eax, dword [ebp - 4]
call fcn.066686cc
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0666a578
cmp word [ebp - 0x21a], 0
je 0x666af53
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x666af78
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x666ae6d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x666af78
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x666ae6d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x666afb4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x666ae6d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x666afb4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x666ae6d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x666afe8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x666ae6d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x666b01c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x666af53
xor eax, eax
push ebp
push 0x666af4c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0666ab54
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 0x666aedc
mov eax, dword [ebp - 0x10]
call fcn.06665424
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.06668724
jmp 0x666af27
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x666b05c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x666af27
mov eax, dword [ebp - 0x10]
call fcn.06665424
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x666b05c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.06668724
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x666af53
cmp dword [ebp - 8], 0
je 0x666af42
mov eax, dword [ebp - 8]
call fcn.06665440
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 0x666af70
lea eax, [ebp - 4]
call fcn.06667bac
ret
Function at 0x666b258
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.06667c90
xor eax, eax
push ebp
push 0x666b318
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.06668778
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.06668928
mov eax, dword [ebx]
call fcn.0666b120
test al, al
jne 0x666b2f5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.06668778
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.06668928
mov eax, dword [ebx]
call fcn.0666b120
test al, al
jne 0x666b2f5
mov eax, ebx
call fcn.06667bac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x666b31f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.06667c0c
lea eax, [ebp - 4]
call fcn.06667bac
ret

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

Disassembly:
cmp eax, edx
je 0x667d1d5
test eax, edx
je 0x667d1d8
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x667d193
movzx eax, word [eax]
sub eax, ecx
jmp 0x667d1ba
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 0x667d1bb
add ecx, 4
js 0x667d1ab
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x667d1b8
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x667d1ba
xor eax, eax
ret
test eax, eax
je 0x667d1e4
test edx, edx
jne 0x667d184
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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