joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d3010
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x100d3037
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x100d303a
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.100d2fec
pop esi
leave
ret 8

Function at 0xae1058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00ae11a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xae107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xae106a
add dl, dl
jne 0xae1089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xae10dc
xor eax, eax
add dl, dl
jne 0xae1096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xae117d
add dl, dl
jne 0xae10a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xae10b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xae10bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xae10c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xae10d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xae1075
mov eax, 1
add dl, dl
jne 0xae10ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xae10f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xae10e1
sub eax, ebx
mov ebx, 1
jne 0xae1128
mov ecx, 1
add dl, dl
jne 0xae110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xae1119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xae1105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xae1075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xae113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xae114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xae1136
cmp eax, 0x7d00
jae 0xae116d
cmp eax, 0x500
jb 0xae1168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xae1075
cmp eax, 0x7f
ja 0xae1170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xae1075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xae119e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xae1075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x407574
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.0040abfc
test esi, esi
jne 0x4075aa
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.0040ad94
jmp 0x4075c8
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004074b8
mov edi, eax
test esi, esi
je 0x4075c8
cmp dword [ebx], 0
je 0x4075c8
dec esi
jmp 0x4075b1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x409834
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.00409cf4
mov byte [esp], al
cmp byte [esp], 0
jne 0x4099bd
test edi, edi
je 0x4099bd
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4098fd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4098d8
cmp edi, 0xffffffff
je 0x409899
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409899
mov byte [esp], 0
jmp 0x4099bd
cmp dword [esi], 1
jg 0x4098d8
cmp dword [esi], 0
jne 0x4098ca
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4098ca
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4099bd
lea eax, [esp + 0xc]
call fcn.004094cc
dec ebp
test ebp, ebp
jg 0x40987e
cmp edi, 0xffffffff
je 0x4098fd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4098fb
mov byte [esp], 0
jmp 0x4099bd
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x409842
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4098fd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409a38
mov edx, eax
mov ebx, dword [0x4e0900]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409961
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40995f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409961
xor edi, edi
cmp byte [esp], 0
je 0x409987
mov ebx, dword [esi]
test bl, 1
jne 0x40999d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409967
mov byte [esp + 1], 1
jmp 0x40999d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409987
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x409914
cmp byte [esp], 0
je 0x4099bd
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 0x40a894
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e005c], 0
je 0x40a8fb
cmp word [0x4e034c], 0xd7b2
jne 0x40a8bd
cmp dword [0x4e0354], 0
jbe 0x40a8bd
mov eax, 0x4e0348
call dword [0x4e0364]
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, 0x40a928
call fcn.0040b490
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4db032], 0
jne 0x40a917
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40aabc
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 [0x4db034], 0
je 0x40aae7
mov edx, edi
mov eax, esi
call dword [0x4db034]
mov ebx, eax
jmp 0x40aaf8
mov eax, 8
call fcn.00406e64
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4e005d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40aa84
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 0x40ab28
mov eax, ebx
call fcn.00406e80
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40e6b0
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 0x40e817
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040abfc
cmp si, word [0x4dba30]
jb 0x40e748
cmp si, word [0x4dbc30]
ja 0x40e748
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40e748
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4dba30]
jae 0x40e722
mov edi, ebx
dec edi
jmp 0x40e743
cmp si, word [ebx*8 + 0x4dba30]
jbe 0x40e732
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40e743
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4dba34]
call fcn.0040e5d0
jmp 0x40e748
cmp edi, dword [ebp - 8]
jae 0x40e70c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40e7f7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e7f7
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.0040b778
push dword [ebp - 0x160]
push 0x40e834
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b778
push dword [ebp - 0x164]
push 0x40e844
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b778
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b9b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e81e
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040ac5c
pop eax
jmp eax
Function at 0x40e9cc
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 0x40ead2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4e2c18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4e2c30]
jne 0x40ea18
mov eax, esi
mov edx, 0x4e2c32
mov ecx, 0x55
call fcn.0040b778
push 0x4e2c18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40eaba
push 0x4e2c18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040abfc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ea87
cmp byte [0x4e2c14], 0
je 0x40ea4c
mov edx, esi
mov eax, ebx
call fcn.0040e8b0
jmp 0x40ea87
mov edx, esi
mov eax, ebx
call fcn.0040e6b0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40ea87
cmp dword [esi], 0
je 0x40ea70
mov eax, esi
mov edx, 0x40eaec
call fcn.0040b8d0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040e6b0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b8d0
push 0x4e2c18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4e2c30], bx
mov eax, dword [esi]
call fcn.0040b6dc
mov ecx, eax
mov eax, 0x4e2c32
mov edx, 0xaa
call fcn.0040e530
push 0x4e2c18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ead9
lea eax, [ebp - 4]
call fcn.0040abfc
pop eax
jmp eax
Function at 0x40ed14
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.0040acf0
xor eax, eax
push ebp
push 0x40ef3c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40ed5a
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40ed74
mov eax, dword [ebp - 4]
call fcn.0040b6dc
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040e530
cmp word [ebp - 0x21e], 0
je 0x40ef1f
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ef4c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ee43
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ef4c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ee43
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ef88
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ee43
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ef88
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ee43
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40efbc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ee43
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40eff0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40ef1f
xor eax, eax
push ebp
push 0x40ef18
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040eb14
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 0x40eea6
mov eax, dword [ebp - 0x14]
call fcn.00406e64
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.0040b73c
jmp 0x40eef1
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40f030
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40eef1
mov eax, dword [ebp - 0x14]
call fcn.00406e64
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40f030
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040b73c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ef1f
cmp dword [ebp - 0xc], 0
je 0x40ef0c
mov eax, dword [ebp - 0xc]
call fcn.00406e80
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 0x40ef43
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040ac5c
pop eax
jmp eax
Function at 0x40f24c
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.0040acf0
xor eax, eax
push ebp
push 0x40f30e
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.0040b778
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b928
mov eax, dword [ebx]
call fcn.0040f0f8
test al, al
jne 0x40f2e9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b778
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b928
mov eax, dword [ebx]
call fcn.0040f0f8
test al, al
jne 0x40f2e9
mov eax, ebx
call fcn.0040abfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f315
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040ac5c
lea eax, [ebp - 4]
call fcn.0040abfc
pop eax
jmp eax

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

