joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000cce0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r14d, r14d
mov r12, rdx
movsxd rdx, dword [rdx + 0x3c]
mov qword [rsp + 0xa0], rcx
add rdx, r12
mov esi, dword [rdx + 0x88]
add rsi, r12
mov r15d, dword [rsi + 0x20]
mov edi, dword [rsi + 0x24]
mov ebp, dword [rsi + 0x1c]
add r15, r12
cmp dword [rsi + 0x18], r14d
jbe 0x1000cdcc
mov ebx, r14d
mov qword [rsp + 0x28], rdx
mov r13d, dword [r15 + rbx*4]
add r13, r12
mov rcx, r13
call fcn.10017d90
cmp eax, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0x28]
jne 0x1000cdc4
add rbx, rbx
mov ecx, dword [rdx + 0x88]
add rbx, r12
movzx eax, word [rbx + rdi]
lea rax, [r12 + rax*4]
mov eax, dword [rax + rbp]
cmp eax, ecx
jbe 0x1000cdbf
add ecx, dword [rdx + 0x8c]
cmp eax, ecx
jae 0x1000cdbf
mov rcx, r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
call fcn.10031270
mov rcx, r13
mov word [rsp + 0x40], ax
call fcn.10031270
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, r12
inc eax
lea r9, [rsp + 0x38]
mov word [rsp + 0x42], ax
call qword [0x10048b38]
mov rax, qword [rsp + 0x38]
jmp 0x1000cdce
add rax, r12
jmp 0x1000cdce
inc r14d
jmp 0x1000cd1b
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1000ce50
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
xor r14d, r14d
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rbx, qword [rax + 0x10]
mov esi, ecx
mov r12, rdx
mov rbp, r8
mov r13d, r9d
lea r15, [rsp + 0x2c]
test rbx, rbx
je 0x1000cf32
mov r8, qword [rbx + 0x30]
test r8, r8
je 0x1000cf35
test esi, esi
je 0x1000ceb9
mov rcx, qword [rbx + 0x60]
call fcn.10017dc0
cmp eax, esi
jne 0x1000ceb9
test r13d, r13d
je 0x1000cf24
mov r8, qword [rbx + 0x50]
jmp 0x1000cf35
cmp qword [rbx + 0x30], r12
jne 0x1000cec5
mov r8, qword [rbx + 0x60]
jmp 0x1000cf35
test rbp, rbp
je 0x1000cf2a
mov r8, qword [rbx + 0x60]
test r8, r8
je 0x1000cf35
lea rdi, [rsp + 0x3c]
mov ecx, 0x15
mov eax, r14d
xor edx, edx
mov r9d, dword [rbx + 0x58]
mov qword [rsp + 0x2c], 0
rep stosd dword [rdi], eax
mov qword [rsp + 0x34], 0
lea eax, [rdx + rdx]
cmp r9w, ax
jbe 0x1000cf15
movzx eax, ax
mov cl, byte [r8 + rax]
movzx eax, dx
inc edx
mov byte [rsp + rax + 0x2c], cl
jmp 0x1000cefa
mov rdx, r15
mov rcx, rbp
call fcn.10014740
test eax, eax
je 0x1000cf2a
mov r8, qword [rbx + 0x30]
jmp 0x1000cf35
mov rbx, qword [rbx]
jmp 0x1000ce87
xor r8d, r8d
mov rax, r8
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1000cfb0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
cmp word [rax], 0x5a4d
jne 0x1000cfde
movsxd rdx, dword [rax + 0x3c]
lea rcx, [rdx - 0x40]
cmp rcx, 0x3bf
ja 0x1000cfde
cmp dword [rax + rdx], 0x4550
je 0x1000cfe3
dec rax
jmp 0x1000cfbd
ret
Function at 0x10016f30
Capabilities:
Check for software breakpoints

Disassembly:
cmp byte [rcx - 1], 0xcc
je 0x10016f8e
test r8d, r8d
jne 0x10016f3f
sub rcx, 0x20
mov r9b, byte [rcx]
cmp r9b, 0xe9
je 0x10016f52
mov r8b, byte [rcx + 3]
cmp r8b, 0xe9
jne 0x10016f59
inc edx
xor r8d, r8d
jmp fcn.10016f30
xor eax, eax
cmp r9b, 0x4c
jne 0x10016f90
cmp byte [rcx + 1], 0x8b
jne 0x10016f90
cmp byte [rcx + 2], 0xd1
jne 0x10016f8e
cmp r8b, 0xb8
jne 0x10016f8e
cmp byte [rcx + 6], 0
jne 0x10016f90
movzx eax, byte [rcx + 5]
shl eax, 8
mov r8d, eax
movzx eax, byte [rcx + 4]
or eax, r8d
add eax, edx
jmp 0x10016f90
xor eax, eax
ret

Function at 0x10018fb0
Capabilities:
Enumerate pe sections

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbx, rdx
mov edx, 1
call fcn.100177e0
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x10018fd5
xor eax, eax
jmp 0x100190e5
movsxd rsi, dword [rax + 0x3c]
lea rdi, [rsp + 0x40]
add rsi, rax
mov edx, dword [rsi + 0x50]
mov ecx, dword [rsi + 0x1c]
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x58], rax
mov qword [rsp + 0x38], rdx
mov qword [rbx + 0x68], rdx
mov edx, dword [rsi + 0x2c]
mov qword [rbx + 0x70], rcx
add rax, rdx
mov qword [rbx + 0x78], rax
call fcn.1002b4c0
mov rdx, qword [rbx + 0x78]
mov r8, qword [rbx + 0x70]
mov qword [rbx + 0x60], rax
mov rcx, rax
call fcn.100244a0
movzx eax, word [rsi + 0x14]
cmp qword [0x100465e0], 0
lea rax, [rsi + rax + 0x18]
mov qword [rbx + 0x38], rax
movzx eax, word [rsi + 6]
mov dword [rbx + 0x40], eax
jne 0x10019098
mov rcx, qword [rbx + 0x58]
call qword [0x100488e0]
mov rcx, qword [rbx + 0x58]
xor r9d, r9d
mov r8d, 1
movsxd rax, dword [rcx + 0x3c]
mov edx, dword [rcx + rax + 0x28]
add rdx, rcx
call fcn.10018bd0
mov qword [rsp + 0x20], rdi
or rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x30]
mov r9d, 4
lea r8, [rsp + 0x38]
mov dword [rsp + 0x40], 0
call fcn.10034be0
test eax, eax
jne 0x10018fce
mov rax, qword [rbx + 0x78]
jmp 0x100190e5
xor esi, esi
mov rdx, qword [rbx + 0x58]
mov eax, esi
cmp rax, qword [rbx + 0x70]
jae 0x1001903d
movsxd rcx, dword [rdx + 0x3c]
mov r9d, 1
add esi, 0x10
mov r8d, dword [rdx + rcx + 0x50]
mov qword [rsp + 0x40], rax
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x48], 1
add r8d, 0xfff
mov qword [rsp + 0x20], rdi
and r8d, 0xfffff000
call qword [0x100465e0]
jmp 0x1001909a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
Function at 0x1001f2e0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
mov r9, r8
cmp rdx, 0x3ff
jbe 0x1001f39a
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
movzx edx, word [rax + 0x14]
cmp word [rax + 4], 0x14c
lea r8, [rax + 0xe8]
movzx ebx, word [rax + 6]
lea rdx, [rax + rdx + 0x18]
je 0x1001f31c
lea r8, [rax + 0xf8]
mov eax, dword [r8]
xor r10d, r10d
mov r8, rdx
cmp r10d, ebx
jae 0x1001f350
mov r11d, dword [r8 + 0xc]
cmp eax, r11d
jb 0x1001f347
mov esi, dword [r8 + 0x10]
add esi, r11d
cmp eax, esi
jae 0x1001f347
add eax, dword [r8 + 0x14]
sub eax, r11d
jmp 0x1001f352
inc r10d
add r8, 0x28
jmp 0x1001f325
xor eax, eax
mov eax, dword [rcx + rax + 8]
xor r8d, r8d
cmp r8d, ebx
jae 0x1001f384
mov r10d, dword [rdx + 0xc]
cmp eax, r10d
jb 0x1001f37b
mov r11d, dword [rdx + 0x10]
add r11d, r10d
cmp eax, r11d
jae 0x1001f37b
add eax, dword [rdx + 0x14]
sub eax, r10d
jmp 0x1001f386
inc r8d
add rdx, 0x28
jmp 0x1001f359
xor eax, eax
lea r8, [rcx + rax + 0x10]
mov edx, 1
mov rcx, r9
pop rbx
pop rsi
jmp fcn.1000a050
pop rbx
pop rsi
ret

