joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002b694
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400174d0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002b71e
cmp byte [rbp - 0x21], r15b
je 0x14002b719
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002b754
call fcn.14001c2f0
test eax, eax
jne 0x14002b740
cmp byte [rbp - 0x21], r15b
je 0x14002b738
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002b754
cmp byte [rbp - 0x21], r15b
je 0x14002b751
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140017afc
test eax, eax
jne 0x14002b7f4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400174d0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002b793
cmp byte [rbp - 0x21], r15b
je 0x14002b7c8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14002b7c8
call fcn.14001c2f0
test eax, eax
jne 0x14002b7b4
cmp byte [rbp - 0x21], r15b
je 0x14002b7ad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14002b7c8
cmp byte [rbp - 0x21], r15b
je 0x14002b7c5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140017afc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002b7f4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002b7f7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002b805
mov rcx, rdi
call fcn.14001b83c
cmp byte [rbp + 0x3f], r15b
je 0x14002b814
mov rcx, qword [rbp + 0x27]
call fcn.14001b83c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14002c44c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400215f4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400215f4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002c59c
cmp rax, 0xffffffffffffffff
je 0x14002c59c
xor edi, edi
test rbp, rbp
jle 0x14002c547
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001bfb0
mov rbx, rax
test rax, rax
jne 0x14002c4d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002c53d
mov edx, 0x8000
mov ecx, r14d
call fcn.140018e54
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001fd44
cmp eax, 0xffffffff
je 0x14002c51d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002c4e4
mov edx, r15d
mov ecx, r14d
call fcn.140018e54
jmp 0x14002c53d
cmp byte [rsi + 0x38], dil
je 0x14002c534
cmp dword [rsi + 0x34], 5
jne 0x14002c534
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002c53d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b83c
jmp 0x14002c5b0
jns 0x14002c5b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400215f4
cmp rax, 0xffffffffffffffff
jne 0x14002c568
cmp byte [rsi + 0x30], dil
je 0x14002c5b0
mov edi, dword [rsi + 0x2c]
jmp 0x14002c5b0
mov ecx, r14d
call fcn.140025358
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002c5b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14002c5b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002c5a9
mov eax, dword [rsi + 0x2c]
jmp 0x14002c5ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400215f4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002d3a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002d3c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002d3c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002c70
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.140003d20
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.140003d20
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 0x140002ce0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400080a4]
mov rbx, rcx
test esi, esi
jle 0x140002e10
mov rax, qword [0x1400080a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002d2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002db5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002d10
mov rcx, rbx
call fcn.140003730
mov rdi, rax
test rax, rax
je 0x140002e32
mov rax, qword [0x1400080a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003870
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400080a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002e17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002dae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002dc0
add dword [0x1400080a4], 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 [0x1400080a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002dae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002c70
nop dword [rax]
xor esi, esi
jmp 0x140002d38
mov rax, qword [0x1400080a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002c70
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002c70
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400033a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x1400033fc
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 0x1400033f3
test rsi, rsi
je 0x1400033f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400033d8
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 0x140003730
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140005a10]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003750
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003758
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003750
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400037ad
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 0x1400037a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003750
add rax, 0x28
cmp rax, r9
jne 0x140003790
xor eax, eax
ret

Function at 0x1400037b0
Capabilities:
Parse pe header

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

Function at 0x140003870
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005a10]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000388f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003898
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x180001000
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using murmur3

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov rax, qword gs:[0x30]
mov ebp, ecx
mov rdx, qword [rax + 0x60]
mov rax, qword [rdx + 0x18]
mov rdx, qword [rax + 0x20]
mov rsi, qword [rdx]
mov rdi, qword [rsi - 0x10]
lea rbx, [rsi - 0x10]
cmp rdi, rsi
je 0x180001111
nop
mov r8, qword [rbx + 0x60]
mov rax, r8
cmp word [r8], 0
je 0x18000105a
nop
add rax, 2
cmp word [rax], 0
jne 0x180001050
sub rax, r8
xor r11d, r11d
sar rax, 1
cmp eax, 3
jle 0x18000109e
mov ecx, eax
sar ecx, 2
movsxd r9, ecx
mov ecx, dword [r8]
add r8, 4
imul edx, ecx, 0xcc9e2d51
ror edx, 0x11
imul ecx, edx, 0x1b873593
xor r11d, ecx
ror r11d, 0x13
add r11d, 0xfaddaf14
lea r11d, [r11 + r11*4]
sub r9, 1
jne 0x180001070
test al, 3
je 0x1800010d8
mov r9d, eax
and r9d, 3
xor edx, edx
lea r10, [r9 - 1]
lea r10, [r8 + r10*2]
movzx ecx, word [r10]
lea r10, [r10 - 2]
shl edx, 8
or edx, ecx
sub r9, 1
jne 0x1800010b3
imul ecx, edx, 0xcc9e2d51
ror ecx, 0x11
imul ecx, ecx, 0x1b873593
xor r11d, ecx
xor r11d, eax
mov eax, r11d
shr eax, 0x10
xor eax, r11d
imul ecx, eax, 0x85ebca6b
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
cmp eax, ebp
je 0x180001128
mov rbx, rdi
mov rdi, qword [rdi]
cmp rdi, rsi
jne 0x180001040
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
mov rax, qword [rbx + 0x30]
jmp 0x180001113
Function at 0x180001130
Capabilities:
Encode data using xor
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
movsxd rax, dword [rcx + 0x3c]
mov rsi, rcx
mov r13d, edx
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov r15d, dword [r8 + 0x1c]
mov r14d, dword [r8 + 0x20]
add r15, rcx
mov r12d, dword [r8 + 0x24]
add r14, rcx
mov ebp, dword [r8 + 0x18]
add r12, rcx
xor ecx, ecx
movzx ebx, cx
test ebp, ebp
je 0x180001273
nop word [rax + rax]
movzx edi, bx
mov r8d, dword [r14 + rdi*4]
add r8, rsi
mov rax, r8
cmp byte [r8], 0
je 0x1800011ab
inc rax
cmp byte [rax], 0
jne 0x1800011a3
sub eax, r8d
mov r11d, ecx
cmp eax, 3
jle 0x1800011f0
mov ecx, eax
sar ecx, 2
movsxd r9, ecx
nop
mov ecx, dword [r8]
add r8, 4
imul edx, ecx, 0xcc9e2d51
ror edx, 0x11
imul ecx, edx, 0x1b873593
xor r11d, ecx
ror r11d, 0x13
add r11d, 0xfaddaf14
lea r11d, [r11 + r11*4]
sub r9, 1
jne 0x1800011c0
xor ecx, ecx
test al, 3
je 0x180001235
mov r9d, eax
mov edx, ecx
and r9d, 3
lea r10, [r9 - 1]
add r10, r8
nop dword [rax]
nop dword [rax + rax]
movsx ecx, byte [r10]
lea r10, [r10 - 1]
shl edx, 8
or edx, ecx
sub r9, 1
jne 0x180001210
imul ecx, edx, 0xcc9e2d51
ror ecx, 0x11
imul ecx, ecx, 0x1b873593
xor r11d, ecx
xor r11d, eax
mov eax, r11d
shr eax, 0x10
xor eax, r11d
imul ecx, eax, 0x85ebca6b
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
cmp eax, r13d
je 0x180001292
inc bx
mov ecx, 0
movzx eax, bx
cmp eax, ebp
jb 0x180001190
xor eax, eax
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
movzx eax, word [r12 + rdi*2]
mov eax, dword [r15 + rax*4]
add rax, rsi
jmp 0x180001275
Function at 0x1800012a0
Capabilities:
Access peb ldr_data
Hash data using djb2

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov rax, qword [0x180242008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x110]
mov rbx, rcx
mov r14, qword [rsp + 0xf0]
mov rsi, r8
mov r15, qword [rsp + 0xf8]
mov rbp, r9
mov r12, qword [rsp + 0x100]
xor r11d, r11d
mov r13, qword [rsp + 0x108]
mov rdi, rdx
mov qword [rsp + 0x50], rax
mov rax, qword gs:[0x30]
mov word [rsp + 0x70], 0x23ff
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
mov rcx, qword [rax + 0x20]
mov r10, qword [rcx]
mov r9, qword [r10 - 0x10]
lea r8, [r10 - 0x10]
cmp r9, r10
je 0x180001396
nop dword [rax + rax]
mov rcx, qword [r8 + 0x60]
mov eax, 0x1505
movzx edx, word [rcx]
test edx, edx
je 0x180001357
imul eax, eax, 0x21
lea rcx, [rcx + 2]
add eax, edx
movzx edx, word [rcx]
test edx, edx
jne 0x180001340
cmp eax, 0x3ec3feb
je 0x180001364
mov r8, r9
mov r9, qword [r9]
cmp r9, r10
jne 0x180001330
jmp 0x180001396
mov r9d, dword [r8 + 0x40]
xor edx, edx
mov r10, qword [r8 + 0x30]
sub r9d, 2
je 0x180001393
movzx eax, word [rsp + 0x70]
nop dword [rax]
mov r11d, edx
add r11, r10
cmp word [r11], ax
je 0x180001396
inc edx
cmp edx, r9d
jb 0x180001380
xor r11d, r11d
xor eax, eax
mov qword [rsp + 0x58], r11
mov qword [rsp + 0x68], rax
mov r9, r14
mov rax, qword [rsp + 0x50]
mov r8, rbp
mov qword [rsp + 0x48], rax
mov rdx, rsi
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], r12
mov rcx, rdi
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], rbx
call fcn.18000180f
cdqe
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180001920
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140003c40
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003c74
cmp word [rcx], 0x5a4d
jne 0x140003c74
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003c74
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003c74
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003b80
test eax, eax
jne 0x140003c90
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003bf0
test rax, rax
je 0x140003c85
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000443f
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret
Function at 0x140004070
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov ebx, dword [0x140569700]
test ebx, ebx
je 0x1400040a0
mov eax, 1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x24], 0xe0a1d7b1
mov dword [rsp + 0x28], 0xe0a191af
mov dword [rsp + 0x2c], 0x743dda9d
mov dword [rsp + 0x30], 0x743d637f
mov dword [rsp + 0x34], 0x743d635f
mov dword [rsp + 0x38], 0x743d6363
mov dword [rsp + 0x3c], 0x743d6367
call fcn.140004060
mov rax, qword [rax + 0x18]
mov rdx, qword [rax + 0x10]
mov rax, qword [rdx + 0x30]
test rax, rax
je 0x1400042d0
xor r10d, r10d
nop dword [rax]
mov ecx, dword [rsp + 0x30]
mov r8, rax
lea eax, [rcx - 0x743d6343]
mov eax, dword [r8 + rax]
mov eax, dword [r8 + rax + 0x88]
test eax, eax
je 0x140004153
lea r10, [r8 + rax]
mov ecx, dword [rsp + 0x24]
mov eax, dword [r10 + 0xc]
sub ecx, 0x743d6343
add rax, r8
mov r9d, dword [rax]
or r9d, 0x20202020
cmp r9d, ecx
jne 0x140004153
mov r9d, dword [rax + 4]
mov ecx, dword [rsp + 0x28]
or r9d, 0x20202020
lea eax, [rcx - 0x743d6343]
cmp r9d, eax
je 0x14000415f
mov rdx, qword [rdx]
mov rax, qword [rdx + 0x30]
test rax, rax
jne 0x1400040f8
test r10, r10
je 0x1400042d0
mov eax, dword [rsp + 0x34]
mov edi, dword [r10 + 0x18]
sub eax, 0x743d6343
mov ebp, dword [rax + r10]
mov eax, dword [rsp + 0x38]
sub eax, 0x743d6343
add rbp, r8
mov r9d, dword [rax + r10]
mov eax, dword [rsp + 0x3c]
sub eax, 0x743d6343
add r9, r8
mov r11d, dword [rax + r10]
add r11, r8
test edi, edi
je 0x1400042a6
lea r13, [0x140569704]
xor r10d, r10d
lea r12, [r13 - 4]
lea rsi, [r12 - 4]
jmp 0x1400041e1
add r10d, 1
add r9, 4
add r11, 2
cmp r10d, edi
jae 0x1400042b0
cmp ebx, 0x1f3
ja 0x1400042b0
mov edx, dword [r9]
mov eax, dword [rsp + 0x2c]
add rdx, r8
lea ecx, [rax - 0x743d6343]
movzx r14d, word [rdx]
cmp r14d, ecx
jne 0x1400041c0
cmp byte [rdx], 0
je 0x1400042c0
sub eax, 0x2aef03ea
cmp byte [rdx + 1], 0
mov ecx, 1
mov r15d, 1
je 0x140004240
nop dword [rax]
movzx r15d, word [rdx + r15]
mov r14d, eax
ror r14d, 8
add eax, r15d
lea r15d, [rcx + 1]
add eax, r14d
cmp byte [rdx + r15], 0
mov rcx, r15
jne 0x140004220
mov edx, ebx
shl rdx, 3
lea rcx, [rdx + r13]
mov dword [rcx], eax
movzx eax, word [r11]
mov eax, dword [rbp + rax*4]
mov dword [rcx + 4], eax
test ebx, ebx
je 0x14000429e
lea eax, [rbx - 1]
add rdx, r12
lea rax, [r12 + rax*8 + 4]
jmp 0x140004296
movd xmm0, dword [rdx + 4]
movd xmm1, ecx
mov rcx, qword [rax]
sub rax, 8
sub rdx, 8
punpckldq xmm0, xmm1
mov qword [rdx + 0xc], rcx
movq qword [rax + 8], xmm0
cmp rsi, rax
je 0x14000429e
mov ecx, dword [rdx + 8]
cmp ecx, dword [rax + 4]
jb 0x140004270
add ebx, 1
jmp 0x1400041c0
xor ebx, ebx
nop dword [rax + rax]
mov dword [0x140569700], ebx
jmp 0x14000408a
mov eax, 0x8bc29cbd
jmp 0x140004240
xor eax, eax
jmp 0x14000408f
Function at 0x140004340
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400042e0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140009954
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1405791b8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1405791b4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400099a2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000999a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140009a89
inc ebx
add rax, 0x28
jmp 0x14000997a
mov rcx, r12
call fcn.14000a181
mov rbp, rax
test rax, rax
jne 0x1400099c1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400098f0
movsxd rbx, ebx
mov rax, qword [0x1405791b8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000a22f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1405791b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140009a23
mov rax, qword [0x1405791b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400098f0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140009a83
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140009a83
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 [0x1405791b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140009a83
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400098f0
inc dword [0x1405791b4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140009eb0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140579220]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140579200]
test rbx, rbx
je 0x140009efc
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140009ef6
test eax, eax
jne 0x140009ef6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140009ece
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000a0b0
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000a10e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x14000a105
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000a110
inc r8d
add rax, 0x28
jmp 0x14000a0ec
xor eax, eax
ret

Function at 0x14000a181
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14056ebd0]
mov r8, rcx
mov rcx, r9
call fcn.14000a0b0
test eax, eax
je 0x14000a1ad
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.14000a0d4
xor eax, eax
add rsp, 0x28
ret