joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47fce7
Capabilities:
Check for vm using instruction vpcext

Disassembly:
inc edi
inc ebp
sar ebp, cl
add ch, byte [eax]
scasb al, byte es:[edi]
fidiv dword [edx]
jnp 0x47fd09
xor eax, dword [si - 0x679a]
int3
push 0xffffffffffffffd2
outsd dx, dword [esi]
xchg edi, eax
sbb esp, dword [esi + 0x97aec12]
pop ebp
pop ds
jae 0x47fc86
jne 0x47fc82
out 0xff, al
outsb dx, byte [esi]
sub dh, dh
adc dh, byte [0xf837069c]
mov cl, 0xbc
add ch, byte [ecx + 0x48c6be2e]
inc eax
lodsb al, byte [esi]
ret 0xc834
invalid
in al, dx
mov al, byte [0x8083a331]
push ecx
mov byte [0xe4bb0d3a], dh
pop eax
outsd dx, dword [esi]
mov dl, 0x38
add ecx, ebx
and dword [ebp + 0x6e], esp
pop edx
jecxz 0x47fca8
loopne 0x47fd28
invalid
jge 0x47fcd8
stosd dword es:[edi], eax
clc
dec edx
inc esp
pop eax
inc ebx
in al, dx
add eax, 0x713eb737
push ecx
test byte [eax], 0x29
mov edi, 0xea1a822
sub edi, ebp
movsb byte es:[edi], byte [esi]
or byte [ebx], dh
push ds
test byte [ebx - 0x1830f5dc], ah
and dword [ebp - 0xd84f433], esi
or edi, dword [ebx - 0xe]
and al, 0xa
iretd
add eax, 0xcf4ca4aa
sub ah, byte [edx + 0x30]
jne 0x47fcf4
push ecx
xor dword [esi + 0x2d], eax
push 0x75
invalid

Function at 0x47fd2f
Capabilities:
Check for vm using instruction vpcext

Disassembly:
inc edi
inc ebp
sar ebp, cl
add ch, byte [eax]
scasb al, byte es:[edi]
fidiv dword [edx]
jnp 0x47fd09
xor eax, dword [si - 0x679a]
int3
push 0xffffffffffffffd2
outsd dx, dword [esi]
xchg edi, eax
sbb esp, dword [esi + 0x97aec12]
pop ebp
pop ds
jae 0x47fc86
jne 0x47fc82
out 0xff, al
outsb dx, byte [esi]
sub dh, dh
adc dh, byte [0xf837069c]
mov cl, 0xbc
add ch, byte [ecx + 0x48c6be2e]
inc eax
lodsb al, byte [esi]
ret 0xc834
invalid
in al, dx
mov al, byte [0x8083a331]
push ecx
mov byte [0xe4bb0d3a], dh
pop eax
outsd dx, dword [esi]
mov dl, 0x38
add ecx, ebx
and dword [ebp + 0x6e], esp
pop edx
jecxz 0x47fca8
loopne 0x47fd28
invalid
jge 0x47fcd8
stosd dword es:[edi], eax
clc
dec edx
inc esp
pop eax
inc ebx
in al, dx
add eax, 0x713eb737
push ecx
test byte [eax], 0x29
mov edi, 0xea1a822
sub edi, ebp
movsb byte es:[edi], byte [esi]
or byte [ebx], dh
push ds
test byte [ebx - 0x1830f5dc], ah
and dword [ebp - 0xd84f433], esi
or edi, dword [ebx - 0xe]
and al, 0xa
iretd
add eax, 0xcf4ca4aa
sub ah, byte [edx + 0x30]
jne 0x47fcf4
push ecx
xor dword [esi + 0x2d], eax
push 0x75
invalid
Function at 0x489d3c
Capabilities:
Authenticate hmac

