joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ec26
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x486750]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ec69
cmp word [esi], dx
jne 0x41ec69
or byte [edi + eax + 0x28], 4
jmp 0x41ec6e
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41edc1
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41eda1
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ecb0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ece6
cmp eax, edx
jae 0x41ecf2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41ec88
jmp 0x41edc1
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ed9d
cmp dword [ebp - 0x14], 0
je 0x41ed9d
mov eax, dword [ebx*4 + 0x486750]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41ed75
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41ed3e
mov word [esi], cx
jmp 0x41ed71
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x486750]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x486750]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x486750]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41edc1
pop ebx
cmp word [ebp - 4], bx
jne 0x41ed86
cmp esi, dword [ebp + 0xc]
jne 0x41ed86
mov word [esi], bx
jmp 0x41edbe
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041878e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41edc1
push 0xd
jmp 0x41edba
mov ecx, dword [ebx*4 + 0x486750]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41edb8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41edc1
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x407728
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.0040abdc
test esi, esi
jne 0x40775e
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.0040ad74
jmp 0x40777c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407608
mov edi, eax
test esi, esi
je 0x40777c
cmp dword [ebx], 0
je 0x40777c
dec esi
jmp 0x407765
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x409824
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.00409ce4
mov byte [esp], al
cmp byte [esp], 0
jne 0x4099ad
test edi, edi
je 0x4099ad
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4098ed
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4098c8
cmp edi, 0xffffffff
je 0x409889
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409889
mov byte [esp], 0
jmp 0x4099ad
cmp dword [esi], 1
jg 0x4098c8
cmp dword [esi], 0
jne 0x4098ba
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4098ba
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4099ad
lea eax, [esp + 0xc]
call fcn.004094d8
dec ebp
test ebp, ebp
jg 0x40986e
cmp edi, 0xffffffff
je 0x4098ed
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4098eb
mov byte [esp], 0
jmp 0x4099ad
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x409832
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4098ed
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409a28
mov edx, eax
mov ebx, dword [0x5978f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409951
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40994f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409951
xor edi, edi
cmp byte [esp], 0
je 0x409977
mov ebx, dword [esi]
test bl, 1
jne 0x40998d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409957
mov byte [esp + 1], 1
jmp 0x40998d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409977
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x409904
cmp byte [esp], 0
je 0x4099ad
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 0x40a874
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x597058], 0
je 0x40a8db
cmp word [0x597344], 0xd7b2
jne 0x40a89d
cmp dword [0x59734c], 0
jbe 0x40a89d
mov eax, 0x597340
call dword [0x59735c]
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, 0x40a908
call fcn.0040b44c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x58f032], 0
jne 0x40a8f7
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40aa9c
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 [0x58f034], 0
je 0x40aac7
mov edx, edi
mov eax, esi
call dword [0x58f034]
mov ebx, eax
jmp 0x40aad8
mov eax, 8
call fcn.00406fc4
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x597059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40aa64
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 0x40ab08
mov eax, ebx
call fcn.00406fe0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40e650
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 0x40e7b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040abdc
cmp si, word [0x58fa10]
jb 0x40e6e8
cmp si, word [0x58fc10]
ja 0x40e6e8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40e6e8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x58fa10]
jae 0x40e6c2
mov edi, ebx
dec edi
jmp 0x40e6e3
cmp si, word [ebx*8 + 0x58fa10]
jbe 0x40e6d2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40e6e3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x58fa14]
call fcn.0040e56c
jmp 0x40e6e8
cmp edi, dword [ebp - 8]
jae 0x40e6ac
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40e797
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e797
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.0040b7ac
push dword [ebp - 0x160]
push 0x40e7d4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b7ac
push dword [ebp - 0x164]
push 0x40e7e4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b7ac
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b9e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e7be
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040ac3c
pop eax
jmp eax
Function at 0x40e96c
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 0x40ea72
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x599c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x599c2c]
jne 0x40e9b8
mov eax, esi
mov edx, 0x599c2e
mov ecx, 0x55
call fcn.0040b7ac
push 0x599c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40ea5a
push 0x599c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040abdc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ea27
cmp byte [0x599c10], 0
je 0x40e9ec
mov edx, esi
mov eax, ebx
call fcn.0040e850
jmp 0x40ea27
mov edx, esi
mov eax, ebx
call fcn.0040e650
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40ea27
cmp dword [esi], 0
je 0x40ea10
mov eax, esi
mov edx, 0x40ea8c
call fcn.0040b904
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040e650
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b904
push 0x599c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x599c2c], bx
mov eax, dword [esi]
call fcn.0040b6f8
mov ecx, eax
mov eax, 0x599c2e
mov edx, 0xaa
call fcn.0040e4cc
push 0x599c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ea79
lea eax, [ebp - 4]
call fcn.0040abdc
pop eax
jmp eax
Function at 0x40ecb4
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.0040acd0
xor eax, eax
push ebp
push 0x40eedc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40ecfa
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40ed14
mov eax, dword [ebp - 4]
call fcn.0040b6f8
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040e4cc
cmp word [ebp - 0x21e], 0
je 0x40eebf
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40eeec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ede3
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40eeec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ede3
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ef28
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ede3
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ef28
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ede3
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ef5c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ede3
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ef90
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40eebf
xor eax, eax
push ebp
push 0x40eeb8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040eab4
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 0x40ee46
mov eax, dword [ebp - 0x14]
call fcn.00406fc4
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.0040b758
jmp 0x40ee91
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40efd0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40ee91
mov eax, dword [ebp - 0x14]
call fcn.00406fc4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40efd0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040b758
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eebf
cmp dword [ebp - 0xc], 0
je 0x40eeac
mov eax, dword [ebp - 0xc]
call fcn.00406fe0
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 0x40eee3
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040ac3c
pop eax
jmp eax
Function at 0x40f1f0
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.0040acd0
xor eax, eax
push ebp
push 0x40f2b2
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.0040b7ac
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b95c
mov eax, dword [ebx]
call fcn.0040f098
test al, al
jne 0x40f28d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b7ac
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b95c
mov eax, dword [ebx]
call fcn.0040f098
test al, al
jne 0x40f28d
mov eax, ebx
call fcn.0040abdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f2b9
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040ac3c
lea eax, [ebp - 4]
call fcn.0040abdc
pop eax
jmp eax

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

