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

Disassembly:
jmp 0x140014d20
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014d40
xor al, al
jmp 0x140014dc1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014d53
xor al, al
jmp 0x140014dc1
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 0x140014d7d
xor al, al
jmp 0x140014dc1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014d91
xor al, al
jmp 0x140014dc1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014da3
xor al, al
jmp 0x140014dc1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014dbf
xor al, al
jmp 0x140014dc1
mov al, 1
add rsp, 0x38
ret
Function at 0x14000159c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rdi, rcx
mov esi, 0xc0000001
test rcx, rcx
je 0x140001786
call fcn.140001a74
mov rbx, rax
test rax, rax
je 0x140001786
mov edx, dword [rax + 0x50]
xor ecx, ecx
mov r8d, 0x5347
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rcx, rax
mov rax, qword [0x140010770]
mov qword [rax + 0x30], rcx
mov rax, qword [0x140010770]
mov rcx, qword [rax + 0x30]
test rcx, rcx
je 0x140001786
mov r8d, dword [rbx + 0x50]
test r8, r8
je 0x14000160f
xor edx, edx
call fcn.1400026c0
mov rax, qword [0x140010770]
mov edx, dword [rbx + 0x54]
mov rcx, qword [rax + 0x30]
test rdx, rdx
je 0x140001637
mov r8, rdi
sub r8, rcx
mov al, byte [r8 + rcx]
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140001628
movsxd r9, dword [rdi + 0x3c]
mov r8d, ebp
add r9, rdi
cmp bp, word [rbx + 6]
jae 0x140001697
mov eax, r8d
lea rcx, [rax + rax*4]
mov rax, qword [0x140010770]
mov r10d, dword [r9 + rcx*8 + 0x11c]
mov edx, dword [r9 + rcx*8 + 0x114]
add r10, rdi
mov r11d, dword [r9 + rcx*8 + 0x118]
add rdx, qword [rax + 0x30]
test r11, r11
je 0x14000168b
sub r10, rdx
mov al, byte [r10 + rdx]
mov byte [rdx], al
inc rdx
sub r11, 1
jne 0x14000167c
movzx eax, word [rbx + 6]
inc r8d
cmp r8d, eax
jb 0x140001647
mov rcx, qword [0x140010770]
mov rcx, qword [rcx + 0x30]
call fcn.1400014ec
test eax, eax
js 0x140001786
mov rcx, qword [0x140010770]
mov rcx, qword [rcx + 0x30]
call fcn.140001798
test eax, eax
js 0x140001786
mov r8d, 8
lea rdx, [0x140010770]
lea rcx, [0x140002880]
call fcn.140001cc8
mov esi, eax
test eax, eax
js 0x140001786
mov ecx, dword [rbx + 0x28]
or r9, 0xffffffffffffffff
mov rax, qword [0x140010770]
mov ebx, 0x1fffff
mov qword [rsp + 0x68], rbp
xor r8d, r8d
mov qword [rsp + 0x30], rbp
mov edx, ebx
add rcx, qword [rax + 0x30]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov esi, eax
test eax, eax
js 0x140001786
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rbp
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, ebx
mov qword [rsp + 0x60], rbp
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
test eax, eax
js 0x140001779
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbp
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
mov rbx, qword [rsp + 0x70]
mov eax, esi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002300
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov rax, qword [0x140010760]
xor rax, rsp
mov qword [rbp + 0x4f], rax
and qword [rbp - 0x29], 0
xorps xmm0, xmm0
and dword [rbp + 0xb], 0
xorps xmm1, xmm1
and dword [rbp + 0x23], 0
mov rsi, rcx
mov ebx, 0xc0000001
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp - 0x19], xmm1
test rcx, rcx
je 0x1400024c3
lea rdx, [0x1400028c0]
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and dword [rsp + 0x50], 0
lea rax, [rbp - 9]
and qword [rsp + 0x48], 0
lea r9, [rbp - 0x19]
and qword [rbp + 0xf], 0
lea r8, [rbp + 7]
mov dword [rsp + 0x40], 0x20
lea rcx, [rbp - 0x29]
mov qword [rbp + 0x17], rax
xorps xmm0, xmm0
mov eax, 1
mov dword [rbp + 7], 0x30
mov dword [rsp + 0x38], eax
mov edx, 0x80000000
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
mov dword [rbp + 0x1f], 0x240
movdqu xmmword [rbp + 0x27], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
test eax, eax
js 0x1400024c3
mov rcx, qword [rbp - 0x29]
lea r8, [rbp + 0x37]
xor eax, eax
mov dword [rsp + 0x20], 5
xorps xmm0, xmm0
mov qword [rbp + 0x47], rax
lea rdx, [rbp - 0x19]
movups xmmword [rbp + 0x37], xmm0
lea r9d, [rax + 0x18]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov ebx, eax
test eax, eax
js 0x1400024b9
cmp dword [rbp + 0x3f], 0x1000
jbe 0x1400024b9
mov ecx, dword [rbp + 0x3f]
call fcn.140001840
mov rdi, rax
test rax, rax
je 0x1400024b9
mov ecx, dword [rbp + 0x3f]
xor eax, eax
and qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rbp - 0x21], rax
xor r8d, r8d
lea rax, [rbp - 0x21]
xor edx, edx
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x19]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbp - 0x29]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
js 0x1400024b1
mov r8d, dword [rbp + 0x3f]
lea r9, [0x140002900]
mov rdx, rdi
mov rcx, rsi
call fcn.1400012d4
mov rdx, qword [0x140010770]
lea r9, [0x140002920]
mov rcx, rsi
mov qword [rdx + 0x60], rax
mov rdx, rdi
mov r8d, dword [rbp + 0x3f]
call fcn.1400012d4
mov rcx, qword [0x140010770]
mov qword [rcx + 0x68], rax
mov rcx, rdi
call fcn.1400019b4
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400025c0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140001000
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14017c910]
call fcn.14003d6ec
test rax, rax
jne 0x140001020
add rsp, 0x28
ret
mov rcx, qword [0x14017c980]
call fcn.140039064
mov rcx, rax
call fcn.140043b74
mov ecx, 0x100
call fcn.140043bf8
mov rcx, qword [0x14017c910]
call fcn.14003d6fc
mov rcx, rax
xor r8d, r8d
xor edx, edx
call fcn.140043c08
nop
add rsp, 0x28
jmp fcn.140043d2c

