joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18007dfe0
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x1800c1328], rcx
lea rdi, [rcx + 0x350]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x18007e03c
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 [0x1800c1318], xmm0
movsd qword [0x1800c1320], xmm1
cmp dword [rbx + 0x7c], 0x34001
jne 0x18007e080
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x18007e061
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SetCursor]
lea rdi, [rbx + 0x350]
jmp 0x18007e088
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 0x18007e088
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.180078920
mov rcx, rbx
call fcn.18007da70
cmp dword [rbx + 0x1f8], 0
je 0x18007e0db
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 0x18007e0db
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.180082770
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x1f8], 0
mov rbx, rcx
je 0x18007e190
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 0x18007e190
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.180082770
xor ecx, ecx
mov qword [0x1800c1328], 0
call qword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si ecx, qword [0x1800c1318]
mov qword [0x1800c1330], 0
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x1800c1320]
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 0x18007e230
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x18007e214
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 0x18007e240
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 0x18007e282
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.180082770
add rsp, 0x38
ret

Function at 0x18007e330
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 0x180081640
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 0x180081670
lea rdx, [0x1800a26b0]
mov ecx, 0x10008
call fcn.180082770
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x180082fa0
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 [0x1800bd040]
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, [0x1800c0c42]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1d0], rdi
sub r14, 0x480
lea rbp, [0x1800c09c8]
xor r12d, r12d
lea r15, [0x1800c0ce2]
mov ebx, 0x20
movsx esi, word [rbp]
cmp esi, 0xffffffff
je 0x180083158
cmp ebx, 0x140
jb 0x1800830bf
cmp ebx, 0x14e
ja 0x1800830bf
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 0x1800830ce
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 0x180083121
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 0x180083158
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 0x180083021
mov rdi, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.180077760
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 0x180085e50
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1800bd040]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x1800c1560], 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 0x180085ea5
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180077760
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 [0x1800c1560], rax
mov rcx, rax
test rax, rax
jne 0x180085ed5
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x180085eb0
mov rbx, qword [rsp + 0x40]
test rcx, rcx
jne 0x180085f04
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.18007bcf0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180077760
add rsp, 0x48
ret
lea rdx, str.OSMesaCreateContextExt
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800c1560]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x1800c1568], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800c1560]
lea rdx, str.OSMesaDestroyContext
mov qword [0x1800c1570], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800c1560]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x1800c1578], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800c1560]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x1800c1580], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800c1560]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x1800c1588], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800c1560]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x1800c1590], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1800c1568], 0
mov qword [0x1800c1598], rax
je 0x180085ff5
cmp qword [0x1800c1578], 0
je 0x180085ff5
cmp qword [0x1800c1580], 0
je 0x180085ff5
cmp qword [0x1800c1588], 0
je 0x180085ff5
cmp qword [0x1800c1590], 0
je 0x180085ff5
test rax, rax
jne 0x180085e8e
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.18007bcf0
mov rcx, qword [0x1800c1560]
test rcx, rcx
je 0x180086023
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1800c1560], 0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180077760
add rsp, 0x48
ret
Function at 0x14000885c
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 9
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x1400088fb
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x1400088fb
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x1400088fb
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x1400088fb
call qword [sym.imp.USER32.dll_GetFocus]
lea rdx, [rsp + 0x38]
mov r8d, 5
mov rcx, rax
call qword [sym.imp.USER32.dll_GetClassNameA]
lea rdx, [0x14000c950]
lea rcx, [rsp + 0x38]
mov r8d, 4
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x1400088fb
call qword [sym.imp.USER32.dll_GetFocus]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, 0x44e
call qword [sym.imp.USER32.dll_SendMessageA]
bt rax, 0xb
jae 0x140008926
lea rdx, [0x14000c908]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetPropA]
test rax, rax
je 0x140008926
mov rcx, qword [0x14000ed00]
lea rdx, [rax - 1]
call fcn.1400096c4
mov rax, qword [rax + 0x10]
jmp 0x140008928
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140008930
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov esi, 0x104
mov ecx, esi
call fcn.14000ab70
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsxd rbx, eax
test eax, eax
je 0x14000896f
cmp byte [rbx + rdi - 1], 0x5c
je 0x14000896f
mov byte [rbx + rdi], 0x5c
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.14000ad00
mov rsi, qword [rsp + 0x38]
movsxd r11, ebx
mov rbx, qword [rsp + 0x30]
mov byte [r11 + rdi], 0
add rsp, 0x20
pop rdi
ret