Function at 0x10025a60
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x70
mov r9d, 0x40
mov qword [rsp + 0x20], 0
mov rbx, r8
lea r8, [rsp + 0x30]
mov rsi, rdx
mov qword [rsp + 0x90], rcx
call fcn.100351c0
movsxd rdx, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x90]
mov r8, rbx
mov qword [rsp + 0x20], 0
mov r9d, 0x108
mov edi, eax
add rdx, rsi
call fcn.100351c0
cmp word [rsp + 0x30], 0x5a4d
jne 0x10025ad1
or edi, eax
jne 0x10025ad1
xor eax, eax
cmp dword [rbx], 0x4550
sete al
jmp 0x10025ad3
xor eax, eax
add rsp, 0x70
pop rbx
pop rsi
pop rdi
ret

Function at 0x10033a40
Capabilities:
Inspect section memory permissions

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov r9d, 2
mov rsi, qword [rcx + 0x38]
mov edi, dword [rcx + 0x40]
lea r12, [rsp + 0x34]
mov rbx, rcx
lea r8, [rsp + 0x38]
mov ebp, edx
mov qword [rsp + 0x20], r12
lea rdx, [rcx + 0x28]
or rcx, 0xffffffffffffffff
lea r13, [rsp + 0x48]
mov dword [rsp + 0x34], 0
lea r14, [rsp + 0x40]
mov qword [rsp + 0x38], 0x1000
call fcn.10034be0
dec edi
cmp edi, 0xffffffff
je 0x10033b56
mov eax, dword [rsi + 0xc]
add rax, qword [rbx + 0x28]
mov qword [rsp + 0x40], rax
mov eax, dword [rsi + 8]
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x48], rax
mov eax, dword [rsi + 0x24]
mov edx, eax
mov ecx, eax
shr edx, 0x1f
shl edx, 3
mov dword [rsp + 0x34], edx
and ecx, 0x40000000
je 0x10033ae2
cdq
and edx, 2
add edx, 2
mov dword [rsp + 0x34], edx
mov r8d, eax
and r8d, 0x20000000
je 0x10033af9
cdq
and edx, 0x70
add edx, 0x10
mov dword [rsp + 0x34], edx
mov edx, eax
and edx, 0x60000000
cmp edx, 0x60000000
jne 0x10033b11
mov dword [rsp + 0x34], 0x20
test r8d, r8d
setne dl
shr eax, 0x1f
test dl, al
je 0x10033b2a
test ecx, ecx
je 0x10033b2a
mov dword [rsp + 0x34], 0x40
mov r9d, dword [rsp + 0x34]
test ebp, ebp
jne 0x10033b39
cmp r9d, 0x20
je 0x10033b4d
mov qword [rsp + 0x20], r12
mov r8, r13
mov rdx, r14
or rcx, 0xffffffffffffffff
call fcn.10034be0
add rsi, 0x28
jmp 0x10033a97
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x180538058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1805381df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180538089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18053806f
add dl, dl
jne 0x180538096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805380f6
xor eax, eax
add dl, dl
jne 0x1805380a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805381ad
add dl, dl
jne 0x1805380b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805380c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805380d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805380dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1805380ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18053807e
mov eax, 1
add dl, dl
jne 0x180538106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180538113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805380fb
sub eax, ebx
mov ebx, 1
jne 0x18053814c
mov ecx, 1
add dl, dl
jne 0x18053812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18053813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180538123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18053807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180538168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180538175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18053815d
cmp eax, 0x7d00
jae 0x18053819b
cmp eax, 0x500
jb 0x180538196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18053807e
cmp eax, 0x7f
ja 0x18053819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18053807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1805381d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18053807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001550
Capabilities:
Encode data using xor

Disassembly:
movsx eax, byte [rcx]
test eax, eax
je 0x140001602
lea r8, [rcx + 1]
mov edx, 0xffffffff
nop dword [rax]
xor edx, eax
mov eax, edx
mov ecx, edx
shl eax, 0x1d
shl ecx, 0x1e
sar eax, 0x1f
sar ecx, 0x1f
and ecx, 0xee0e612c
and eax, 0x76dc419
xor eax, ecx
mov ecx, edx
shl ecx, 0x1c
sar ecx, 0x1f
and ecx, 0xedb8832
xor eax, ecx
mov ecx, edx
shl ecx, 0x1b
sar ecx, 0x1f
and ecx, 0x1db71064
xor eax, ecx
mov ecx, edx
shl ecx, 0x1a
sar ecx, 0x1f
and ecx, 0x3b6e20c8
xor eax, ecx
mov ecx, edx
shl ecx, 0x19
sar ecx, 0x1f
and ecx, 0x76dc4190
xor eax, ecx
mov ecx, edx
shl ecx, 0x18
sar ecx, 0x1f
and ecx, 0xedb88320
xor eax, ecx
mov ecx, edx
shr edx, 8
and ecx, 1
neg ecx
and ecx, 0x77073096
xor ecx, edx
add r8, 1
mov edx, ecx
xor edx, eax
movsx eax, byte [r8 - 1]
test eax, eax
jne 0x140001568
mov eax, edx
not eax
ret

