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

Disassembly:
mov r8, qword [0x14003fc80]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400339e0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400339e8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400339e0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140033a30
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140033a27
test rcx, rcx
je 0x1400339e0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140033a18
xor eax, eax
ret

Function at 0x140033a40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14003fc80]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140033a5f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140033a68
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140033a80
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14003fc80]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140033aa0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140033aa8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140033aa0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140033aa0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140033af4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140033b00
add rdx, 0x28
cmp r9, rdx
jne 0x140033ae0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140033b10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14003fc80]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140033b32
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140033b40
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140033b32
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140033b32
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140033b32
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140033b95
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140033ba8
add rdx, 0x28
cmp rdx, r10
jne 0x140033b80
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140033bb7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140033bc7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140033b9e
test ecx, ecx
jg 0x140033bb0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x180004ec4
Capabilities:
Parse pe header

Disassembly:
mov byte [rdi], al
mov al, 0x62
add al, 3
mov byte [rdi + 1], al
add dword [r8 - 0x77dffbac], r14d
add r14b, byte [r8 - 0x77c7fbf5]
add dh, byte [rax - 0x77c7fbf5]
add r8d, dword [r9 + 0x51]
xor r9, r9
inc r9
test r9, r9
je entry0
pop r9
mov al, 0x6e
add al, 7
mov byte [rdi + 4], al
mov al, 0x12
add al, 0x60
mov byte [rdi + 5], al
mov al, 0x13
add al, 0x5f
mov byte [rdi + 6], al
mov al, 0x46
add al, 0x1f
mov byte [rdi + 7], al
mov al, 0x26
add al, 0x48
mov byte [rdi + 8], al
mov al, 0x71
add al, 3
mov byte [rdi + 9], al
mov al, 0x26
add al, 0x2e
mov byte [rdi + 0xa], al
mov al, 0x16
add al, 0x52
mov byte [rdi + 0xb], al
push r9
xor r9, r9
inc r9
test r9, r9
je entry0
pop r9
mov al, 0x50
add al, 0x22
mov byte [rdi + 0xc], al
mov al, 0x3c
add al, 0x29
mov byte [rdi + 0xd], al
mov al, 0x4d
add al, 0x14
mov byte [rdi + 0xe], al
mov al, 0x28
add al, 0x3c
mov byte [rdi + 0xf], al
mov al, 0x34
add al, 0x15
mov byte [rdi + 0x10], al
mov al, 0x25
add al, 0x3f
mov byte [rdi + 0x11], al
mov byte [rdi + 0x12], 0
mov rcx, qword [rbp - 8]
mov rdx, rdi
sub rsp, 0x20
lea rax, [0x180004f95]
push rax
push r10
xor r10, r10
test r10, r10
jne entry0
inc r10
test r10, r10
je entry0
pop r10
mov rax, qword [rbp - 0x10]
jmp rax

Function at 0x180006e08
Capabilities:
Parse pe header

