joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x405c8e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
invalid
movsd dword es:[edi], dword [esi]
lodsb al, byte [esi]
stc
invalid
invalid

Function at 0x405cac
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
push ebx
stosd dword es:[edi], eax

Function at 0x405cc8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebx
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00404d92
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
invalid
invalid
invalid
cld

Function at 0x406aa4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jne 0x406b3e
and byte [ebp - 0x7ac], 0
cmp dword [ebp - 0x6fc], 4
jne 0x406be8
and byte [ebp - 0x7bc], 0
and byte [ebp - 0x7bb], 0
mov byte [ebp - 0x7ba], 2
and byte [ebp - 0x7b9], 0
mov byte [ebp - 0x7b8], 0xa1
mov byte [ebp - 0x7b7], 0xb2
mov byte [ebp - 0x7b6], 0xb1
mov byte [ebp - 0x7b5], 0xb8
mov byte [ebp - 0x7b4], 0xcf
invalid
test dword [ebp - 8], ecx
invalid
invalid
Function at 0x1008912
Capabilities:
Packed with generic packer

Disassembly:
adc word [eax + 0x100b800], 0x82c5
xchg ecx, edx
jmp 0x100897b
mov ch, al
not ecx
xchg edx, ecx
jge 0x1008854
lea ecx, [ebx + esi*8]
dec eax
jmp loc.01011ed5
cmp ecx, 0x479b47a3
adc edx, 0x8bd3ab0c
sub eax, 2
nop
cld
mov cl, 0xb1
jmp 0x1008871
cld
lea edx, [edx]
xchg dh, cl
test dh, dl
dec ecx
push 0x6954
clc
pop eax
mov ecx, 0x5ea26beb
mov ecx, 0xb66d34c6
not edx
jmp 0x1008854
not edx
not ecx
add edx, 0x242df4d2
add ch, ch
add edx, 0xfa54cd95
jmp 0x10088ac
Function at 0x404637
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov word [esi + 0x1a], bx
push 0x7e
push esi
call fcn.00403291
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], ebx
jmp 0x4046bd
cmp ebx, dword [esi]
jne 0x404663
cmp ebx, edi
jge 0x404663
mov edi, ebx
mov eax, ebx
sub eax, edi
je 0x404680
dec eax
je 0x40467b
dec eax
je 0x404676
add ebx, dword [ebp + 0xc]
mov bl, byte [ebx]
jmp 0x40468f
mov bl, byte [esi + 0x1a]
jmp 0x404699
mov bl, byte [esi + 0x1b]
jmp 0x404699
mov bl, byte [esi + 0x18]
test edi, edi
je 0x40468f
cmp edi, dword [ebp + 0x10]
jne 0x40468f
or bl, 8
movzx eax, bl
push eax
push esi
call fcn.00404610
movzx eax, bl
bt dword [0x405190], eax
jae 0x4046b0
push 0x7d
push esi
call fcn.00403291
xor bl, 0x20
movzx eax, bl
push eax
push esi
call fcn.00403291
inc dword [ebp - 8]
lea eax, [edi + 3]
cmp dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
jl 0x404659
push 0x7e
push esi
call fcn.00403291
push esi
call fcn.004031a1
movzx ecx, byte [esi + 0x18]
shr ecx, 4
and cl, 7
mov edi, ecx
lea eax, [esi + 0x18]
push eax
call fcn.00404a48
mov eax, dword [ebp + 0xc]
mov dword [esi + edi*4 + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + edi*4 + 0x3c], eax
lea eax, [ebx - 3]
pop edi
pop esi
pop ebx
leave
ret 0x10

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

Disassembly:
pushal
mov eax, section..retplne
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x364376f3
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..reloc
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x6ea805a8
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x10002770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x100027d1
mov eax, dword [ebp + 0x14]
shl dword [ebp + 0x10], 8
mov ecx, dword [ebp + 8]
push ebx
mov eax, dword [eax]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
push esi
mov cl, byte [ecx]
movsx edx, cl
sub cl, 0x61
cmp cl, 0x19
mov ecx, dword [ebp + 0x10]
lea esi, [edx - 0x20]
cmova esi, edx
mov edx, dword [ebp + 0xc]
add ecx, esi
add eax, ebx
xor eax, dword [edx + ecx*4]
mov ecx, ebx
shl ecx, 5
add ecx, 3
add ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 8]
inc ecx
add ebx, eax
mov dword [ebp + 8], ecx
sub edi, 1
jne 0x10002792
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
pop edi
pop ebp
ret 0x18
Function at 0x406c04
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.0040956c
test esi, esi
jne 0x406c3a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004096f4
jmp 0x406c58
call sub.KERNEL32.DLL_GetCommandLineW_1
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406ae8
mov edi, eax
test esi, esi
je 0x406c58
cmp dword [ebx], 0
je 0x406c58
dec esi
jmp 0x406c41
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406c8c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x677008], 0x8088405
inc edx
mov dword [ebx + 0x677008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x4082cc
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.004086b0
mov byte [esp], al
cmp byte [esp], 0
jne 0x408456
test edi, edi
je 0x408456
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408396
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408371
cmp edi, 0xffffffff
je 0x408331
call sub.KERNEL32.DLL_GetTickCount_1
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408331
mov byte [esp], 0
jmp 0x408456
mov ebx, dword [esi]
cmp ebx, 1
jg 0x408371
test ebx, ebx
jne 0x408363
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408363
call sub.KERNEL32.DLL_GetCurrentThreadId_1
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408456
lea eax, [esp + 0xc]
call fcn.00407fac
dec ebp
test ebp, ebp
jg 0x408316
cmp edi, 0xffffffff
je 0x408396
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408394
mov byte [esp], 0
jmp 0x408456
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4082da
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408396
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 4], eax
mov eax, esi
call fcn.004084c4
mov edx, eax
mov ebx, dword [0x6818fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4083fa
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4083f8
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4083fa
xor edi, edi
cmp byte [esp], 0
je 0x408420
mov ebx, dword [esi]
test bl, 1
jne 0x408436
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408400
mov byte [esp + 1], 1
jmp 0x408436
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408420
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4083ad
cmp byte [esp], 0
je 0x408456
call sub.KERNEL32.DLL_GetCurrentThreadId_1
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 0x4091fc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x68105c], 0
je 0x409263
cmp word [0x681348], 0xd7b2
jne 0x409225
cmp dword [0x681350], 0
jbe 0x409225
mov eax, 0x681344
call dword [0x681360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x409290
call fcn.00409de0
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x677032], 0
jne 0x40927f
push 0
push 0x6779ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40942c
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 [0x677034], 0
je 0x409457
mov edx, edi
mov eax, esi
call dword [0x677034]
mov ebx, eax
jmp 0x409468
mov eax, 8
call fcn.004067ec
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x68105d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4093f4
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreateThread_1
mov esi, eax
test esi, esi
jne 0x409498
mov eax, ebx
call fcn.00406808
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40bcc4
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 0x40be29
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040956c
cmp si, word [0x677a08]
jb 0x40bd5c
cmp si, word [0x677c08]
ja 0x40bd5c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bd5c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x677a08]
jae 0x40bd36
mov edi, ebx
dec edi
jmp 0x40bd57
cmp si, word [ebx*8 + 0x677a08]
jbe 0x40bd46
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bd57
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x677a0c]
call fcn.0040bbe4
jmp 0x40bd5c
cmp edi, dword [ebp - 8]
jae 0x40bd20
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40be0b
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0x40be0b
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a1e0
push dword [ebp - 0x160]
push 0x40be44
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a1e0
push dword [ebp - 0x164]
push 0x40be54
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a1e0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a418
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be30
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004095cc
ret
Function at 0x40bfdc
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 0x40c0e0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x683b8c
call sub.KERNEL32.DLL_EnterCriticalSection_1
cmp bx, word [0x683ba4]
jne 0x40c028
mov eax, esi
mov edx, 0x683ba6
mov ecx, 0x55
call fcn.0040a1e0
push 0x683b8c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
jmp 0x40c0ca
push 0x683b8c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
mov eax, esi
call fcn.0040956c
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0x40c097
cmp byte [0x683b88], 0
je 0x40c05c
mov edx, esi
mov eax, ebx
call fcn.0040bec0
jmp 0x40c097
mov edx, esi
mov eax, ebx
call fcn.0040bcc4
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage_1
cmp bx, ax
je 0x40c097
cmp dword [esi], 0
je 0x40c080
mov eax, esi
mov edx, 0x40c0f8
call fcn.0040a338
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage_1
lea edx, [ebp - 4]
call fcn.0040bcc4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a338
push 0x683b8c
call sub.KERNEL32.DLL_EnterCriticalSection_1
mov word [0x683ba4], bx
mov eax, dword [esi]
call fcn.0040a13c
mov ecx, eax
mov eax, 0x683ba6
mov edx, 0xaa
call fcn.0040bb44
push 0x683b8c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c0e7
lea eax, [ebp - 4]
call fcn.0040956c
ret
Function at 0x40c310
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409650
xor eax, eax
push ebp
push 0x40c535
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c350
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
jmp 0x40c36a
mov eax, dword [ebp - 4]
call fcn.0040a13c
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040bb44
cmp word [ebp - 0x21a], 0
je 0x40c51f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c544
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x40c439
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c544
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x40c439
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c580
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x40c439
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c580
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x40c439
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c5b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x40c439
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c5e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x40c51f
xor eax, eax
push ebp
push 0x40c518
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c120
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x40c4a8
mov eax, dword [ebp - 0x10]
call fcn.004067ec
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a1a4
jmp 0x40c4f3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c628
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x40c4f3
mov eax, dword [ebp - 0x10]
call fcn.004067ec
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c628
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a1a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c51f
cmp dword [ebp - 8], 0
je 0x40c50e
mov eax, dword [ebp - 8]
call fcn.00406808
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c53c
lea eax, [ebp - 4]
call fcn.0040956c
ret
Function at 0x40c824
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.00409650
xor eax, eax
push ebp
push 0x40c8e4
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.KERNEL32.DLL_GetUserDefaultUILanguage_1
movzx eax, ax
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a1e0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a390
mov eax, dword [ebx]
call fcn.0040c6ec
test al, al
jne 0x40c8c1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a1e0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a390
mov eax, dword [ebx]
call fcn.0040c6ec
test al, al
jne 0x40c8c1
mov eax, ebx
call fcn.0040956c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c8eb
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004095cc
lea eax, [ebp - 4]
call fcn.0040956c
ret

Function at 0x421f24
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x422052
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.KERNEL32.DLL_GetLogicalDriveStringsW
mov esi, eax
test esi, esi
jle 0x42202c
lea ebx, [ebp - 0x218]
lea eax, [ebx + 4]
mov word [eax], 0
push 0x104
lea eax, [ebp - 0x424]
push eax
push ebx
call sub.KERNEL32.DLL_QueryDosDeviceW
mov esi, eax
test esi, esi
jle 0x422015
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040a1e0
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a710
test eax, eax
jle 0x422015
mov eax, dword [ebp - 4]
test eax, eax
je 0x421fc9
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x421fd7
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x428]
push eax
mov ecx, edi
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.0040a500
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040a1a4
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040a390
jmp 0x42202c
add ebx, 2
cmp word [ebx], 0
jne 0x422012
add ebx, 4
test ebx, ebx
je 0x422026
cmp word [ebx], 0
jne 0x421f76
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422059
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.004095cc
lea eax, [ebp - 4]
call fcn.0040956c
ret
Function at 0x42214c
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x422389
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.0040956c
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetFileSize
mov ebx, eax
test ebx, ebx
jne 0x422223
cmp dword [ebp - 0x14], 0
jne 0x422223
xor edx, edx
mov eax, 6
call fcn.0042b050
test al, al
je 0x422223
push 2
push 0x104
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFinalPathNameByHandleW
test eax, eax
jbe 0x422223
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040a1e0
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.00421f24
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.0040994c
mov byte [ebp - 9], 1
jmp 0x42236b
test ebx, ebx
jne 0x422231
cmp dword [ebp - 0x14], 0
je 0x42231f
push 0
push 1
push 0
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3ee
je 0x42231f
xor eax, eax
push ebp
push 0x422318
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x422301
xor eax, eax
push ebp
push 0x4222fa
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
call sub.KERNEL32.DLL_GetCurrentProcess
lea ecx, [ebp - 0x224]
mov edx, dword [ebp - 0x18]
call fcn.00413ad0
test eax, eax
jbe 0x4222e3
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040a1e0
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.00421f24
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.0040994c
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422301
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42231f
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
cmp byte [ebp - 9], 0
jne 0x42236b
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.00422060
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.0040994c
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x42236b
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00421f24
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.0040994c
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422390
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.004095cc
ret