joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10022595
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10022632
push ebx
push esi
call fcn.1002255e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10020daa
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100225df
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10022631
push edi
push eax
call fcn.1001d5f0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100225ff
call fcn.1001a3c0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10022630
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10020daa
add esp, 0x20
test eax, eax
jne 0x1002261e
push edi
call fcn.1001a3c0
jmp 0x10022626
push ebx
call fcn.1001a3c0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10022635
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10022646
pop esi
ret
push ebx
push edi
push esi
call fcn.1002255e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1001d5f0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1002266e
push ebx
push esi
push edi
call fcn.1000cee0
add esp, 0xc
push 0
call fcn.1001a3c0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10022a3d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10022683

Function at 0x10024c92
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10018b1c
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10024d01
cmp esi, dword [ebp - 4]
je 0x10024cfc
cmp dword [ebp + 0xc], 0
je 0x10024cfc
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10024cd9
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100247e7
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10024d03
xor eax, eax
inc eax
jmp 0x10024d03
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10024d6e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100ec580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10018b1c
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10018b1c
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10024de5
cmp word [ecx], dx
je 0x10024de5
mov eax, dword [0x10034534]
push edi
dec eax
push eax
push 0x10034420
call fcn.10024d07
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10024e58
cmp word [eax], dx
je 0x10024e58
mov eax, dword [edi]
test eax, eax
je 0x10024e09
cmp word [eax], dx
je 0x10024e09
lea eax, [ebp - 0x10]
push eax
call fcn.100246ed
jmp 0x10024e12
lea eax, [ebp - 0x10]
push eax
call fcn.10024788
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10024e82
mov eax, dword [0x1003441c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10034110
call fcn.10024d07
add esp, 0xc
test al, al
je 0x10024e82
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10024e4d
cmp word [eax], di
je 0x10024e4d
lea eax, [ebp - 0x10]
push eax
call fcn.100246ed
pop ecx
jmp 0x10024e84
lea eax, [ebp - 0x10]
push eax
call fcn.10024788
jmp 0x10024e4a
mov eax, dword [edi]
test eax, eax
je 0x10024e6f
cmp word [eax], dx
je 0x10024e6f
lea eax, [ebp - 0x10]
push eax
call fcn.100246a2
pop ecx
jmp 0x10024e82
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10024f4d
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10024b8c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10024f4d
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10024f4d
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10024f4d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10024eda
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1001ab2d
test ebx, ebx
je 0x10024f48
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1001ab2d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10024f4d
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10024f4d
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10028d9f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10024f4f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000b5b3
leave
ret
Function at 0x1002a240
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002a26d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002a26d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x723b4a1f
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..tls
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x145f7798
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4045b8
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.00406aa4
test esi, esi
jne 0x4045f0
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.00406be0
jmp 0x40460e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044fc
mov edi, eax
test esi, esi
je 0x40460e
cmp dword [ebx], 0
je 0x40460e
dec esi
jmp 0x4045f7
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405ea4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x567054], 0
je 0x405f05
cmp word [0x567330], 0xd7b2
jne 0x405ecd
cmp dword [0x567338], 0
jbe 0x405ecd
mov eax, 0x56732c
call dword [0x567348]
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 0x405f30
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x55e034], 0
jne 0x405f21
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4060b0
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 [0x55e038], 0
je 0x4060d6
mov edx, esi
mov eax, ebx
call dword [0x55e038]
jmp 0x4060e5
mov eax, 8
call fcn.00404244
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x567055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406078
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 0x4089c4
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 0x408b2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406aa4
cmp si, word [0x55e7d4]
jb 0x408a5e
cmp si, word [0x55e9d4]
ja 0x408a5e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408a5e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x55e7d4]
jae 0x408a38
mov edi, ebx
dec edi
jmp 0x408a59
cmp si, word [ebx*8 + 0x55e7d4]
jbe 0x408a48
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408a59
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x55e7d8]
call fcn.004088d4
jmp 0x408a5e
cmp edi, dword [ebp - 0xc]
jae 0x408a22
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408b0d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408b0d
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.00406cb4
push dword [ebp - 0x164]
push 0x408b48
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406cb4
push dword [ebp - 0x168]
push 0x408b58
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406cb4
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.0040706c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b32
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406a9c
ret
Function at 0x408b5c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x408d42
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x569b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x569b74]
cmp ax, word [ebp - 2]
jne 0x408bb4
mov eax, dword [ebp - 6]
mov edx, 0x569b78
mov ecx, 0x55
call fcn.00406cb4
push 0x569b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408d2c
push 0x569b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.00406aa4
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408cf4
cmp byte [0x569b58], 0
je 0x408caa
call dword [0x569b50]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x569b54]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x408ca3
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x569b4c]
test al, al
je 0x408c7c
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.00404244
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x569b4c]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x408c71
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x408c6d
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x408c5a
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00406c60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408cf4
movzx eax, word [ebp - 0x16]
push eax
call dword [0x569b54]
cmp dword [ebp - 0x10], 0
je 0x408ca2
mov eax, dword [ebp - 0x10]
call fcn.00404260
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.004089c4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x408cf4
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x408cd9
mov eax, dword [ebp - 6]
mov edx, 0x408d5c
call fcn.00406ec8
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.004089c4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00406ec8
mov eax, dword [ebp - 6]
push 0x569b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x569b74], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00406b30
push eax
push 0x569b78
call sub.kernel32.dll_lstrcpynW
push 0x569b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d49
lea eax, [ebp - 0x1c]
call fcn.00406a94
ret
Function at 0x408f80
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.00406a8c
xor eax, eax
push ebp
push 0x409165
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408fc0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408fda
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406b30
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40914f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409174
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409069
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409174
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409069
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4091a8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409069
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4091dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40914f
xor eax, eax
push ebp
push 0x409148
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408d84
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 0x4090d8
mov eax, dword [ebp - 0x10]
call fcn.00404244
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.00406c60
jmp 0x409123
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40921c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409123
mov eax, dword [ebp - 0x10]
call fcn.00404244
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40921c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406c60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40914f
cmp dword [ebp - 8], 0
je 0x40913e
mov eax, dword [ebp - 8]
call fcn.00404260
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 0x40916c
lea eax, [ebp - 4]
call fcn.00406a94
ret
Function at 0x409430
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.00406a8c
mov eax, dword [ebp - 0x21c]
call fcn.00406a8c
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x4095cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406aa4
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406b30
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 0x4094d0
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4094e2
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4094cd
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40959b
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 0x40950b
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.00408f80
cmp dword [ebp - 0x220], 0
je 0x409543
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409324
pop ecx
mov ebx, eax
jmp 0x40959b
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408b5c
mov eax, dword [ebp - 0x224]
call fcn.00409324
pop ecx
mov ebx, eax
test bl, bl
jne 0x40958e
cmp byte [0x569b58], 0
jne 0x40958e
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408b5c
mov eax, dword [ebp - 0x228]
call fcn.00409324
pop ecx
mov ebx, eax
test bl, bl
jne 0x40959b
push ebp
call fcn.004093d4
pop ecx
mov ebx, eax
test bl, bl
je 0x4095b1
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406cb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4095d6
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406a9c
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x569c5c
push 0xa
push 0x40d3f8
mov eax, dword [0x569c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40d388
call fcn.00418efc
push ebx
mov eax, dword [0x569c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40d39f
call fcn.00418efc
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d3b1
call fcn.00418efc
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x569c60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x569c64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x569c68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x569c6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x569c70], ecx
add edx, dword [eax + 0x14]
mov dword [0x569c74], edx
pop esi
pop ebx
ret

Function at 0x411014
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4110bd
test eax, edx
je 0x4110c0
push 0
push 0
cmp word [eax - 0xa], 2
je 0x41103d
push edx
mov edx, eax
mov eax, esp
call fcn.00406cd0
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x411053
push eax
lea eax, [esp + 8]
call fcn.00406cd0
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x411062
movzx eax, word [eax]
sub eax, ecx
jmp 0x411089
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 0x4110a3
add ecx, 4
js 0x41107a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x4110a0
push eax
mov eax, ecx
mov edx, 2
call fcn.00406150
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x411087
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x411089
xor eax, eax
ret
test eax, eax
je 0x4110d0
test edx, edx
jne 0x411024
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406b30
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x412326
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x412347
cmp ebx, 3
je 0x412347
cmp ebx, 0x7b
je 0x412347
mov eax, esi
call fcn.004122c8
test al, al
jne 0x41234b
xor eax, eax
jmp 0x41234d
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406b30
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x412369
test al, 0x10
jne 0x41236d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret