joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180065c40
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x1800a4ca0], 0
jne 0x180065c55
xor edx, edx
mov ecx, 0x10001
jmp fcn.1800667d0
jmp 0x1800675e0
push rbx
sub rsp, 0x80
mov rax, qword [0x1800a3040]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x180067677
cmp dword [rsp + 0x38], 0x12
jne 0x180067642
mov rbx, qword [0x1800a5090]
test rbx, rbx
je 0x180067658
nop word [rax + rax]
mov rcx, rbx
call fcn.1800652f0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180067630
jmp 0x180067658
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x180067617
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x1800677a2
lea rdx, str.GLFW
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rbx, rax
test rax, rax
je 0x1800677a2
mov qword [rsp + 0x90], rdi
mov ecx, 0xa0
movsx edi, word [0x1800a6a20]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x1800676e6
cmp byte [rbx + 0x1dc], 1
jne 0x1800676e6
call fcn.180068e10
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x154
mov rcx, rbx
call fcn.180063710
movsx edi, word [0x1800a6a28]
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x180067722
cmp byte [rbx + 0x1e0], 1
jne 0x180067722
call fcn.180068e10
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x158
mov rcx, rbx
call fcn.180063710
movsx edi, word [0x1800a6a26]
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x18006775e
cmp byte [rbx + 0x1df], 1
jne 0x18006775e
call fcn.180068e10
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x157
mov rcx, rbx
call fcn.180063710
movsx edi, word [0x1800a6a2e]
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x18006779a
cmp byte [rbx + 0x1e3], 1
jne 0x18006779a
call fcn.180068e10
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x15b
mov rcx, rbx
call fcn.180063710
mov rdi, qword [rsp + 0x90]
mov rbx, qword [0x1800a7118]
test rbx, rbx
je 0x180067827
mov rcx, qword [rbx + 0x350]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x6c]
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
cmp dword [rbx + 0x388], eax
jne 0x1800677e9
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x180067827
mov rcx, qword [rbx + 0x350]
mov eax, r8d
cdq
mov dword [rsp + 0x60], r9d
sub eax, edx
mov dword [rbx + 0x388], r9d
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x38c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180062240
add rsp, 0x80
pop rbx
ret
Function at 0x180066ee0
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbp, r9
mov r8, r9
mov rsi, rdx
mov rbx, rcx
call fcn.1800685d0
test eax, eax
je 0x180067033
cmp dword [rdi], 0
je 0x180066fa1
mov eax, dword [rdi + 4]
cmp eax, 0x36001
jne 0x180066f40
call fcn.18006e750
test eax, eax
je 0x180067033
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.18006e2d0
jmp 0x180066f86
cmp eax, 0x36002
jne 0x180066f64
call fcn.18006fab0
test eax, eax
je 0x180067033
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.18006f5e0
jmp 0x180066f86
cmp eax, 0x36003
jne 0x180066f8e
call fcn.180070930
test eax, eax
je 0x180067033
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.180070700
test eax, eax
je 0x180067033
mov rdx, rdi
mov rcx, rbx
call fcn.18006a570
test eax, eax
je 0x180067033
cmp qword [rbx + 0x48], 0
je 0x180067006
mov rcx, qword [rbx + 0x350]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_BringWindowToTop]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, rbx
call fcn.180068310
mov rcx, rbx
call fcn.180068d70
cmp dword [rsi + 0x2c], 0
je 0x18006702c
mov rcx, rbx
call fcn.180063400
mov eax, 1
jmp 0x180067035
cmp dword [rsi + 0x14], 0
je 0x18006702c
mov rcx, qword [rbx + 0x350]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
cmp dword [rsi + 0x1c], 0
je 0x18006702c
mov rcx, rbx
call fcn.180067130
mov eax, 1
jmp 0x180067035
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800675e0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x1800a4ca0], 0
jne 0x180065c55
xor edx, edx
mov ecx, 0x10001
jmp fcn.1800667d0
jmp 0x1800675e0
push rbx
sub rsp, 0x80
mov rax, qword [0x1800a3040]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x180067677
cmp dword [rsp + 0x38], 0x12
jne 0x180067642
mov rbx, qword [0x1800a5090]
test rbx, rbx
je 0x180067658
nop word [rax + rax]
mov rcx, rbx
call fcn.1800652f0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180067630
jmp 0x180067658
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x180067617
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x1800677a2
lea rdx, str.GLFW
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rbx, rax
test rax, rax
je 0x1800677a2
mov qword [rsp + 0x90], rdi
mov ecx, 0xa0
movsx edi, word [0x1800a6a20]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x1800676e6
cmp byte [rbx + 0x1dc], 1
jne 0x1800676e6
call fcn.180068e10
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x154
mov rcx, rbx
call fcn.180063710
movsx edi, word [0x1800a6a28]
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x180067722
cmp byte [rbx + 0x1e0], 1
jne 0x180067722
call fcn.180068e10
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x158
mov rcx, rbx
call fcn.180063710
movsx edi, word [0x1800a6a26]
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x18006775e
cmp byte [rbx + 0x1df], 1
jne 0x18006775e
call fcn.180068e10
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x157
mov rcx, rbx
call fcn.180063710
movsx edi, word [0x1800a6a2e]
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x18006779a
cmp byte [rbx + 0x1e3], 1
jne 0x18006779a
call fcn.180068e10
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x15b
mov rcx, rbx
call fcn.180063710
mov rdi, qword [rsp + 0x90]
mov rbx, qword [0x1800a7118]
test rbx, rbx
je 0x180067827
mov rcx, qword [rbx + 0x350]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x6c]
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
cmp dword [rbx + 0x388], eax
jne 0x1800677e9
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x180067827
mov rcx, qword [rbx + 0x350]
mov eax, r8d
cdq
mov dword [rsp + 0x60], r9d
sub eax, edx
mov dword [rbx + 0x388], r9d
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x38c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180062240
add rsp, 0x80
pop rbx
ret
Function at 0x180068ac0
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x1800a7118], rcx
lea rdi, [rcx + 0x350]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x180068b1c
mov rcx, qword [rdi]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [rsp + 0x40]
movd xmm1, dword [rsp + 0x44]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
movsd qword [0x1800a7108], xmm0
movsd qword [0x1800a7110], xmm1
cmp dword [rbx + 0x7c], 0x34001
jne 0x180068b60
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x180068b41
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SetCursor]
lea rdi, [rbx + 0x350]
jmp 0x180068b68
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
lea rdi, [rbx + 0x350]
jmp 0x180068b68
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.180063400
mov rcx, rbx
call fcn.180068550
cmp dword [rbx + 0x1f8], 0
je 0x180068bbb
mov rax, qword [rdi]
lea rcx, [rsp + 0x20]
mov edx, 1
mov qword [rsp + 0x20], 0x20001
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x180068bbb
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.18006d250
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x180068bd0
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
mov edx, 1
mov dword [rsp + 0x20], 0x20001
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], 0
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x180068c12
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.18006d250
add rsp, 0x38
ret
Function at 0x180068c20
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x1f8], 0
mov rbx, rcx
je 0x180068c70
mov edx, 1
mov dword [rsp + 0x20], 0x20001
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], 0
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x180068c70
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.18006d250
xor ecx, ecx
mov qword [0x1800a7118], 0
call qword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si ecx, qword [0x1800a7108]
mov qword [0x1800a7120], 0
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x1800a7110]
mov dword [rsp + 0x40], ecx
mov dword [rbx + 0x388], ecx
mov rcx, qword [rbx + 0x350]
mov dword [rsp + 0x44], eax
mov dword [rbx + 0x38c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetCursorPos]
cmp dword [rbx + 0x7c], 0x34001
jne 0x180068d10
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x180068cf4
mov rcx, qword [rcx + 8]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
xor ecx, ecx
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]