Disassembly:
cmp eax, edx
je 0x421851
test eax, edx
je 0x421854
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x42180f
movzx eax, word [eax]
sub eax, ecx
jmp 0x421836
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 0x421837
add ecx, 4
js 0x421827
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x421834
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x421836
xor eax, eax
ret
test eax, eax
je 0x421860
test edx, edx
jne 0x421800
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x42733c
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 0x427375
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040ad94
jmp 0x42737e
mov eax, ebx
mov edx, esi
call fcn.0040afec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x427388
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 0x4273ac
movzx eax, word [esp]
jmp 0x4273ae
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4290a4
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 0x4291cb
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00428eac
mov esi, eax
mov eax, dword [0x4def28]
cmp byte [eax], 0
je 0x429171
mov eax, dword [0x4ded48]
call fcn.00407f88
call fcn.00406fd8
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 [0x429074]
call fcn.0040db04
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 0x4291e4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x4291ad
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4ded04]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4e363c]
call fcn.0040e1d4
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 0x4291d2
lea eax, [ebp - 4]
mov edx, dword [0x429074]
call fcn.0040dc28
pop eax
jmp eax
Function at 0x42a60c
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 0x42a64f
mov eax, dword [ebp - 0x10c]
mov dword [0x4e38f4], eax
mov eax, 0x4e38f8
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040b778
mov eax, 0x4e38fc
call fcn.0040abfc
xor eax, eax
mov dword [0x4e3900], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x4e37b8], 0xa
jl 0x42a7a5
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x42a7b0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x42a7a5
xor eax, eax
push ebp
push 0x42a79e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42a80c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42a6fe
cmp dword [ebp - 8], 2
jle 0x42a6fe
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42a6d1
adc edx, 0
mov eax, 0x4e38fc
call fcn.0040b850
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4e38fc]
call fcn.0040b6dc
push eax
push 0
push 0
push 0x42a80c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x42a758
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42a82c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42a758
cmp dword [ebp - 8], 2
jle 0x42a758
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42a72d
adc edx, 0
mov eax, 0x4e38fc
call fcn.0040b850
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4e38fc]
call fcn.0040b6dc
push eax
push 0
push 0
push 0x42a82c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x4e3900
push 0
push 0
push 0x42a840
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x42a785
xor eax, eax
mov dword [0x4e3900], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a7a5
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x4dd740], 1
mov esp, ebp
pop ebp
ret
Function at 0x42b78c
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.0040b110
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410eb0
mov edi, eax
cmp edi, 0x104
jbe 0x42b737
mov eax, edi
add eax, eax
call fcn.00406e64
mov esi, eax
jmp 0x42b739
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410eb0
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42b772
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 0x42b75c
mov eax, esp
cmp esi, eax
je 0x42b77f
mov eax, esi
call fcn.00406e80
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 0x42b7b8
cmp bl, 0
je 0x42b7b4
cmp bl, 0x41
jl 0x42b7af
cmp bl, 0x5a
jg 0x42b7af
or bl, 0x20
xor al, bl
inc esi
jmp 0x42b793
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42b6f8

Function at 0x42c0d4
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.0040b778
add esp, 0x800
pop ebx
ret
Function at 0x42e880
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 0x42e89e
mov eax, dword [eax - 4]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x42e8b6
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42e8b1
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
jmp 0x42e8bb
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x42e929
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x42e972
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42e8e7
inc dword [ebp - 0xc]
jmp 0x42e8ff
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x42e8ff
cmp dword [ebp - 0xc], 0
jle 0x42e8ff
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x42e921
xor eax, eax
jmp 0x42e91d
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42e91c
mov eax, esi
jmp 0x42e975
inc eax
cmp eax, ecx
jle 0x42e909
inc esi
cmp esi, dword [ebp - 8]
jl 0x42e8d3
jmp 0x42e972
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x42e972
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42e94a
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x42e96c
xor eax, eax
jmp 0x42e968
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42e967
mov eax, esi
jmp 0x42e975
inc eax
cmp eax, ecx
jle 0x42e954
inc esi
cmp esi, dword [ebp - 8]
jl 0x42e932
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10