Function at 0x140008a44
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140008a57
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cdqe
jmp 0x140008a59
xor eax, eax
add rsp, 0x28
ret

Function at 0x140008b08
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov ebx, 0x104
mov ecx, ebx
call fcn.14000ab70
mov ecx, ebx
mov rdx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rcx, [0x14000c970]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
test rax, rax
je 0x140008b7a
lea rdx, [0x14000c958]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140008b71
mov r8d, ebx
mov rdx, rsi
mov rcx, rsi
call rax
mov edi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
sub ebx, edi
mov ecx, ebx
call fcn.14000ad00
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movsxd r11, edi
mov byte [r11 + rsi], 0
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400014d8
Capabilities:
Execute shellcode via indirect call

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
mov esi, r8d
cmp r8d, 2
jne 0x140001544
mov dword [0x1406c5060], 0x10
mov eax, 0xe2ff41
movups xmm0, xmmword [rcx]
mov qword [rsp + 0x20], 0xba49
shl rax, 0x28
mov qword [rsp + 0x25], rax
movups xmmword [0x1406c5064], xmm0
movups xmm1, xmmword [rcx]
mov qword [rsp + 0x22], rdx
mov rax, qword [rsp + 0x20]
movups xmmword [0x1406c5074], xmm1
mov qword [0x1406c5074], rax
mov rax, qword [rsp + 0x25]
mov qword [0x1406c5079], rax
mov ebp, dword [0x1406c5060]
xor eax, eax
lea r13, [rsp + 0x20]
mov rcx, rbx
mov dword [rsp + 0x20], eax
mov r12, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9, r13
mov r8d, 0x40
mov r14, rbp
mov rdx, rbp
call r12
test eax, eax
je 0x1400015ef
test esi, esi
lea rsi, [0x1406c5064]
mov rdi, rbx
mov rcx, rbp
lea rax, [rsi + 0x10]
cmovne rsi, rax
cmp qword [0x1406c5088], 0
rep movsb byte [rdi], byte [rsi]
jne 0x1400015bc
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtFlushInstructionCache
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1406c5088], rax
mov rsi, qword [0x1406c5088]
test rsi, rsi
je 0x1400015d9
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, r14d
mov rdx, rbx
mov rcx, rax
call rsi
mov r8d, dword [rsp + 0x20]
mov r9, r13
mov rdx, rbp
mov rcx, rbx
call r12
mov eax, 1
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x1400016a3
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov rcx, qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 2
lea rdx, [0x1400015fe]
jmp fcn.1400014d8