Function at 0x180068d20
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx + 0x350]
mov edx, 1
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], 0x20001
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x180068d62
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.18006d250
add rsp, 0x38
ret

Function at 0x180068e10
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, send
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, send
or edi, 2
test ax, ax
cmovns edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov esi, edi
mov ecx, 0x5c
or esi, 4
test ax, ax
cmovns esi, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x5b
movzx ebx, ax
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, esi
mov ecx, socket
or edi, 8
or bx, ax
cmovns edi, esi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, edi
mov ecx, 0x90
or ebx, 0x10
test al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov rsi, qword [rsp + 0x38]
mov ecx, ebx
or ecx, 0x20
test al, 1
cmove ecx, ebx
mov rbx, qword [rsp + 0x30]
mov eax, ecx
add rsp, 0x20
pop rdi
ret

Function at 0x18006c120
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 4], eax
cmp eax, 0xffffffff
jne 0x18006c150
lea rdx, [0x18008c4c0]
mov ecx, 0x10008
call fcn.18006d250
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x18006da80
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x1b0
mov rax, qword [0x1800a3040]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x1800a6a32]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1d0], rdi
sub r14, 0x480
lea rbp, [0x1800a67b8]
xor r12d, r12d
lea r15, [0x1800a6ad2]
mov ebx, 0x20
movsx esi, word [rbp]
cmp esi, 0xffffffff
je 0x18006dc38
cmp ebx, 0x140
jb 0x18006db9f
cmp ebx, 0x14e
ja 0x18006db9f
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x44], 0x61
mov dword [rsp + 0x48], 0x62
mov dword [rsp + 0x4c], 0x63
mov dword [rsp + 0x50], 0x64
mov dword [rsp + 0x54], 0x65
mov dword [rsp + 0x58], 0x66
mov dword [rsp + 0x5c], 0x67
mov dword [rsp + 0x60], 0x68
mov dword [rsp + 0x64], 0x69
mov dword [rsp + 0x68], WSAStartup
mov dword [rsp + 0x6c], WSAStartup
mov dword [rsp + 0x70], 0x6a
mov dword [rsp + 0x74], WSAStartup
mov dword [rsp + 0x78], 0x6b
mov edi, dword [r14]
jmp 0x18006dbae
mov edx, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x18006dc01
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x18006dc38
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x80]
mov qword [rsp + 0x30], r12
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r15, 5
add r14, 4
add rbp, 2
cmp ebx, 0x15c
jle 0x18006db01
mov rdi, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.180062240
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x180070930
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1800a3040]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x1800a7350], 0
lea rax, str.libOSMesa.dll
lea rcx, str.OSMesa.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
je 0x180070985
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180062240
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
nop dword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1800a7350], rax
mov rcx, rax
test rax, rax
jne 0x1800709b5
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x180070990
mov rbx, qword [rsp + 0x40]
test rcx, rcx
jne 0x1800709e4
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.1800667d0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180062240
add rsp, 0x48
ret
lea rdx, str.OSMesaCreateContextExt
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800a7350]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x1800a7358], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800a7350]
lea rdx, str.OSMesaDestroyContext
mov qword [0x1800a7360], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800a7350]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x1800a7368], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800a7350]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x1800a7370], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800a7350]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x1800a7378], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800a7350]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x1800a7380], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1800a7358], 0
mov qword [0x1800a7388], rax
je 0x180070ad5
cmp qword [0x1800a7368], 0
je 0x180070ad5
cmp qword [0x1800a7370], 0
je 0x180070ad5
cmp qword [0x1800a7378], 0
je 0x180070ad5
cmp qword [0x1800a7380], 0
je 0x180070ad5
test rax, rax
jne 0x18007096e
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1800667d0
mov rcx, qword [0x1800a7350]
test rcx, rcx
je 0x180070b03
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1800a7350], 0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180062240
add rsp, 0x48
ret
Function at 0x140001070
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xa0
mov rax, qword [0x14007e018]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [r11 - 0x18], rbp
lea r8, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
mov qword [r11 - 0x28], r12
mov rbp, rcx
xor r12d, r12d
mov qword [r11 - 0x30], r14
mov r14, r9
mov dword [rsp + 0x40], edx
mov qword [r11 - 0x38], r15
lea rcx, [r11 - 0x58]
mov r15, qword [rsp + 0xd0]
xor edx, edx
lea r9d, [r12 + 1]
mov qword [r11 - 0x58], r12
xor dil, dil
mov qword [r11 - 0x50], r12
mov qword [r11 - 0x60], r12
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400011ee
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8003
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400011ee
lea rcx, str.12345
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x48]
lea rdx, str.12345
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov r8, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov r9d, 0x800000
mov edx, 0x6801
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x1400011ee
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0x88], rsi
mov esi, dword [rsp + 0x40]
inc esi
mov ecx, esi
call fcn.14003b9a4
mov rbx, rax
test rax, rax
je 0x1400011de
mov r8d, dword [rsp + 0x40]
mov rdx, rbp
mov rcx, rax
call fcn.140036b80
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], esi
lea r8d, [r12 + 1]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x1400011d6
mov eax, dword [rsp + 0x40]
mov rdx, rbx
mov dword [r15], eax
mov r8d, eax
mov rcx, qword [r14]
call fcn.140036b80
mov dil, 1
mov rcx, rbx
call fcn.14003b990
mov rbx, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x90]
test rcx, rcx
je 0x140001215
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rsp + 0x48], r12
mov rcx, qword [rsp + 0x58]
mov r12, qword [rsp + 0x80]
test rcx, rcx
je 0x14000122d
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000123f
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
movzx eax, dil
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140034c70
add rsp, 0xa0
pop rdi
ret
Function at 0x1400016b0
Capabilities:
Send icmp echo request