Disassembly:
pop esp
ljmp 0x6a8b:0x648643e8
mov dword [eax], edi
fiadd word [ecx + esi*8]
inc edx
cmpsb byte [esi], byte es:[edi]
mov cl, 0x25
sar byte ds:[eax + 0x2e0bd10d], 0x1c
rcr dh, cl
mov bh, 0xc9
jne 0x489d01
leave
jae 0x489cef
inc esi
imul eax, dword [ecx + 0x3fbc72ac], 0x8929853c
pop ds
out 0x10, al
push ecx
aas
cmp al, 0x85
sub dword [ecx + 0x5110e61f], ecx
push cs
mov byte [0xc4ae18c5], al
inc ecx
jns 0x489cb9
jl 0x489cce
pop esi
inc eax
inc eax
mov ebp, 0x89b8186a
popfd
or dh, byte [esi + 0x58]
sbb byte [edx - 6], dl
ficom dword [0x1f8b653f]
jne 0x489d32
fldl2e
cmp dword [ecx + ecx + 0x6735e4de], edi
in al, 0x5c
sbb byte [ebx - 0x2fa6e9b8], al
test al, 0x3c
dec esi
loope 0x489d6e
bound esi, qword [edi + 0x28]
ja 0x489d5c
xlatb
and ch, byte [0x6ae619db]
or dh, byte [ecx + eax*8]
xor al, 0xc1
pushfd
rcr dword [ecx + edx*4 - 0x42], 1
xchg edi, eax
sal ebp, cl
scasd eax, dword es:[edi]
sti
std
inc edi
js 0x489cf2
cmpsb byte [esi], byte es:[edi]
and ecx, edi
std
mov esi, 0xf359d477
dec ebx
out 0x86, al
pop ebx
jl 0x489db6
adc byte [ecx - 0x6c], 3
add esp, eax
xchg edi, eax
push ecx
xchg esp, eax
add eax, dword [ebx]
loopne 0x489cf9
iretd
comiss xmm1, dword [edx - 0x4d]
fcmovne st(0), st(6)
and al, 0xac
mov bl, 0xa2
inc edi
jo 0x489d85
sub al, 0x36
cli
wait
xor edx, edi
sub ecx, dword es:[0x4cb74ab6]
das
jno 0x489d4b
pushfd
and dh, dl
dec ebp
aad 0xc4
fbstp tbyte [edi]
jno 0x489d64
mov edi, 0x4d10f403
idiv byte [eax*4 + 0x5c06389]
shr byte [ebp + 0xd12b66a], 0x63
push ecx
sub eax, esp
xchg esp, eax
jnp 0x489db2
adc esp, dword [edi + 0x3d9c907f]
out dx, eax
add eax, 0x2f910c9a
rcl ebp, cl
bound edi, qword [ecx + 0x16]
aad 0x62
jns 0x489dcc
lodsd eax, dword [esi]
enter 0xfffffffffffffe5f, 0x66
sbb byte [eax], ch
sub ch, byte [edx]
loop 0x489d47
xchg edi, eax
stosd dword es:[edi], eax
jle 0x489dd1
fadd dword [edi + 0x5d484aac]
cld
lodsb al, byte [esi]
aaa
cmp dword [edi - 0x30], esp
ja 0x489db7
push edi
pop edi
mov dl, 0xf2
aaa
mov ecx, 0x20014397
aad 0x95
mov dl, 0x1e
jl 0x489e42
mov dl, ch
dec ebp
popal
aad 0x3e
inc edi
jnp 0x489dcc
sti
xor al, 0x4e
in al, dx
invalid
int 0x78
sbb eax, 0x7f7a6ce9
movsd dword es:[edi], dword [esi]
lds ebx, [ebp - 0xc]
fist dword [edi - 3]
adc al, 0x82
invalid

Function at 0x489e87
Capabilities:
Check for software breakpoints

Disassembly:
jb 0x489e70
push edx
jg 0x489eac
mov dh, 0x9b
int3
xchg esi, eax
xchg edx, eax
sti
insb byte es:[edi], dx
jmp 0xe3b5f3be
push edx
xchg edx, eax
jns 0x489e55
div dword [0xbcb9c25a]
push ds
xchg edx, eax
sbb dword [ebp + 0x3196accd], edi
pop eax
mov eax, dword [0x28447650]
push ds
sub al, 0x87
ja 0x489f1f
xchg esp, eax
insd dword es:[edi], dx
push cs
push ecx
sub ebp, ecx
fdivr qword [edx]
inc eax
js 0x489efc
jmp 0x489eb8
cmp al, 0xcc
sar dword [edx + 0x5ee13fb5], 1
inc eax
xchg byte [edi - 0x11413bc8], al
ljmp 0x4d53:0x59db1f0e
Function at 0x49451c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0xb9fffe4d
xchg edx, eax
test byte [eax + 0x33034881], dl
cld
aas
lea esp, [ecx]
sbb al, byte [edx + ecx*2]
push edx
cdq
xlatb
push ecx
dec esp
xor dword [edx + eax*8], esp
xor al, 0x73
jecxz fcn.0049451c
jmp 0x494501

Function at 0x496b19
Capabilities:
Encode data using xor