Disassembly:
mov rcx, 0
mov rdx, qword [rbp - 0x58]
mov r8, 0x3000
mov r9, 4
sub rsp, 0x20
mov rax, qword [rbp - 0xd0]
call rax
add rsp, 0x20
test rax, rax
je 0x180006f97
mov qword [rbp - 0x60], rax
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x70]
mov r8, qword [rbp - 0x68]
mov r9, 0
push 1
lea rax, [rbp - 0x58]
push rax
mov rax, qword [rbp - 0x58]
push rax
mov rax, qword [rbp - 0x60]
push rax
mov rax, qword [rbp - 0x30]
push rax
mov rax, qword [rbp - 0x48]
push rax
Function at 0x1400f0990
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400f099d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400f09ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400f0995
lea eax, [rcx + 1]
jmp 0x1400f09bb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400f09ce
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400f09b4
sub eax, 3
jb 0x1400f09ee
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400f0a3d
sar eax, 1
movsxd rbp, eax
jb 0x1400f0a24
jmp 0x1400f09fc
add ebx, ebx
jne 0x1400f09fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400f0a24
inc ecx
add ebx, ebx
jne 0x1400f0a0a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400f0a24
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400f0a1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400f0a0c
add ecx, 2
jmp 0x1400f0a29
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400f0952
jmp 0x1400f099d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x75600
mov dl, 0xd
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400f0a89
cmp rsi, rcx
jae 0x1400f0a91
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400f0a70
cmp al, 0x8f
ja 0x1400f0a70
cmp byte [rsi - 2], 0xf
je 0x1400f0a76
sub al, 0xe8
cmp al, 1
ja 0x1400f0a5a
cmp rsi, rcx
jae 0x1400f0a91
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400f0a60
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400f0a91
lodsb al, byte [rsi]
jmp 0x1400f0a70
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xed000]
mov eax, dword [rdi]
or eax, eax
je 0x1400f0afa
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1322b0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400f0a9e
jns 0x1400f0ad3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1400f0add
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400f0af4
mov qword [rbx], rax
add rbx, 8
jmp 0x1400f0abe
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400f0b34
cmp al, 0xef
ja 0x1400f0b26
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400f0b06
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400f0b15
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x24f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400f0b88
sub rsp, 0xffffffffffffff80
jmp 0x140074e50
Function at 0x140001e20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140044040]
xor rax, rsp
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rsp + 0x2c]
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140001edc
mov byte [rax], 0xc3
mov edx, dword [rsp + 0x2c]
lea r9, [rsp + 0x58]
mov r8d, 0x140
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001edc
call rbx
nop
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400288d0
add rsp, 0x70
pop rbx
ret
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400288d0
add rsp, 0x70
pop rbx
ret
Function at 0x140009b20
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140044040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140009b9d
nop dword [rax]
lea rdx, str.macspoof.exe
lea rcx, [rsp + 0x4c]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140009b99
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140009b70
jmp 0x140009b9d
mov edi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400288d0
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x14000cc80
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r14
mov r14, rcx
mov rsi, r8
mov rbp, rdx
sub r14, qword [r8 + 0x30]
je 0x14000ce02
test byte [r8 + 0x5e], 0x40
jne 0x14000ccad
xor eax, eax
mov rbp, qword [rsp + 0x30]
pop r14
pop rsi
ret
movzx edx, word [rsi + 0x14]
movzx eax, word [rsi + 6]
add rdx, 0x18
mov r8d, dword [r8 + 0xb0]
add rdx, rsi
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x14000ce02
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14000cce6
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14000ccfd
add rdx, 0x28
cmp rdx, r9
jb 0x14000ccd4
mov eax, 1
mov rbp, qword [rsp + 0x30]
pop r14
pop rsi
ret
mov qword [rsp + 0x18], rbx
mov ebx, dword [rdx + 0x14]
sub rbx, rcx
mov qword [rsp + 0x28], r15
mov r15d, dword [rsi + 0xb4]
add rbx, r8
add rbx, rbp
add r15, rbx
test rbx, rbx
je 0x14000cdf8
cmp rbx, r15
jae 0x14000cdf8
mov qword [rsp + 0x20], rdi
mov eax, dword [rbx + 4]
test eax, eax
je 0x14000cdf3
add eax, 0xfffffff8
shr eax, 1
je 0x14000cde4
lea r11, [rbx + 8]
mov edi, eax
movzx r8d, word [r11]
movzx eax, r8w
shr ax, 0xc
and r8d, 0x80000fff
jge 0x14000cd72
dec r8d
or r8d, 0xfffff000
inc r8d
cmp ax, 3
je 0x14000cd7e
cmp ax, 0xa
jne 0x14000cdd6
movzx eax, word [rsi + 0x14]
movzx ecx, word [rsi + 6]
add rax, 0x18
mov r9d, dword [rbx]
add rax, rsi
lea rdx, [rcx + rcx*4]
lea r10, [rax + rdx*8]
cmp rax, r10
jae 0x14000cdcb
nop dword [rax]
mov edx, dword [rax + 0xc]
cmp r9, rdx
jb 0x14000cdb2
mov ecx, dword [rax + 8]
add ecx, edx
cmp r9, rcx
jb 0x14000cdbd
add rax, 0x28
cmp rax, r10
jb 0x14000cda0
jmp 0x14000cdcb
mov ecx, dword [rax + 0x14]
sub rcx, rdx
add rcx, r9
add rcx, rbp
jne 0x14000cdce
mov rcx, rbp
movzx eax, r8w
add qword [rax + rcx], r14
add r11, 2
sub rdi, 1
jne 0x14000cd50
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, r15
jb 0x14000cd34
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x18]
mov r15, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov eax, 1
pop r14
pop rsi
ret
Function at 0x14000ce10
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push r12
push r15
sub rsp, 0x20
movzx eax, word [r8 + 0x14]
lea r10, [r8 + 0x18]
mov r11d, dword [r8 + 0x90]
add r10, rax
movzx eax, word [r8 + 6]
mov rsi, r8
mov r15, rdx
mov r12d, ecx
lea r9, [rax + rax*4]
lea r8, [r10 + r9*8]
cmp r10, r8
jae 0x14000ce71
nop dword [rax + rax]
mov ecx, dword [r10 + 0xc]
cmp r11, rcx
jb 0x14000ce68
mov eax, dword [r10 + 8]
add eax, ecx
cmp r11, rax
jb 0x14000cefe
add r10, 0x28
cmp r10, r8
jb 0x14000ce50
xor eax, eax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r14
test r11d, r11d
je 0x14000cedb
cmp dword [rsi + 0x94], 0
je 0x14000cedb
lea r14, [rax + 0x10]
nop dword [rax]
movzx edx, word [rsi + 0x14]
movzx eax, word [rsi + 6]
add rdx, 0x18
mov r8d, dword [r14 - 4]
add rdx, rsi
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x14000cedb
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14000ced2
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14000cf10
add rdx, 0x28
cmp rdx, r9
jb 0x14000cec0
mov eax, 1
mov r14, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop r12
pop rsi
ret
mov eax, dword [r10 + 0x14]
sub rax, rcx
add rax, r11
add rax, r15
jmp 0x14000ce73
mov edi, dword [rdx + 0x14]
sub rdi, rcx
add rdi, r8
add rdi, r15
je 0x14000cedb
mov rdx, rdi
mov ecx, r12d
call fcn.14000b4f0
mov rbp, rax
test rax, rax
je 0x14000d005
movzx r8d, word [rsi + 0x14]
movzx ecx, word [rsi + 6]
add r8, 0x18
mov r9d, dword [r14]
add r8, rsi
lea rdx, [rcx + rcx*4]
lea r10, [r8 + rdx*8]
cmp r8, r10
jae 0x14000cf72
mov ecx, dword [r8 + 0xc]
cmp r9, rcx
jb 0x14000cf69
mov eax, dword [r8 + 8]
add eax, ecx
cmp r9, rax
jb 0x14000cf84
add r8, 0x28
cmp r8, r10
jb 0x14000cf55
xor ebx, ebx
mov r8, qword [rbx]
test r8, r8
je 0x14000cfee
jns 0x14000cf93
movzx edx, r8w
jmp 0x14000cfd1
mov ebx, dword [r8 + 0x14]
sub rbx, rcx
add rbx, r9
add rbx, r15
jmp 0x14000cf74
movzx eax, word [rsi + 0x14]
movzx ecx, word [rsi + 6]
add rax, 0x18
add rax, rsi
lea rdx, [rcx + rcx*4]
lea r9, [rax + rdx*8]
cmp rax, r9
jae 0x14000cfcb
nop
mov edx, dword [rax + 0xc]
cmp r8, rdx
jb 0x14000cfc2
mov ecx, dword [rax + 8]
add ecx, edx
cmp r8, rcx
jb 0x14000cff7
add rax, 0x28
cmp rax, r9
jb 0x14000cfb0
xor ecx, ecx
lea rdx, [rcx + 2]
mov rax, rdi
mov rcx, rax
call fcn.14000c9b0
add rax, rbp
mov qword [rbx], rax
add rbx, 8
mov r8, qword [rbx]
test r8, r8
jne 0x14000cf7c
add r14, 0x14
jmp 0x14000cea0
mov ecx, dword [rax + 0x14]
sub rcx, rdx
add rcx, r8
add rcx, r15
jmp 0x14000cfcd
jmp 0x14000cee0
Function at 0x140011960
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140011981
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400119ae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400119b0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140011a09
test ecx, ecx
jle 0x1400119e9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140011a09
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140011a09
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
add dword [rax], ebp
invalid
Function at 0x140011fc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140044040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140011fed
xor eax, eax
jmp 0x140012159
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140012027
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140012027
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140012159
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001214c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001206a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140012095
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140012151
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140012104
sub eax, 1
je 0x140012104
cmp eax, 2
jne 0x14001214c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140012151
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140012132
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14001214c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140012151
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400288d0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140013e00
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140044040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140013ed3
cmp byte [rcx + 0x71], 0
je 0x140013ed3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140013ecf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140013e94
sub eax, 1
je 0x140013e98
cmp eax, 2
jne 0x140013ecf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400288d0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140013ec6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140013ecf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140013e7c
xor al, al
jmp 0x140013e7c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400288d0
add rsp, 0x60
pop rbx
ret
Function at 0x1400207a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140020801
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x1400207c0
mov ecx, dword [r9]
jmp 0x1400208eb
cmp ecx, 0x4e0
jb 0x1400208eb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140020820
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140020870
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret