joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417dbb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x422128], ebx
push esi
push edi
jne 0x417e3b
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x417e76
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41e64c
push edi
call esi
test eax, eax
mov dword [0x422128], eax
je 0x417e76
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x42212c], eax
call esi
cmp dword [0x421cb8], 2
mov dword [0x422130], eax
jne 0x417e3b
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x422138], eax
je 0x417e3b
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x422134], eax
mov eax, dword [0x422134]
test eax, eax
je 0x417e80
call eax
test eax, eax
je 0x417e67
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x422138]
test eax, eax
je 0x417e67
test byte [ebp - 8], 1
jne 0x417e80
cmp dword [0x421cc4], 4
jb 0x417e7a
or byte [ebp + 0x12], 0x20
jmp 0x417e9f
xor eax, eax
jmp 0x417eaf
or byte [ebp + 0x12], 4
jmp 0x417e9f
mov eax, dword [0x42212c]
test eax, eax
je 0x417e9f
call eax
mov ebx, eax
test ebx, ebx
je 0x417e9f
mov eax, dword [0x422130]
test eax, eax
je 0x417e9f
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x422128]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417f77
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040de90
mov eax, dword [0x420f30]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00414313
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x4180ac
push 2
push esi
push dword [ebp + 8]
call fcn.00414313
add esp, 0xc
cmp eax, ebx
je 0x4180ac
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x41804c
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004163a0
push 0x8000
push dword [ebp + 8]
call fcn.0041888d
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x418002
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00413eae
add esp, 0xc
cmp eax, 0xffffffff
je 0x418022
sub edi, eax
test edi, edi
jg 0x417ffa
jmp 0x41803a
call fcn.0040ec92
cmp dword [eax], 5
jne 0x418037
call fcn.0040ec89
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0041888d
pop ecx
pop ecx
jmp 0x418094
jge 0x418094
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00414313
push dword [ebp + 8]
call fcn.00416713
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x418094
call fcn.0040ec89
mov dword [eax], 0xd
call fcn.0040ec92
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00414313
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4180ae
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00414818
leave
ret
Function at 0x418510
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x418529
or eax, 0xffffffff
jmp 0x41858a
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x418586
push 0x3d
push esi
call fcn.004177ba
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x418586
cmp esi, eax
je 0x418586
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x421cd8]
sete cl
cmp eax, dword [0x421cdc]
mov dword [ebp - 4], ecx
jne 0x41856c
mov edi, eax
call fcn.004184af
mov dword [0x421cd8], eax
cmp eax, ebx
jne 0x4185c5
cmp dword [ebp + 0xc], ebx
je 0x41858e
cmp dword [0x421ce0], ebx
je 0x41858e
call fcn.00417883
test eax, eax
je 0x4185c5
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x418597
xor eax, eax
jmp 0x418589
push 4
call fcn.0040e365
cmp eax, ebx
pop ecx
mov dword [0x421cd8], eax
je 0x418586
mov dword [eax], ebx
cmp dword [0x421ce0], ebx
jne 0x4185c5
push 4
call fcn.0040e365
cmp eax, ebx
pop ecx
mov dword [0x421ce0], eax
je 0x418586
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x421cd8]
sub edi, esi
push esi
call fcn.00418462
mov edi, eax
test edi, edi
pop ecx
jl 0x41862c
cmp dword [ebx], 0
je 0x41862c
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0040e24d
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x41860c
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x41866d
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x418603
mov eax, edi
shl eax, 2
push eax
push dword [0x421cd8]
call fcn.0040e47e
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x41866d
jmp 0x418668
cmp dword [ebp - 4], 0
jne 0x4186d4
test edi, edi
jge 0x41863c
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x421cd8]
call fcn.0040e47e
test eax, eax
pop ecx
pop ecx
je 0x418586
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x421cd8], eax
cmp dword [ebp + 0xc], 0
je 0x4186bf
push esi
call fcn.00412670
inc eax
inc eax
push eax
call fcn.0040e365
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4186bf
push esi
push edi
call fcn.00412570
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4186b8
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.0040e24d
pop ecx
cmp dword [ebp - 4], 0
je 0x4186cc
push esi
call fcn.0040e24d
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x418589
push esi
call fcn.0040e24d
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x418593
Function at 0x40746f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x44bdc4], esi
push edi
jne 0x4074a9
mov ecx, 0x44bdc0
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x407485
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x44c1c0
jl 0x407480
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x4074de
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x44bdc0]
xor eax, esi
inc ecx
dec edx
jne 0x4074c1
pop edi
pop esi
not eax
ret 0xc

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x404768
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.00406988
test esi, esi
jne 0x40479e
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.00406af0
jmp 0x4047bc
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004046ac
mov edi, eax
test esi, esi
je 0x4047bc
cmp dword [ebx], 0
je 0x4047bc
dec esi
jmp 0x4047a5
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4056e8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405ad4
mov byte [esp], al
cmp byte [esp], 0
jne 0x405871
test edi, edi
je 0x405871
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4057a8
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405783
cmp edi, 0xffffffff
je 0x405747
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405747
mov byte [esp], 0
jmp 0x405871
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405783
test ebx, ebx
jne 0x40577c
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004025dc
test eax, eax
jne 0x40577c
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405871
pause
dec ebp
test ebp, ebp
jg 0x40572c
cmp edi, 0xffffffff
je 0x4057a8
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4057a6
mov byte [esp], 0
jmp 0x405871
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4056f6
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004025dc
cmp ebx, eax
jne 0x4057a8
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004058e4
mov edx, eax
mov ebx, dword [0x5028cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40580f
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40580d
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40580f
xor edi, edi
cmp byte [esp], 0
je 0x405838
mov ebx, dword [esi]
test bl, 1
jne 0x405851
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004025dc
cmp ebx, eax
jne 0x405815
mov byte [esp + 1], 1
jmp 0x405851
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004025dc
cmp ebx, eax
jne 0x405838
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4057c2
cmp byte [esp], 0
je 0x405871
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4065ec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x502054], 0
je 0x40664d
cmp word [0x502330], 0xd7b2
jne 0x406615
cmp dword [0x502338], 0
jbe 0x406615
mov eax, 0x50232c
call dword [0x502348]
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 0x406678
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4fd028], 0
jne 0x406669
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406844
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4fd02c], 0
je 0x40686f
mov edx, edi
mov eax, esi
call dword [0x4fd02c]
mov ebx, eax
jmp 0x406880
mov eax, 8
call fcn.004043e0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x502055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40680c
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x4068b5
mov edx, 8
mov eax, ebx
call fcn.004043fc
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x408b18
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 0x408c7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406988
cmp si, word [0x4fd7dc]
jb 0x408bb0
cmp si, word [0x4fd9dc]
ja 0x408bb0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408bb0
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4fd7dc]
jae 0x408b8a
mov edi, ebx
dec edi
jmp 0x408bab
cmp si, word [ebx*8 + 0x4fd7dc]
jbe 0x408b9a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408bab
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4fd7e0]
call fcn.00408a28
jmp 0x408bb0
cmp edi, dword [ebp - 8]
jae 0x408b74
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408c5f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408c5f
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.004073dc
push dword [ebp - 0x160]
push 0x408c98
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004073dc
push dword [ebp - 0x164]
push 0x408ca8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004073dc
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407614
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c84
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004069e8
ret
Function at 0x408e30
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 0x408f33
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x504b55
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x504b6e]
jne 0x408e7c
mov eax, esi
mov edx, 0x504b70
mov ecx, 0x55
call fcn.004073dc
push 0x504b55
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408f1d
push 0x504b55
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406988
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408eeb
cmp byte [0x504b54], 0
je 0x408eb0
mov edx, esi
mov eax, ebx
call fcn.00408d14
jmp 0x408eeb
mov edx, esi
mov eax, ebx
call fcn.00408b18
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408eeb
cmp dword [esi], 0
je 0x408ed4
mov eax, esi
mov edx, 0x408f4c
call fcn.00407534
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408b18
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407534
push 0x504b55
call sub.kernel32.dll_EnterCriticalSection
mov word [0x504b6e], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407350
push eax
push 0x504b70
call sub.kernel32.dll_lstrcpynW
push 0x504b55
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f3a
lea eax, [ebp - 4]
call fcn.00406988
ret
Function at 0x409168
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.00406a6c
xor eax, eax
push ebp
push 0x40938d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4091a8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4091c2
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407350
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409377
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40939c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409291
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40939c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409291
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4093d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409291
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4093d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409291
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40940c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409291
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409440
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409377
xor eax, eax
push ebp
push 0x409370
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408f74
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 0x409300
mov eax, dword [ebp - 0x10]
call fcn.004043e0
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.004073a0
jmp 0x40934b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409480
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40934b
mov eax, dword [ebp - 0x10]
call fcn.004043e0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409480
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004073a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409377
cmp dword [ebp - 8], 0
je 0x409366
mov eax, dword [ebp - 8]
call fcn.004043fc
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 0x409394
lea eax, [ebp - 4]
call fcn.00406988
ret
Function at 0x4096cc
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.00406a6c
xor eax, eax
push ebp
push 0x40978c
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
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.004073dc
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040758c
mov eax, dword [ebx]
call fcn.00409594
test al, al
jne 0x409769
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004073dc
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040758c
mov eax, dword [ebx]
call fcn.00409594
test al, al
jne 0x409769
mov eax, ebx
call fcn.00406988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409793
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004069e8
lea eax, [ebp - 4]
call fcn.00406988
ret

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

Disassembly:
cmp eax, edx
je 0x41be71
test eax, edx
je 0x41be74
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41be2f
movzx eax, word [eax]
sub eax, ecx
jmp 0x41be56
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 0x41be57
add ecx, 4
js 0x41be47
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41be54
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41be56
xor eax, eax
ret
test eax, eax
je 0x41be80
test edx, edx
jne 0x41be20
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x420134
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 0x42016d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406af0
jmp 0x420176
mov eax, ebx
mov edx, esi
call fcn.00406d48
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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