Disassembly:
or ch, byte [ebx + 0x19]
or ecx, dword [edi + 0x5f7468cd]
sahf
dec eax
adc eax, 0xfaf03594
call 0x1653944c
push ecx
out 0x3f, eax
push ss
stosd dword es:[edi], eax
xor eax, 0x5f7294b1
movsb byte es:[edi], byte [esi]
pop esp
xlatb
mov al, 0xe
in eax, dx
shr dword [edx], cl
iretd
jno 0x496b1d
in al, 0xcd
jns 0x496b59
jp 0x496aef
mov ah, 0xc
stc
unpcklps xmm4, xmmword [edx]
je 0x496b9c
adc al, 0xf
outsb dx, byte [esi]
pushfd
int3
jecxz fcn.00496b19
scasd eax, dword es:[edi]
xor dword [edi + 0x4b], ebp
shr al, cl
test eax, 0x35f9f047
cdq
js 0x496ae6
xor eax, 0x4fa17899
dec edi
stosd dword es:[edi], eax
cld
das
insb byte es:[edi], dx
pop es
mov al, 0xd3
or edx, ebp
push ebp
test dword [esi + 0x62ef4132], edx
movsd dword es:[edi], dword [esi]
fsub qword [0xd57e8665]
and eax, 0xd57e8665
sbb byte [edx - 0x549afa4b], 0xce
adc dword [ebp - 0x16e67243], 0x60c02713
in eax, 0x83
lcall 0x80d0, 0x44a88030
jno 0x496b41
push eax
xor dword [ebp - 0x60e5dafb], ebp
loopne 0x496b35
out 0xb8, al
cli
xor dword [ecx - 0x6c], ebp
xchg dword [eax - 0x80], edx
dec esi
and eax, 0x24e3399b
mov ecx, 0xae143c60
Function at 0x67b38418
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword fs:[0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
je 0x67b38478
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x30]
call fcn.67b383d3
pop ecx
cmp dword [ebp + 8], eax
jne 0x67b3846e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
jmp 0x67b3847a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x67b38447
xor eax, eax
leave
ret

Function at 0x67b384ec
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + eax*8 + 0x78]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x18], ecx
and dword [ebp - 4], 0
jmp 0x67b3853f
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x18]
jae 0x67b38584
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x14], edx
push dword [ebp - 0x14]
push dword [ebp + 0x14]
call fcn.67b3849f
pop ecx
pop ecx
cmp eax, dword [ebp + 0x10]
jne 0x67b38582
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + eax*4]
mov eax, edx
jmp 0x67b38586
jmp 0x67b38538
xor eax, eax
leave
ret