Function at 0x1400016bc
Capabilities:
Create thread

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
xor r9d, r9d
mov rbp, rcx
xor ecx, ecx
mov dword [rsp + 0x20], edx
mov ebx, edx
mov qword [rsp + 0x28], rcx
xor edx, edx
or rcx, 0xffffffffffffffff
mov r12, r8
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
xor r8d, r8d
xor r9d, r9d
mov edx, 0xf003f
mov rdi, rax
mov qword [rsp + 0x20], r8
mov rcx, rax
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
xor edi, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
jle 0x14000173b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rax, rdi
and eax, 7
mov al, byte [r12 + rax]
xor al, byte [rbp + rdi]
mov byte [rsi + rdi], al
inc rdi
jmp 0x14000171b
call fcn.1400016a3
mov rcx, rsi
lea r9, [rsp + 0x3c]
mov r8d, 0x20
call fcn.1400014a6
movsxd rdx, ebx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
xor edx, edx
mov r9, rsi
mov dword [rsp + 0x20], edx
lea r8, [0x140001487]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400017c0
Capabilities:
Connect pipe
Create pipe
Write file on windows
Write pipe

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r8d, r8d
mov r9d, 1
mov rdi, rcx
mov esi, edx
xor ecx, ecx
xor edx, edx
mov dword [rsp + 0x4c], edx
mov edx, 2
mov qword [rsp + 0x38], rcx
lea rcx, [0x1406c50a0]
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], r8d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov rbx, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000185f
xor edx, edx
mov rcx, rbx
lea rbp, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x14000185f
test esi, esi
jle 0x140001849
xor eax, eax
mov r9, rbp
mov r8d, esi
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140001854
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000185f
mov edx, dword [rsp + 0x4c]
add rdi, rdx
sub esi, edx
jmp 0x140001828
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140001886
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r9d, r9d
mov r8d, 3
mov rdi, rcx
mov ebx, edx
xor ecx, ecx
xor edx, edx
mov dword [rsp + 0x4c], edx
mov edx, 0x80000000
lea rbp, [rsp + 0x4c]
mov qword [rsp + 0x30], rcx
lea rcx, [0x1406c50a0]
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
xor eax, eax
cmp rsi, 0xffffffffffffffff
je 0x140001917
test ebx, ebx
jle 0x1400018fc
xor eax, eax
mov r9, rbp
mov r8d, ebx
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000190c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140001917
mov edx, dword [rsp + 0x4c]
add rdi, rdx
sub ebx, edx
jmp 0x1400018db
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140001978
Capabilities:
Create thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, qword [0x1406c28c0]
movsxd rcx, dword [rsi + 4]
call sub.msvcrt.dll_malloc
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rbx, rax
mov ecx, 0x400
call rdi
mov edx, dword [rsi + 4]
mov rcx, rbx
call fcn.140001886
test eax, eax
je 0x140001941
mov edx, dword [rsi + 4]
lea r8, [rsi + 8]
mov rcx, rbx
call fcn.1400016bc
mov rcx, rbx
call sub.msvcrt.dll_free
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
sub rsp, 0x68
mov r9d, 0x5c
mov r8d, 0x5c
lea rdx, str._c_c_c_c_c_c_c_c_ccprintsvcm
lea rcx, [0x1406c50a0]
mov dword [rsp + 0x50], 0x5c
mov dword [rsp + 0x48], 0x65
mov dword [rsp + 0x40], 0x70
mov dword [rsp + 0x38], 0x69
mov dword [rsp + 0x30], 0x70
mov dword [rsp + 0x28], 0x5c
mov dword [rsp + 0x20], 0x2e
call fcn.140001790
xor eax, eax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edx
xor r9d, r9d
lea r8, [0x140001868]
xor edx, edx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
add rsp, 0x68
jmp 0x140001920
Function at 0x140001cc0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400079f0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400079f0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001d30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1406c5154]
mov rbx, rcx
test esi, esi
jle 0x140001e60
mov rax, qword [0x1406c5158]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001d7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001e05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001d60
mov rcx, rbx
call fcn.1400027a0
mov rdi, rax
test rax, rax
je 0x140001e82
mov rax, qword [0x1406c5158]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400028e0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1406c5158]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001e67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001dfe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001e10
add dword [0x1406c5154], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1406c5158]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001dfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001cc0
nop dword [rax]
xor esi, esi
jmp 0x140001d88
mov rax, qword [0x1406c5158]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001cc0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001cc0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002410
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1406c51c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1406c51a0]
test rbx, rbx
je 0x14000246c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140002463
test eax, eax
jne 0x140002463
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002448
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400027a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1406c2730]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400027c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400027c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400027c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000281d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002814
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400027c0
add rax, 0x28
cmp rax, r9
jne 0x140002800
xor eax, eax
ret

Function at 0x140002820
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1406c2730]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000283f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002848
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000283f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400028e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1406c2730]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400028ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002908
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400024d0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x14006575c], 2
mov rbx, rcx
mov rdi, rdx
lea rcx, [0x140063120]
jne 0x140002549
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140065800]
mov r8d, 0x200
mov rdx, rdi
call fcn.140016120
cmp byte [0x140065a00], 0
jne case.default.0x140002542
xor r9d, r9d
mov r8d, 0xc8
mov rcx, rbx
lea edx, [r9 + 2]
mov byte [0x140065a00], 1
call qword [sym.imp.USER32.dll_SetTimer]
lea rcx, [0x140063120]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x140065a00], 0
je 0x14000256d
mov edx, 2
mov rcx, rbx
mov byte [0x140065a00], 0
call qword [sym.imp.USER32.dll_KillTimer]
lea rcx, [0x140063120]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r8, rdi
mov edx, 0x69
mov rcx, rbx
call fcn.140023970
lea rcx, str._s_r_n
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140026850
fstpnce st(4), st(0)
invalid