joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408bf0
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.004090b0
mov byte [esp], al
cmp byte [esp], 0
jne 0x408d79
test edi, edi
je 0x408d79
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408cb9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408c94
cmp edi, 0xffffffff
je 0x408c55
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408c55
mov byte [esp], 0
jmp 0x408d79
cmp dword [esi], 1
jg 0x408c94
cmp dword [esi], 0
jne 0x408c86
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408c86
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408d79
lea eax, [esp + 0xc]
call fcn.00408888
dec ebp
test ebp, ebp
jg 0x408c3a
cmp edi, 0xffffffff
je 0x408cb9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408cb7
mov byte [esp], 0
jmp 0x408d79
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408bfe
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408cb9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408df4
mov edx, eax
mov ebx, dword [0x4ea8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408d1d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408d1b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408d1d
xor edi, edi
cmp byte [esp], 0
je 0x408d43
mov ebx, dword [esi]
test bl, 1
jne 0x408d59
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408d23
mov byte [esp + 1], 1
jmp 0x408d59
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408d43
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408cd0
cmp byte [esp], 0
je 0x408d79
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 0x409a08
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4ecb9c
cmp dword [ebp + 0xc], 2
jl 0x409a1c
mov ebx, 0x4ecbcc
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x409a54
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x4051f8
mov dword [0x4ea01c], eax
mov eax, 0x405200
mov dword [0x4ea020], eax
mov eax, ebx
call fcn.004098ec
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x409a89
cmp al, 3
jge 0x409a89
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x409a9a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x409aa5
call dword [ecx + eax*4]
cmp dword [0x4ea040], 0
jne 0x409abb
mov byte [0x4ea048], 1
fnstcw word [0x4e502c]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00409d68
call fcn.0040999c
ret 4

Function at 0x409cd0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ea058], 0
je 0x409d37
cmp word [0x4ea348], 0xd7b2
jne 0x409cf9
cmp dword [0x4ea350], 0
jbe 0x409cf9
mov eax, 0x4ea344
call dword [0x4ea360]
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, 0x409d64
call fcn.0040a84c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e5036], 0
jne 0x409d53
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409ef8
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 [0x4e5038], 0
je 0x409f23
mov edx, edi
mov eax, esi
call dword [0x4e5038]
mov ebx, eax
jmp 0x409f34
mov eax, 8
call fcn.00406dd0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4ea059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409ec0
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 0x409f64
mov eax, ebx
call fcn.00406dec
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40da74
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 0x40dbdb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a038
cmp si, word [0x4e5a10]
jb 0x40db0c
cmp si, word [0x4e5c10]
ja 0x40db0c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40db0c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4e5a10]
jae 0x40dae6
mov edi, ebx
dec edi
jmp 0x40db07
cmp si, word [ebx*8 + 0x4e5a10]
jbe 0x40daf6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40db07
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4e5a14]
call fcn.0040d994
jmp 0x40db0c
cmp edi, dword [ebp - 8]
jae 0x40dad0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40dbbb
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dbbb
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.0040ab38
push dword [ebp - 0x160]
push 0x40dbf8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040ab38
push dword [ebp - 0x164]
push 0x40dc08
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ab38
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ad74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dbe2
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a098
pop eax
jmp eax
Function at 0x40dd90
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 0x40de96
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4ecc14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4ecc2c]
jne 0x40dddc
mov eax, esi
mov edx, 0x4ecc2e
mov ecx, 0x55
call fcn.0040ab38
push 0x4ecc14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40de7e
push 0x4ecc14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a038
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40de4b
cmp byte [0x4ecc10], 0
je 0x40de10
mov edx, esi
mov eax, ebx
call fcn.0040dc74
jmp 0x40de4b
mov edx, esi
mov eax, ebx
call fcn.0040da74
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40de4b
cmp dword [esi], 0
je 0x40de34
mov eax, esi
mov edx, 0x40deb0
call fcn.0040ac94
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040da74
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ac94
push 0x4ecc14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4ecc2c], bx
mov eax, dword [esi]
call fcn.0040aa9c
mov ecx, eax
mov eax, 0x4ecc2e
mov edx, 0xaa
call fcn.0040d8f4
push 0x4ecc14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de9d
lea eax, [ebp - 4]
call fcn.0040a038
pop eax
jmp eax
Function at 0x40e0d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a12c
xor eax, eax
push ebp
push 0x40e300
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e11e
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e138
mov eax, dword [ebp - 4]
call fcn.0040aa9c
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040d8f4
cmp word [ebp - 0x21e], 0
je 0x40e2e3
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e310
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e207
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e310
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e207
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e34c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e207
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e34c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e207
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e380
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e207
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e3b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e2e3
xor eax, eax
push ebp
push 0x40e2dc
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040ded8
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e26a
mov eax, dword [ebp - 0x14]
call fcn.00406dd0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040aafc
jmp 0x40e2b5
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e3f4
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e2b5
mov eax, dword [ebp - 0x14]
call fcn.00406dd0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e3f4
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040aafc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e2e3
cmp dword [ebp - 0xc], 0
je 0x40e2d0
mov eax, dword [ebp - 0xc]
call fcn.00406dec
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e307
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a098
pop eax
jmp eax
Function at 0x40e610
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.0040a12c
xor eax, eax
push ebp
push 0x40e6d2
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.0040ab38
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040acec
mov eax, dword [ebx]
call fcn.0040e4bc
test al, al
jne 0x40e6ad
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040ab38
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040acec
mov eax, dword [ebx]
call fcn.0040e4bc
test al, al
jne 0x40e6ad
mov eax, ebx
call fcn.0040a038
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e6d9
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a098
lea eax, [ebp - 4]
call fcn.0040a038
pop eax
jmp eax

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