Function at 0x67b3c620
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
cmp dword [ebx + 4], 0x100
push esi
mov esi, dword [ebx + 8]
jne 0x67b3c643
cmp esi, 0x70
je 0x67b3c63c
cmp esi, 0x74
jne 0x67b3c643
pop esi
xor eax, eax
pop ebx
ret 0x10
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
shr eax, 0xf
test al, 1
je case.0x67b3c664.71
lea eax, [esi - 0x46]
cmp eax, 0x2a
ja case.0x67b3c664.71
movzx eax, byte [eax + 0x67b3c6ac]
jmp dword [eax*4 + 0x67b3c6a4]
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
push 0x12
call edi
shr eax, 0xf
test al, 1
je 0x67b3c688
cmp esi, 0x25
je case.0x67b3c664.70
cmp esi, 0x27
je case.0x67b3c664.70
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push ecx
push edx
push ebx
push eax
call sub.MFC80U.DLL_Ordinal_6147
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x4045a8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004068b0
test esi, esi
jne 0x4045e0
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.004069ec
jmp 0x4045fe
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x4045fe
cmp dword [ebx], 0
je 0x4045fe
dec esi
jmp 0x4045e7
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405e40
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b7050], 0
je 0x405ea1
cmp word [0x4b732c], 0xd7b2
jne 0x405e69
cmp dword [0x4b7334], 0
jbe 0x405e69
mov eax, 0x4b7328
call dword [0x4b7344]
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
push 0x405ecc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b4030], 0
jne 0x405ebd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40602c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4b4034], 0
je 0x406052
mov edx, esi
mov eax, ebx
call dword [0x4b4034]
jmp 0x406061
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4b7051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405ff4
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408678
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4087df
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004068b0
cmp si, word [0x4b47dc]
jb 0x408712
cmp si, word [0x4b49dc]
ja 0x408712
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408712
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4b47dc]
jae 0x4086ec
mov edi, ebx
dec edi
jmp 0x40870d
cmp si, word [ebx*8 + 0x4b47dc]
jbe 0x4086fc
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x40870d
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4b47e0]
call fcn.00408588
jmp 0x408712
cmp edi, dword [ebp - 0xc]
jae 0x4086d6
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4087c1
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4087c1
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a98
push dword [ebp - 0x164]
push 0x4087fc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406a98
push dword [ebp - 0x168]
push 0x40880c
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a98
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406e50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4087e6
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004068a8
ret
Function at 0x408998
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 0x408a9d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b9b58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4b9b70]
jne 0x4089e4
mov eax, esi
mov edx, 0x4b9b74
mov ecx, 0x55
call fcn.00406a98
push 0x4b9b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408a87
push 0x4b9b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.004068b0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408a55
cmp byte [0x4b9b54], 0
je 0x408a1a
mov edx, esi
mov eax, ebx
call fcn.00408878
jmp 0x408a55
mov edx, esi
mov eax, ebx
call fcn.00408678
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408a55
cmp dword [esi], 0
je 0x408a3e
mov eax, esi
mov edx, 0x408ab8
call fcn.00406cac
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408678
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406cac
push 0x4b9b58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4b9b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040693c
push eax
push 0x4b9b74
call sub.kernel32.dll_lstrcpynW
push 0x4b9b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408aa4
lea eax, [ebp - 4]
call fcn.004068a0
ret
Function at 0x408cdc
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.00406898
xor eax, eax
push ebp
push 0x408ec1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408d1c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408d36
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040693c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408eab
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ed0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408dc5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ed0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408dc5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f04
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408dc5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f38
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408eab
xor eax, eax
push ebp
push 0x408ea4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408ae0
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 0x408e34
mov eax, dword [ebp - 0x10]
call fcn.004041d4
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.00406a5c
jmp 0x408e7f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408f78
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408e7f
mov eax, dword [ebp - 0x10]
call fcn.004041d4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408f78
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406a5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408eab
cmp dword [ebp - 8], 0
je 0x408e9a
mov eax, dword [ebp - 8]
call fcn.004041f0
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 0x408ec8
lea eax, [ebp - 4]
call fcn.004068a0
ret
Function at 0x40918c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406898
mov eax, dword [ebp - 0x21c]
call fcn.00406898
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40932b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.004068b0
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.0040693c
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x40922c
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40923e
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409229
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4092f7
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x409267
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00408cdc
cmp dword [ebp - 0x220], 0
je 0x40929f
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409080
pop ecx
mov ebx, eax
jmp 0x4092f7
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408998
mov eax, dword [ebp - 0x224]
call fcn.00409080
pop ecx
mov ebx, eax
test bl, bl
jne 0x4092ea
cmp byte [0x4b9b54], 0
jne 0x4092ea
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408998
mov eax, dword [ebp - 0x228]
call fcn.00409080
pop ecx
mov ebx, eax
test bl, bl
jne 0x4092f7
push ebp
call fcn.00409130
pop ecx
mov ebx, eax
test bl, bl
je 0x40930d
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406a98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409332
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.004068a8
ret

Function at 0x409aa4
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 0x40cb80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4b9c4c
push 0xa
push 0x40cc14
mov eax, dword [0x4b9c3c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40cba4
call fcn.00417f0c
push ebx
mov eax, dword [0x4b9c3c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40cbbb
call fcn.00417f0c
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40cbcd
call fcn.00417f0c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4b9c50], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4b9c54], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4b9c58], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4b9c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4b9c60], ecx
add edx, dword [eax + 0x14]
mov dword [0x4b9c64], edx
pop esi
pop ebx
ret

Function at 0x410844
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4108ed
test eax, edx
je 0x4108f0
push 0
push 0
cmp word [eax - 0xa], 2
je 0x41086d
push edx
mov edx, eax
mov eax, esp
call fcn.00406ab4
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x410883
push eax
lea eax, [esp + 8]
call fcn.00406ab4
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x410892
movzx eax, word [eax]
sub eax, ecx
jmp 0x4108b9
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 0x4108d3
add ecx, 4
js 0x4108aa
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x4108d0
push eax
mov eax, ecx
mov edx, 2
call fcn.004060cc
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4108b7
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4108b9
xor eax, eax
ret
test eax, eax
je 0x410900
test edx, edx
jne 0x410854
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x411b34
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0040693c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x411b52
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x411b73
cmp ebx, 3
je 0x411b73
cmp ebx, 0x7b
je 0x411b73
mov eax, esi
call fcn.00411af4
test al, al
jne 0x411b77
xor eax, eax
jmp 0x411b79
mov al, 1
pop esi
pop ebx
ret

Function at 0x411b7c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040693c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x411b95
test al, 0x10
jne 0x411b99
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret