joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180004620
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, rcx
cmp qword [rcx + 0x80], 0
je 0x180004859
cmp byte [rcx + 0x89], 0
je 0x180004859
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18000482d
mov edx, 0xf
mov qword [rbp - 0x10], rdx
mov byte [rbp - 0x28], 0
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], 8
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
xor r12d, r12d
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
nop word [rax + rax]
lea rdx, [rbp - 0x28]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp - 0x28]
cmovae r8, r10
mov rcx, qword [rdi + 0x80]
mov r10, qword [rcx]
mov rax, qword [rbp - 0x18]
lea r9, [rdx + rax]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x8c]
call qword [r10 + 0x30]
test eax, eax
je 0x1800046f8
dec eax
jne 0x1800047f7
jmp 0x1800046ff
mov byte [rdi + 0x89], r12b
lea rax, [rbp - 0x28]
mov r10, qword [rbp - 0x28]
mov r9, qword [rbp - 0x10]
cmp r9, 0x10
cmovae rax, r10
mov rbx, qword [rbp + 0x20]
sub rbx, rax
je 0x18000474d
lea rcx, [rbp - 0x28]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x98]
mov r8, rbx
mov edx, 1
call fcn.18000d038
cmp rbx, rax
jne 0x18000481d
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
cmp byte [rdi + 0x89], r12b
je 0x18000484b
test rbx, rbx
jne 0x1800046b0
or rax, 0xffffffffffffffff
mov r8, qword [rbp - 0x18]
sub rax, r8
cmp rax, 8
jbe 0x18000483e
lea rbx, [r8 + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x180004831
cmp r9, rbx
jae 0x1800047a1
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.180006f40
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
jmp 0x1800047be
test rbx, rbx
jne 0x1800047c7
mov qword [rbp - 0x18], r12
lea rax, [rbp - 0x28]
cmp r9, 0x10
cmovae rax, r10
mov byte [rax], r12b
jmp 0x18000469b
test rbx, rbx
je 0x1800046b0
lea rcx, [rbp - 0x28]
cmp r9, 0x10
cmovae rcx, r10
mov rax, qword [rbp - 0x18]
xor edx, edx
mov qword [rcx + rax], rdx
mov qword [rbp - 0x18], rbx
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rax, qword [rbp - 0x28]
mov byte [rax + rbx], dl
jmp 0x18000469b
sub eax, 2
je 0x180004810
cmp qword [rbp - 0x10], 0x10
jb 0x18000482d
mov rcx, qword [rbp - 0x28]
call fcn.18000ce1c
xor al, al
jmp 0x18000485b
cmp qword [rbp - 0x10], 0x10
jb 0x180004859
mov rcx, qword [rbp - 0x28]
jmp 0x180004854
cmp qword [rbp - 0x10], 0x10
jb 0x18000482d
mov rcx, qword [rbp - 0x28]
call fcn.18000ce1c
xor al, al
jmp 0x18000485b
lea rcx, str.string_too_long
call fcn.18000b158
int3
lea rcx, str.string_too_long
call fcn.18000b158
nop
cmp r9, 0x10
jb 0x180004859
mov rcx, r10
call fcn.18000ce1c
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x180016543
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18002cb70]
jne 0x18000e76a
rol rcx, 0x10
test cx, 0xffff
jne 0x18000e766
repz ret
ror rcx, 0x10
jmp 0x18001649c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18002f350]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x18002f448]
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 0x180016521
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, [0x18002f350]
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 0x180016543
mov rax, qword [rsp + 0x88]
mov qword [0x18002f448], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18002f3e8], rax
mov rax, qword [0x18002f448]
mov qword [0x18002f2c0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18002f3d0], rax
mov dword [0x18002f2b0], 0xc0000409
mov dword [0x18002f2b4], 1
mov rax, qword [0x18002cb70]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18002cb78]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18002f348], eax
mov ecx, 1
call fcn.180019fdc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180024c50]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18002f348], 0
jne 0x1800165ca
mov ecx, 1
call fcn.180019fdc
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 0x18001bd48
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 [0x18002cb70]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.180012c80
xor ebx, ebx
cmp qword [0x18002f8c8], rbx
mov rdi, rax
jne 0x18001be5b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x18001bf32
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001bf32
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18002f8c8], 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 [0x18002f8d0], 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 [0x18002f8d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x18002f8e8], rax
test rax, rax
je 0x18001be52
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 [0x18002f8e0], rax
jmp 0x18001be62
mov rax, qword [0x18002f8e0]
jmp 0x18001be69
mov rax, qword [0x18002f8e0]
mov r11, qword [0x18002f8e8]
cmp rax, rdi
je 0x18001bed0
cmp r11, rdi
je 0x18001bed0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x18002f8e8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x18001bed0
test rax, rax
je 0x18001bed0
call rsi
test rax, rax
je 0x18001beca
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 0x18001beca
test byte [rsp + 0x40], 1
jne 0x18001bed0
bts ebp, 0x15
jmp 0x18001bf10
mov rcx, qword [0x18002f8d0]
cmp rcx, rdi
je 0x18001bf10
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18001bf10
call rax
mov rbx, rax
test rax, rax
je 0x18001bf10
mov rcx, qword [0x18002f8d8]
cmp rcx, rdi
je 0x18001bf10
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18001bf10
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18002f8c8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18001bf32
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x18001bf34
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18000e750
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140006200
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x2b0
mov rbx, rcx
mov rdi, rdx
mov qword [rcx], 0
mov qword [rcx + 8], 0
mov qword [rcx + 0x10], 0
mov ecx, 0x410
call fcn.1400bb970
mov rsi, rax
mov word [rsp + 0x2a0], 0x16
mov word [rsp + 0x2a2], 0x43
mov word [rsp + 0x2a4], 0x46
mov word [rsp + 0x2a6], 0x6a
mov word [rsp + 0x2a8], 0x1d
mov word [rsp + 0x2aa], 0x16
mov word [rsp + 0x2ac], 0x13
mov word [rsp + 0x2ae], 0x3a
lea rcx, [rsp + 0x2a0]
mov edx, 0
movsxd rax, edx
imul rax, rax, 0xffffffff8d3dcb09
shr rax, 0x20
add eax, edx
sar eax, 5
mov r8d, edx
sar r8d, 0x1f
sub eax, r8d
imul eax, eax, 0x3a
mov r8d, edx
sub r8d, eax
lea eax, [r8 + 0x33]
xor word [rcx], ax
add edx, 1
add rcx, 2
cmp edx, 8
jne 0x140006298
mov r9, rdi
lea r8, [rsp + 0x2a0]
mov edx, 0x208
mov rcx, rsi
call sub.msvcrt.dll_swprintf_s
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov rax, qword [0x140198f10]
call qword [rax + 0x180]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140006454
lea r12, [rsp + 0x40]
lea r13, [rsp + 0x7c]
mov rbp, qword [0x140198f10]
jmp 0x140006405
mov qword [rsp + 0x30], r12
mov rcx, r13
call sub.msvcrt.dll_wcslen
lea rdi, [rax + rax]
mov r14, rdi
sar r14, 1
mov qword [rsp + 0x28], r14
cmp rdi, 0xe
ja 0x140006397
mov rcx, qword [rsp + 0x30]
cmp r14, 1
jne 0x1400063bd
movzx eax, word [rsp + 0x7c]
mov word [rcx], ax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x30]
mov word [rdx + rax*2], 0
mov rcx, qword [rbx + 8]
cmp rcx, qword [rbx + 0x10]
je 0x1400063ef
lea rax, [rcx + 0x10]
mov qword [rcx], rax
mov rdx, qword [rsp + 0x30]
mov r9d, 0
mov rax, qword [rsp + 0x38]
lea r8, [rdx + rax*2]
call fcn.1400aa830
jmp 0x1400063cf
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
mov r8d, 0
call fcn.1400ac620
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
jmp 0x140006343
test r14, r14
je 0x140006356
mov r8, rdi
mov rdx, r13
call sub.msvcrt.dll_memcpy
jmp 0x140006356
add qword [rbx + 8], 0x20
mov rcx, qword [rsp + 0x30]
cmp rcx, r12
je 0x140006410
mov rax, qword [rsp + 0x40]
lea rdx, [rax + rax + 2]
call fcn.1400bb960
jmp 0x140006410
lea r8, [rsp + 0x30]
mov rdx, rcx
mov rcx, rbx
call fcn.1400a5820
jmp 0x1400063d4
test eax, eax
je 0x140006420
test byte [rsp + 0x50], 0x10
je 0x140006321
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [rbp + 0x188]
jmp 0x140006401
mov rcx, rsi
mov rax, qword [0x140198f10]
call qword [rax + 0x190]
jmp 0x140006454
mov rax, rbx
add rsp, 0x2b0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140007786
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r10d, dword [rcx + rax + 0x88]
add r10, rcx
mov r9d, dword [r10 + 0x20]
mov r8d, dword [r10 + 0x18]
test r8d, r8d
je 0x140007803
mov r8d, r8d
mov edx, 0
add r9, rcx
jmp 0x1400077b8
add rdx, 1
cmp rdx, r8
je 0x14000780a
mov eax, dword [r9 + rdx*4]
add rax, rcx
cmp dword [rax], 0x50746547
jne 0x1400077af
cmp dword [rax + 4], 0x41636f72
jne 0x1400077af
cmp dword [rax + 8], 0x65726464
jne 0x1400077af
cmp word [rax + 0xc], 0x7373
jne 0x1400077af
cmp byte [rax + 0xe], 0
jne 0x1400077af
mov eax, dword [r10 + 0x24]
lea rdx, [rcx + rdx*2]
movzx edx, word [rdx + rax]
mov eax, dword [r10 + 0x1c]
lea rdx, [rcx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rcx
jmp 0x14000780f
mov eax, 0
jmp 0x14000780f
mov eax, 0
ret
Function at 0x14000c560
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rdi
push rsi
push rbx
mov r8, rdx
mov rax, rdx
mov rdx, rcx
add r8, 0x10
movzx r9d, byte [rax]
mov byte [rcx], r9b
movzx r9d, byte [rax + 1]
mov byte [rcx + 1], r9b
movzx r9d, byte [rax + 2]
mov byte [rcx + 2], r9b
movzx r9d, byte [rax + 3]
mov byte [rcx + 3], r9b
add rax, 4
add rcx, 4
cmp rax, r8
jne 0x14000c570
mov r11d, 4
lea rbx, [0x140193680]
lea rsi, [0x140193560]
jmp 0x14000c5e0
xor r9b, byte [rax]
mov byte [rax + 0x10], r9b
xor r8b, byte [rax + 1]
mov byte [rax + 0x11], r8b
xor r10b, byte [rax + 2]
mov byte [rax + 0x12], r10b
xor cl, byte [rax + 3]
mov byte [rax + 0x13], cl
add r11d, 1
add rdx, 4
cmp r11d, 0x2c
je 0x14000c632
mov rax, rdx
movzx r9d, byte [rdx + 0xc]
movzx r8d, byte [rdx + 0xd]
movzx r10d, byte [rdx + 0xe]
movzx ecx, byte [rdx + 0xf]
test r11b, 3
jne 0x14000c5b5
movzx r8d, r8b
movzx edi, byte [rbx + r8]
movzx r10d, r10b
movzx r8d, byte [rbx + r10]
movzx ecx, cl
movzx r10d, byte [rbx + rcx]
movzx r9d, r9b
movzx ecx, byte [rbx + r9]
mov r9d, r11d
shr r9d, 2
mov r9d, r9d
xor dil, byte [rsi + r9]
mov r9d, edi
jmp 0x14000c5b5
pop rbx
pop rsi
pop rdi
ret

Function at 0x14000c636
Capabilities:
Encode data using xor

Disassembly:
shl rcx, 4
and ecx, 0xff0
add r8, rcx
lea rcx, [rdx + 4]
lea r10, [rdx + 0x14]
lea rax, [rcx - 4]
mov rdx, r8
movzx r9d, byte [rdx]
xor byte [rax], r9b
add rax, 1
add rdx, 1
cmp rax, rcx
jne 0x14000c652
add r8, 4
add rcx, 4
cmp rcx, r10
jne 0x14000c64b
ret

Function at 0x14000c674
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
lea rdx, [rcx + 0x10]
lea r9, [rcx + 0x14]
lea r8, [0x140193680]
lea rax, [rdx - 0x10]
movzx ecx, byte [rax]
movzx ecx, byte [r8 + rcx]
mov byte [rax], cl
add rax, 4
cmp rax, rdx
jne 0x14000c687
add rdx, 1
cmp rdx, r9
jne 0x14000c683
ret

Function at 0x14000c6b5
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
lea rdx, [rcx + 0x10]
lea r9, [rcx + 0x14]
lea r8, [0x140193580]
lea rax, [rdx - 0x10]
movzx ecx, byte [rax]
movzx ecx, byte [r8 + rcx]
mov byte [rax], cl
add rax, 4
cmp rax, rdx
jne 0x14000c6c8
add rdx, 1
cmp rdx, r9
jne 0x14000c6c4
ret
Function at 0x14000c99f
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r13, rcx
mov qword [rsp + 0x88], rdx
mov r8, rdx
mov rdx, rcx
mov ecx, 0
call fcn.14000c636
mov dword [rsp + 0x2c], 1
lea rax, [r13 + 0x10]
mov qword [rsp + 0x20], rax
jmp 0x14000ca05
mov r8, qword [rsp + 0x88]
mov rdx, r13
mov esi, dword [rsp + 0x2c]
mov ecx, esi
call fcn.14000c636
mov eax, esi
add eax, 1
mov dword [rsp + 0x2c], eax
cmp eax, 0xa
je 0x14000caf9
mov rcx, r13
call fcn.14000c674
movzx eax, byte [r13 + 1]
movzx edx, byte [r13 + 5]
mov byte [r13 + 1], dl
movzx edx, byte [r13 + 9]
mov byte [r13 + 5], dl
movzx edx, byte [r13 + 0xd]
mov byte [r13 + 9], dl
mov byte [r13 + 0xd], al
movzx eax, byte [r13 + 2]
movzx edx, byte [r13 + 0xa]
mov byte [r13 + 2], dl
mov byte [r13 + 0xa], al
movzx eax, byte [r13 + 6]
movzx edx, byte [r13 + 0xe]
mov byte [r13 + 6], dl
mov byte [r13 + 0xe], al
movzx eax, byte [r13 + 3]
movzx edx, byte [r13 + 0xf]
mov byte [r13 + 3], dl
movzx edx, byte [r13 + 0xb]
mov byte [r13 + 0xf], dl
movzx edx, byte [r13 + 7]
mov byte [r13 + 0xb], dl
mov byte [r13 + 7], al
mov rbx, r13
movzx edi, byte [rbx]
movzx r12d, byte [rbx + 1]
mov ecx, edi
xor ecx, r12d
movzx ebp, byte [rbx + 2]
movzx esi, byte [rbx + 3]
mov r15d, ebp
xor r15d, esi
mov r14d, ecx
xor r14d, r15d
movzx ecx, cl
call fcn.14000c6a4
xor eax, edi
xor eax, r14d
mov byte [rbx], al
mov ecx, r12d
xor ecx, ebp
movzx ecx, cl
call fcn.14000c6a4
xor r12d, eax
xor r12d, r14d
mov byte [rbx + 1], r12b
movzx ecx, r15b
call fcn.14000c6a4
xor ebp, eax
xor ebp, r14d
mov byte [rbx + 2], bpl
xor edi, esi
movzx ecx, dil
call fcn.14000c6a4
xor esi, eax
xor r14d, esi
mov byte [rbx + 3], r14b
add rbx, 4
cmp rbx, qword [rsp + 0x20]
jne 0x14000ca7c
jmp 0x14000c9dd
mov rcx, r13
call fcn.14000c674
movzx eax, byte [r13 + 1]
movzx edx, byte [r13 + 5]
mov byte [r13 + 1], dl
movzx edx, byte [r13 + 9]
mov byte [r13 + 5], dl
movzx edx, byte [r13 + 0xd]
mov byte [r13 + 9], dl
mov byte [r13 + 0xd], al
movzx eax, byte [r13 + 2]
movzx edx, byte [r13 + 0xa]
mov byte [r13 + 2], dl
mov byte [r13 + 0xa], al
movzx eax, byte [r13 + 6]
movzx edx, byte [r13 + 0xe]
mov byte [r13 + 6], dl
mov byte [r13 + 0xe], al
movzx eax, byte [r13 + 3]
movzx edx, byte [r13 + 0xf]
mov byte [r13 + 3], dl
movzx edx, byte [r13 + 0xb]
mov byte [r13 + 0xf], dl
movzx edx, byte [r13 + 7]
mov byte [r13 + 0xb], dl
mov byte [r13 + 7], al
mov r8, qword [rsp + 0x88]
mov rdx, r13
mov ecx, 0xa
call fcn.14000c636
nop
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000cc94
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movups xmmword [rsp + 0x20], xmm6
mov rsi, rcx
mov rbx, rdx
mov ebp, r8d
test rbp, rbp
je 0x14000ccf1
mov edi, 0
movdqu xmm6, xmmword [rbx]
mov rdx, rsi
mov rcx, rbx
call fcn.14000c6e5
mov eax, 0
movzx edx, byte [rsi + rax + 0xb0]
xor byte [rbx + rax], dl
add rax, 1
cmp rax, 0x10
jne 0x14000ccc8
movups xmmword [rsi + 0xb0], xmm6
add rbx, 0x10
add rdi, 0x10
cmp rdi, rbp
jb 0x14000ccb4
movups xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x1400176c0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.140023840
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140023840
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140017730
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1401c0574]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x1400178e0
mov rax, qword [0x1401c0578]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14001777c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140017807
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140017760
mov rcx, r12
call fcn.1400181e0
mov rbp, rax
test rax, rax
je 0x14001793d
mov rax, qword [0x1401c0578]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.140018310
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1401c0578]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140017922
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140017800
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140017890
add dword [0x1401c0574], 1
cmp ebx, 8
jae 0x140017838
test bl, 4
jne 0x1400178f0
test ebx, ebx
je 0x140017829
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140017910
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140017829
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14001786a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1401c0578]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140017800
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400176c0
xor edi, edi
jmp 0x140017787
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140017829
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140017829
mov rax, qword [0x1401c0578]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.1400176c0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400176c0
nop
nop dword [rax]
Function at 0x140017e50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1401c05e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401c05c0]
test rbx, rbx
je 0x140017ea4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140017e9b
test r12, r12
je 0x140017e9b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140017e80
lea rcx, [0x1401c05e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400181e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140198d80]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140018259
mov rcx, r10
call fcn.1400180b0
test eax, eax
je 0x140018259
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140018256
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14001824d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140018259
add r8, 0x28
cmp r8, r9
jne 0x140018238
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140018550
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x1401c05c8]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x140017ee0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x140017f33
mov dword [rax], edi
lea rcx, [0x1401c05e0]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1401c05c0]
lea rcx, [0x1401c05e0]
mov qword [0x1401c05c0], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
or eax, 0xffffffff
jmp 0x140017ed6
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x140018580
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x140023c40
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x140023c50
xor eax, eax
ret
jmp 0x140017ec0

Function at 0x1400185c0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x140018600
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140018618
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]