joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140056240
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, edx
mov rbx, rcx
test rcx, rcx
je 0x1400562e6
mov edx, 0x40
call fcn.14005cf30
test al, al
jne 0x1400562e6
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x1400562e6
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x1400562e6
lea rsi, [rbx + rax]
mov edx, 0xf8
mov rcx, rsi
call fcn.14005cf30
test al, al
jne 0x1400562e6
cmp dword [rsi], 0x4550
jne 0x1400562e6
mov rcx, rbx
call fcn.1400558b0
mov ecx, 0x20b
cmp ax, cx
mov rcx, rbx
jne 0x1400562cc
call fcn.140056110
mov dword [rax + 0x50], edi
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call fcn.140056080
mov dword [rax + 0x50], edi
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor al, al
add rsp, 0x20
pop rdi
ret

Function at 0x140056480
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400564a2
xor al, al
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov edx, 0x40
mov qword [rsp + 0x30], rdi
call fcn.14005cf30
test al, al
jne 0x14005652e
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x14005652e
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x14005652e
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.14005cf30
test al, al
jne 0x14005652e
cmp dword [rdi], 0x4550
jne 0x14005652e
mov rcx, rbx
call fcn.1400558b0
mov ecx, 0x20b
lea r8, [rdi + 0xf8]
cmp ax, cx
je 0x140056507
lea r8, [rdi + 0xe8]
cmp dword [r8], 0
je 0x14005652e
mov rdx, rsi
mov rcx, rbx
call fcn.140055e40
mov rdi, qword [rsp + 0x30]
test rax, rax
setne al
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
xor al, al
add rsp, 0x20
pop rsi
ret

Function at 0x140056540
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400565c5
mov edx, 0x40
call fcn.14005cf30
test al, al
jne 0x1400565c5
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x1400565c5
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x1400565c5
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.14005cf30
test al, al
jne 0x1400565c5
cmp dword [rdi], 0x4550
jne 0x1400565c5
mov rcx, rbx
call fcn.1400558b0
mov ecx, 0x20b
cmp ax, cx
jne 0x1400565ad
add rdi, 0x88
jmp 0x1400565b1
add rdi, 0x78
mov eax, dword [rdi]
test eax, eax
je 0x1400565c5
add rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140065a10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x420
mov rax, qword [0x1400d73a8]
xor rax, rsp
mov qword [rsp + 0x410], rax
mov rbx, qword [rcx + 0x30]
mov r11, rcx
test rbx, rbx
jne 0x140065a3e
xor al, al
jmp 0x140065b37
xor r10d, r10d
lea r8, [rsp]
mov dword [rsp + 0x400], r10d
mov edx, r10d
mov eax, edx
mov ecx, 8
test al, 1
je 0x140065a64
shr eax, 1
xor eax, 0xedb88320
jmp 0x140065a66
shr eax, 1
dec rcx
jne 0x140065a57
inc edx
mov dword [r8], eax
add r8, 4
cmp edx, 0x100
jb 0x140065a50
mov r8, qword [r11 + 0x28]
mov edx, dword [rsp + 0x400]
test r8, r8
je 0x140065ac8
not edx
mov r9, r10
nop word [rax + rax]
movzx ecx, byte [r9 + rbx]
mov eax, edx
inc r9
xor rcx, rax
movzx eax, cl
mov ecx, edx
mov edx, dword [rsp + rax*4]
shr ecx, 8
xor edx, ecx
cmp r9, r8
jb 0x140065aa0
not edx
mov dword [rsp + 0x400], edx
mov r9, qword [r11 + 0x38]
test r9, r9
je 0x140065b03
test r8, r8
je 0x140065b31
not edx
nop dword [rax + rax]
movzx ecx, byte [r10 + r9]
mov eax, edx
inc r10
xor rcx, rax
movzx eax, cl
mov ecx, edx
mov edx, dword [rsp + rax*4]
shr ecx, 8
xor edx, ecx
cmp r10, r8
jb 0x140065ae0
not edx
jmp 0x140065b31
test r8, r8
je 0x140065b31
nop dword [rax + rax]
not edx
mov eax, edx
not eax
movzx ecx, al
mov eax, edx
mov edx, dword [rsp + rcx*4]
shr eax, 8
xor edx, eax
dec r8
not edx
mov dword [rsp + 0x400], edx
jne 0x140065b10
mov dword [r11 + 0x40], edx
mov al, 1
mov rcx, qword [rsp + 0x410]
xor rcx, rsp
call fcn.140086bc0
add rsp, 0x420
pop rbx
ret
Function at 0x14008f80b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400d73a8]
jne 0x140086bda
rol rcx, 0x10
test cx, 0xffff
jne 0x140086bd6
repz ret
ror rcx, 0x10
jmp 0x14008f764
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400d9d80]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400d9e78]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14008f7e9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400d9d80]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14008f80b
mov rax, qword [rsp + 0x88]
mov qword [0x1400d9e78], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400d9e18], rax
mov rax, qword [0x1400d9e78]
mov qword [0x1400d9cf0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400d9e00], rax
mov dword [0x1400d9ce0], 0xc0000409
mov dword [0x1400d9ce4], 1
mov rax, qword [0x1400d73a8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400d73b0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400d9d78], eax
mov ecx, 1
call fcn.14009a484
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400b6360]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400d9d78], 0
jne 0x14008f892
mov ecx, 1
call fcn.14009a484
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x14009242c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14009229c

