joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f78df2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x4f78e14
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x4f78e14
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x4f78e14
ret
cmp word [ebx + 4], 0x14c
jne 0x4f78e14
test word [ebx + 0x16], 2
je 0x4f78e14
test word [ebx + 0x16], 0x100
je 0x4f78e14
cmp word [ebx + 0x18], 0x10b
jne 0x4f78e14
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x4f78e14
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x4f78ea0
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x4f78e34
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.04f5fd7f
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x4f78e14
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x4f78ea0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x4f78e14
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x4f78e14
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x4f78e14
ret
cmp word [ebx + 4], 0x14c
jne 0x4f78e14
test word [ebx + 0x16], 2
je 0x4f78e14
test word [ebx + 0x16], 0x100
je 0x4f78e14
cmp word [ebx + 0x18], 0x10b
jne 0x4f78e14
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x4f78e14
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x4f78ea0
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x4f78e34
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.04f5fd7f
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x4f78e14
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x4f78f57
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x4f78fb0
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x4f78f57
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x4f78f66
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x537ec09
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x4f78fb7
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.04f5fe2d
cmp eax, dword [ebp + 0xc]
pop eax
je 0x4f79056
add edi, 4
add eax, 2
dec ecx
jne 0x4f78f9c
call 0x4f79003
loope 0x4f78ff9
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x4f79053
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x4f79064
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x4f79017
cmp eax, ecx
ja 0x4f79017
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x4f790a1
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x4f79097
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.04f6030c
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4f78f66
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x4f78fb0
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x4f78f57
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x4f78f66
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x537ec09
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x4f78fb7
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.04f5fe2d
cmp eax, dword [ebp + 0xc]
pop eax
je 0x4f79056
add edi, 4
add eax, 2
dec ecx
jne 0x4f78f9c
call 0x4f79003
loope 0x4f78ff9
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x4f79053
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x4f79064
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x4f79017
cmp eax, ecx
ja 0x4f79017
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x4f790a1
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x4f79097
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.04f6030c
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x404840
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x404882
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryW
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryW
test bl, bl
je 0x4048a2
lea eax, [esp + 0x212]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00408108
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x404af8
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.004070a4
test esi, esi
jne 0x404b2e
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.0040722c
jmp 0x404b4c
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004049dc
mov edi, eax
test esi, esi
je 0x404b4c
cmp dword [ebx], 0
je 0x404b4c
dec esi
jmp 0x404b35
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x692008], 0x8088405
inc edx
mov dword [ebx + 0x692008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x405d04
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004060fc
mov byte [esp], al
cmp byte [esp], 0
jne 0x405e90
test edi, edi
je 0x405e90
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405dc7
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405da2
cmp edi, 0xffffffff
je 0x405d63
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405d63
mov byte [esp], 0
jmp 0x405e90
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405da2
test ebx, ebx
jne 0x405d98
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004028f4
test eax, eax
jne 0x405d98
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405e90
call 0x406220
dec ebp
test ebp, ebp
jg 0x405d48
cmp edi, 0xffffffff
je 0x405dc7
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405dc5
mov byte [esp], 0
jmp 0x405e90
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405d12
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004028f4
cmp ebx, eax
jne 0x405dc7
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405f00
mov edx, eax
mov ebx, dword [0x6a88f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405e2e
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405e2c
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405e2e
xor edi, edi
cmp byte [esp], 0
je 0x405e57
mov ebx, dword [esi]
test bl, 1
jne 0x405e70
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004028f4
cmp ebx, eax
jne 0x405e34
mov byte [esp + 1], 1
jmp 0x405e70
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004028f4
cmp ebx, eax
jne 0x405e57
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405de1
cmp byte [esp], 0
je 0x405e90
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x406d00
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x6a8058], 0
je 0x406d67
cmp word [0x6a8344], 0xd7b2
jne 0x406d29
cmp dword [0x6a834c], 0
jbe 0x406d29
mov eax, 0x6a8340
call dword [0x6a835c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push 0x6929c8
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, 0x406d94
call fcn.00407b04
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x692032], 0
jne 0x406d83
push 0
push 0x6929c2
push 0x6929c8
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406f60
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 [0x692034], 0
je 0x406f8b
mov edx, edi
mov eax, esi
call dword [0x692034]
mov ebx, eax
jmp 0x406f9c
mov eax, 8
call fcn.0040469c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x6a8059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406f28
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 0x406fd1
mov edx, 8
mov eax, ebx
call fcn.004046b8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x409d1c
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 0x409e81
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004070a4
cmp si, word [0x692a00]
jb 0x409db4
cmp si, word [0x692c00]
ja 0x409db4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409db4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x692a00]
jae 0x409d8e
mov edi, ebx
dec edi
jmp 0x409daf
cmp si, word [ebx*8 + 0x692a00]
jbe 0x409d9e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x409daf
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x692a04]
call fcn.00409c2c
jmp 0x409db4
cmp edi, dword [ebp - 8]
jae 0x409d78
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x409e63
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x409e63
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.00408108
push dword [ebp - 0x160]
push 0x409e9c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00408108
push dword [ebp - 0x164]
push 0x409eac
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00408108
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00408340
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409e88
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407104
ret
Function at 0x40a034
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 0x40a137
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x6aab88
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x6aaba0]
jne 0x40a080
mov eax, esi
mov edx, 0x6aaba2
mov ecx, 0x55
call fcn.00408108
push 0x6aab88
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x40a121
push 0x6aab88
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.004070a4
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x40a0ef
cmp byte [0x6aab84], 0
je 0x40a0b4
mov edx, esi
mov eax, ebx
call fcn.00409f18
jmp 0x40a0ef
mov edx, esi
mov eax, ebx
call fcn.00409d1c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40a0ef
cmp dword [esi], 0
je 0x40a0d8
mov eax, esi
mov edx, 0x40a150
call fcn.00408260
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409d1c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00408260
push 0x6aab88
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x6aaba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040804c
push eax
push 0x6aaba2
call sub.KERNEL32.DLL_lstrcpynW
push 0x6aab88
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a13e
lea eax, [ebp - 4]
call fcn.004070a4
ret
Function at 0x40a36c
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.00407188
xor eax, eax
push ebp
push 0x40a591
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40a3ac
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x40a3c6
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040804c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40a57b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a5a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a495
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a5a0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a495
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a5dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a495
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a5dc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a495
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a610
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a495
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a644
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40a57b
xor eax, eax
push ebp
push 0x40a574
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040a178
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
test eax, eax
jne 0x40a504
mov eax, dword [ebp - 0x10]
call fcn.0040469c
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
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004080b4
jmp 0x40a54f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40a684
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a54f
mov eax, dword [ebp - 0x10]
call fcn.0040469c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40a684
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004080b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a57b
cmp dword [ebp - 8], 0
je 0x40a56a
mov eax, dword [ebp - 8]
call fcn.004046b8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a598
lea eax, [ebp - 4]
call fcn.004070a4
ret
Function at 0x40a874
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.00407188
xor eax, eax
push ebp
push 0x40a934
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.00408108
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004082b8
mov eax, dword [ebx]
call fcn.0040a73c
test al, al
jne 0x40a911
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00408108
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004082b8
mov eax, dword [ebx]
call fcn.0040a73c
test al, al
jne 0x40a911
mov eax, ebx
call fcn.004070a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a93b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407104
lea eax, [ebp - 4]
call fcn.004070a4
ret

Function at 0x420444
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 0x42056d
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 0x420547
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 0x420530
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.00408108
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004085d4
test eax, eax
jle 0x420530
mov eax, dword [ebp - 4]
test eax, eax
je 0x4204e4
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x4204f2
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.00408428
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.004080b4
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.004082b8
jmp 0x420547
add ebx, 2
cmp word [ebx], 0
jne 0x42052d
add ebx, 4
test ebx, ebx
je 0x420541
cmp word [ebx], 0
jne 0x420496
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420574
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00407104
lea eax, [ebp - 4]
call fcn.004070a4
ret
Function at 0x420660
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 0x42089d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.004070a4
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 0x420737
cmp dword [ebp - 0x14], 0
jne 0x420737
xor edx, edx
mov eax, 6
call fcn.00429408
test al, al
je 0x420737
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 0x420737
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.00408108
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.00420444
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.00407484
mov byte [ebp - 9], 1
jmp 0x42087f
test ebx, ebx
jne 0x420745
cmp dword [ebp - 0x14], 0
je 0x420833
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 0x420833
xor eax, eax
push ebp
push 0x42082c
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 0x420815
xor eax, eax
push ebp
push 0x42080e
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.00411688
test eax, eax
jbe 0x4207f7
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.00408108
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.00420444
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.00407484
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420815
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 0x420833
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
ret
cmp byte [ebp - 9], 0
jne 0x42087f
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.0042057c
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.00407484
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x42087f
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00420444
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.00407484
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4208a4
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.00407104
ret