Disassembly:
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x60
mov ebp, dword [0x1400819e8]
lea rcx, str.43.138.33.173
call qword [sym.imp.WS2_32.dll_inet_addr]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x1400016f6
lea rcx, str.invalid_IP_address_n
call fcn.140001650
mov eax, 1
mov rbp, qword [rsp + 0x88]
add rsp, 0x60
pop r14
ret
mov qword [rsp + 0x70], rbx
call qword [sym.imp.IPHLPAPI.DLL_IcmpCreateFile]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001741
lea rcx, str._tUnable_to_open_handle._n
call fcn.140001650
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.IcmpCreatefile_returned_error:__ld_n
call fcn.140001650
lea eax, [rbx + 2]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x88]
add rsp, 0x60
pop r14
ret
mov qword [rsp + 0x78], rsi
lea esi, [rbp + 0x30]
mov ecx, esi
mov qword [rsp + 0x80], rdi
call fcn.14003b9a4
mov rdi, rax
test rax, rax
jne 0x14000176c
lea rcx, str._tUnable_to_allocate_memory_for_reply_buffer_n
jmp 0x1400018b4
mov dword [rsp + 0x50], 0x3e8
lea rax, [0x1400819f0]
mov dword [rsp + 0x48], esi
xor r9d, r9d
mov qword [rsp + 0x40], rdi
xor r8d, r8d
mov qword [rsp + 0x38], 0
xor edx, edx
mov word [rsp + 0x30], bp
mov rcx, rbx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
call qword [sym.imp.IPHLPAPI.DLL_IcmpSendEcho2]
mov ebp, eax
test eax, eax
je 0x140001873
mov ebx, dword [rdi]
lea rdx, str.43.138.33.173
lea rcx, str._tSent_icmp_message_to__s_n
call fcn.140001650
cmp ebp, 1
jbe 0x1400017e1
lea rsi, str._tInformation_from_the_first_response:_n
lea rcx, str._tReceived__ld_icmp_message_responses_n
jmp 0x1400017ef
lea rsi, str._tInformation_from_this_response:_n
lea rcx, str._tReceived__ld_icmp_message_response_n
mov edx, ebp
call fcn.140001650
mov rcx, rsi
call fcn.140001650
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
lea rcx, str._t__Received_from__s_n
call fcn.140001650
mov edx, dword [rdi + 4]
lea rcx, str._t__Status___ld
call fcn.140001650
mov ecx, dword [rdi + 4]
sub ecx, 0x2afa
je 0x140001854
sub ecx, 1
je 0x14000184b
cmp ecx, 7
je 0x140001842
lea rcx, [0x140074040]
jmp 0x14000185b
lea rcx, str._Request_timed_out__n
jmp 0x14000185b
lea rcx, str._Destination_host_was_unreachable__n
jmp 0x14000185b
lea rcx, str._Destination_Network_was_unreachable__n
call fcn.140001650
mov edx, dword [rdi + 8]
lea rcx, str._t__Roundtrip_time___ld_milliseconds_n
call fcn.140001650
xor eax, eax
jmp 0x1400018be
lea rcx, str.Call_to_IcmpSendEcho2_failed._n
call fcn.140001650
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
sub ecx, 0x2af9
je 0x1400018ad
cmp ecx, 9
je 0x1400018a4
mov edx, eax
lea rcx, str._tExtended_error_returned:__ld_n
call fcn.140001650
jmp 0x1400018b9
lea rcx, str._tRequest_timed_out_n
jmp 0x1400018b4
lea rcx, str._tReplyBufferSize_too_small_n
call fcn.140001650
mov eax, 1
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x88]
add rsp, 0x60
pop r14
ret