joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001fe0
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002cb2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x140002d4a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x140002d2e
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 0x140002d22
cmp qword [rbp - 0x10], 0
je 0x140002d22
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 0x140002ce8
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002d4b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002e50
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 0x140002e78
mov eax, 0
jmp 0x140002ec6
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 0x140002ea1
mov eax, 0
jmp 0x140002ec6
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 0x140002ec1
mov eax, 0
jmp 0x140002ec6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140002ecc
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 0x140002f4a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002f41
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 0x140002f41
mov rax, qword [rbp - 8]
jmp 0x140002f5f
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 0x140002f14
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1410ad5a0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x1410ad5cd
xor al, al
jmp 0x1410ad72f
mov rax, qword [0x1410cd6b0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1410cd6b8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1410cd6c0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1410cd6c8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1410cd6d0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1410cd6d8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1410cd6e0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1410cd6e8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x1410cd6f0]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x1410ad721
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x1410ad679
mov r11d, 2
jmp 0x1410ad69d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x1410ad693
mov r11d, 1
jmp 0x1410ad69d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x1410ad745
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x1410ad6e2
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x1410ad6fa
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x1410ad70a
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x1410ad718
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x1410ad660
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x1410ad72a
Function at 0x2e1c113f0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x98
mov r8d, 0x69
mov r10d, 0x6b
movabs rax, 0x6e7a4f342e6d7369
movabs rdx, 0x5c7075626c69635c
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
movabs rax, 0x633a5c7573657273
mov qword [rsp + 0x28], rdx
movabs rdx, 0x6f75742031302626
mov qword [rsp + 0x30], rax
movabs rax, 0x6569262674696d65
mov qword [rsp + 0x38], rdx
movabs rdx, 0x2f5a496272372f39
mov qword [rsp + 0x40], rax
movabs rax, 0x36342e31372e3539
mov qword [rsp + 0x48], rdx
movabs rdx, 0x703a2f2f39352e31
mov qword [rsp + 0x50], rax
movabs rax, 0x2e6d736920687474
mov qword [rsp + 0x58], rdx
movabs rdx, 0x6c69635c6e7a4f34
mov qword [rsp + 0x60], rax
movabs rax, 0x736572735c707562
mov qword [rsp + 0x68], rdx
movabs rdx, 0x202d6f20633a5c75
mov qword [rsp + 0x70], rax
movabs rax, 0x2f63206375725e6c
mov qword [rsp + 0x78], rdx
mov rdx, rcx
mov qword [rsp + 0x80], rax
mov eax, 0x6b
mov dword [rsp + 0x88], 0x636d6420
mov byte [rsp + 0x8c], 0
jmp 0x2e1c114f4
movzx r8d, byte [rdx]
movzx r9d, byte [rcx + rax]
add rdx, 1
mov byte [rdx - 1], r9b
mov byte [rcx + rax], r8b
sub rax, 1
mov r8d, r10d
sub r8d, eax
cmp r8d, eax
jl 0x2e1c114f0
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WinExec]
mov r9d, 0x10
lea r8, str.Internal_Error
xor ecx, ecx
lea rdx, str.An_internal_error_has_occurred.
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add rsp, 0x98
ret

Function at 0x2e1c116f0
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.2e1c123f0
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.2e1c123f0
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 0x2e1c11760
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x2e1c17064]
mov r12, rcx
test ebx, ebx
jle 0x2e1c11890
mov rax, qword [0x2e1c17068]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x2e1c117ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x2e1c11833
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x2e1c11790
mov rcx, r12
call fcn.2e1c11ee0
mov rsi, rax
test rax, rax
je 0x2e1c118b2
mov rax, qword [0x2e1c17068]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.2e1c12010
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x2e1c17068]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2e1c11897
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2e1c1182c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2e1c11840
add dword [0x2e1c17064], 1
add rsp, 0x50
pop rbx
pop rsi
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 rbx, qword [0x2e1c17068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2e1c1182c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2e1c116f0
nop dword [rax]
xor ebx, ebx
jmp 0x2e1c117b7
mov rax, qword [0x2e1c17068]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.2e1c116f0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.2e1c116f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2e1c11b50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x2e1c170a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2e1c17080]
test rbx, rbx
je 0x2e1c11ba4
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 0x2e1c11b9b
test r12, r12
je 0x2e1c11b9b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2e1c11b80
lea rcx, [0x2e1c170a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x2e1c11ee0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2e1c14220]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2e1c11f00
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2e1c11f08
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2e1c11f00
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x2e1c11f55
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x2e1c11f4c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2e1c11f00
add rax, 0x28
cmp rax, r9
jne 0x2e1c11f38
xor eax, eax
ret

Function at 0x2e1c11f60
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2e1c14220]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x2e1c11f80
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x2e1c11f88
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x2e1c11f80
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x2e1c12010
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2e1c14220]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x2e1c12030
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x2e1c12038
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140001487
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140020b60]
mov dword [rax], 1
mov rax, qword [0x140020b70]
mov dword [rax], 1
mov rax, qword [0x140020b80]
mov dword [rax], 1
mov rax, qword [0x140020af0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
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 0x140001504
mov eax, 0
jmp 0x140001585
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 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140008ca0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm6
lea rbx, [0x14001f30a]
lea rax, [0x1400320a0]
mov rcx, qword [0x1400340a8]
movq xmm6, rax
movq xmm0, rbx
punpcklqdq xmm6, xmm0
test rcx, rcx
je 0x140008d0f
call qword [sym.imp.KERNEL32.dll_GetProcessId]
xor ecx, ecx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
test eax, eax
je 0x140008d78
mov rcx, qword [0x1400340a8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1400340a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400340a0], 0
jne 0x140008d30
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
ret
mov eax, 0x414
mov dword [rsp + 0x48], 3
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], 0
mov word [rsp + 0x60], ax
mov dword [rsp + 0x64], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], rbx
movaps xmmword [rsp + 0x50], xmm6
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
jmp 0x140008d18
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x400
xor edx, edx
mov qword [rsp + 0x30], 0
mov r8d, eax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 0
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, str.Failed_to_send_CTRL_C_to_child_process.
call sub.msvcrt.dll_puts
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_puts
jmp 0x140008cf0
Function at 0x14000fb70
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rbp, qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r13, qword [sym.imp.KERNEL32.dll_ReadFile]
xor r14d, r14d
movdqa xmm6, xmmword [0x140020320]
lea r12, [0x1400340f0]
mov rsi, rdx
mov rdx, qword [0x140034100]
mov rdi, rcx
mov r8, qword [0x1400340f8]
sub r8, rdx
jne 0x14000fc2b
mov rcx, qword [0x1400340e0]
mov rdx, qword [0x1400340d8]
cmp rcx, rdx
setb al
or r14b, al
je 0x14000fc78
mov rcx, qword [0x1400340c8]
movups xmmword [0x1400340f8], xmm6
call fcn.14000e8f0
mov r8, rax
mov rax, qword [0x140034100]
cmp qword [0x1400340f8], rax
sete r14b
cmp r8, 0xffffffffffffff88
ja 0x14000fd0b
mov qword [0x1400340f8], rax
xor edx, edx
mov r8, qword [0x1400340f8]
mov qword [0x140034100], 0
sub r8, rdx
je 0x14000fbbc
cmp r8, rsi
mov rbx, r8
mov rcx, rdi
cmova rbx, rsi
add rdx, qword [r12]
mov r8, rbx
add rdi, rbx
call sub.msvcrt.dll_memcpy
mov rdx, qword [0x140034100]
add rdx, rbx
mov qword [0x140034100], rdx
sub rsi, rbx
jne 0x14000fbb0
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
cmp rcx, rdx
jne 0x14000fd0b
mov rbx, qword [0x1400340c0]
mov rcx, qword [0x1400340b8]
xor r8d, r8d
xor edx, edx
mov r9d, 1
call rbp
mov eax, eax
sub rbx, rax
je 0x14000fcff
mov r8d, ebx
cmp rbx, 0x20002
jbe 0x14000fcba
mov r8d, 0x20003
mov ebx, 0x20003
mov qword [rsp + 0x20], 0
mov rdx, qword [0x1400340d0]
lea r9, [rsp + 0x3c]
mov rcx, qword [0x1400340b8]
call r13
test eax, eax
je 0x14000fd10
mov eax, dword [rsp + 0x3c]
cmp rbx, rax
jne 0x14000fd10
add qword [0x1400340b0], rbx
mov qword [0x1400340e0], 0
mov qword [0x1400340d8], rbx
mov rdx, qword [0x140034100]
jmp 0x14000fbb0
call fcn.140008c60
lea rcx, str.Error__couldnt_read_attached_data.
call fcn.140008c00
nop
nop dword [rax]
Function at 0x140015c90
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 fcn.14001cb90
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14001cb90
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140016942
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400341e8]
test eax, eax
je 0x1400169da
lea rax, [0x1400341c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400341f0]
mov qword [rbp - 8], rax
jmp 0x1400169be
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 0x1400169b2
cmp qword [rbp - 0x10], 0
je 0x1400169b2
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 0x140016978
lea rax, [0x1400341c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400169db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140016ae0
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 0x140016b08
mov eax, 0
jmp 0x140016b56
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 0x140016b31
mov eax, 0
jmp 0x140016b56
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 0x140016b51
mov eax, 0
jmp 0x140016b56
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140016b5c
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 0x140016bda
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140016bd1
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 0x140016bd1
mov rax, qword [rbp - 8]
jmp 0x140016bef
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 0x140016ba4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x413240
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4133b9
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.0042d5a0
xorps xmm15, xmm15
mov r14, qword [0x006447e0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x58]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x4132b0
mov rbx, qword [rsp + 0x60]
jmp 0x4132c0
add rsp, 0x48
pop rbp
ret
sub rax, rbx
add rcx, rbx
mov rbx, rax
nop
test rbx, rbx
jbe 0x4132e5
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rcx
mov rax, rbx
jmp 0x4132f5
cmp rbx, 0x1000
jae 0x4132b6
nop dword [rax]
jmp 0x413369
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
cmp rbx, 0x1000
jae 0x413302
xor edx, edx
jmp 0x413360
mov qword [rsp + 0x30], rbx
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.0042d5a0
xorps xmm15, xmm15
mov r14, qword [0x006447e0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov edx, eax
mov rax, qword [rsp + 0x38]
nop
test dl, dl
jne 0x4132eb
jmp 0x4132d4
call fcn.00457fc0
xorps xmm15, xmm15
mov r14, qword [0x006447e0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
cmp eax, 8
jne 0x4133a0
lea rax, [0x0053d484]
mov ebx, 0xd
call fcn.0042fd60
nop dword [rax]
cmp eax, 0x5af
je 0x413388
lea rax, [0x0053f2eb]
mov ebx, 0x1f
call fcn.0042fd60
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004548e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00413240
Function at 0x41b3e0
Capabilities:
Hash data using murmur3

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41b5fa
push rbp
mov rbp, rsp
sub rsp, 0x30
test rax, 7
jne 0x41b5e8
mov qword [rsp + 0x40], rax
mov rdx, qword [rdi + 0x50]
test byte [rdx], al
mov r9, r8
shr r9, 3
mov r10, r8
and r10d, 7
nop
mov r11, rcx
mov rcx, r10
mov r12d, 1
shl r12d, cl
lea r10, [rdx + r9]
cmp byte [0x006445d1], 0
jne 0x41b521
cmp dword [0x00644b70], 0
nop
jle 0x41b469
cmp qword [rdi + 0xa0], r8
ja 0x41b469
mov r8, qword [rdi + 0x48]
test byte [r8], al
movzx r8d, byte [r9 + r8]
nop
nop dword [rax + rax]
test r12b, r8b
je 0x41b598
movzx edx, byte [r9 + rdx]
test r12b, dl
jne 0x41b51b
nop
lock or byte [r10], r12b
mov rcx, qword [rdi + 0x18]
movabs rdx, 0x800000000000
add rdx, rcx
mov r8, rdx
shr rdx, 0x2a
nop
nop
nop
nop word [rax + rax]
cmp rdx, 0x40
jae 0x41b58b
lea r9, [0x006169b8]
mov rdx, qword [r9 + rdx*8]
test byte [rdx], al
mov r9, rcx
shr r9, 0x10
and r9d, 0x3f
shr rcx, 0xd
and ecx, 7
mov r10d, 1
shl r10d, cl
shr r8, 0x16
and r8d, 0xfffff
mov rdx, qword [rdx + r8*8]
test byte [rdx], al
movzx r8d, byte [rdx + r9 + 0x11440]
lea rdx, [rdx + r9]
lea rdx, [rdx + 0x11440]
test r10b, r8b
jne 0x41b500
lock or byte [rdx], r10b
movzx edx, byte [rdi + 0x6a]
test dl, 1
je 0x41b542
mov rax, qword [rsi + 0x10]
add rax, qword [rdi + 0x70]
mov qword [rsi + 0x10], rax
add rsp, 0x30
pop rbp
ret
add rsp, 0x30
pop rbp
ret
mov qword [rsp + 0x60], rsi
mov rcx, r11
mov rdi, r10
mov esi, r12d
call fcn.00412e60
test al, al
jne 0x41b578
mov rax, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x60]
prefetcht0 byte [rax]
mov rdx, qword [rsi]
test rdx, rdx
je 0x41b567
mov rdi, qword [rdx + 0x10]
cmp rdi, 0xfd
je 0x41b567
jae 0x41b57e
mov qword [rdx + rdi*8 + 0x18], rax
inc qword [rdx + 0x10]
jmp 0x41b572
mov rbx, rax
mov rax, rsi
call fcn.004209c0
add rsp, 0x30
pop rbp
ret
add rsp, 0x30
pop rbp
ret
mov rax, rdi
mov ecx, 0xfd
call fcn.00456b60
mov rax, rdx
mov ecx, 0x40
call fcn.00456b80
lea rax, [0x0053cda7]
mov rcx, rbx
mov rdi, r11
mov ebx, 4
call fcn.0041b660
lea rax, [0x0053cca8]
mov ebx, 3
mov rcx, qword [rsp + 0x40]
mov rdi, 0xffffffffffffffff
call fcn.0041b660
mov rdx, qword [r14 + 0x30]
mov byte [rdx + 0xf9], 2
lea rax, [0x0053db2a]
mov ebx, 0x13
call fcn.0042fd60
lea rax, [0x0053fa95]
mov ebx, 0x23
call fcn.0042fd60
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], r8
call fcn.004548e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
nop dword [rax + rax]
jmp fcn.0041b3e0