joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400652d4
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], 0
mov qword [rsp + 0x68], 0x1a
mov rax, qword [rsp + 0xa0]
cmp dword [rax + 0x30], 1
jne 0x140065337
mov qword [rsp + 0x68], 0x1c
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x60]
mov r8d, 0x1a
mov edx, dword [rsp + 0x70]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax]
call fcn.140018030
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x80]
add rsp, 0x98
ret

Function at 0x14006633c
Capabilities:
Parse pe header

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

Function at 0x1400742a4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400740d0

Function at 0x140081aa0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140081ac8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140081ac8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x18000dc88
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r15d, edx
mov rbx, rcx
test rcx, rcx
je 0x18000dcf8
movsxd rax, dword [rcx + 0x3c]
xor r14d, r14d
mov edi, dword [rax + rcx + 0x88]
movsxd r12, dword [rax + rcx + 0x8c]
add rdi, rcx
mov ebp, dword [rdi + 0x20]
mov esi, dword [rdi + 0x24]
add rbp, rcx
add rsi, rcx
cmp dword [rdi + 0x18], r14d
jbe 0x18000dcf8
mov ecx, dword [rbp]
or edx, 0xffffffff
add rcx, rbx
call fcn.18000d1ac
cmp eax, r15d
je 0x18000dd13
inc r14d
add rbp, 4
add rsi, 2
cmp r14d, dword [rdi + 0x18]
jb 0x18000dcd4
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
movzx eax, word [rsi]
test eax, eax
js 0x18000dcf8
mov ecx, dword [rdi + 0x1c]
add rcx, rbx
mov r8d, dword [rcx + rax*4]
add r8, rbx
cmp r8, rdi
jbe 0x18000dddd
lea rax, [rdi + r12]
cmp r8, rax
jae 0x18000dddd
mov al, byte [r8]
xor edx, edx
cmp al, 0x2e
je 0x18000dd60
lea r9, [rsp + 0x20]
mov rcx, r8
sub r9, r8
mov byte [r9 + rcx], al
inc rcx
inc edx
mov al, byte [rcx]
cmp al, 0x2e
jne 0x18000dd51
lea ecx, [rdx + 1]
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0x2e
movsxd rax, ecx
movsxd rbx, ecx
mov byte [rsp + rax + 0x20], 0x64
inc ecx
add rbx, r8
movsxd rax, ecx
mov byte [rsp + rax + 0x20], 0x6c
lea eax, [rcx + 1]
xor ecx, ecx
cmp byte [rbx], 0x23
cdqe
mov dword [rsp + 0x70], ecx
mov word [rsp + rax + 0x20], 0x6c
jne 0x18000ddc1
inc rbx
mov al, byte [rbx]
test al, al
je 0x18000ddbc
lea ecx, [rcx + rcx*4]
movsx eax, al
inc rbx
lea ecx, [rcx - 0x18]
lea ecx, [rax + rcx*2]
mov al, byte [rbx]
test al, al
jne 0x18000dda3
mov dword [rsp + 0x70], ecx
lea rbx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call qword [0x180020ea8]
mov rdx, rbx
mov rcx, rax
call qword [0x180020ea0]
jmp 0x18000dcfa
mov rax, r8
jmp 0x18000dcfa

Function at 0x18000dde8
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword gs:[0x60]
mov ebp, ecx
mov rdi, qword [rax + 0x18]
add rdi, 0x10
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x18000de82
mov r15d, 0x3f
xor r14d, r14d
cmp word [rbx + 0x58], r15w
jae 0x18000de7a
mov r8, qword [rbx + 0x60]
mov esi, r14d
mov rcx, r14
cmp word [r8], r14w
je 0x18000de5b
movsxd rax, esi
cmp rax, r15
jae 0x18000de5b
mov al, byte [r8 + rcx*2]
inc rcx
inc esi
mov byte [rsp + rcx + 0x1f], al
mov r8, qword [rbx + 0x60]
cmp word [r8 + rcx*2], r14w
jne 0x18000de3b
mov byte [rsp + rcx + 0x20], r14b
lea rcx, [rsp + 0x20]
call fcn.18000db64
lea rcx, [rsp + 0x20]
mov edx, esi
call fcn.18000d1ac
cmp ebp, eax
je 0x18000de9e
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x18000de24
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov rax, qword [rbx + 0x30]
jmp 0x18000de84
Function at 0x18000e9d8
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
and dword [0x180023098], 0
mov edx, 0xd26f2a4
xor ecx, ecx
call fcn.18000df78
call rax
lea rcx, [0x18001f740]
xor dword [rcx], eax
lea rdx, [0x18001f784]
add rcx, 4
cmp rcx, rdx
jl 0x18000e9f8
add rsp, 0x28
ret

Function at 0x180010798
Capabilities:
Encode data using xor

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 rbx, r8
mov rbp, rdx
mov rdi, rcx
call fcn.18000d3f0
movsxd r14, eax
mov rcx, r14
call fcn.18000c6b4
cmp byte [rdi], 0
mov rcx, rbp
mov rsi, rax
je 0x1800107f4
mov rdx, rax
sub rdx, rdi
mov al, byte [rdi]
xor al, byte [rcx]
inc rcx
mov byte [rdx + rdi], al
inc rdi
cmp byte [rcx], 0
cmove rcx, rbp
cmp byte [rdi], 0
jne 0x1800107db
mov r8, rbx
mov edx, r14d
mov rcx, rsi
call fcn.180010850
mov rcx, rsi
call fcn.18000c91c
movsxd rdx, dword [rbx + 8]
mov rax, rdx
test edx, edx
jle 0x180010829
mov rcx, qword [rbx]
cmp byte [rcx + rax - 1], 0x3d
jne 0x180010829
dec rax
dec edx
test rax, rax
jg 0x180010818
mov rcx, rbx
call fcn.18000d728
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r14
ret

Function at 0x180013074
Capabilities:
Inspect section memory permissions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rbp, dword [rcx + 0x3c]
mov r13d, edx
xor edx, edx
add rbp, rcx
mov r12, rcx
mov r15d, edx
movzx eax, word [rbp + 0x14]
cmp dx, word [rbp + 6]
jae 0x180013199
lea r14, [rbp + 0x3c]
add r14, rax
mov ecx, dword [r14 - 0x14]
test r13d, r13d
jne 0x180013156
mov eax, dword [r14]
lea esi, [r13 + 1]
and eax, 0xe0000000
cmp eax, 0x20000000
je 0x18001312a
cmp eax, 0x40000000
je 0x180013123
cmp eax, 0x60000000
je 0x18001311c
cmp eax, 0x80000000
je 0x180013115
cmp eax, 0xa0000000
je 0x18001310e
cmp eax, 0xc0000000
je 0x180013107
cmp eax, 0xe0000000
jne 0x18001312f
lea esi, [r13 + 0x40]
jmp 0x18001312f
mov esi, 4
jmp 0x18001312f
mov esi, 0x80
jmp 0x18001312f
mov esi, 8
jmp 0x18001312f
mov esi, 0x20
jmp 0x18001312f
mov esi, 2
jmp 0x18001312f
mov esi, 0x10
test dword [r14], 0x4000000
je 0x18001313c
bts esi, 9
test ecx, ecx
jne 0x18001315d
test byte [r14], 0x40
je 0x18001314b
mov ecx, dword [rbp + 0x20]
jmp 0x180013159
test byte [r14], 0x80
je 0x180013185
mov ecx, dword [rbp + 0x24]
jmp 0x180013159
mov esi, r13d
test ecx, ecx
je 0x180013185
mov edi, dword [r14 - 0x18]
mov ebx, dword [r14 - 0x1c]
mov edx, 0x72d1864
xor ecx, ecx
add rdi, r12
call fcn.18000df78
lea r9, [rsp + 0x50]
mov r8d, esi
mov edx, ebx
mov rcx, rdi
call rax
xor edx, edx
movzx eax, word [rbp + 6]
inc r15d
add r14, 0x28
cmp r15d, eax
jl 0x1800130b7
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180014ca0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
movsxd rbx, dword [rcx + 0x3c]
mov rbp, rcx
mov r14, r9
mov ecx, dword [rbx + rcx + 0x50]
mov r15, r8
mov rdi, rdx
mov qword [rdx], rcx
add rcx, 0x100
call fcn.18000c6b4
mov r8d, dword [rdi]
mov rdx, rbp
mov rcx, rax
mov rsi, rax
call fcn.18000c8ac
mov ecx, dword [rbx + rbp + 0xb0]
mov r9d, dword [rbx + rbp + 0xb4]
mov r8, r15
add rcx, rbp
mov rdx, rsi
sub r8, rbp
call fcn.180013684
lea rcx, [rsp + 0x50]
mov edx, 4
call fcn.18000e994
xor r8d, r8d
test qword [rdi], 0xfffffffffffffffc
jbe 0x180014d46
mov rdx, rsi
mov eax, dword [rsp + 0x50]
inc r8d
xor dword [rdx], eax
mov rcx, qword [rdi]
movsxd rax, r8d
shr rcx, 2
lea rdx, [rdx + 4]
cmp rax, rcx
jb 0x180014d2a
mov rax, r15
mov rdx, r15
sub rax, rbp
add qword [r14], rax
mov rcx, qword [rdi]
mov eax, dword [rsp + 0x50]
mov r9, qword [r14]
mov r8d, dword [rdi]
add rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.180014b24
mov rdx, qword [rdi]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rdx, r15
cdqe
mov qword [r14], rdx
add qword [rdi], rax
mov rax, rsi
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x180015154
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rdx, [0x18001f3c0]
mov r8d, 0xc8
mov rdi, rcx
call fcn.18000c84c
xor r9d, r9d
mov r8d, r9d
mov ecx, r9d
mov rdx, qword [rdi]
mov al, byte [rdx + r8]
inc r8
xor byte [rdx + rcx + 2], al
cmp r8, 2
cmove r8, r9
inc rcx
cmp rcx, 0xc6
jl 0x18001517c
mov edx, dword [rdi + 8]
mov rax, qword [rdi]
mov rcx, rdi
movzx ebx, byte [rax + 2]
lea r8d, [rdx - 3]
sub edx, r8d
call fcn.18000cc94
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.18000cc74
Function at 0x18001a87c
Capabilities:
Create pipe
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0x100
xor eax, eax
xor r15d, r15d
mov ebx, r8d
mov rsi, rcx
mov rdi, rdx
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rax
lea r8d, [rax + 0x68]
lea rcx, [rbp - 0x29]
xor edx, edx
mov dword [rbp - 0x61], 0x18
mov dword [rbp - 0x51], 1
mov qword [rbp - 0x59], r15
mov qword [rbp + 0x7f], r15
mov qword [rbp - 0x69], r15
call fcn.18000cc54
xor ecx, ecx
mov qword [rbp - 0x49], rcx
mov qword [rbp - 0x41], rcx
mov qword [rbp - 0x39], rcx
lea rcx, [rbp + 0x7f]
lea r8, [rbp - 0x61]
lea rdx, [rbp - 0x69]
xor r9d, r9d
mov dword [rbp - 0x29], 0x68
mov dword [rbp + 0x13], 1
mov word [rbp + 0x17], r15w
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x18001a91c
lea eax, [r15 + 1]
jmp 0x18001a9a8
mov rax, qword [rbp - 0x69]
bts dword [rbp + 0x13], 8
xor r9d, r9d
mov qword [rbp + 0x37], rax
mov qword [rbp + 0x2f], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x29]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov rdx, rsi
xor ecx, ecx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x18001a992
mov rdx, qword [rbp + 0x7f]
mov rcx, qword [rbp - 0x49]
mov r9d, ebx
mov r8, rdi
call fcn.18001a9c0
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
Function at 0x18001a9c0
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r13
push r14
sub rsp, 0x440
mov rdi, rdx
lea rax, [rsp + 0x30]
mov ebp, r9d
mov r14, r8
mov rsi, rcx
xor ebx, ebx
and qword [rsp + 0x28], rbx
xor r9d, r9d
xor edx, edx
mov rcx, rdi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x18001aac4
mov r13d, 0x400
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x18001aa69
movsxd rax, ecx
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x40]
cmp rax, r13
cmova ecx, r13d
and qword [rsp + 0x20], 0
mov r8d, ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r9d, dword [rsp + 0x34]
lea r8, [rsp + 0x40]
mov edx, ebp
mov rcx, r14
call fcn.1800187bc
mov ecx, dword [rsp + 0x30]
sub ecx, dword [rsp + 0x34]
mov dword [rsp + 0x30], ecx
jne 0x18001aa1f
jmp 0x18001aa9b
test ebx, ebx
jne 0x18001aa87
lea edx, [rbx + 0x64]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x18001aa9b
mov ebx, 0xa
jmp 0x18001aa9b
mov eax, ebx
dec ebx
cmp eax, 1
je 0x18001aac4
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x18001aa17
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r13
pop rdi
ret
Function at 0x140002d90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140008d90
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140008d90
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002e00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000f0a4]
mov rbx, rcx
test esi, esi
jle 0x140002f30
mov rax, qword [0x14000f0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002e4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002ed5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002e30
mov rcx, rbx
call fcn.140003850
mov rdi, rax
test rax, rax
je 0x140002f52
mov rax, qword [0x14000f0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003990
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000f0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002f37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002ece
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002ee0
add dword [0x14000f0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000f0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002ece
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002d90
nop dword [rax]
xor esi, esi
jmp 0x140002e58
mov rax, qword [0x14000f0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002d90
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002d90
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400034c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000f100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000f0e0]
test rbx, rbx
je 0x14000351c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003513
test rsi, rsi
je 0x140003513
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400034f8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003850
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000bd80]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003870
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003878
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003870
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400038cd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400038c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003870
add rax, 0x28
cmp rax, r9
jne 0x1400038b0
xor eax, eax
ret

Function at 0x1400038d0
Capabilities:
Parse pe header

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

Function at 0x140003990
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000bd80]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400039af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400039b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400ce350]
mov dword [rax], 1
mov rax, qword [0x1400ce360]
mov dword [rax], 1
mov rax, qword [0x1400ce370]
mov dword [rax], 1
mov rax, qword [0x1400ce340]
mov dword [rax], 1
mov rax, qword [0x1400ce1a0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
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 0x14000150a
mov eax, 0
jmp 0x14000158b
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 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400031bc
Capabilities:
Write file on windows

Disassembly:
push r12
sub rsp, 0x20
mov rax, qword [0x1400fc260]
test rax, rax
je 0x1400031d0
call rax
mov ecx, 2
call qword [fcn.14001e800]
mov r8d, 0xe
mov edx, 1
lea rcx, str.out_of_memory_n
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop

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

Disassembly:
push r12
push rdi
push rsi
sub rsp, 0x20
mov r9d, 0x40
mov r8d, 0x3000
mov r12, rdx
mov rsi, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, r12
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
call rax
xor eax, eax
add rsp, 0x20
pop rsi
pop rdi
pop r12
ret
mov rax, qword [0x1400ce320]
movsxd rdx, dword [rax]
mov rax, qword [0x1400ce310]
mov rcx, qword [rax]
jmp 0x140006edc
sub rsp, 0x28
call fcn.140006f26
nop
add rsp, 0x28
jmp 0x140006f3b

Function at 0x140006f3b
Capabilities:
Execute shellcode via indirect call

Disassembly:
push r12
push rdi
push rsi
sub rsp, 0x20
mov r9d, 0x40
mov r8d, 0x3000
mov r12, rdx
mov rsi, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, r12
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
call rax
xor eax, eax
add rsp, 0x20
pop rsi
pop rdi
pop r12
ret
mov rax, qword [0x1400ce320]
movsxd rdx, dword [rax]
mov rax, qword [0x1400ce310]
mov rcx, qword [rax]
jmp 0x140006edc
sub rsp, 0x28
call fcn.140006f26
nop
add rsp, 0x28
jmp 0x140006f3b
Function at 0x140006f53
Capabilities:
Execute shellcode via indirect call

Disassembly:
push r12
push rdi
push rsi
sub rsp, 0x20
mov r9d, 0x40
mov r8d, 0x3000
mov r12, rdx
mov rsi, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, r12
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
call rax
xor eax, eax
add rsp, 0x20
pop rsi
pop rdi
pop r12
ret
mov rax, qword [0x1400ce320]
movsxd rdx, dword [rax]
mov rax, qword [0x1400ce310]
mov rcx, qword [rax]
jmp 0x140006edc
sub rsp, 0x28
call fcn.140006f26
nop
add rsp, 0x28
jmp 0x140006f3b

Function at 0x140010a20
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.14001e800
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.14001e800
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140011652
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400fc388]
test eax, eax
je 0x1400116ea
lea rax, [0x1400fc360]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400fc390]
mov qword [rbp - 8], rax
jmp 0x1400116ce
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 0x1400116c2
cmp qword [rbp - 0x10], 0
je 0x1400116c2
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 0x140011688
lea rax, [0x1400fc360]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400116eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400117f0
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 0x140011818
mov eax, 0
jmp 0x140011866
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 0x140011841
mov eax, 0
jmp 0x140011866
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 0x140011861
mov eax, 0
jmp 0x140011866
mov eax, 1
add rsp, 0x20
pop rbp
ret