Function at 0x14009571c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x140095746
call fcn.140089ee4
and dword [rax], 0
call fcn.140089ec4
mov ebx, 0x16
mov dword [rax], ebx
call fcn.14008faa8
mov eax, ebx
jmp 0x140095796
test edx, 0xfffffff9
jne 0x140095729
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14009576f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140089f04
call fcn.140089ec4
mov eax, dword [rax]
jmp 0x140095796
test al, 0x10
jne 0x140095794
test al, 1
je 0x140095794
test bl, 2
je 0x140095794
call fcn.140089ee4
mov dword [rax], 5
call fcn.140089ec4
mov dword [rax], 0xd
jmp 0x140095766
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14009b43c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1400d73a8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14008edf4
xor ebx, ebx
cmp qword [0x1400dadc0], rbx
mov rdi, rax
jne 0x14009b54f
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14009b626
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14009b626
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400dadc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400dadc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1400dadd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1400dade0], rax
test rax, rax
je 0x14009b546
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1400dadd8], rax
jmp 0x14009b556
mov rax, qword [0x1400dadd8]
jmp 0x14009b55d
mov rax, qword [0x1400dadd8]
mov r11, qword [0x1400dade0]
cmp rax, rdi
je 0x14009b5c4
cmp r11, rdi
je 0x14009b5c4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1400dade0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14009b5c4
test rax, rax
je 0x14009b5c4
call rsi
test rax, rax
je 0x14009b5be
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14009b5be
test byte [rsp + 0x40], 1
jne 0x14009b5c4
bts ebp, 0x15
jmp 0x14009b604
mov rcx, qword [0x1400dadc8]
cmp rcx, rdi
je 0x14009b604
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14009b604
call rax
mov rbx, rax
test rax, rax
je 0x14009b604
mov rcx, qword [0x1400dadd0]
cmp rcx, rdi
je 0x14009b604
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14009b604
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400dadc0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14009b626
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14009b628
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140086bc0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002839
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, rdx
mov rsi, rdx
call sub.msvcrt.dll_strlen
mov rcx, rsi
mov r9, rbx
mov edx, 1
mov r8, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140016fb0

Function at 0x1400055e1
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov rsi, rcx
mov ecx, 2
call qword [fcn.1400169d0]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140016fb0

