joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004f870
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ca97e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0x18
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.100a19fe
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [edi], eax
lea esi, [edi + 8]
mov dword [ebp - 4], 0
push 0x18
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.100a19fe
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x10]
mov byte [ebp - 4], 1
push 0x18
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.100a19fe
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x18]
mov byte [ebp - 4], 2
push 0x18
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.100a19fe
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor eax, eax
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
lea esi, [edi + 0x9c]
mov dword [edi + 0x5c], 1
mov dword [edi + 0x60], 1
mov dword [edi + 0x64], eax
mov dword [edi + 0x68], eax
mov dword [edi + 0x6c], eax
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], eax
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], eax
mov dword [edi + 0x80], eax
mov dword [edi + 0x84], eax
mov dword [edi + 0x88], 0x3f800000
mov dword [edi + 0x8c], 0x3f800000
mov dword [edi + 0x90], 0x3f800000
mov dword [edi + 0x94], 0x3f800000
mov dword [edi + 0x98], eax
push 0x2c
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.100a19fe
add esp, 0x14
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x34], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi + 0x44], 0xffffffff
mov dword [edi + 0x40], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x30], 0
call fcn.1008cd00
mov ecx, dword [ebp - 0xc]
mov eax, edi
mov word [edi + 0x38], 1
mov dword [edi + 0x2c], 0
mov dword [edi + 0x98], 0
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10050510
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push 0x20
lea eax, [ebp - 0x34]
mov dword [ebp - 0x14], 7
push eax
push str.SteamGameId
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x10050594
cmp eax, 0x20
jae 0x10050594
push 0xa
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.100b1602
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], edx
push 0x20
push eax
push str.SteamOverlayGameId
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x10050583
cmp eax, 0x20
jae 0x10050583
push 0xa
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.100b1602
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov ecx, dword [0x10118890]
lea edx, [ebp - 0x14]
push 0x14
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x10051ef0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
lea edx, [esi - 2]
test edx, edx
je 0x10051f8d
mov esi, dword [ebp + 0xc]
dec edx
mov eax, 0xaaaaaaab
add esi, 2
mul edx
mov edi, edx
shr edi, 1
inc edi
lea ebx, [edi + edi*2]
movzx eax, byte [esi - 2]
lea esi, [esi + 3]
shr eax, 2
movzx eax, byte [eax + 0x100cf850]
mov byte [ecx], al
movsx edx, byte [esi - 5]
movzx eax, byte [esi - 4]
and edx, 3
shr eax, 4
shl edx, 4
or edx, eax
movzx eax, byte [edx + 0x100cf850]
mov byte [ecx + 1], al
movsx eax, byte [esi - 4]
movzx edx, byte [esi - 3]
and eax, 0xf
shl eax, 2
shr edx, 6
or edx, eax
movzx eax, byte [edx + 0x100cf850]
mov byte [ecx + 2], al
movsx eax, byte [esi - 3]
and eax, 0x3f
movzx eax, byte [eax + 0x100cf850]
mov byte [ecx + 3], al
add ecx, 4
sub edi, 1
jne 0x10051f21
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
cmp ebx, esi
jae 0x10051ff0
mov edx, dword [ebp + 0xc]
movzx eax, byte [ebx + edx]
shr eax, 2
mov al, byte [eax + 0x100cf850]
mov byte [ecx], al
lea eax, [esi - 1]
movsx edx, byte [ebx + edx]
and edx, 3
shl edx, 4
cmp ebx, eax
jne 0x10051fc1
mov al, byte [edx + 0x100cf850]
mov dl, 0x3d
mov byte [ecx + 1], al
jmp 0x10051fe6
mov esi, dword [ebp + 0xc]
movzx eax, byte [ebx + esi + 1]
shr eax, 4
or eax, edx
mov al, byte [eax + 0x100cf850]
mov byte [ecx + 1], al
movsx eax, byte [ebx + esi + 1]
and eax, 0xf
mov dl, byte [eax*4 + 0x100cf850]
mov byte [ecx + 2], dl
mov byte [ecx + 3], 0x3d
add ecx, 4
mov byte [ecx], 0
sub ecx, edi
pop edi
pop esi
pop ebx
lea eax, [ecx + 1]
pop ebp
ret
Function at 0x10052000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.SoftwareValveSteam
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1005202b
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], 0
lea eax, [edi + edi]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 0
push str.InstallPath
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1005207a
cmp esi, 0xea
je 0x1005207a
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
lea ecx, [edi + 2]
lea edx, [eax + eax]
shr eax, 1
cmp edx, ecx
jb 0x10052091
pop edi
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov word [ebx + eax*2 - 2], cx
mov eax, dword [ebp - 4]
pop edi
pop esi
shr eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10065ab0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100cb47d
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [edi], ebx
test ebx, ebx
je 0x10065c35
mov ecx, dword [0x1012cbb4]
mov word [edi + 0x10], 0
mov eax, dword [ebx + 0x1c]
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0x30]
mov dword [edi + 0xc], eax
mov eax, dword fs:[0x2c]
push esi
mov esi, dword [eax + ecx*4]
mov eax, dword [0x10107660]
cmp eax, dword [esi + 0x408]
jg 0x10065c49
mov eax, dword [0x10107668]
cmp eax, dword [esi + 0x408]
jg 0x10065c8d
cmp byte [0x10107664], 0
mov word [edi + 0x10], 0
je 0x10065b59
push dword [ebx + 0x30]
push str.Streaming_disabling_vsync__D3DPRESENT_INTERVAL_IMMEDIATE____old_value__x__n
call fcn.10081660
mov eax, dword [ebx + 0x30]
add esp, 8
shr eax, 0x1f
not al
and al, 1
mov byte [edi + 0x11], al
mov dword [ebx + 0x30], SysReAllocString
cmp byte [0x1010765c], 0
je 0x10065c20
push str.SteamStreamingForceWindowedD3D9
call fcn.100a70e3
add esp, 4
test eax, eax
je 0x10065c20
cmp byte [eax], 0x31
jne 0x10065c20
cmp dword [ebx + 0x1c], 0
jne 0x10065c20
push str.Switching_game_to_windowed_mode_for_accelerated_capture_n
call fcn.10081660
mov eax, dword [ebp + 8]
add esp, 4
mov dword [ebx + 0x1c], 1
mov dword [ebx + 0x2c], 0
test eax, eax
jne 0x10065bba
mov eax, dword [ebx + 0x18]
mov dword [ebp + 8], eax
test eax, eax
je 0x10065c1c
mov esi, dword [sym.imp.USER32.dll_SetWindowLongW]
push SysReAllocString
push 0xfffffffffffffff0
push eax
call esi
push 0
push 0xffffffffffffffec
push dword [ebp + 8]
call esi
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 4]
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push SysReAllocString
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push 0x40
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov byte [edi + 0x10], 1
pop esi
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0x10107660
call fcn.100a1b6f
add esp, 4
cmp dword [0x10107660], 0xffffffff
jne 0x10065b15
mov dword [ebp - 4], 0
call fcn.10074950
push 0x10107660
mov byte [0x1010765c], al
mov dword [ebp - 4], 0xffffffff
call fcn.100a1b25
add esp, 4
jmp 0x10065b15
push 0x10107668
call fcn.100a1b6f
add esp, 4
cmp dword [0x10107668], 0xffffffff
jne 0x10065b26
mov dword [ebp - 4], 1
call fcn.10074970
push 0x10107668
mov byte [0x10107664], al
mov dword [ebp - 4], 0xffffffff
call fcn.100a1b25
add esp, 4
jmp 0x10065b26
Function at 0x10069650
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100cb5ad
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [edi], ebx
test ebx, ebx
je 0x100697d5
mov ecx, dword [0x1012cbb4]
mov word [edi + 0x10], 0
mov eax, dword [ebx + 0x20]
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x30]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0x34]
mov dword [edi + 0xc], eax
mov eax, dword fs:[0x2c]
push esi
mov esi, dword [eax + ecx*4]
mov eax, dword [0x101076d0]
cmp eax, dword [esi + 0x408]
jg 0x100697e9
mov eax, dword [0x101076d8]
cmp eax, dword [esi + 0x408]
jg 0x1006982d
cmp byte [0x101076d4], 0
mov word [edi + 0x10], 0
je 0x100696f9
push dword [ebx + 0x34]
push str.Streaming_disabling_vsync__D3DPRESENT_INTERVAL_IMMEDIATE____old_value__x__n
call fcn.10081660
mov eax, dword [ebx + 0x34]
add esp, 8
shr eax, 0x1f
not al
and al, 1
mov byte [edi + 0x11], al
mov dword [ebx + 0x34], SysReAllocString
cmp byte [0x101076cc], 0
je 0x100697c0
push str.SteamStreamingForceWindowedD3D9
call fcn.100a70e3
add esp, 4
test eax, eax
je 0x100697c0
cmp byte [eax], 0x31
jne 0x100697c0
cmp dword [ebx + 0x20], 0
jne 0x100697c0
push str.Switching_game_to_windowed_mode_for_accelerated_capture_n
call fcn.10081660
mov eax, dword [ebp + 8]
add esp, 4
mov dword [ebx + 0x20], 1
mov dword [ebx + 0x30], 0
test eax, eax
jne 0x1006975a
mov eax, dword [ebx + 0x1c]
mov dword [ebp + 8], eax
test eax, eax
je 0x100697bc
mov esi, dword [sym.imp.USER32.dll_SetWindowLongW]
push SysReAllocString
push 0xfffffffffffffff0
push eax
call esi
push 0
push 0xffffffffffffffec
push dword [ebp + 8]
call esi
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 4]
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push SysReAllocString
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push 0x40
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov byte [edi + 0x10], 1
pop esi
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0x101076d0
call fcn.100a1b6f
add esp, 4
cmp dword [0x101076d0], 0xffffffff
jne 0x100696b5
mov dword [ebp - 4], 0
call fcn.10074950
push 0x101076d0
mov byte [0x101076cc], al
mov dword [ebp - 4], 0xffffffff
call fcn.100a1b25
add esp, 4
jmp 0x100696b5
push 0x101076d8
call fcn.100a1b6f
add esp, 4
cmp dword [0x101076d8], 0xffffffff
jne 0x100696c6
mov dword [ebp - 4], 1
call fcn.10074970
push 0x101076d8
mov byte [0x101076d4], al
mov dword [ebp - 4], 0xffffffff
call fcn.100a1b25
add esp, 4
jmp 0x100696c6
Function at 0x1006e130
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x10107b38]
sub esp, 0x24
test eax, eax
jne 0x1006e164
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
push eax
push str.System_page_size:__u_n
mov dword [0x10107b38], eax
call fcn.10081660
mov eax, dword [0x10107b38]
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x1006f0f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0x3e8
push dword [0x10107b14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1006f118
push str.Couldnt_get_trampoline_region_lock__will_continue_possibly_unsafely._n
call fcn.10081660
add esp, 4
push esi
push edi
mov edi, dword [0x10107b38]
test edi, edi
jne 0x1006f14a
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x24]
push eax
push str.System_page_size:__u_n
mov dword [0x10107b38], eax
call fcn.10081660
mov edi, dword [0x10107b38]
add esp, 8
mov esi, dword [0x10107b24]
cmp esi, dword [0x10107b28]
je 0x1006f177
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
lea eax, [ebp - 4]
push eax
push 0x40
push edi
push dword [esi]
call ebx
add esi, 4
cmp esi, dword [0x10107b28]
jne 0x1006f160
pop ebx
push dword [0x10107b14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1006f190
Capabilities:
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 0xc], 1
pop ebp
jmp fcn.1006f1a0
Function at 0x10073690
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push esi
push edi
push 0x100
push eax
push str.SteamOverlayDisableDX12
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x100736c3
cmp byte [ebp - 0x104], 0x31
je 0x10073791
push str.Trying_to_detour_d3d12_device_n
call fcn.10081660
mov edi, dword [ebp + 8]
lea edx, [ebp - 4]
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [edi]
push edx
push 0x100d8cd8
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x10073791
mov esi, dword [ebp - 4]
test esi, esi
je 0x10073791
mov esi, dword [esi]
push str.d3d12.dll
push esi
call fcn.100737a0
add esp, 8
test al, al
jne 0x1007371b
cmp dword [0x10107624], 0
jne 0x1007375f
push str.Hooking_vtable_for_device_n
call fcn.10081660
push 0x1005b2b0
push dword [esi + 8]
call fcn.1006f540
add esp, 0xc
test al, al
jne 0x10073752
push 1
push 0x10107624
push 0x1005b2b0
push dword [esi + 8]
call fcn.1006eaf0
add esp, 0x10
jmp 0x1007375f
push str.VTable_for_device_in_unexpected_module_n
call fcn.10081660
add esp, 4
push 0
push dword [ebp - 4]
mov ecx, 0x10107630
call fcn.1005f710
push dword [ebp + 0xc]
mov ecx, 0x10107630
push dword [ebp - 4]
push dword [edi]
call fcn.1005f8d0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100746f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10074704
mov edi, dword [ebp + 0xc]
sub ecx, edx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
sar ecx, 1
push 4
push 0x1000
lea eax, [ecx*2 + 2]
push eax
push 0
push edi
mov dword [ebp - 8], eax
call ebx
mov dword [ebp - 0x38], eax
test eax, eax
je 0x100747c5
push 0
push dword [ebp - 8]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x100747c5
push 0x40
push 0x3000
push 0x29
push 0
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x100747c5
push 0x100d90bc
push 0x100cfe10
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x100747c5
push esi
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x100747a9
push 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov byte [ebp - 1], 1
test esi, esi
je 0x100747c5
push 0x100d90cc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100747ce
cmp byte [ebp - 1], al
je 0x100747c5
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
sub eax, esi
cmp byte [ebp - 1], 0
mov dword [ebp - 0x40], eax
je 0x100747e0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x314]
mov dword [ebp - 0x314], 0x10001
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x100747c5
mov eax, dword [ebp - 0x25c]
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x33], eax
mov eax, dword [ebp - 0x3c]
sub eax, ebx
mov byte [ebp - 0x34], 0x68
sub eax, 0x11
mov word [ebp - 0x2f], 0x609c
mov dword [ebp - 0x27], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x48]
push eax
push 0x29
lea eax, [ebp - 0x34]
mov byte [ebp - 0x2d], 0x68
push eax
push ebx
push edi
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x28], 0xe8
mov dword [ebp - 0x23], 0x117ec085
mov byte [ebp - 0x1f], 0x68
mov dword [ebp - 0x1e], ebx
mov byte [ebp - 0x1a], 0x68
mov dword [ebp - 0x19], esi
mov byte [ebp - 0x15], 5
mov dword [ebp - 0x10], 0x9d61c350
mov byte [ebp - 0xc], 0xc3
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x100747c5
lea eax, [ebp - 0x44]
push eax
push 2
push dword [ebp - 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push edi
call esi
lea eax, [ebp - 0x44]
push eax
push 0x20
push 0x29
push ebx
push edi
call esi
push dword [ebp - 0x48]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0x314]
mov dword [ebp - 0x25c], ebx
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x314], 0x10001
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1007ab00
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
mov ax, word [ebp + 8]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push ebx
push esi
mov esi, dword [ebp + 0xc]
movzx ebx, ax
push edi
mov dword [ebp + 8], ecx
mov word [esi], ax
mov eax, ebx
and eax, 0x3ff
mov byte [esi + 0x21a], 0
add eax, 0xfffffffc
cmp eax, 0xe
ja case.0x1007ab39.5
movzx eax, byte [eax + 0x1007abfc]
jmp dword [eax*4 + 0x1007abe8]
mov dword [esi + 4], 0
jmp 0x1007aba3
mov dword [esi + 4], 2
jmp 0x1007aba3
mov dword [esi + 4], 3
jmp 0x1007aba3
mov eax, ebx
mov byte [esi + 0x21a], 1
shr eax, 0xa
dec eax
cmp eax, 4
ja case.0x1007ab6d.2
jmp dword [eax*4 + 0x1007ac0c]
push 9
lea eax, [esi + 8]
mov dword [esi + 4], 1
push 0x100dafd8
push eax
jmp 0x1007abc5
push 9
lea eax, [esi + 8]
mov dword [esi + 4], 4
push 0x100dafd0
push eax
jmp 0x1007abc5
mov dword [esi + 4], 5
push 9
lea edi, [esi + 8]
push edi
push 0x59
push ebx
call ecx
test eax, eax
je 0x1007abbd
push edi
call fcn.100b7be4
add esp, 4
jmp 0x1007abcd
push 9
push 0x100daf88
push edi
call fcn.100b1b42
add esp, 0xc
push 0x100
lea eax, [esi + 0x1a]
push eax
push 2
push ebx
call dword [ebp + 8]
pop edi
test eax, eax
pop esi
setne al
pop ebx
pop ebp
ret 8

Function at 0x1007ad70
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0x3c
call fcn.100a19fe
mov esi, eax
add esp, 4
mov dword [ebp - 8], esi
test esi, esi
je 0x1007ae44
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CIMEWin32.0
mov dword [esi + 4], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov byte [esi + 0x20], 0
push 0
mov dword [esi + 0x24], 0
mov byte [esi + 0x28], 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [esi + 0x2c], eax
mov word [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
call sub.IMM32.dll_ImmCreateContext
mov dword [esi + 0x10], eax
mov byte [esi + 0x20], 0
test eax, eax
je 0x1007ae3d
lea ecx, [ebp - 8]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 8], 0
push ecx
push eax
call sub.IMM32.dll_ImmGetConversionStatus
test eax, eax
je 0x1007ae3d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push dword [esi + 0x10]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
call sub.IMM32.dll_ImmGetOpenStatus
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], 1
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1007ae90
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0
mov dword [ebp - 0x10], ecx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0
push 0
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x1007af7c
push esi
xor ecx, ecx
push edi
mov edi, 4
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100a1d2b
mov esi, eax
xor ecx, ecx
mov eax, ebx
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100a1d2b
add esp, 8
mov dword [ebp - 4], eax
xor edi, edi
push esi
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
xor ebx, ebx
xor ecx, ecx
lea ecx, [ecx]
xor eax, eax
test ecx, ecx
jle 0x1007af1b
movzx edx, word [esi + ecx*4]
lea ebx, [ebx]
cmp word [esi + eax*4], dx
je 0x1007af2b
inc eax
cmp eax, ecx
jl 0x1007af10
mov eax, dword [esi + ecx*4]
mov edx, dword [ebp - 4]
cmp eax, dword [ebp - 8]
cmove ebx, edi
mov dword [edx + edi*4], eax
inc edi
inc ecx
cmp ecx, dword [ebp - 0xc]
jb 0x1007af00
movzx eax, byte [ebp + 8]
lea ebx, [ebx + eax*2]
sub ebx, 1
jns 0x1007af49
lea ebx, [edi - 1]
xor eax, eax
test ebx, ebx
cmovs ebx, eax
jmp 0x1007af50
xor eax, eax
cmp ebx, edi
cmovge ebx, eax
mov edi, dword [ebp - 4]
push 0
push dword [edi + ebx*4]
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
movzx eax, word [edi + ebx*4]
mov ecx, dword [ebp - 0x10]
push eax
call fcn.1007bcc0
push esi
call fcn.100a1d34
push edi
call fcn.100a1d34
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4