Disassembly:
cmp eax, edx
je 0x420d25
test eax, edx
je 0x420d28
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x420ce3
movzx eax, word [eax]
sub eax, ecx
jmp 0x420d0a
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 [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x420d0b
add ecx, 4
js 0x420cfb
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x420d08
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x420d0a
xor eax, eax
ret
test eax, eax
je 0x420d34
test edx, edx
jne 0x420cd4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x426b58
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 0x426b91
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a1d0
jmp 0x426b9a
mov eax, ebx
mov edx, esi
call fcn.0040a428
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x426ba4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x426bc8
movzx eax, word [esp]
jmp 0x426bca
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4288c0
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 0x4289e7
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004286c8
mov esi, eax
mov eax, dword [0x4e8fec]
cmp byte [eax], 0
je 0x42898d
mov eax, dword [0x4e8dfc]
call fcn.004079c0
call fcn.00406f48
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
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x428890]
call fcn.0040cec8
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
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x428a00
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x4289c9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4e8db4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ed634]
call fcn.0040d598
push eax
call sub.user32.dll_LoadStringW
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 0x4289ee
lea eax, [ebp - 4]
mov edx, dword [0x428890]
call fcn.0040cfec
pop eax
jmp eax
Function at 0x429e28
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x11c]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x429e6b
mov eax, dword [ebp - 0x10c]
mov dword [0x4ed8f0], eax
mov eax, 0x4ed8f4
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040ab38
mov eax, 0x4ed8f8
call fcn.0040a038
xor eax, eax
mov dword [0x4ed8fc], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x4ed7b4], 0xa
jl 0x429fc1
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x429fcc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x429fc1
xor eax, eax
push ebp
push 0x429fba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42a028
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x429f1a
cmp dword [ebp - 8], 2
jle 0x429f1a
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x429eed
adc edx, 0
mov eax, 0x4ed8f8
call fcn.0040ac10
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4ed8f8]
call fcn.0040aa9c
push eax
push 0
push 0
push 0x42a028
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x429f74
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42a048
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x429f74
cmp dword [ebp - 8], 2
jle 0x429f74
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x429f49
adc edx, 0
mov eax, 0x4ed8f8
call fcn.0040ac10
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4ed8f8]
call fcn.0040aa9c
push eax
push 0
push 0
push 0x42a048
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x4ed8fc
push 0
push 0
push 0x42a05c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x429fa1
xor eax, eax
mov dword [0x4ed8fc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429fc1
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x4e7730], 1
mov esp, ebp
pop ebp
ret
Function at 0x42b00c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040a518
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410214
mov edi, eax
cmp edi, 0x104
jbe 0x42afb7
mov eax, edi
add eax, eax
call fcn.00406dd0
mov esi, eax
jmp 0x42afb9
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410214
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42aff2
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x42afdc
mov eax, esp
cmp esi, eax
je 0x42afff
mov eax, esi
call fcn.00406dec
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x42b038
cmp bl, 0
je 0x42b034
cmp bl, 0x41
jl 0x42b02f
cmp bl, 0x5a
jg 0x42b02f
or bl, 0x20
xor al, bl
inc esi
jmp 0x42b013
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42af78

Function at 0x42b954
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040ab38
add esp, 0x800
pop ebx
ret
Function at 0x42e100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42e11e
mov eax, dword [eax - 4]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x42e136
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42e131
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
jmp 0x42e13b
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x42e1a9
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x42e1f2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42e167
inc dword [ebp - 0xc]
jmp 0x42e17f
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x42e17f
cmp dword [ebp - 0xc], 0
jle 0x42e17f
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x42e1a1
xor eax, eax
jmp 0x42e19d
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42e19c
mov eax, esi
jmp 0x42e1f5
inc eax
cmp eax, ecx
jle 0x42e189
inc esi
cmp esi, dword [ebp - 8]
jl 0x42e153
jmp 0x42e1f2
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x42e1f2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42e1ca
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x42e1ec
xor eax, eax
jmp 0x42e1e8
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42e1e7
mov eax, esi
jmp 0x42e1f5
inc eax
cmp eax, ecx
jle 0x42e1d4
inc esi
cmp esi, dword [ebp - 8]
jl 0x42e1b2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10