joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x715c19ce
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x664d64
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x14423d0e
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
mov ecx, 0x2af7446f
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x431084
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
mov ebx, dword [eax]
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
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x407544
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.0040a25c
test esi, esi
jne 0x40757a
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.0040a3f4
jmp 0x407598
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407488
mov edi, eax
test esi, esi
je 0x407598
cmp dword [ebx], 0
je 0x407598
dec esi
jmp 0x407581
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408e94
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.00409354
mov byte [esp], al
cmp byte [esp], 0
jne 0x40901d
test edi, edi
je 0x40901d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408f5d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408f38
cmp edi, 0xffffffff
je 0x408ef9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408ef9
mov byte [esp], 0
jmp 0x40901d
cmp dword [esi], 1
jg 0x408f38
cmp dword [esi], 0
jne 0x408f2a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408f2a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40901d
lea eax, [esp + 0xc]
call fcn.00408b2c
dec ebp
test ebp, ebp
jg 0x408ede
cmp edi, 0xffffffff
je 0x408f5d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408f5b
mov byte [esp], 0
jmp 0x40901d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408ea2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408f5d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409098
mov edx, eax
mov ebx, dword [0x5f3900]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408fc1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408fbf
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408fc1
xor edi, edi
cmp byte [esp], 0
je 0x408fe7
mov ebx, dword [esi]
test bl, 1
jne 0x408ffd
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408fc7
mov byte [esp + 1], 1
jmp 0x408ffd
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408fe7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408f74
cmp byte [esp], 0
je 0x40901d
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 0x409ef4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5f305c], 0
je 0x409f5b
cmp word [0x5f334c], 0xd7b2
jne 0x409f1d
cmp dword [0x5f3354], 0
jbe 0x409f1d
mov eax, 0x5f3348
call dword [0x5f3364]
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, 0x409f88
call fcn.0040aa70
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5ed036], 0
jne 0x409f77
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a11c
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 [0x5ed038], 0
je 0x40a147
mov edx, edi
mov eax, esi
call dword [0x5ed038]
mov ebx, eax
jmp 0x40a158
mov eax, 8
call fcn.00406e3c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5f305d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a0e4
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 0x40a188
mov eax, ebx
call fcn.00406e58
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40dd9c
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 0x40df03
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a25c
cmp si, word [0x5eda18]
jb 0x40de34
cmp si, word [0x5edc18]
ja 0x40de34
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40de34
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5eda18]
jae 0x40de0e
mov edi, ebx
dec edi
jmp 0x40de2f
cmp si, word [ebx*8 + 0x5eda18]
jbe 0x40de1e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40de2f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5eda1c]
call fcn.0040dcbc
jmp 0x40de34
cmp edi, dword [ebp - 8]
jae 0x40ddf8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40dee3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dee3
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.0040ad58
push dword [ebp - 0x160]
push 0x40df20
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040ad58
push dword [ebp - 0x164]
push 0x40df30
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ad58
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040af90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40df0a
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a2bc
pop eax
jmp eax
Function at 0x40e0b8
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 0x40e1be
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5f5c18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5f5c30]
jne 0x40e104
mov eax, esi
mov edx, 0x5f5c32
mov ecx, 0x55
call fcn.0040ad58
push 0x5f5c18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e1a6
push 0x5f5c18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a25c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e173
cmp byte [0x5f5c14], 0
je 0x40e138
mov edx, esi
mov eax, ebx
call fcn.0040df9c
jmp 0x40e173
mov edx, esi
mov eax, ebx
call fcn.0040dd9c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40e173
cmp dword [esi], 0
je 0x40e15c
mov eax, esi
mov edx, 0x40e1d8
call fcn.0040aeb0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040dd9c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040aeb0
push 0x5f5c18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5f5c30], bx
mov eax, dword [esi]
call fcn.0040acbc
mov ecx, eax
mov eax, 0x5f5c32
mov edx, 0xaa
call fcn.0040dc1c
push 0x5f5c18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e1c5
lea eax, [ebp - 4]
call fcn.0040a25c
pop eax
jmp eax
Function at 0x40e400
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.0040a350
xor eax, eax
push ebp
push 0x40e628
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e446
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e460
mov eax, dword [ebp - 4]
call fcn.0040acbc
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040dc1c
cmp word [ebp - 0x21e], 0
je 0x40e60b
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e638
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e52f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e638
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e52f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e674
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e52f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e674
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e52f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e6a8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e52f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e6dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e60b
xor eax, eax
push ebp
push 0x40e604
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040e200
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 0x40e592
mov eax, dword [ebp - 0x14]
call fcn.00406e3c
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.0040ad1c
jmp 0x40e5dd
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e71c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e5dd
mov eax, dword [ebp - 0x14]
call fcn.00406e3c
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e71c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ad1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e60b
cmp dword [ebp - 0xc], 0
je 0x40e5f8
mov eax, dword [ebp - 0xc]
call fcn.00406e58
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 0x40e62f
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a2bc
pop eax
jmp eax
Function at 0x40e938
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.0040a350
xor eax, eax
push ebp
push 0x40e9fa
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.0040ad58
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040af08
mov eax, dword [ebx]
call fcn.0040e7e4
test al, al
jne 0x40e9d5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040ad58
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040af08
mov eax, dword [ebx]
call fcn.0040e7e4
test al, al
jne 0x40e9d5
mov eax, ebx
call fcn.0040a25c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ea01
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a2bc
lea eax, [ebp - 4]
call fcn.0040a25c
pop eax
jmp eax

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