Function at 0x140003804
Capabilities:
Parse pe header

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

Function at 0x14000816c
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 0x1400081db
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400081db
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400081db
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400081db
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400081db
cmp dword [rcx + 0x84], 0xe
jbe 0x1400081db
cmp dword [rcx + 0xf8], 0
je 0x1400081db
mov ecx, ebx
call fcn.1400082e0
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.140007fa0
nop
cmp dword [rbp + 0x20], 0
je 0x140008229
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140008234
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000816c

Function at 0x1400083cc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000816c
Function at 0x140013f60
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14000a210
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140014001
cmp ebx, dword [rsp + 0x30]
je 0x140013ffa
test esi, esi
je 0x140013ffa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140013fd5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140013fe2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140013fbf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140013fe6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140014003
mov eax, 1
jmp 0x140014003
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140015298
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400152c8
xor eax, eax
jmp 0x14001538b
mov rbp, rbx
cmp word [rax], si
je 0x1400152ed
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400152d4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400152d0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140015590
movsxd r14, eax
test eax, eax
jne 0x14001532b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400152c1
mov rcx, r14
call fcn.14000ac94
mov rdi, rax
test rax, rax
jne 0x140015344
xor ecx, ecx
call fcn.140008fc4
jmp 0x140015320
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140015590
test eax, eax
jne 0x140015375
mov rcx, rdi
call fcn.140008fc4
jmp 0x14001537f
xor ecx, ecx
call fcn.140008fc4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400153a8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001542f
mov rsi, rbx
cmp word [rax], bp
je 0x1400153ee
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400153d8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400153d4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000ac94
mov rdi, rax
test rax, rax
je 0x14001541c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140023690
mov rbp, rdi
xor ecx, ecx
call fcn.140008fc4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001d5e8
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.14000e1b8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001d672
cmp byte [rbp - 0x21], r15b
je 0x14001d66d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001d6a8
call fcn.14000bf34
test eax, eax
jne 0x14001d694
cmp byte [rbp - 0x21], r15b
je 0x14001d68c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001d6a8
cmp byte [rbp - 0x21], r15b
je 0x14001d6a5
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.14000f258
test eax, eax
jne 0x14001d748
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000e1b8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001d6e7
cmp byte [rbp - 0x21], r15b
je 0x14001d71c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001d71c
call fcn.14000bf34
test eax, eax
jne 0x14001d708
cmp byte [rbp - 0x21], r15b
je 0x14001d701
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001d71c
cmp byte [rbp - 0x21], r15b
je 0x14001d719
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.14000f258
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001d748
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001d74b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001d759
mov rcx, rdi
call fcn.140008fc4
cmp byte [rbp + 0x3f], r15b
je 0x14001d768
mov rcx, qword [rbp + 0x27]
call fcn.140008fc4
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 0x14001fd00
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, [0x14017daf0]
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 0x14001fd57
cmp word [rdx], r13w
jne 0x14001fd57
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001fd5c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001fe81
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001fea2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001fd95
mov rdx, r9
mov word [rbx], cx
jmp 0x14001fdbc
cmp r9, r8
jae 0x14001fdcc
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 0x14001fd76
jmp 0x14001fe81
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 0x14001fe76
cmp dword [rsp + 0x80], esi
je 0x14001fe76
lea r8, [0x14017daf0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001fe4e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001fe1e
mov word [rbx], r13w
jmp 0x14001fe7e
mov ecx, 0xd
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 0x14001fe2b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001fe7e
cmp word [rsp + 0x70], r13w
jne 0x14001fe5b
cmp rbx, r14
je 0x14001fe18
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002129c
cmp word [rsp + 0x70], r13w
je 0x14001fe81
mov ecx, 0xd
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, [0x14017daf0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001fe7b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001fe81
Function at 0x140031530
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
cmp dword [0x14017e6e8], 0
jne 0x140031649
cmp dword [rsp + 0x50], 0
jle 0x140031649
cmp dword [rsp + 0x50], 0xfe
jg 0x140031649
mov dword [0x14017e6e8], 1
mov eax, dword [rsp + 0x50]
mov dword [0x14017f620], eax
lea rdx, [0x14017e1e0]
xor ecx, ecx
call fcn.140088e10
test eax, eax
jne 0x140031649
lea r8, [0x140031330]
mov edx, 0x40
mov ecx, pe_nt_image_headers64
call fcn.1400459d8
mov qword [0x14017e1d0], rax
movsxd rax, dword [0x14017f620]
imul rax, rax, 0x468
mov r8, rax
mov edx, 8
mov rcx, qword [0x14017cc88]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [0x14017f640], rax
mov dword [rsp + 0x30], 0
lea rcx, [0x14017e1e0]
call fcn.140088db0
mov qword [0x14017f660], rax
mov rcx, qword [0x14017f660]
call fcn.140086450
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140031420]
mov edx, 0x2000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14003163f
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x30], 1
mov dword [0x14017e1d8], 1
mov rax, qword [0x14017e1d0]
add rsp, 0x48
ret
Function at 0x140031680
Capabilities:
Get file size
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x68], 0
cmp dword [0x14017e1d8], 0
je 0x1400318b2
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x1400318b2
mov eax, dword [rsp + 0xa0]
and eax, 1
test eax, eax
je 0x140031815
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x98]
call fcn.1400329dc
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140031810
mov rdx, qword [rsp + 0x90]
mov rcx, qword [0x14017e1d0]
call fcn.14004592c
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x48], rcx
mov rcx, qword [rsp + 0x50]
call fcn.1400329a4
mov rcx, qword [rsp + 0x48]
mov dword [rcx + 0x68], eax
mov rcx, qword [rsp + 0x50]
call fcn.14003297c
mov rcx, qword [rsp + 0x48]
mov word [rcx + 0x7a], ax
mov eax, 0x10
mov rcx, qword [rsp + 0x48]
mov word [rcx + 0x78], ax
mov rcx, qword [rsp + 0x50]
call fcn.140032990
mov rcx, qword [rsp + 0x48]
movsx rcx, word [rcx + 0x7a]
imul rax, rcx
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x48]
movsx ecx, word [rcx + 0x78]
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cdqe
mov rcx, qword [rsp + 0x70]
imul rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x48]
mov qword [rcx], rax
mov rax, qword [rsp + 0x48]
movsd xmm0, qword [0x1401353a0]
movsd qword [rax + 0x58], xmm0
mov rax, qword [rsp + 0x48]
mov dword [rax + 0x60], 0
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx + 0x68]
mov dword [rax + 0x64], ecx
mov rax, qword [rsp + 0x48]
mov qword [rax + 0x70], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x68], rax
jmp 0x1400318a7
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x40]
mov r8, rax
xor edx, edx
mov rcx, qword [0x14017cc88]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1400318a7
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jne 0x140031893
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x90]
call fcn.140032550
mov qword [rsp + 0x68], rax
mov r8, qword [rsp + 0x58]
xor edx, edx
mov rcx, qword [0x14017cc88]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x68]
add rsp, 0x88
ret
Function at 0x140031d90
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x30], 0
call fcn.140077a60
mov qword [rsp + 0x38], rax
lea rax, [0x140178fc0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140077dd0
test eax, eax
jne 0x140031f60
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x64], 0
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x60], 0
mov ecx, 0x20000
call fcn.1400d65e0
mov ecx, 8
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x60]
mov qword [rdx + rcx + 0x48], rax
mov ecx, 0x20000
call fcn.1400d65e0
mov ecx, 8
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x60]
mov qword [rdx + rcx + 0x48], rax
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x68], 1
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x68]
mov dword [rax + 0x6c], ecx
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x70]
mov dword [rax + 0x70], ecx
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x78]
mov dword [rax + 0x74], ecx
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x80]
mov qword [rax + 0x80], rcx
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x88]
mov qword [rax + 0x88], rcx
mov eax, 8
imul rax, rax, 0
mov r8, qword [rsp + 0x88]
mov edx, 0x20000
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + rax + 0x48]
call qword [rsp + pe_nt_image_headers64]
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x60]
mov dword [rdx + rcx + 0x58], eax
mov eax, 8
imul rax, rax, 1
mov r8, qword [rsp + 0x88]
mov edx, 0x20000
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + rax + 0x48]
call qword [rsp + pe_nt_image_headers64]
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x60]
mov dword [rdx + rcx + 0x58], eax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x60]
lea r8, [0x140032330]
mov edx, 0x2000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140031f46
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x30], 1
cmp dword [rsp + 0x30], 0
je 0x140031f60
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x78], 1
mov eax, 1
jmp 0x140031f62
xor eax, eax
add rsp, 0x58
ret