Function at 0x140001680
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4a8
movaps xmmword [rsp + 0x490], xmm6
mov ecx, 0x20
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r15, qword [rax + 0x20]
lea r9, [rax + 0x20]
xor eax, eax
lea r13, [rsp + 0x160]
mov rdi, r13
rep stosq qword [rdi], rax
cmp r9, r15
je 0x1400017e6
mov qword [rsp + 0x48], r9
mov r12, qword [sym.imp.msvcrt.dll_strcpy_s]
xor r14d, r14d
lea rsi, [rsp + 0x50]
lea rbx, [rsp + 0x380]
lea rbp, [rsp + 0x270]
movq xmm6, qword [0x14010e020]
nop word [rax + rax]
mov rax, r14
mov ecx, 0x20
mov rdi, rsi
xor edx, edx
rep stosq qword [rdi], rax
mov ecx, 0x20
mov r9d, 0xffffffff
mov dword [rdi], 0
mov rdi, r13
rep stosq qword [rdi], rax
mov dword [rdi], 0
mov r8, qword [r15 + 0x40]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r8, rbx
mov edx, 0x104
mov rcx, r13
movzx eax, word [0x14010e028]
movq qword [rsp + 0x380], xmm6
mov word [rsp + 0x388], ax
call r12
mov r8, r13
mov edx, 0x104
mov rcx, rbp
call r12
mov edx, 0x104
mov r8, rsi
mov rcx, rbx
call r12
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__strlwr]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__strlwr]
mov rdx, rbp
mov rcx, rbx
call sub.msvcrt.dll_strstr
test rax, rax
je 0x1400017d8
mov rax, qword [r15 + 0x20]
movaps xmm6, xmmword [rsp + 0x490]
add rsp, 0x4a8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [r15]
cmp qword [rsp + 0x48], r15
jne 0x140001700
xor eax, eax
jmp 0x1400017b6
Function at 0x140001820
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbx, rcx
call fcn.140001680
mov r12, rax
test rax, rax
je 0x1400019d0
mov rcx, rbx
call fcn.140001550
mov ebp, eax
movsxd rax, dword [r12 + 0x3c]
mov r13d, dword [r12 + rax + 0x88]
add r13, r12
mov edx, dword [r13 + 0x18]
mov eax, dword [r13 + 0x20]
test edx, edx
je 0x1400019d0
lea r15, [r12 + rax]
lea rax, [rsp + 0x3f]
mov rdi, qword [0x1402458a0]
xor esi, esi
mov qword [rsp + 0x28], rax
jmp 0x1400018be
mov rdx, qword [rsp + 0x28]
mov r8d, 1
call fcn.140100650
mov rcx, rbx
call fcn.140001550
cmp eax, ebp
je 0x140001959
add rsi, 1
cmp esi, dword [r13 + 0x18]
jae 0x1400019d0
mov ebx, dword [r15 + rsi*4]
add rbx, r12
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov rdx, rbx
mov rcx, rdi
mov r8, rax
call fcn.140100650
mov r8d, 0x11
lea rdx, str.__Hash_of_fName:
mov rcx, rdi
call fcn.140100650
mov rcx, rbx
call fcn.140001550
mov rcx, rdi
mov edx, eax
call fcn.1400a8590
mov r8d, 8
lea rdx, str.__Hash:
mov r14, rax
mov rcx, rax
call fcn.140100650
mov rcx, r14
mov edx, ebp
call fcn.1400a8590
mov byte [rsp + 0x3f], 0xa
mov rcx, rax
mov rax, qword [rax]
mov rax, qword [rax - 0x18]
cmp qword [rcx + rax + 0x10], 0
jne 0x140001890
mov edx, 0xa
call fcn.1400a6e10
mov rcx, rbx
call fcn.140001550
cmp eax, ebp
jne 0x1400018b0
mov eax, dword [r13 + 0x24]
lea rdx, [r12 + rsi*2]
movzx edx, word [rdx + rax]
mov eax, dword [r13 + 0x1c]
lea rdx, [r12 + rdx*4]
mov ebx, dword [rdx + rax]
xor eax, eax
add rbx, r12
jmp 0x14000198e
add rax, 1
cmp rax, 0x20
je 0x1400018b0
cmp byte [rbx + rax], 0xf
jne 0x140001980
cmp byte [rbx + rax + 1], 5
jne 0x140001980
movzx edx, word [rbx + rax - 2]
test dx, dx
je 0x1400018b0
mov ecx, 0x10
mov dword [rsp + 0x28], edx
call fcn.140108500
mov edx, dword [rsp + 0x28]
mov qword [rax], rbx
mov dword [rax + 8], ebp
mov word [rax + 0xc], dx
jmp 0x1400019d2
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400019f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rdi
push rbx
sub rsp, 0x48
mov ecx, pe_nt_image_headers64
call fcn.140108500
mov ecx, 0x10
lea rbx, [rsp + 0x20]
movdqa xmm0, xmmword [str.NtAllocateVirtualMemory]
mov rdx, rax
mov rdi, rax
xor eax, eax
rep stosq qword [rdi], rax
mov rax, qword [0x14010e040]
mov rcx, rbx
mov qword [0x14026f040], rdx
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
call fcn.140001820
movdqa xmm0, xmmword [str.NtProtectVirtualNtCreateThreadExNtWriteFNtClose]
mov rcx, rbx
mov dword [rsp + 0x30], 0x6f6d654d
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov byte [rsp + 0x36], 0
mov rax, qword [0x14026f040]
movaps xmmword [rsp + 0x20], xmm0
mov qword [rax], r8
mov qword [rax + 8], r9
mov eax, 0x7972
mov word [rsp + 0x34], ax
call fcn.140001820
movdqa xmm0, xmmword [0x14010e060]
mov rcx, rbx
mov byte [rsp + 0x30], 0
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov rax, qword [0x14026f040]
movaps xmmword [rsp + 0x20], xmm0
mov qword [rax + 0x10], r8
mov qword [rax + 0x18], r9
call fcn.140001820
mov rcx, rbx
mov byte [rsp + 0x2c], 0
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov dword [rsp + 0x28], 0x656c6946
mov rax, qword [0x14026f040]
mov qword [rax + 0x20], r8
mov qword [rax + 0x28], r9
mov rax, qword [0x14010e060]
mov qword [rsp + 0x20], rax
call fcn.140001820
mov rcx, rbx
mov dword [rsp + 0x28], 0x656c69
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov rax, qword [0x14026f040]
mov qword [rax + 0x30], r8
mov qword [rax + 0x38], r9
mov rax, qword [0x14010e070]
mov qword [rsp + 0x20], rax
call fcn.140001820
mov rcx, rbx
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov rax, qword [0x14026f040]
mov qword [rax + 0x40], r8
mov qword [rax + 0x48], r9
mov rax, qword [0x14010e078]
mov qword [rsp + 0x20], rax
call fcn.140001820
movdqa xmm0, xmmword [str.NtWaitForSingleOFailed_to_create_file:]
mov rcx, rbx
mov edx, 0x74
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov word [rsp + 0x34], dx
mov rax, qword [0x14026f040]
mov dword [rsp + 0x30], 0x63656a62
movaps xmmword [rsp + 0x20], xmm0
mov qword [rax + 0x50], r8
mov qword [rax + 0x58], r9
call fcn.140001820
mov rcx, qword [rax]
mov rbx, qword [rax + 8]
mov rax, qword [0x14026f040]
mov qword [rax + 0x70], rcx
mov qword [rax + 0x78], rbx
add rsp, 0x48
pop rbx
pop rdi
ret
Function at 0x140018900
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.140025080
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.140025080
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 0x140018970
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14026f0c4]
mov rbx, rcx
test esi, esi
jle 0x140018aa0
mov rax, qword [0x14026f0c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400189bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140018a45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400189a0
mov rcx, rbx
call fcn.1400194a0
mov rdi, rax
test rax, rax
je 0x140018ac2
mov rax, qword [0x14026f0c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400195e0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14026f0c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140018aa7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140018a3e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140018a50
add dword [0x14026f0c4], 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 [0x14026f0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140018a3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140018900
nop dword [rax]
xor esi, esi
jmp 0x1400189c8
mov rax, qword [0x14026f0c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140018900
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140018900
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140019190
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp edx, 2
je 0x1400192c0
ja 0x1400191d8
test edx, edx
je 0x140019258
mov eax, dword [0x14026f108]
test eax, eax
je 0x140019340
mov dword [0x14026f108], 1
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp edx, 3
jne 0x1400191c5
mov eax, dword [0x14026f108]
test eax, eax
je 0x1400191c5
lea r12, [0x14026f120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14026f100]
test rbx, rbx
je 0x140019244
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 rsi, rsi
je 0x140019368
test eax, eax
jne 0x140019368
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140019218
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400191c5
mov eax, dword [0x14026f108]
test eax, eax
jne 0x1400192d8
mov eax, dword [0x14026f108]
cmp eax, 1
jne 0x1400191c5
mov rbx, qword [0x14026f100]
test rbx, rbx
je 0x140019291
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
call fcn.140025ae0
test rbx, rbx
jne 0x140019280
lea rcx, [0x14026f120]
mov qword [0x14026f100], 0
mov dword [0x14026f108], 0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x1400191c5
call fcn.1400188f0
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r12, [0x14026f120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14026f100]
test rbx, rbx
je 0x14001932c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140019358
test rsi, rsi
je 0x140019358
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140019308
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140019262
lea rcx, [0x14026f120]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x1400191bb
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140019308
jmp 0x14001932c
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140019218
jmp 0x140019244

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

Disassembly:
mov r8, qword [0x140245e90]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400194c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400194c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400194c0
movzx eax, word [rdx + 0x14]
sub rcx, r8
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140019515
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14001950c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400194c0
add rax, 0x28
cmp rax, r9
jne 0x1400194f8
xor eax, eax
ret