Disassembly:
cmp eax, edx
je 0x421971
test eax, edx
je 0x421974
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x42192f
movzx eax, word [eax]
sub eax, ecx
jmp 0x421956
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 0x421957
add ecx, 4
js 0x421947
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x421954
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x421956
xor eax, eax
ret
test eax, eax
je 0x421980
test edx, edx
jne 0x421920
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x422cfc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040b6f8
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x422d66
test ah, 4
je 0x422d5f
test bl, bl
jne 0x422d24
mov al, 1
jmp 0x422d8d
test al, 0x10
je 0x422d2c
xor eax, eax
jmp 0x422d8d
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x422d50
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x422d8d
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x422d8d
test al, 0x10
sete al
jmp 0x422d8d
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x422d87
cmp ebx, 3
je 0x422d87
cmp ebx, 0x7b
je 0x422d87
mov eax, esi
call fcn.00422cbc
test al, al
jne 0x422d8b
xor eax, eax
jmp 0x422d8d
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4276d0
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 0x427709
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040ad74
jmp 0x427712
mov eax, ebx
mov edx, esi
call fcn.0040afcc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42771c
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 0x427740
movzx eax, word [esp]
jmp 0x427742
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x428e60
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 0x428f87
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00428c68
mov esi, eax
mov eax, dword [0x596970]
cmp byte [eax], 0
je 0x428f2d
mov eax, dword [0x596418]
call fcn.004080f0
call fcn.00407138
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 [0x428e30]
call fcn.0040dbdc
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 0x428fa0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x428f69
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x59636c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x59a634]
call fcn.0040e170
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 0x428f8e
lea eax, [ebp - 4]
mov edx, dword [0x428e30]
call fcn.0040dd00
pop eax
jmp eax
Function at 0x42a31c
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 0x42a35f
mov eax, dword [ebp - 0x10c]
mov dword [0x59a8f0], eax
mov eax, 0x59a8f4
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040b7ac
mov eax, 0x59a8f8
call fcn.0040abdc
xor eax, eax
mov dword [0x59a8fc], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x59a7b4], 0xa
jl 0x42a4b5
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x42a4c0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x42a4b5
xor eax, eax
push ebp
push 0x42a4ae
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42a51c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42a40e
cmp dword [ebp - 8], 2
jle 0x42a40e
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42a3e1
adc edx, 0
mov eax, 0x59a8f8
call fcn.0040b884
lea eax, [ebp - 8]
push eax
mov eax, dword [0x59a8f8]
call fcn.0040b6f8
push eax
push 0
push 0
push 0x42a51c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x42a468
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42a53c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42a468
cmp dword [ebp - 8], 2
jle 0x42a468
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42a43d
adc edx, 0
mov eax, 0x59a8f8
call fcn.0040b884
lea eax, [ebp - 8]
push eax
mov eax, dword [0x59a8f8]
call fcn.0040b6f8
push eax
push 0
push 0
push 0x42a53c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x59a8fc
push 0
push 0
push 0x42a550
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x42a495
xor eax, eax
mov dword [0x59a8fc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a4b5
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x5916f0], 1
mov esp, ebp
pop ebp
ret
Function at 0x42b670
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.0040b0cc
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410d68
mov edi, eax
cmp edi, 0x104
jbe 0x42b61b
mov eax, edi
add eax, eax
call fcn.00406fc4
mov esi, eax
jmp 0x42b61d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410d68
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42b656
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 0x42b640
mov eax, esp
cmp esi, eax
je 0x42b663
mov eax, esi
call fcn.00406fe0
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 0x42b69c
cmp bl, 0
je 0x42b698
cmp bl, 0x41
jl 0x42b693
cmp bl, 0x5a
jg 0x42b693
or bl, 0x20
xor al, bl
inc esi
jmp 0x42b677
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42b5dc

Function at 0x42bf94
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.0040b7ac
add esp, 0x800
pop ebx
ret

Function at 0x42c5ac
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.0040abdc
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040b6f8
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x42c5f1
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.0040ad74
jmp 0x42c60a
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040b884
push ebx
mov eax, dword [esi]
call fcn.0040b6f8
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret