joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bc90
Capabilities:
Check os version
Create process on windows
Query environment variable
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x486850]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
xor bl, bl
call fcn.00444380
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
push 0x20019
push 0
push str.systemcurrentcontrolsetcontrol_safebootoption
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x41bda3
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push str.UseAlternateShell
push dword [ebp - 0x41c]
mov dword [ebp - 0x420], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x424], 0
je 0x41bda3
lea eax, [ebp - 0x41c]
push eax
push 0x20019
push 0
push str.systemcurrentcontrolsetcontrol_safeboot
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x41bda3
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push str.AlternateShell
push dword [ebp - 0x41c]
mov dword [ebp - 0x420], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41bd97
xor eax, eax
mov word [ebp - 0x210], ax
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ax, word [ebp - 0x210]
jne 0x41bde8
push str.system.ini
push 0x104
lea eax, [ebp - 0x210]
push eax
push str.explorer
push str.Shell
push str.boot
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x41bddf
cmp eax, 0x103
jb 0x41bde8
xor eax, eax
mov word [ebp - 0x210], ax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.explorer
lea eax, [ebp - 0x210]
push eax
call esi
test eax, eax
je 0x41be16
push str.explorer.exe
lea eax, [ebp - 0x210]
push eax
call esi
test eax, eax
jne 0x41be9a
push 0
push str.Progman
call dword [sym.imp.USER32.dll_FindWindowW]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x41be9a
push 0x104
lea eax, [ebp - 0x418]
push eax
push str._SystemRoot_Explorer.EXE
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x103
ja 0x41be9a
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 6
jae 0x41be7c
push 5
push 0
push 0
lea eax, [ebp - 0x418]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
setg bl
jmp 0x41be9a
lea ecx, [ebp - 0x418]
call fcn.0041bbe0
mov bl, al
test bl, bl
jne 0x41be9a
lea ecx, [ebp - 0x418]
call fcn.0041b620
mov bl, al
mov eax, dword [0x4893f8]
test eax, eax
je 0x41beb4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4893f8], 0
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret
Function at 0x41f790
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x486850]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x487b00], 0
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x20], 0
jne 0x41f8a0
lea ecx, [ebp - 0x1c]
call fcn.0042c0c0
mov edi, eax
cmp edi, 0x487af0
je 0x41f808
cmp dword [0x487b04], 8
jb 0x41f7e1
push dword [0x487af0]
call fcn.0043d3af
add esp, 4
xor eax, eax
push edi
mov ecx, 0x487af0
mov dword [0x487b04], 7
mov dword [0x487b00], 0
mov word [0x487af0], ax
call fcn.004022d0
cmp dword [ebp - 8], 8
jb 0x41f819
push dword [ebp - 0x1c]
call fcn.0043d3af
add esp, 4
cmp dword [0x487b04], 8
mov edx, dword [0x487af0]
jae 0x41f82d
mov edx, 0x487af0
mov ecx, str.AVGREPLIB_DLL
call fcn.00417450
test eax, eax
mov eax, dword [0x487af0]
js 0x41f869
cmp dword [0x487b04], 8
jae 0x41f84e
mov eax, 0x487af0
push 0
push 0x4000000
push 3
push 0
push 5
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x41f8a0
cmp dword [0x487b04], 8
jae 0x41f877
mov eax, 0x487af0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x487b04], 8
mov eax, dword [0x487af0]
mov dword [0x487b00], 0
jae 0x41f89b
mov eax, 0x487af0
xor ecx, ecx
mov word [eax], cx
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push 0x487af0
mov ecx, esi
mov word [esi], ax
call fcn.004024b0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret

Function at 0x41f8e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x486850]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str._Temp__
mov esi, ecx
mov dword [ebp - 0x210], 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x20c], ax
jne 0x41f937
xor ecx, ecx
jmp 0x41f94f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f940
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.00402900
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret
Function at 0x4236b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ad7b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x486850]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
lea ecx, [esi + 0x10]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
mov dword [ecx], 0
mov byte [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov byte [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov byte [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov byte [ecx + 0x34], 0
mov dword [ebp - 4], 0
push dword [esi]
mov edx, dword [esi + 8]
push dword [esi + 0xc]
push dword [esi + 4]
push dword [esi]
call fcn.004232d0
add esp, 0x10
test al, al
mov eax, esi
jne 0x423772
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4237d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ac9e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x486850]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
mov dword [edi], 0
push eax
push 0
lea ecx, [edi + 4]
mov dword [ebp - 0x10], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.00423c10
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [edi + 0x20], 0
push eax
push 0
lea ecx, [edi + 0x24]
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00423c10
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
je 0x4238f8
test dl, 0x10
jne 0x4238f8
mov eax, 1
jmp 0x4238fa
xor eax, eax
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [esi + 0x18]
call fcn.00423a90
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4252f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
sub edx, edi
sar edx, 1
xor ecx, ecx
mov esi, 0x811c9dc5
add edx, edx
je 0x425321
lea ebx, [ebx]
movzx eax, byte [ecx + edi]
xor esi, eax
inc ecx
imul esi, esi, 0x1000193
cmp ecx, edx
jb 0x425310
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x42b670
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
mov ebx, ecx
push str..pipezenreportingpipe
mov dword [ebp - 4], ebx
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x42b707
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
sub ecx, 2
je 0x42b6e0
sub ecx, 0xe5
jne 0x42b736
push 0xffffffffffffffff
push str..pipezenreportingpipe
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x42b6e4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
push 5
call ebx
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push str..pipezenreportingpipe
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x42b6b0
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
lea ecx, [ebp - 8]
push ecx
lea eax, [eax*2 + 2]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
neg esi
sbb esi, esi
neg esi
lea eax, [esi - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42c0c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c146
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x486850]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x218]
push eax
push 0x104
mov dword [ebp - 0x454], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x104
jg 0x42c185
test eax, eax
je 0x42c185
lea eax, [ebp - 0x420]
push eax
push 0
push str.TUMSI
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x42c15b
push str.TempFileName2
lea ecx, [ebp - 0x450]
call fcn.00402a00
mov edx, 0x80004005
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 1
call fcn.00418810
lea eax, [ebp - 0x420]
push eax
mov ecx, esi
call fcn.00402a00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret
push 0xd
xor eax, eax
push str.TempFileName1
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
call fcn.00402900
mov edx, 0x80004005
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0
call fcn.00418810
int3
Function at 0x42c1d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c1c9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x486850]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov byte [ebp - 0xd], 0
mov word [edi], ax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 1
cmp dword [eax + 0x14], 8
jb 0x42c230
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42c2e4
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x14], 8
jb 0x42c25c
mov eax, dword [esi]
jmp 0x42c25e
mov eax, esi
lea ecx, [ebp + 8]
push ecx
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42c2c1
cmp dword [ebp - 0x18], 1
jne 0x42c2c1
push dword [ebp + 8]
call fcn.0043dd90
add esp, 4
cmp dword [esi + 0x14], 8
mov ebx, eax
jb 0x42c293
mov esi, dword [esi]
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push 0
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42c2b8
push ebx
mov ecx, edi
call fcn.004019b0
mov byte [ebp - 0xd], 1
push ebx
call fcn.0043dd0d
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0xd], 0
je 0x42c2e4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp + 8], str.Registry_Value_not_found
call fcn.0043f114
push 0x47fccc
lea eax, [ebp - 0x2c]
push eax
call fcn.00440c6b
int3

Function at 0x42c310
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor bl, bl
cmp dword [edx + 0x14], 8
mov dword [ebp - 8], 0
jb 0x42c328
mov edx, dword [edx]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42c38e
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], 4
cmp dword [eax + 0x14], 8
jb 0x42c355
mov eax, dword [eax]
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42c379
cmp dword [ebp - 0x10], 4
jne 0x42c379
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
pop ebx
je 0x42c38e
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], str.Registry_Value_not_found
call fcn.0043f114
push 0x47fccc
lea eax, [ebp - 0x1c]
push eax
call fcn.00440c6b
int3
Function at 0x42c460
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c0d2
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x486850]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2b4], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.0042ca80
mov dword [ebx], eax
mov dword [ebp - 4], 0
mov edx, edi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x2b0], 1
call fcn.0042beb0
push esi
mov edx, eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 1
call fcn.00401e00
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x42c4f8
mov eax, dword [eax]
lea ecx, [ebp - 0x2ac]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp dword [ebp - 0x30], 8
mov esi, eax
jb 0x42c519
push dword [ebp - 0x44]
call fcn.0043d3af
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x48], 8
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x42c541
push dword [ebp - 0x5c]
call fcn.0043d3af
add esp, 4
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
cmp esi, 0xffffffff
je 0x42c605
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x42c570
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [ebp - 0x280], ax
je 0x42c5a5
lea eax, [ebp - 0x280]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42c596
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402900
mov dword [ebp - 4], 2
movzx eax, byte [0x489571]
push eax
lea eax, [ebp - 0x2c]
push eax
push ecx
lea eax, [ebp - 0x2bc]
push eax
mov ecx, ebx
call fcn.0042cab0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x42c5ec
push dword [ebp - 0x2c]
call fcn.0043d3af
add esp, 4
lea eax, [ebp - 0x2ac]
push eax
push esi
call edi
test eax, eax
jne 0x42c570
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret
Function at 0x42e1f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x486850]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
xor bl, bl
call fcn.00444380
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42e26f
mov eax, dword [ebp - 0x114]
cmp eax, 6
jne 0x42e25c
cmp dword [ebp - 0x110], 2
jb 0x42e25e
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret
ja 0x42e24b
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret
Function at 0x43b360
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c2f8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x486850]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x4c], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
push 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
push eax
push 0x59
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43b459
cmp word [ebp - 0x30], 0
jne 0x43b3d5
xor ecx, ecx
jmp 0x43b3ef
lea ecx, [ebp - 0x30]
lea edx, [ecx + 2]
jmp 0x43b3e0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43b3e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x48]
call fcn.00402900
push 0x10
lea eax, [ebp - 0x30]
push eax
push 0x5a
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43b459
push 1
push str._0_:
lea ecx, [ebp - 0x48]
call fcn.00401b20
cmp word [ebp - 0x30], 0
jne 0x43b429
xor ecx, ecx
jmp 0x43b43f
lea ecx, [ebp - 0x30]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43b430
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401b20
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
call fcn.00402330
jmp 0x43b479
xor eax, eax
push eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push 0x468378
mov ecx, esi
mov word [esi], ax
call fcn.00402900
cmp dword [ebp - 0x34], 8
jb 0x43b48a
push dword [ebp - 0x48]
call fcn.0043d3af
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret
Function at 0x43c380
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x486850]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.USER32.dll_GetWindowDC]
push esi
mov ebx, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043c839
add esp, 4
mov esi, eax
push edi
push esi
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x420
lea eax, [ebp - 0x14]
push eax
lea eax, [edi - 1]
push eax
push esi
push ebx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x3e7
mov dword [ebp - 8], 0x3e7
call dword [sym.imp.USER32.dll_DrawTextW]
push ebx
mov ebx, dword [ebp - 0x18]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 6
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret
Function at 0x44f1b2
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x486850]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004445e0
mov dword [ebp - 0x14], eax
cmp dword [0x4893a8], edi
jne 0x44f2a3
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x44f230
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x44f383
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x44f383
push 0x46732c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44f383
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4893a8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4893ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4893b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4893b8], eax
test eax, eax
je 0x44f2a0
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4893b4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x44f2c8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x44f2bb
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x44f2dd
push 4
pop eax
jmp 0x44f385
cmp dword [ebp - 0x14], edi
je 0x44f2dd
push dword [0x4893a8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x44f2c2
mov eax, dword [0x4893b4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x44f33b
cmp dword [0x4893b8], esi
je 0x44f33b
push eax
call ebx
push dword [0x4893b8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x44f33b
test eax, eax
je 0x44f33b
call ecx
test eax, eax
je 0x44f330
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x44f330
test byte [ebp - 8], 1
jne 0x44f33b
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x44f36b
mov eax, dword [0x4893ac]
cmp eax, esi
je 0x44f368
push eax
call ebx
test eax, eax
je 0x44f368
call eax
mov edi, eax
test edi, edi
je 0x44f368
mov eax, dword [0x4893b0]
cmp eax, esi
je 0x44f368
push eax
call ebx
test eax, eax
je 0x44f368
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4893a8]
call ebx
test eax, eax
je 0x44f383
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x44f385
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043d3b4
leave
ret
Function at 0x452b47
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00445c0e
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x452b7f
xor eax, eax
jmp 0x452bab
cmp esi, dword [ebp - 4]
je 0x452ba8
cmp dword [ebp + 0xc], 0
je 0x452ba8
push dword [edi + 0x9c]
call fcn.00452755
push dword [edi + 0x9c]
mov esi, eax
call fcn.00444896
pop ecx
pop ecx
cmp esi, eax
je 0x452b7b
xor eax, eax
inc eax
pop edi
pop esi
leave
ret