joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a630
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e8a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
mov dword [ebp - 0x10], esp
push ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x45a790
cmp edi, dword [esi + 0xc]
jge 0x45a790
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x45a6a4
mov ecx, dword [ebx + 8]
cmp edi, ecx
lea eax, [ebx + 8]
mov dword [ebp - 0x14], eax
jl 0x45a779
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x45a779
jmp 0x45a702
push 0x10
push 0x40
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
jne 0x45a6d4
call fcn.00439d10
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0
call fcn.0042ee4b
mov dword [eax], 0x46be50
lea ecx, [eax + 8]
mov dword [ecx], 0
mov dword [eax + 0xc], 0
mov edx, dword [esi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 0x14]
mov dword [eax + edx], ecx
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x45a719
mov edx, dword [esi + 0xc]
shl edx, 2
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x45a729
mov ecx, dword [esi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
jne 0x45a73e
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00439d10
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
mov dword [ebx + 0xc], edx
mov ecx, dword [esi + 0xc]
sub ecx, edi
shl ecx, 2
lea edi, [edx + edi*4]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov edx, dword [esi]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x45a78a
cmp edi, dword [eax]
jge 0x45a78a
mov eax, dword [ebp + 0xc]
mov dword [ebx + edi*4], eax
mov ecx, dword [ebp - 0x18]
push ecx
jmp 0x45a791
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45a7e0
Capabilities:
Set thread local storage value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 8]
push edi
mov edi, 1
cmp eax, edi
mov ebx, ecx
mov dword [esp + 0xc], edi
jle 0x45a84b
push ebp
mov ebp, dword [esp + 0x1c]
nop
test ebp, ebp
je 0x45a820
mov eax, dword [ebx + 0x10]
cmp dword [eax + edi*8 + 4], ebp
je 0x45a820
mov ecx, dword [esi + 0xc]
cmp dword [ecx + edi*4], 0
je 0x45a83a
mov dword [esp + 0x10], 0
jmp 0x45a83a
mov edx, dword [esi + 0xc]
mov ecx, dword [edx + edi*4]
test ecx, ecx
je 0x45a830
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 0xc]
mov dword [ecx + edi*4], 0
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
jl 0x45a800
mov eax, dword [esp + 0x10]
test eax, eax
pop ebp
je 0x45a8ad
lea edi, [ebx + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x45a889
cmp eax, esi
mov edx, dword [ebx + 0x18]
jne 0x45a870
mov eax, dword [esi + edx]
mov dword [ebx + 0x14], eax
jmp 0x45a889
mov ecx, dword [edx + eax]
cmp ecx, esi
je 0x45a87f
mov eax, ecx
test eax, eax
jne 0x45a870
jmp 0x45a889
test eax, eax
je 0x45a889
mov ecx, dword [edx + esi]
mov dword [edx + eax], ecx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ecx, dword [ebx]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x40b801
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411a00
cmp edx, dword [eax]
je 0x40b823
add eax, 8
inc ecx
cmp eax, 0x411a90
jl 0x40b814
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411a00]
jne 0x40b951
mov eax, dword [0x41911c]
cmp eax, 1
je 0x40b92b
test eax, eax
jne 0x40b854
cmp dword [0x411488], 1
je 0x40b92b
cmp edx, 0xfc
je 0x40b951
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b88b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408740
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408910
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b8ce
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408910
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41050c
push edi
call fcn.00408fa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408740
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408750
lea eax, [ebp - 0xa0]
push 0x4104ec
push eax
call fcn.00408750
push dword [esi + 0x411a04]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408750
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040e2c6
add esp, 0x2c
pop edi
jmp 0x40b951
lea eax, [ebp + 8]
lea esi, [esi + 0x411a04]
push 0
push eax
push dword [esi]
call fcn.00408910
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x404b14
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
and dword [esp + 4], 0
push ebx
push esi
push edi
pushal
xor eax, eax
dec eax
xor ebx, eax
mov dword [esp + 0x30], ebx
popal
push str.V3.5_n
call dword [sym.imp.MSVCR90.dll_printf]
cmp dword [0x4093a8], 0
pop ecx
jne 0x404b4d
call fcn.0040435c
cmp dword [0x4093a4], 0
jne 0x404b5b
call fcn.0040429c
call fcn.0040459d
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi]
call fcn.00404144
lea eax, [esp + 0x14]
push eax
call fcn.00403faf
mov dword [0x4093ac], eax
lea eax, [esp + 0x38]
push eax
call fcn.00403f65
push dword [esp + 0xc]
push dword [esi]
call fcn.00404033
push eax
mov dword [0x4093b0], eax
call dword [sym.imp.MSVCR90.dll__msize]
pop ecx
mov esi, eax
push esi
call fcn.00403fe4
mov eax, esi
imul eax, eax, 3
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.MSVCR90.dll_malloc]
pop ecx
mov edi, eax
push esi
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0040327f
test edi, edi
je 0x404bf3
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x10]
push edi
call fcn.004043b2
lea eax, [esp + 0x38]
push eax
call dword [0x409398]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00404267
int3

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x40462c
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.00406618
test esi, esi
jne 0x404662
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.00406790
jmp 0x404680
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404510
mov edi, eax
test esi, esi
je 0x404680
cmp dword [ebx], 0
je 0x404680
dec esi
jmp 0x404669
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405578
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.00405814
mov byte [esp], al
cmp byte [esp], 0
jne 0x405702
test edi, edi
je 0x405702
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405642
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40561d
cmp edi, 0xffffffff
je 0x4055dd
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4055dd
mov byte [esp], 0
jmp 0x405702
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40561d
test ebx, ebx
jne 0x40560f
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40560f
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405702
lea eax, [esp + 0xc]
call fcn.0040530c
dec ebp
test ebp, ebp
jg 0x4055c2
cmp edi, 0xffffffff
je 0x405642
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405640
mov byte [esp], 0
jmp 0x405702
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405586
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405642
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405770
mov edx, eax
mov ebx, dword [0x4548fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4056a6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4056a4
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4056a6
xor edi, edi
cmp byte [esp], 0
je 0x4056cc
mov ebx, dword [esi]
test bl, 1
jne 0x4056e2
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4056ac
mov byte [esp + 1], 1
jmp 0x4056e2
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4056cc
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405659
cmp byte [esp], 0
je 0x405702
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 0x406344
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45405c], 0
je 0x4063ab
cmp word [0x454348], 0xd7b2
jne 0x40636d
cmp dword [0x454350], 0
jbe 0x40636d
mov eax, 0x454344
call dword [0x454360]
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, 0x4063d8
call fcn.00406e24
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45102e], 0
jne 0x4063c7
push 0
push 0x4519ba
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408998
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 0x408afd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406618
cmp si, word [0x4519f8]
jb 0x408a30
cmp si, word [0x451bf8]
ja 0x408a30
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408a30
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4519f8]
jae 0x408a0a
mov edi, ebx
dec edi
jmp 0x408a2b
cmp si, word [ebx*8 + 0x4519f8]
jbe 0x408a1a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408a2b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4519fc]
call fcn.004088b8
jmp 0x408a30
cmp edi, dword [ebp - 8]
jae 0x4089f4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408adf
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408adf
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.00407244
push dword [ebp - 0x160]
push 0x408b18
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407244
push dword [ebp - 0x164]
push 0x408b28
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407244
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040747c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b04
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406678
ret
Function at 0x408cb0
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 0x408db4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x456b8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x456ba4]
jne 0x408cfc
mov eax, esi
mov edx, 0x456ba6
mov ecx, 0x55
call fcn.00407244
push 0x456b8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408d9e
push 0x456b8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406618
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408d6b
cmp byte [0x456b88], 0
je 0x408d30
mov edx, esi
mov eax, ebx
call fcn.00408b94
jmp 0x408d6b
mov edx, esi
mov eax, ebx
call fcn.00408998
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408d6b
cmp dword [esi], 0
je 0x408d54
mov eax, esi
mov edx, 0x408dcc
call fcn.0040739c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408998
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040739c
push 0x456b8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x456ba4], bx
mov eax, dword [esi]
call fcn.004071a0
mov ecx, eax
mov eax, 0x456ba6
mov edx, 0xaa
call fcn.00408818
push 0x456b8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408dbb
lea eax, [ebp - 4]
call fcn.00406618
ret
Function at 0x408fe4
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.004066fc
xor eax, eax
push ebp
push 0x409209
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409024
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40903e
mov eax, dword [ebp - 4]
call fcn.004071a0
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408818
cmp word [ebp - 0x21a], 0
je 0x4091f3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409218
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40910d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409218
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40910d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409254
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40910d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409254
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40910d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409288
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40910d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4092bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4091f3
xor eax, eax
push ebp
push 0x4091ec
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408df4
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 0x40917c
mov eax, dword [ebp - 0x10]
call fcn.0040426c
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.00407208
jmp 0x4091c7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4092fc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4091c7
mov eax, dword [ebp - 0x10]
call fcn.0040426c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4092fc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407208
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4091f3
cmp dword [ebp - 8], 0
je 0x4091e2
mov eax, dword [ebp - 8]
call fcn.00404288
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 0x409210
lea eax, [ebp - 4]
call fcn.00406618
ret
Function at 0x4094f8
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.004066fc
xor eax, eax
push ebp
push 0x4095b8
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.00407244
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004073f4
mov eax, dword [ebx]
call fcn.004093c0
test al, al
jne 0x409595
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407244
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004073f4
mov eax, dword [ebx]
call fcn.004093c0
test al, al
jne 0x409595
mov eax, ebx
call fcn.00406618
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4095bf
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406678
lea eax, [ebp - 4]
call fcn.00406618
ret

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

Disassembly:
cmp eax, edx
je 0x414491
test eax, edx
je 0x414494
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41444f
movzx eax, word [eax]
sub eax, ecx
jmp 0x414476
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 0x414477
add ecx, 4
js 0x414467
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x414474
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x414476
xor eax, eax
ret
test eax, eax
je 0x4144a0
test edx, edx
jne 0x414440
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x418dc0
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 0x418df9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406790
jmp 0x418e02
mov eax, ebx
mov edx, esi
call fcn.004069e8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x418e0c
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 0x418e30
movzx eax, word [ebp - 4]
jmp 0x418e32
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret