joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101226e0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
xorps xmm0, xmm0
push ebx
push ebp
mov ebp, dword [esp + 0x20]
lea ebx, [ebp + 0x33c]
movups xmmword [ebx], xmm0
push esi
movq qword [ebx + 0x10], xmm0
movzx ecx, word [ebp + 0x98]
mov eax, dword [ebp + 0x9c]
shl ecx, 4
add ecx, eax
push edi
cmp eax, ecx
jae 0x101228cd
cmp dword [eax], 0x42444620
jne 0x10122725
mov esi, dword [eax + 0xc]
test esi, esi
jne 0x10122739
add eax, 0x10
cmp eax, ecx
jb 0x10122716
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x14
ret
push dword [eax + 8]
mov edi, dword [esp + 0x30]
push edi
call fcn.100d1d20
add esp, 8
test eax, eax
jne 0x101228cd
cmp esi, 8
jb 0x101228cd
push ebx
push esi
push edi
call fcn.100d13a0
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
jne 0x101228cd
mov eax, dword [ebx]
lea ecx, [eax + esi]
mov dword [ebp + 0x340], ecx
mov ecx, eax
movzx edi, byte [ecx + 2]
movzx eax, byte [ecx + 3]
movzx edx, byte [ecx + 5]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 4]
shl eax, 8
or edx, eax
movzx eax, byte [ecx + 6]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 7]
movzx ecx, byte [ecx + 1]
shl edx, 8
or edx, eax
mov eax, dword [ebx]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
cmp ecx, 1
jne 0x101228b5
cmp edx, 8
jb 0x101228b5
lea eax, [edx - 8]
shr eax, 2
cmp eax, edi
jb 0x101228b5
lea eax, [edx + 1]
cmp eax, esi
ja 0x101228b5
mov eax, dword [ebx]
sub esi, edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [ebp + 0x34c], edi
mov dword [ebp + 0x348], esi
lea ecx, [eax + edx]
mov dword [ebp + 0x344], ecx
lea edx, [eax + 8]
lea eax, [edx + edi*4]
mov dword [esp + 0x10], eax
cmp edi, 2
jb 0x10122871
lea esi, [edi - 2]
xor ebx, ebx
shr esi, 1
inc esi
xor ebp, ebp
movzx ecx, byte [edx + 2]
sub edi, 2
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
lea eax, [ecx + ecx*4]
movzx ecx, byte [edx + 6]
lea ebx, [ebx + eax*2]
shl ecx, 8
movzx eax, byte [edx + 7]
add edx, 8
or ecx, eax
lea eax, [ecx + ecx*4]
lea ebp, [ebp + eax*2]
sub esi, 1
jne 0x10122825
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
mov esi, dword [ebp + 0x344]
lea ebx, [ebp + 0x33c]
jmp 0x10122873
mov esi, ecx
test edi, edi
je 0x10122890
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
mov edx, dword [esp + 0x10]
shl ecx, 8
or ecx, eax
lea eax, [ecx + ecx*4]
lea edx, [edx + eax*2]
jmp 0x10122894
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x18]
add eax, edx
cmp eax, esi
ja 0x101228b5
mov eax, dword [esp + 0x20]
pop edi
pop esi
mov byte [ebp + 0x350], 1
pop ebp
pop ebx
add esp, 0x14
ret
push ebx
push dword [esp + 0x30]
call fcn.100d1ce0
xorps xmm0, xmm0
add esp, 8
movups xmmword [ebx], xmm0
movq qword [ebx + 0x10], xmm0
mov eax, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x1012cc20
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x1012cc34
lea eax, [esi + 0x28]
pop esi
add esp, 0xc
ret
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1012cc63
pop ebx
mov eax, 1
pop esi
add esp, 0xc
ret
push ebp
push edi
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1012cd75
mov ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x1012cd75
mov eax, dword [esp + 0x14]
jl 0x1012cc9c
cmp eax, 0x7fffffff
ja 0x1012cd75
or eax, ecx
je 0x1012cd75
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
je 0x1012cd75
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
push 4
push edi
mov dword [esi + 4], ecx
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov dword [esi], eax
call ebp
cmp dword [esi], 0
je 0x1012cced
mov eax, 0x1012cdf0
jmp 0x1012cd3d
push dword [esi + 4]
mov eax, dword [esi + 0x1c]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x1012cd75
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
xor edi, edi
nop dword [eax + eax]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 4]
sub eax, edi
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call ebp
test eax, eax
je 0x1012cd60
add edi, dword [esp + 0x10]
cmp edi, dword [esi + 4]
jne 0x1012cd10
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x1012cdc0
push ebx
mov dword [esi + 0x18], eax
call ebp
mov eax, dword [esi]
pop edi
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x20]
pop ebp
mov dword [esi + 0x10], eax
xor eax, eax
pop ebx
mov dword [esi + 0x14], 0
pop esi
add esp, 0xc
ret
push dword [esi]
mov eax, dword [esi + 0x1c]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call ebp
pop edi
pop ebp
pop ebx
mov dword [esi], 0
mov eax, 0x51
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
add esp, 0xc
ret
Function at 0x10134720
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x102e7e00], 0
jne 0x10134739
push 0
push 0x10001
call fcn.10134b20
add esp, 8
ret
jmp fcn.101355b0

Function at 0x101347a0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x102e7e00], 0
jne 0x101347b9
push 0
push 0x10001
call fcn.10134b20
add esp, 8
ret
jmp 0x10135cc0
call dword [sym.imp.USER32.dll_WaitMessage]
jmp fcn.101355b0

Function at 0x10134e20
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x102e7e00], 0
jne 0x10134ecd
push 0x2220
push 0
push 0x102e7e00
call fcn.101ed310
movq xmm0, qword [0x102cf0e4]
add esp, 0xc
mov eax, dword [0x102cf0ec]
movq qword [0x102e7e04], xmm0
mov dword [0x102e7e0c], eax
call fcn.10139840
test eax, eax
je 0x10134ed3
push 0x102e90ac
call fcn.10135050
add esp, 4
test eax, eax
je 0x10134ed3
push 0x102e909c
call fcn.10135070
add esp, 4
test eax, eax
je 0x10134ed3
push 0x102e90a4
call fcn.10135070
add esp, 4
test eax, eax
je 0x10134ed3
push 0x102ea020
push 0x102e909c
call fcn.10135120
add esp, 8
call fcn.10132f50
mov dword [0x102e7e00], 1
call fcn.10138880
mov dword [0x102e90c8], eax
mov dword [0x102e90cc], edx
call fcn.10134580
mov eax, 1
ret
call fcn.10134f10
xor eax, eax
ret

Function at 0x10135070
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [esp + 4]
mov dword [ecx + 4], eax
cmp eax, 0xffffffff
jne 0x10135097
push str.Win32:_Failed_to_allocate_TLS_index
push 0x10008
call fcn.101395f0
add esp, 8
xor eax, eax
ret
mov dword [ecx], 1
mov eax, 1
ret
Function at 0x10135150
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
push ebx
push ebp
push esi
call fcn.10136000
add esp, 0xc
test eax, eax
je 0x10135281
mov edi, dword [esp + 0x1c]
cmp dword [edi], 0
je 0x101351f4
mov eax, dword [edi + 4]
cmp eax, 0x36001
jne 0x1013519d
call fcn.1013a790
test eax, eax
je 0x10135281
push ebx
push edi
push esi
call fcn.1013a390
jmp 0x101351d7
cmp eax, 0x36002
jne 0x101351bb
call fcn.1013b9c0
test eax, eax
je 0x10135281
push ebx
push edi
push esi
call fcn.1013b530
jmp 0x101351d7
cmp eax, 0x36003
jne 0x101351e2
call fcn.1013c510
test eax, eax
je 0x10135281
push ebx
push edi
push esi
call fcn.1013c300
add esp, 0xc
test eax, eax
je 0x10135281
push edi
push esi
call fcn.101324b0
add esp, 8
test eax, eax
je 0x10135281
cmp dword [esi + 0x3c], 0
je 0x10135254
push 8
push dword [esi + 0x2ac]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x2ac]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push dword [esi + 0x2ac]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [esi + 0x2ac]
call dword [sym.imp.USER32.dll_SetFocus]
push esi
call fcn.10135dc0
push esi
call fcn.10136770
add esp, 8
cmp dword [ebp + 0x28], 0
je 0x10135277
push esi
call fcn.10132ec0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
cmp dword [ebp + 0x10], 0
je 0x10135277
push 8
push dword [esi + 0x2ac]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0x18], 0
je 0x10135277
push esi
call fcn.10135340
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x101364b0
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0x14
mov eax, dword [0x102cf440]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 4]
push edi
push eax
mov dword [0x102e9eb8], ebx
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1013650e
lea eax, [esp + 8]
push eax
push dword [ebx + 0x2ac]
call dword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [esp + 8]
cvtdq2pd xmm0, xmm0
movsd qword [0x102e9ea8], xmm0
movd xmm0, dword [esp + 0xc]
cvtdq2pd xmm0, xmm0
movsd qword [0x102e9eb0], xmm0
cmp dword [ebx + 0x68], 0x34001
jne 0x10136533
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x10136523
push dword [eax + 4]
jmp 0x10136535
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
jmp 0x10136535
push 0
call dword [sym.imp.USER32.dll_SetCursor]
push ebx
call fcn.10132ec0
add esp, 4
lea eax, [esp + 8]
push eax
push dword [ebx + 0x2ac]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 8]
push eax
push dword [ebx + 0x2ac]
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [esp + 0x10]
push eax
push dword [ebx + 0x2ac]
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_ClipCursor]
cmp dword [ebx + 0x1e8], 0
je 0x101365ca
mov eax, dword [ebx + 0x2ac]
push 0xc
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push 1
push eax
mov dword [esp + 0x14], 0x20001
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x101365ca
push str.Win32:_Failed_to_register_raw_input_device
push 0x10008
call fcn.101395f0
add esp, 8
mov ecx, dword [esp + 0x18]
pop edi
pop ebx
xor ecx, esp
call fcn.101eafcd
add esp, 0x14
ret

Function at 0x101365e0
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0xc
push 0xc
push 1
lea eax, [esp + 8]
mov dword [esp + 8], 0x20001
push eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x10136620
push str.Win32:_Failed_to_remove_raw_input_device
push 0x10008
call fcn.101395f0
add esp, 8
add esp, 0xc
ret
Function at 0x10136630
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x1e8], 0
je 0x1013667e
push 0xc
push 1
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x20001
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1013667e
push str.Win32:_Failed_to_remove_raw_input_device
push 0x10008
call fcn.101395f0
add esp, 8
push 0
mov dword [0x102e9eb8], 0
call dword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si eax, qword [0x102e9eb0]
cvttsd2si ecx, qword [0x102e9ea8]
mov dword [esp + 8], eax
mov dword [esi + 0x2dc], eax
lea eax, [esp + 4]
push eax
push dword [esi + 0x2ac]
mov dword [esp + 0xc], ecx
mov dword [esi + 0x2d8], ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.USER32.dll_SetCursorPos]
cmp dword [esi + 0x68], 0x34001
jne 0x1013670a
mov eax, dword [esi + 0x40]
test eax, eax
je 0x101366f1
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
add esp, 0xc
ret
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
add esp, 0xc
ret
push 0
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
add esp, 0xc
ret

Function at 0x10136720
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
push 0xc
push 1
mov dword [esp + 8], 0x20001
mov eax, dword [eax + 0x2ac]
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x10136766
push str.Win32:_Failed_to_register_raw_input_device
push 0x10008
call fcn.101395f0
add esp, 8
add esp, 0xc
ret

Function at 0x10136890
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
push esi
push edi
push 0x10
call ebp
movzx esi, ax
push 0x11
shr esi, 0xf
call ebp
mov edi, esi
or edi, 2
test ax, ax
push 0x12
cmovns edi, esi
call ebp
mov ebx, edi
or ebx, 4
test ax, ax
push 0x5c
cmovns ebx, edi
call ebp
push 0x5b
mov si, ax
call ebp
mov edi, ebx
or edi, 8
or si, ax
push 0x14
cmovns edi, ebx
call ebp
mov esi, edi
or esi, 0x10
test al, 1
push 0x90
cmove esi, edi
call ebp
mov ecx, esi
or ecx, 0x20
test al, 1
pop edi
cmove ecx, esi
pop esi
pop ebp
mov eax, ecx
pop ebx
ret
Function at 0x10139ce0
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x164
mov eax, dword [0x102cf440]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push ebp
push esi
push edi
push 0x100
lea eax, [esp + 0x74]
push 0
push eax
call fcn.101ed310
push 0x6d1
push 0
push 0x102e97d2
call fcn.101ed310
mov eax, 0x102e9872
lea ebx, [esp + 0x2c]
add esp, 0x18
mov dword [esp + 0x10], eax
mov esi, 0x20
sub ebx, 0x480
movsx edi, word [esi*2 + 0x102e9518]
cmp edi, 0xffffffff
je 0x10139e3d
cmp esi, 0x140
jb 0x10139dda
cmp esi, 0x14e
ja 0x10139dda
mov dword [esp + 0x14], 0x60
mov dword [esp + 0x18], 0x61
mov dword [esp + 0x1c], 0x62
mov dword [esp + 0x20], 0x63
mov dword [esp + 0x24], 0x64
mov dword [esp + 0x28], 0x65
mov dword [esp + 0x2c], 0x66
mov dword [esp + 0x30], 0x67
mov dword [esp + 0x34], 0x68
mov dword [esp + 0x38], 0x69
mov dword [esp + 0x3c], 0x6e
mov dword [esp + 0x40], 0x6f
mov dword [esp + 0x44], 0x6a
mov dword [esp + 0x48], 0x6d
mov dword [esp + 0x4c], 0x6b
mov ebp, dword [ebx]
jmp 0x10139de5
push 1
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ebp, eax
push 0
push 0x10
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x7c]
push eax
push edi
push ebp
call dword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x10139e16
push 0
push 0x10
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x7c]
push eax
push edi
push ebp
call dword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x10139e39
push 0
push 0
push 5
push dword [esp + 0x1c]
lea eax, [esp + 0x60]
push 1
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x10]
inc esi
add eax, 5
add ebx, 4
mov dword [esp + 0x10], eax
cmp esi, 0x15c
jle 0x10139d35
mov ecx, dword [esp + 0x170]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101eafcd
add esp, 0x164
ret
Function at 0x1013a120
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x1c
mov eax, dword [0x102cf440]
xor eax, esp
mov dword [esp + 0x18], eax
push 0x102e9100
push 0x102e7e00
push 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x1013a167
push 0x10274c3c
push 0x10008
call fcn.101395f0
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.101eafcd
add esp, 0x1c
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.user32.dll
call ebx
mov dword [0x102e9ee0], eax
test eax, eax
jne 0x1013a1a2
push str.Win32:_Failed_to_load_user32.dll
push 0x10008
call fcn.101395f0
add esp, 8
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.101eafcd
add esp, 0x1c
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessDPIAware
push eax
call edi
push str.ChangeWindowMessageFilterEx
push dword [0x102e9ee0]
mov dword [0x102e9ee4], eax
call edi
push str.EnableNonClientDpiScaling
push dword [0x102e9ee0]
mov dword [0x102e9ee8], eax
call edi
push str.SetProcessDpiAwarenessContext
push dword [0x102e9ee0]
mov dword [0x102e9eec], eax
call edi
push str.GetDpiForWindow
push dword [0x102e9ee0]
mov dword [0x102e9ef0], eax
call edi
push str.AdjustWindowRectExForDpi
push dword [0x102e9ee0]
mov dword [0x102e9ef4], eax
call edi
push str.GetSystemMetricsForDpi
push dword [0x102e9ee0]
mov dword [0x102e9ef8], eax
call edi
push str.dinput8.dll
mov dword [0x102e9efc], eax
call ebx
mov dword [0x102e9ec8], eax
test eax, eax
je 0x1013a23f
push str.DirectInput8Create
push eax
call edi
mov dword [0x102e9ecc], eax
push esi
mov dword [esp + 0xc], str.xinput1_4.dll
xor esi, esi
mov dword [esp + 0x10], str.xinput1_3.dll
mov eax, str.xinput1_4.dll
mov dword [esp + 0x14], str.xinput9_1_0.dll
mov dword [esp + 0x18], str.xinput1_2.dll
mov dword [esp + 0x1c], str.xinput1_1.dll
mov dword [esp + 0x20], 0
push eax
call ebx
mov dword [0x102e9ed4], eax
test eax, eax
jne 0x1013a28e
mov eax, dword [esp + esi*4 + 0x10]
inc esi
test eax, eax
jne 0x1013a277
jmp 0x1013a2ad
push str.XInputGetCapabilities
push eax
call edi
push str.XInputGetState
push dword [0x102e9ed4]
mov dword [0x102e9ed8], eax
call edi
mov dword [0x102e9edc], eax
push str.dwmapi.dll
call ebx
mov dword [0x102e9f00], eax
pop esi
test eax, eax
je 0x1013a301
push str.DwmIsCompositionEnabled
push eax
call edi
push str.DwmFlush
push dword [0x102e9f00]
mov dword [0x102e9f04], eax
call edi
push str.DwmEnableBlurBehindWindow
push dword [0x102e9f00]
mov dword [0x102e9f08], eax
call edi
push str.DwmGetColorizationColor
push dword [0x102e9f00]
mov dword [0x102e9f0c], eax
call edi
mov dword [0x102e9f10], eax
push str.shcore.dll
call ebx
mov dword [0x102e9f14], eax
test eax, eax
je 0x1013a330
push str.SetProcessDpiAwareness
push eax
call edi
push str.GetDpiForMonitor
push dword [0x102e9f14]
mov dword [0x102e9f18], eax
call edi
mov dword [0x102e9f1c], eax
push str.ntdll.dll
call ebx
mov dword [0x102e9f20], eax
test eax, eax
je 0x1013a34d
push str.RtlVerifyVersionInfo
push eax
call edi
mov dword [0x102e9f24], eax
mov ecx, dword [esp + 0x20]
mov eax, 1
pop edi
pop ebx
xor ecx, esp
call fcn.101eafcd
add esp, 0x1c
ret
Function at 0x1013c510
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x10
mov eax, dword [0x102cf440]
xor eax, esp
mov dword [esp + 0xc], eax
cmp dword [0x102e9ffc], 0
mov dword [esp], str.libOSMesa.dll
mov dword [esp + 4], str.OSMesa.dll
mov dword [esp + 8], 0
je 0x1013c552
mov eax, 1
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.101eafcd
add esp, 0x10
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor esi, esi
mov eax, str.libOSMesa.dll
push eax
call edi
mov ecx, eax
mov dword [0x102e9ffc], ecx
test ecx, ecx
jne 0x1013c5a2
mov eax, dword [esp + esi*4 + 0xc]
inc esi
test eax, eax
jne 0x1013c561
test ecx, ecx
jne 0x1013c5a2
push str.OSMesa:_Library_not_found
push 0x10006
call fcn.10134b20
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.101eafcd
add esp, 0x10
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OSMesaCreateContextExt
push ecx
call esi
push str.OSMesaCreateContextAttribs
push dword [0x102e9ffc]
mov dword [0x102ea000], eax
call esi
push str.OSMesaDestroyContext
push dword [0x102e9ffc]
mov dword [0x102ea004], eax
call esi
push str.OSMesaMakeCurrent
push dword [0x102e9ffc]
mov dword [0x102ea008], eax
call esi
push str.OSMesaGetColorBuffer
push dword [0x102e9ffc]
mov dword [0x102ea00c], eax
call esi
push str.OSMesaGetDepthBuffer
push dword [0x102e9ffc]
mov dword [0x102ea010], eax
call esi
push str.OSMesaGetProcAddress
push dword [0x102e9ffc]
mov dword [0x102ea014], eax
call esi
cmp dword [0x102ea000], 0
mov dword [0x102ea018], eax
je 0x1013c668
cmp dword [0x102ea008], 0
je 0x1013c668
cmp dword [0x102ea00c], 0
je 0x1013c668
cmp dword [0x102ea010], 0
je 0x1013c668
cmp dword [0x102ea014], 0
je 0x1013c668
test eax, eax
je 0x1013c668
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.101eafcd
add esp, 0x10
ret
push str.OSMesa:_Failed_to_load_required_entry_points
push 0x10008
call fcn.10134b20
mov eax, dword [0x102e9ffc]
add esp, 8
test eax, eax
je 0x1013c694
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x102e9ffc], 0
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.101eafcd
add esp, 0x10
ret
Function at 0x10143dc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
cmp dword [esp + 0x1c], 0
jle 0x10143eb3
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
mov ecx, dword [eax + 8]
mov ebx, ecx
add ebx, dword [eax]
mov edx, dword [eax + 0xc]
mov esi, edx
mov edi, dword [eax + 4]
adc edi, edx
mov dword [esp + 0x18], ebx
shld edx, ecx, 0xd
shr esi, 0x13
xor ebp, ebp
shl ecx, 0xd
or ebp, edx
mov edx, dword [eax + 0x1c]
or esi, ecx
mov ecx, dword [eax + 0x18]
xor esi, ebx
xor ebp, edi
mov dword [esp + 0x14], esi
mov esi, ecx
mov dword [esp + 0x20], ebp
add esi, dword [eax + 0x10]
mov ebp, edx
mov ebx, edx
mov dword [esp + 0x10], edi
adc ebp, dword [eax + 0x14]
xor edi, edi
shld edx, ecx, 0x10
shr ebx, 0x10
shl ecx, 0x10
or edi, edx
or ebx, ecx
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x10]
xor ebx, esi
xor edi, ebp
xor esi, esi
or esi, dword [esp + 0x18]
mov edx, edi
add ecx, ebx
mov dword [esp + 0x10], ecx
adc esi, edi
mov dword [eax], ecx
shld edi, ebx, 0x15
xor ecx, ecx
shr edx, 0xb
or ecx, edi
shl ebx, 0x15
mov edi, dword [esp + 0x14]
or edx, ebx
xor edx, dword [esp + 0x10]
xor ecx, esi
add edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov dword [eax + 4], esi
mov esi, ebx
adc esi, ebp
mov dword [eax + 0x18], edx
mov ebp, dword [esp + 0x14]
mov edx, ebx
mov dword [eax + 0x1c], ecx
xor ecx, ecx
shld ebx, ebp, 0x11
shr edx, 0xf
or ecx, ebx
shl ebp, 0x11
xor ecx, esi
mov dword [eax + 0x10], esi
mov dword [eax + 0xc], ecx
or edx, ebp
xor ecx, ecx
xor edx, edi
or ecx, edi
mov dword [eax + 8], edx
sub dword [esp + 0x2c], 1
mov dword [eax + 0x14], ecx
jne 0x10143dd6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x10168560
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movzx eax, word [esp + 0x30]
mov dword [esp + 0x30], eax
movzx eax, word [esp + 0x2c]
mov dword [esp + 0x2c], eax
movsx eax, word [esp + 0x28]
mov dword [esp + 0x28], eax
movsx eax, word [esp + 0x24]
mov dword [esp + 0x24], eax
movsx eax, word [esp + 0x20]
mov dword [esp + 0x20], eax
movsx eax, word [esp + 0x1c]
mov dword [esp + 0x1c], eax
movsx eax, word [esp + 0x18]
mov dword [esp + 0x18], eax
movsx eax, word [esp + 0x14]
mov dword [esp + 0x14], eax
jmp sym.project.dll_pixman_image_composite32