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

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x208], 0
mov rbx, rcx
je 0x14006e0b0
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 0x14006e0b0
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.140070680
xor ecx, ecx
mov qword [0x1400ff828], 0
call qword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si ecx, qword [0x1400ff818]
mov qword [0x1400ff830], 0
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x1400ff820]
mov dword [rsp + 0x40], ecx
mov dword [rbx + 0x3a0], ecx
mov rcx, qword [rbx + 0x360]
mov dword [rsp + 0x44], eax
mov dword [rbx + 0x3a4], 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]
mov eax, dword [rbx + 0x8c]
cmp eax, 0x34001
je 0x14006e139
cmp eax, 0x34004
je 0x14006e139
mov rcx, qword [0x1400ff848]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x14006e152
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]

Function at 0x14006e170
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx + 0x360]
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 0x14006e1b2
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.140070680
add rsp, 0x38
ret

Function at 0x14006e260
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 0x11
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov esi, 0x8000
or edi, 2
mov ecx, 0x12
test si, ax
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
and ax, si
mov ecx, 0x5c
mov esi, edi
or esi, 4
test ax, ax
cmove 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, 0x14
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 0x14006f890
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 0x14006f8c0
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.140067450
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140070a30
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 [0x1400fc740]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, 0x100
call fcn.140078c28
xor edx, edx
lea rcx, [0x1400ff142]
mov r8d, 0x6d1
call fcn.140078c28
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1d0], rdi
sub r14, 0x480
lea rbp, [0x1400feec8]
xor r12d, r12d
lea r15, [0x1400ff1e2]
mov ebx, 0x20
movsx esi, word [rbp]
cmp esi, 0xffffffff
je 0x140070be8
cmp ebx, 0x140
jb 0x140070b4f
cmp ebx, 0x14e
ja 0x140070b4f
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], 0x6e
mov dword [rsp + 0x6c], 0x6f
mov dword [rsp + 0x70], 0x6a
mov dword [rsp + 0x74], 0x6d
mov dword [rsp + 0x78], 0x6b
mov edi, dword [r14]
jmp 0x140070b5e
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], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x140070bb1
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x140070be8
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 0x140070ab1
mov rdi, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140077f60
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 0x140074e20
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1400fc740]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x1400fe9c0], 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 0x140074e75
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140077f60
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
nop dword [rax]
mov rcx, rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x1400fe9c0], rax
test rax, rax
jne 0x140074eb7
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x140074e80
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.140067450
jmp 0x140074fd4
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400fe9c0]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x1400fe9c8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400fe9c0]
lea rdx, str.OSMesaDestroyContext
mov qword [0x1400fe9d0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400fe9c0]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x1400fe9d8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400fe9c0]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x1400fe9e0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400fe9c0]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x1400fe9e8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400fe9c0]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x1400fe9f0], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1400fe9c8], 0
mov qword [0x1400fe9f8], rax
je 0x140074fa7
cmp qword [0x1400fe9d8], 0
je 0x140074fa7
cmp qword [0x1400fe9e0], 0
je 0x140074fa7
cmp qword [0x1400fe9e8], 0
je 0x140074fa7
cmp qword [0x1400fe9f0], 0
je 0x140074fa7
test rax, rax
je 0x140074fa7
mov eax, 1
jmp 0x140074fd6
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140067450
mov rcx, qword [0x1400fe9c0]
test rcx, rcx
je 0x140074fd4
call fcn.140075870
mov qword [0x1400fe9c0], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140077f60
add rsp, 0x48
ret