Function at 0x140005620
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
cmp qword [0x14002f0f0], 0
jne 0x140005638
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.1400055e1
lea rsi, [rsp + 0x20]
mov rdx, rcx
mov rcx, rsi
call fcn.140005565
mov rbx, qword [rsp + 0x28]
mov rcx, rsi
call qword [0x14002f0f0]
test rbx, rbx
je 0x140005669
test byte [rbx + 7], 0x40
jne 0x140005669
mov rcx, rbx
call fcn.14000393d
lea rcx, [0x1400182e0]
call fcn.140011730
cmp byte [rax], 0
je 0x1400056a1
mov byte [rax], 0
lea rcx, [0x140018220]
call fcn.140011730
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140003e9a
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x1400059f7
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r12, [0x14002f0c0]
xor ebx, ebx
lea r14, [0x1400182e0]
mov rsi, rcx
mov rdi, rdx
lea r13, [rsp + 0x20]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbp, qword [fcn.1400169d0]
mov ecx, 1
cmp rbx, rdi
jl 0x140005a7d
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x14001a39b]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
call fcn.140016fb0
mov rcx, r12
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rbp
xor r8d, r8d
mov rdx, r13
mov rcx, rax
mov rax, rbx
shl rax, 4
movups xmm0, xmmword [rsi + rax]
movups xmmword [rsp + 0x20], xmm0
call fcn.14000590d
mov rcx, r14
call fcn.140011730
cmp byte [rax], 0
jne 0x140005aaf
inc rbx
jmp 0x140005a30
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x14000e191
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400184e0], 0
je 0x14000e1b0
mov edx, 1
jmp 0x14000e2ef
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
xor edx, edx
mov rcx, qword [rax + 0x10]
xor eax, eax
mov r11, qword [rcx + 0x30]
test r11, r11
je 0x14000e214
movsxd rdx, dword [r11 + 0x3c]
mov edx, dword [r11 + rdx + 0x88]
test edx, edx
je 0x14000e20c
lea rax, [rdx + r11]
mov edx, dword [rax + 0xc]
add rdx, r11
mov r8d, dword [rdx]
or r8d, 0x20202020
cmp r8d, 0x6c64746e
jne 0x14000e20c
mov edx, dword [rdx + 4]
or edx, 0x20202020
cmp edx, 0x6c642e6c
je 0x14000e217
mov rcx, qword [rcx]
mov rdx, r11
jmp 0x14000e1c5
mov r11, rdx
xor edx, edx
test rax, rax
je 0x14000e2ef
mov ebp, dword [rax + 0x1c]
mov esi, dword [rax + 0x24]
xor r10d, r10d
lea r13, [0x1400184e4]
mov edx, dword [rax + 0x18]
mov eax, dword [rax + 0x20]
add rsi, r11
add rbp, r11
lea ebx, [rdx - 1]
add rax, r11
lea rdi, [rax + rbx*4]
add rbx, rbx
add rbx, rsi
mov ecx, dword [rdi]
add rcx, r11
cmp word [rcx], 0x775a
jne 0x14000e283
mov eax, r10d
inc r10d
lea r12, [r13 + rax*8]
call fcn.14000e169
mov dword [r12], eax
movzx eax, word [rbx]
mov eax, dword [rbp + rax*4]
mov dword [r12 + 4], eax
cmp r10d, 0x1f4
je 0x14000e295
sub rdi, 4
lea rax, [rbx - 2]
cmp rsi, rbx
je 0x14000e295
mov rbx, rax
jmp 0x14000e24e
mov dword [0x1400184e0], r10d
lea r11, [0x1400184e4]
dec r10d
test r10d, r10d
je 0x14000e1a6
lea rax, [0x1400184e0]
xor edx, edx
lea ecx, [rdx + 1]
mov r8d, dword [rax + 8]
mov rdx, rcx
lea rcx, [r11 + rcx*8]
mov r9d, dword [rcx + 4]
cmp r9d, r8d
jae 0x14000e2e1
mov ebx, dword [rax + 4]
mov esi, dword [rcx]
mov dword [rax + 8], r9d
mov dword [rax + 4], esi
mov dword [rcx], ebx
mov dword [rcx + 4], r8d
add rax, 8
cmp edx, r10d
jb 0x14000e2b8
dec r10d
jmp 0x14000e2a6
mov eax, edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x14000e535
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x3950907
call fcn.14000e2fe
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
nop
syscall
ret

Function at 0x14000e578
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x8b19978d
call fcn.14000e2fe
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
nop
syscall
ret

Function at 0x14000e5bb
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x88a6285
call fcn.14000e2fe
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
nop
syscall
ret
Function at 0x14000ef60
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14000ef9e
cmp word [rcx], 0x5a4d
jne 0x14000ef9e
movsxd rdx, dword [rcx + 0x3c]
cmp edx, 0x400
jg 0x14000ef9e
call fcn.1400071d5
mov rcx, qword [0x140029f40]
mov rbx, rax
call fcn.140011730
cmp byte [rax], 0
jne 0x14000ef9e
cmp dword [rbx], 0x4550
je 0x14000efa0
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14000eff3
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x19991f17
call fcn.14000e2fe
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
nop
syscall
ret

Function at 0x14000f6cb
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xc85e88a6
call fcn.14000e2fe
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
nop
syscall
ret

Function at 0x14000f70e
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x8a92015
call fcn.14000e2fe
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
nop
syscall
ret

Function at 0x140010840
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.1400169d0
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.1400169d0
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 0x1400108b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002f854]
mov rbx, rcx
test esi, esi
jle 0x1400109e0
mov rax, qword [0x14002f858]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400108fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140010985
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400108e0
mov rcx, rbx
call fcn.140011320
mov rdi, rax
test rax, rax
je 0x140010a02
mov rax, qword [0x14002f858]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140011460
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002f858]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400109e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14001097e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140010990
add dword [0x14002f854], 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 [0x14002f858]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001097e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140010840
nop dword [rax]
xor esi, esi
jmp 0x140010908
mov rax, qword [0x14002f858]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140010840
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140010840
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140010f90
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14002f8c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002f8a0]
test rbx, rbx
je 0x140010fec
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 0x140010fe3
test eax, eax
jne 0x140010fe3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140010fc8
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 0x140011320
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140029f00]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140011340
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140011348
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140011340
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14001139d
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 0x140011394
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140011340
add rax, 0x28
cmp rax, r9
jne 0x140011380
xor eax, eax
ret

Function at 0x1400113a0
Capabilities:
Parse pe header

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

Function at 0x140011460
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140029f00]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14001147f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140011488
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140011730
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140029ed0]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x140011768
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1400117d0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x1400117e0
mov esi, dword [0x14002f948]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140011838
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x140011880
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x140011757
mov rcx, rbx
call fcn.140011690
mov qword [rsi + r12*8 + 8], rax
jmp 0x140011757
call fcn.140011690
mov qword [rbx + 0x10], rax
jmp 0x140011757
mov r10d, dword [rsi]
test r10d, r10d
je 0x140011911
mov r9d, dword [0x1400194d0]
test r9d, r9d
je 0x140011939
lea rcx, [0x14002f960]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x14001191e
mov eax, dword [rsi]
test eax, eax
je 0x140011771
lea rcx, [0x14002f960]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140011771
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sub.msvcrt.dll_calloc
mov rsi, rax
test rax, rax
je 0x140011974
mov qword [rax], rdi
mov ecx, dword [0x14002f948]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400117ab
call r13
jmp 0x1400117ab
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
mov rsi, rax
test rax, rax
je 0x140011974
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x14001185b
lea rcx, [0x14002f960]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14001196c
lea rdx, [0x140011640]
mov ecx, eax
mov dword [0x14002f948], eax
call fcn.1400170f0
test eax, eax
jne 0x140011974
mov dword [0x1400194d0], 1
mov edx, dword [rsi]
test edx, edx
jne 0x1400117fc
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x140011771
mov rax, qword [0x14002f940]
lea r12, [rax + 1]
mov qword [0x14002f940], r12
mov qword [rbx + 0x10], r12
jmp 0x140011816
lock add dword [0x1400194d4], 1
je 0x1400118c9
mov r8d, dword [0x1400194d0]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x1400194d0]
test r8d, r8d
jne 0x140011907
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x140011960
jmp 0x140011907
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400118f9
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
cmp qword [rcx], rdx
jae 0x140011990
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x14001199a
mov qword [rcx + 8], r8
test r9, r9
je 0x1400119a4
cmp qword [rcx], rdx
je 0x1400119a8
ret
mov qword [rcx + 0x18], r9
ret