joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fbec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x45a1c0
je 0x43fca8
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43fc90
mov esi, dword [ebx + 4]
jmp 0x43fc8a
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43fc7a
cmp dword [ebp - 0xc], 4
jne 0x43fc7a
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x43fc72
or dword [eax + 0x9c], ecx
jmp 0x43fc7a
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x43fc3e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x43fc21
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x440096
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x446d8c
call fcn.00424850
sub esp, 0x11c
mov eax, dword [0x45b40c]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x44018f
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x440163
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00404070
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.00440096
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401140
test bl, bl
jne 0x440163
or dword [ebp - 4], 0xffffffff
jmp 0x4400d4
cmp esi, 0x103
je 0x440173
cmp esi, 0x3f2
jne 0x440183
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.00421e75
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x441746
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x44177b
cmp edi, dword [esi + 0xc]
jge 0x44177b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44177b
cmp edi, dword [eax + 8]
jge 0x44177b
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x44177d
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x441881
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4418b5
jmp fcn.00434fa0
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x441926
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x441a1f
cmp eax, dword [edi + 0xc]
jge 0x441a1f
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x441977
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x441a08
cmp dword [ebp + 0xc], ebx
je 0x441a08
jmp 0x4419a1
push 0x10
call fcn.00441612
cmp eax, ebx
je 0x44198d
mov ecx, eax
call fcn.00441878
mov esi, eax
jmp 0x44198f
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4419b8
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4419c8
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x4419da
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00434fa0
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00424e40
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x441a1a
cmp ecx, dword [esi + 8]
jge 0x441a1a
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x441a20
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x441ade
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x441b0c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x441b2a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00441a48
jmp 0x441b2a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x441b2a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00441a48
test edi, edi
mov eax, edi
jne 0x441b14
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x45e514]
test ecx, ecx
je 0x441bdd
jmp 0x441add
ret 8
Function at 0x679470
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x177000]
push edi
jmp 0x67948a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x679491
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x679480
mov eax, 1
add ebx, ebx
jne 0x6794a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6794b4
jne 0x6794d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6794d3
dec eax
add ebx, ebx
jne 0x6794c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x679498
add ebx, ebx
jne 0x6794cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x679525
xor ecx, ecx
sub eax, 3
jb 0x6794eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x67955a
sar eax, 1
mov ebp, eax
jmp 0x6794f6
add ebx, ebx
jne 0x6794f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6794c4
inc ecx
add ebx, ebx
jne 0x679504
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6794c4
add ebx, ebx
jne 0x679511
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x679506
jne 0x679522
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x679506
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x679544
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x679536
jmp 0x679486
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x679544
add edi, ecx
jmp 0x679486
pop esi
mov edi, esi
mov ecx, 0x506c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x679562
cmp byte [edi], 0x13
jne 0x679562
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 0x679567
lea edi, [esi + 0x275000]
mov eax, dword [edi]
or eax, eax
je 0x6795df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3818e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3819c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x679594
mov ecx, edi
jns 0x6795c3
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 + 0x3819c8]
or eax, eax
je 0x6795d9
mov dword [ebx], eax
add ebx, 4
jmp 0x6795b1
call dword [esi + 0x3819c4]
mov ebp, dword [esi + 0x3819cc]
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 0x679613
sub esp, 0xffffff80
jmp 0x4b0af6
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x403ce0
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.00406414
test esi, esi
jne 0x403d16
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.0040656c
jmp 0x403d34
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403c24
mov edi, eax
test esi, esi
je 0x403d34
cmp dword [ebx], 0
je 0x403d34
dec esi
jmp 0x403d1d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x431008], 0x8088405
inc edx
mov dword [ebx + 0x431008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4055ec
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.00405888
mov byte [esp], al
cmp byte [esp], 0
jne 0x405776
test edi, edi
je 0x405776
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4056b6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x405691
cmp edi, 0xffffffff
je 0x405651
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405651
mov byte [esp], 0
jmp 0x405776
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405691
test ebx, ebx
jne 0x405683
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x405683
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405776
lea eax, [esp + 0xc]
call fcn.0040539c
dec ebp
test ebp, ebp
jg 0x405636
cmp edi, 0xffffffff
je 0x4056b6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4056b4
mov byte [esp], 0
jmp 0x405776
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4055fa
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4056b6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004057e4
mov edx, eax
mov ebx, dword [0x4338f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40571a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405718
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40571a
xor edi, edi
cmp byte [esp], 0
je 0x405740
mov ebx, dword [esi]
test bl, 1
jne 0x405756
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405720
mov byte [esp + 1], 1
jmp 0x405756
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405740
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4056cd
cmp byte [esp], 0
je 0x405776
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 0x406158
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x433054], 0
je 0x4061bf
cmp word [0x433340], 0xd7b2
jne 0x406181
cmp dword [0x433348], 0
jbe 0x406181
mov eax, 0x43333c
call dword [0x433358]
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, 0x4061ec
call fcn.00406a10
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x431026], 0
jne 0x4061db
push 0
push 0x4319b2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x407c8c
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 0x407df1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406414
cmp si, word [0x4319f0]
jb 0x407d24
cmp si, word [0x431bf0]
ja 0x407d24
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x407d24
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4319f0]
jae 0x407cfe
mov edi, ebx
dec edi
jmp 0x407d1f
cmp si, word [ebx*8 + 0x4319f0]
jbe 0x407d0e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x407d1f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4319f4]
call fcn.00407bac
jmp 0x407d24
cmp edi, dword [ebp - 8]
jae 0x407ce8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x407dd3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x407dd3
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.00406ba8
push dword [ebp - 0x160]
push 0x407e0c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00406ba8
push dword [ebp - 0x164]
push 0x407e1c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00406ba8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00406d60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407df8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406474
ret
Function at 0x407fa4
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 0x4080a8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x435b84
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x435b9c]
jne 0x407ff0
mov eax, esi
mov edx, 0x435b9e
mov ecx, 0x55
call fcn.00406ba8
push 0x435b84
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408092
push 0x435b84
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406414
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40805f
cmp byte [0x435b80], 0
je 0x408024
mov edx, esi
mov eax, ebx
call fcn.00407e88
jmp 0x40805f
mov edx, esi
mov eax, ebx
call fcn.00407c8c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40805f
cmp dword [esi], 0
je 0x408048
mov eax, esi
mov edx, 0x4080c0
call fcn.00406c80
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00407c8c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406c80
push 0x435b84
call sub.kernel32.dll_EnterCriticalSection
mov word [0x435b9c], bx
mov eax, dword [esi]
call fcn.00406b14
mov ecx, eax
mov eax, 0x435b9e
mov edx, 0xaa
call fcn.00407b0c
push 0x435b84
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4080af
lea eax, [ebp - 4]
call fcn.00406414
ret
Function at 0x4082d8
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.004064f8
xor eax, eax
push ebp
push 0x4084fd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408318
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408332
mov eax, dword [ebp - 4]
call fcn.00406b14
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00407b0c
cmp word [ebp - 0x21a], 0
je 0x4084e7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40850c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408401
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40850c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408401
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408548
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408401
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408548
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408401
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40857c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408401
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4085b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4084e7
xor eax, eax
push ebp
push 0x4084e0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004080e8
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 0x408470
mov eax, dword [ebp - 0x10]
call fcn.00403980
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.00406b6c
jmp 0x4084bb
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4085f0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4084bb
mov eax, dword [ebp - 0x10]
call fcn.00403980
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4085f0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406b6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4084e7
cmp dword [ebp - 8], 0
je 0x4084d6
mov eax, dword [ebp - 8]
call fcn.0040399c
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 0x408504
lea eax, [ebp - 4]
call fcn.00406414
ret
Function at 0x4087ec
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.004064f8
xor eax, eax
push ebp
push 0x4088ac
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.00406ba8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406cd8
mov eax, dword [ebx]
call fcn.004086b4
test al, al
jne 0x408889
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00406ba8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406cd8
mov eax, dword [ebx]
call fcn.004086b4
test al, al
jne 0x408889
mov eax, ebx
call fcn.00406414
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4088b3
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406474
lea eax, [ebp - 4]
call fcn.00406414
ret

Function at 0x408f04
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 0x414d0c
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 0x414d45
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040656c
jmp 0x414d4e
mov eax, ebx
mov edx, esi
call fcn.00406720
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x414d58
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x414d7c
movzx eax, word [ebp - 4]
jmp 0x414d7e
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x415c7c
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 0x415da1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00415a84
mov esi, eax
mov eax, dword [0x432d58]
cmp byte [eax], 0
je 0x415d49
mov eax, dword [0x432b44]
call fcn.004041b8
call fcn.00403ad4
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 [0x415c4c]
call fcn.004076f4
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 0x415dbc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x415d85
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x432b08]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x435c4c]
call fcn.004077ac
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 0x415da8
lea eax, [ebp - 4]
mov edx, dword [0x415c4c]
call fcn.00407700
ret

Function at 0x416e20
Capabilities:
Encode data using xor

Disassembly:
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x416e4c
cmp bl, 0
je 0x416e48
cmp bl, 0x41
jl 0x416e43
cmp bl, 0x5a
jg 0x416e43
or bl, 0x20
xor al, bl
inc esi
jmp 0x416e27
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp fcn.00416d7c