Function at 0x1400787ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140078836
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140078836
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140078836
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140078836
cmp dword [rcx + 0x84], 0xe
jbe 0x140078836
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140078838
xor al, al
add rsp, 0x28
ret
Function at 0x100406bb0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x24], 0
mov rdi, rcx
je 0x100406bd0
add rcx, 0x88
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rdi + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x100406c0f
mov rax, 0xffffffffffffffff
cmp word [rdi + rax*2 + 0x8a], 0
lea rax, [rax + 1]
jne 0x100406be1
lea r8d, [rax + rax]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea rdx, [rdi + 0x88]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x10040ad80
Capabilities:
Get hostname

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rsp + 0x1f0], rbx
mov rax, qword [0x100420010]
xor rax, rsp
mov qword [rbp + 0x90], rax
movzx r12d, r8b
mov qword [rsp + 0x40], rdx
mov r13, rcx
lea rax, str.sql_ntdbms_storengdmudmpld_sqlwriter.yukon_sec_security.cxx
mov qword [rsp + 0x78], rax
lea rax, str.SECSECRC
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], 0x85c
mov qword [rbp - 0x74], 0x4000
xor ecx, ecx
mov dword [rbp - 0x18], 0x1000000
mov qword [rbp - 0x68], rcx
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x20], rcx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], ecx
lea rsi, str.CYKWSidCollection::VerifyIsLocal
mov qword [rsp + 0x58], rsi
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x60], rax
mov r8d, dword [rbp - 0x78]
mov dword [rsp + 0x68], r8d
mov r14d, dword [rbp - 0x74]
mov dword [rsp + 0x6c], r14d
mov r15d, dword [rbp - 0x70]
mov dword [rsp + 0x70], r15d
lea rbx, [0x1004243d0]
lea edi, [rcx + 2]
mov rcx, qword [rbx]
cmp dword [rcx + 8], 0
je 0x10040aeb2
cmp dword [rcx + 0x28], 0
je 0x10040aeb2
mov rax, qword [rcx]
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], r14d
mov r9d, r15d
mov rdx, qword [rsp + 0x78]
call qword [rax + 8]
mov rcx, qword [rbx]
mov rax, qword [rcx]
lea rdx, [0x10041465c]
call qword [rax + 0x18]
mov rcx, qword [rbx]
call fcn.1004067a0
mov r8d, dword [rbp - 0x78]
add rbx, 8
sub rdi, 1
jne 0x10040ae67
cmp byte [rbp - 0x15], dil
mov rsi, qword [rsp + 0x40]
je 0x10040aeee
lea rbx, [rbp - 0x68]
mov edi, 0xa
xor r14d, r14d
mov rcx, qword [rbx]
test rcx, rcx
je 0x10040aee4
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rbx], r14
add rbx, 8
sub rdi, 1
jne 0x10040aed3
test r12b, r12b
je 0x10040af0e
lea rcx, [r13 + 0x48]
mov rdx, rsi
call fcn.1004092c0
nop
lea rcx, [rsp + 0x50]
call fcn.1004016e0
mov al, 1
jmp 0x10040af58
mov rdx, qword [r13 + 0x50]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x10040af00
mov dword [rsp + 0x40], 0x10
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x10040af82
lea rdx, [rbp + 0x70]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
nop
lea rcx, [rsp + 0x50]
test eax, eax
je 0x10040af05
call fcn.1004016e0
xor al, al
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.10040fdf0
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rax, [rbp - 8]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0x4000
mov r9d, 0x874
lea r8, str.SECSECRC
lea rdx, str.sql_ntdbms_storengdmudmpld_sqlwriter.yukon_sec_security.cxx
lea rcx, [rbp - 8]
call fcn.100401340
nop
lea r8, [0x100417b68]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.100406d80
int3
Function at 0x10040cb00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x38
xor ebx, ebx
mov rdi, rcx
mov qword [rsp + 0x68], rbx
test rdx, rdx
je 0x10040cc70
lea rax, [rsp + 0x68]
xor r8d, r8d
lea r9d, [rbx + 1]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10040cc6d
mov qword [rsp + 0x30], rsi
lea r8, [0x10041465c]
lea rsi, [rdi + 0x1a08]
mov dword [rsp + 0x58], ebx
mov rcx, rsi
mov dword [rsp + 0x60], 0x208
sub r8, rsi
mov edx, 0x104
nop word [rax + rax]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x10040cb93
movzx eax, word [r8 + rcx]
test ax, ax
je 0x10040cb93
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x10040cb70
test rdx, rdx
lea rax, [rcx - 2]
lea r9, [rsp + 0x58]
cmovne rax, rcx
lea rdx, str.SharedCode
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
mov word [rax], bx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10040cc08
cmp dword [rsp + 0x58], 1
jne 0x10040cc01
mov eax, dword [rsp + 0x60]
test al, 1
jne 0x10040cc01
cmp eax, 2
jb 0x10040cc01
shr rax, 1
cmp word [rsi + rax*2 - 2], bx
je 0x10040cc17
cmp rax, 0x104
jae 0x10040cbfa
mov word [rsi + rax*2], bx
jmp 0x10040cc1b
mov ebx, 0x8007007a
jmp 0x10040cc17
mov ebx, 0x8007000b
jmp 0x10040cc17
jg 0x10040cc0e
mov ebx, eax
jmp 0x10040cc17
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x10040cc49
lea rax, [0x1004156c8]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rcx, [rdi + 0x1800]
lea r8, str._ls_ls
mov qword [rsp + 0x20], rsi
mov edx, 0x104
call fcn.1004050e0
jmp 0x10040cc59
cmp ebx, 0x80070002
jne 0x10040cc5b
mov rcx, rdi
call fcn.10040cca0
mov ebx, eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x30]
jmp 0x10040cc77
mov rcx, rdi
call fcn.10040cca0
mov ebx, eax
test ebx, ebx
jns 0x10040cc8f
lea rcx, [rdi + 0x1800]
xor edx, edx
mov r8d, 0x410
call sub.VCRUNTIME140.dll_memset
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret

Function at 0x10040dfa0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rcx
test rcx, rcx
je 0x10040dff6
mov rax, 0xffffffffffffffff
mov r10d, 0xffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x10040dfb5
add rax, rax
je 0x10040dff2
lea r11, [0x1004156f0]
nop dword [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov ecx, r10d
xor rdx, rcx
shr ecx, 8
movzx r8d, dl
mov r10d, dword [r11 + r8*4]
xor r10d, ecx
sub rax, 1
jne 0x10040dfd0
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x10040fbe0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x40
mov dword [rsp + 0x58], 0
mov r11, qword [rcx + 0x18]
lea rbx, [0x1004156f0]
nop dword [rax]
test r11, r11
je 0x10040fc6b
lea r10, [r11 + 0xc]
mov eax, dword [r10]
shl rax, 4
add rax, 0xc
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov qword [rsp + 0x28], r10
nop dword [rax]
nop dword [rax + rax]
mov rcx, rax
dec rax
mov qword [rsp + 0x20], rax
test rcx, rcx
je 0x10040fc62
movzx edx, byte [r10]
mov ecx, r9d
xor rdx, rcx
movzx r8d, dl
shr ecx, 8
mov r9d, dword [rbx + r8*4]
xor r9d, ecx
inc r10
mov qword [rsp + 0x28], r10
jmp 0x10040fc30
mov dword [r11 + 8], r9d
mov r11, qword [r11]
jmp 0x10040fc00
jmp 0x10040fc92
mov eax, dword [rsp + 0x58]
add rsp, 0x40
pop rbx
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140117490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1401174a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.1400f9610
jmp 0x14000123c
mov rax, qword [0x1401174a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1401174a0]
mov dword [rax], 1
mov rax, qword [0x1401174e0]
mov rdx, rax
mov rax, qword [0x1401174d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x14011b024], 1
mov rax, qword [0x1401174a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1401174c0]
mov rdx, rax
mov rax, qword [0x1401174b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1401174a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140117490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1401173e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1401173e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.1400f8898
mov rax, qword [0x140117520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140117480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400f8090
mov eax, dword [0x14011b004]
lea rdx, [0x14011b008]
mov ecx, eax
call fcn.14000147c
call fcn.1400f7e27
mov rax, qword [0x140117410]
mov rax, qword [rax]
mov rdx, qword [0x14011b010]
mov qword [rax], rdx
mov rcx, qword [0x14011b010]
mov rdx, qword [0x14011b008]
mov eax, dword [0x14011b004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14011b01c], eax
mov eax, dword [0x14011b020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14011b01c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x14011b024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14011b01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140117440]
mov dword [rax], 1
mov rax, qword [0x140117450]
mov dword [rax], 1
mov rax, qword [0x140117460]
mov dword [rax], 1
mov rax, qword [0x140117400]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400f80a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.1400f9400
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1400f8d72
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14011b168]
test eax, eax
je 0x1400f8e0a
lea rax, [0x14011b140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14011b170]
mov qword [rbp - 8], rax
jmp 0x1400f8dee
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400f8de2
cmp qword [rbp - 0x10], 0
je 0x1400f8de2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400f8da8
lea rax, [0x14011b140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400f8e0b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400f8f10
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400f8f38
mov eax, 0
jmp 0x1400f8f86
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400f8f61
mov eax, 0
jmp 0x1400f8f86
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400f8f81
mov eax, 0
jmp 0x1400f8f86
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400f8f8c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400f900a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400f9001
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400f9001
mov rax, qword [rbp - 8]
jmp 0x1400f901f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400f8fd4
mov eax, 0
add rsp, 0x20
pop rbp
ret