Disassembly:
cmp eax, edx
je 0x424ded
test eax, edx
je 0x424df0
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x424dab
movzx eax, word [eax]
sub eax, ecx
jmp 0x424dd2
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 0x424dd3
add ecx, 4
js 0x424dc3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x424dd0
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x424dd2
xor eax, eax
ret
test eax, eax
je 0x424dfc
test edx, edx
jne 0x424d9c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040acbc
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x426082
test esi, 0x400
jne 0x426019
test esi, 0x10
setne bl
jmp 0x426082
cmp byte [esp], 0
je 0x42604d
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x426082
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x426082
test esi, 0x10
je 0x426059
mov bl, 1
jmp 0x426082
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x426080
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x426082
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42af9c
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 0x42afd5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a3f4
jmp 0x42afde
mov eax, ebx
mov edx, esi
call fcn.0040a64c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42afe8
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 0x42b00c
movzx eax, word [esp]
jmp 0x42b00e
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42cd04
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 0x42ce2b
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042cb0c
mov esi, eax
mov eax, dword [0x5f294c]
cmp byte [eax], 0
je 0x42cdd1
mov eax, dword [0x5f25f4]
call fcn.00407bfc
call fcn.00406fb0
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 [0x42ccd4]
call fcn.0040d1c0
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 0x42ce44
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42ce0d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5f2568]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5f663c]
call fcn.0040d8c0
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 0x42ce32
lea eax, [ebp - 4]
mov edx, dword [0x42ccd4]
call fcn.0040d2e4
pop eax
jmp eax
Function at 0x42e390
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 0x42e3d3
mov eax, dword [ebp - 0x10c]
mov dword [0x5f68f8], eax
mov eax, 0x5f68fc
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040ad58
mov eax, 0x5f6900
call fcn.0040a25c
xor eax, eax
mov dword [0x5f6904], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x5f67bc], 0xa
jl 0x42e529
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x42e534
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x42e529
xor eax, eax
push ebp
push 0x42e522
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42e590
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42e482
cmp dword [ebp - 8], 2
jle 0x42e482
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42e455
adc edx, 0
mov eax, 0x5f6900
call fcn.0040ae30
lea eax, [ebp - 8]
push eax
mov eax, dword [0x5f6900]
call fcn.0040acbc
push eax
push 0
push 0
push 0x42e590
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x42e4dc
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42e5b0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42e4dc
cmp dword [ebp - 8], 2
jle 0x42e4dc
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42e4b1
adc edx, 0
mov eax, 0x5f6900
call fcn.0040ae30
lea eax, [ebp - 8]
push eax
mov eax, dword [0x5f6900]
call fcn.0040acbc
push eax
push 0
push 0
push 0x42e5b0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x5f6904
push 0
push 0
push 0x42e5c4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x42e509
xor eax, eax
mov dword [0x5f6904], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e529
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x5ef740], 1
mov esp, ebp
pop ebp
ret
Function at 0x42e66c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42e746
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a694
lea eax, [ebp - 4]
call fcn.0040a7b0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040acbc
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42e72e
mov eax, ebx
call fcn.00406e3c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42e727
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040acbc
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42e70f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42e758
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42e70f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e72e
mov eax, dword [ebp - 0x10]
call fcn.00406e58
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e74d
lea eax, [ebp - 4]
call fcn.0040a25c
pop eax
jmp eax

Function at 0x42f6b0
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.0040a73c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004105cc
mov edi, eax
cmp edi, 0x104
jbe 0x42f65b
mov eax, edi
add eax, eax
call fcn.00406e3c
mov esi, eax
jmp 0x42f65d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004105cc
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42f696
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 0x42f680
mov eax, esp
cmp esi, eax
je 0x42f6a3
mov eax, esi
call fcn.00406e58
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 0x42f6dc
cmp bl, 0
je 0x42f6d8
cmp bl, 0x41
jl 0x42f6d3
cmp bl, 0x5a
jg 0x42f6d3
or bl, 0x20
xor al, bl
inc esi
jmp 0x42f6b7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42f61c

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