joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800039a0
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
cmp qword [0x180038fb8], 0
je 0x1800039d5
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov ecx, 0x50
call fcn.180007c34
mov rbx, rax
mov qword [rsp + 0x60], rax
lea rcx, [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
lea rdi, [rbx + 0x40]
mov qword [rsp + 0x68], rdi
xor esi, esi
mov qword [rdi], rsi
mov qword [rdi + 8], rsi
xor r8d, r8d
xor edx, edx
call fcn.180003f50
mov qword [rdi], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 8], rax
test rax, rax
je 0x180003ab7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx], rax
test rax, rax
je 0x180003adf
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [0x180003b20]
xor edx, edx
xor ecx, ecx
call fcn.180018e78
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x180003a83
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov qword [0x180038fb8], rbx
xor eax, eax
jmp 0x180003aa7
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xe0ff0000
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.180003890
lea rdx, [0x1800363d0]
lea rcx, [rsp + 0x30]
call fcn.1800093b0
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xe0ff0000
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.180003890
lea rdx, [0x1800363d0]
lea rcx, [rsp + 0x38]
call fcn.1800093b0
int3

Function at 0x180004250
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x180037008]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
lea rax, vtable.NamedPipeServer.0
mov qword [rcx], rax
mov r9, rdx
lea r8, str..pipe_ls
mov edx, 0x208
lea rcx, [rsp + 0x60]
call fcn.180004150
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
mov r9d, 0xff
xor r8d, r8d
lea edx, [rax + 3]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1800042f7
mov rax, rbx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180007c10
add rsp, 0x280
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
or eax, 0xe0ff0000
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.180003890
lea rdx, [0x1800363d0]
lea rcx, [rsp + 0x40]
call fcn.1800093b0
int3
Function at 0x180004330
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x40]
xor ebx, ebx
mov rdi, r8
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18000436d
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xe0ff0000
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rsp + 0x40], edi
mov eax, 0xe0010001
cmovne ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x180004390
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x40]
xor ebx, ebx
mov rdi, r8
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800043cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xe0ff0000
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rsp + 0x40], edi
mov eax, 0xe0010001
cmovne ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180004e50
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x70
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rcx, r9
mov rdi, r8
mov rsi, rdx
xor ebp, ebp
mov qword [rax - 0x48], rbp
mov dword [rax - 0x50], ebp
mov dword [rax - 0x58], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rbp + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180004eab
xor eax, eax
jmp 0x180004fd4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov r8, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.180002d90
nop
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
cmp rdx, rdi
je 0x180004ee2
mov esi, ebp
jmp 0x180004f94
mov qword [rsp + 0x58], rbp
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x58]
call fcn.180002b80
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
sub r8, rdx
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rbx, qword [rsp + 0x58]
test eax, eax
je 0x180004f4e
mov r8, qword [rsp + 0x60]
sub r8, rbx
mov eax, dword [rsp + 0x80]
cmp rax, r8
jne 0x180004f4e
mov rdx, rsi
mov rcx, rbx
call fcn.180028540
test eax, eax
mov esi, 1
je 0x180004f50
mov esi, ebp
test rbx, rbx
je 0x180004f94
mov rdx, qword [rsp + 0x68]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x180004f7e
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180004fea
mov rcx, rbx
call fcn.180007c70
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rbp
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180004fd2
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180004fd2
mov rbx, qword [rsp + 0x50]
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x180004fd2
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx]
call qword [rdx + 8]
nop
mov eax, esi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.180018cb4
nop
Function at 0x180004ff0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x180037008]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x30], 0x4bed
mov rsi, rdx
mov eax, dword [rbp - 0x30]
mov r14, rcx
xor eax, 0x42
mov word [rbp - 0x2c], ax
mov eax, dword [rbp - 0x30]
inc ax
xor eax, 0x49
mov word [rbp - 0x2a], ax
mov eax, dword [rbp - 0x30]
add ax, 2
xor eax, 0x4e
mov word [rbp - 0x28], ax
mov eax, dword [rbp - 0x30]
add ax, 3
xor eax, 0x53
mov word [rbp - 0x26], ax
xor eax, eax
xor ebx, ebx
mov word [rbp - 0x24], ax
movzx eax, word [rbp - 0x2c]
mov edx, ebx
movzx eax, word [rbp + rdx*2 - 0x2c]
mov ecx, dword [rbp - 0x30]
add ecx, edx
xor ecx, eax
mov word [rbp + rdx*2 - 0x2c], cx
inc rdx
cmp rdx, 4
jb 0x180005061
mov rdi, qword [r14 + 0x70]
lea r8, [rbp - 0x2c]
mov rcx, rdi
mov word [rbp - 0x24], bx
mov edx, 0x9b
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
jne 0x1800050a6
mov rdx, qword [rbp - 0x48]
mov eax, ebx
mov r8, qword [rbp - 0x40]
jmp 0x1800050cf
lea r9, [rbp - 0x40]
mov rdx, rax
lea r8, [rbp - 0x48]
mov rcx, rdi
call fcn.180002e90
test eax, eax
js 0x1800050c7
mov rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x40]
jmp 0x1800050cf
mov r8, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x50]
test eax, eax
cmovns eax, ebx
test eax, eax
js 0x18000519a
mov r9, rsi
call fcn.180004e50
test eax, eax
je 0x1800050ef
xor eax, eax
jmp 0x18000519a
mov dword [rbp - 0x20], 0xd180
mov eax, 0xd1c2
mov word [rbp - 0x1c], ax
mov r9, rbx
mov eax, 0xd1c9
mov word [rbp - 0x1a], ax
mov eax, 0xd1ce
mov word [rbp - 0x18], ax
mov eax, 0xd1d3
mov word [rbp - 0x16], ax
xor eax, eax
mov word [rbp - 0x14], ax
movzx eax, word [rbp - 0x1c]
nop word [rax + rax]
movzx r8d, word [rbp + r9*2 - 0x1c]
mov eax, dword [rbp - 0x20]
movzx ecx, ax
mov eax, r8d
xor eax, ecx
mov word [rbp + r9*2 - 0x1c], ax
inc r9
cmp r9, 4
jb 0x180005130
mov rdi, qword [r14 + 0x70]
lea r8, [rbp - 0x1c]
mov rcx, rdi
mov word [rbp - 0x14], bx
mov edx, 0x9b
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x180005198
lea r9, [rbp - 0x38]
mov rdx, rax
lea r8, [rbp - 0x50]
mov rcx, rdi
call fcn.180002e90
test eax, eax
je 0x180005198
mov rdx, qword [rbp - 0x38]
mov r8, rsi
mov rcx, qword [rbp - 0x50]
call fcn.180002f20
mov ebx, eax
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180007c10
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1800051c0
Capabilities:
Create process on windows
Create thread
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x510
mov rax, qword [0x180037008]
xor rax, rsp
mov qword [rsp + 0x500], rax
lea r10, [rcx + 0x220]
mov rbx, rcx
cmp qword [r10 + 0x18], 8
jb 0x1800051f3
mov r10, qword [r10]
mov r8d, 0x104
lea rax, [rsp + 0xe0]
mov r9d, r8d
lea rdx, [rsp + 0xe0]
sub r10, rax
nop
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x180005233
movzx eax, word [r10 + rdx]
test ax, ax
je 0x180005233
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x180005210
test r9, r9
lea rax, [rdx - 2]
mov rcx, r8
cmovne rax, rdx
xor edi, edi
mov word [rax], di
lea rax, [rsp + 0xe0]
nop
cmp word [rax], di
je 0x18000525f
add rax, 2
sub rcx, 1
jne 0x180005250
mov rax, r8
mov rdx, rdi
sub rax, rcx
test rcx, rcx
cmovne rdx, rax
je 0x1800052c3
lea rcx, [rsp + 0xe0]
lea rcx, [rcx + rdx*2]
sub r8, rdx
je 0x1800052b5
lea rax, [rdx + 0x7ffffefb]
add rax, r8
lea r9, [0x1800326b8]
sub r9, rcx
test rax, rax
je 0x1800052b5
movzx edx, word [r9 + rcx]
test dx, dx
je 0x1800052b5
mov word [rcx], dx
dec rax
add rcx, 2
sub r8, 1
jne 0x180005296
test r8, r8
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], di
lea rdx, [rsp + 0xe0]
mov rcx, rbx
call fcn.180004ff0
test eax, eax
js 0x1800053e9
xor edx, edx
lea rcx, [rsp + 0x74]
lea r8d, [rdx + 0x64]
call fcn.180009740
xor eax, eax
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0xe0]
mov qword [rsp + 0x58], rax
lea r8, str.__ls___u
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x2f0]
mov eax, dword [rbx + 0x78]
mov edx, 0x208
mov dword [rsp + 0x20], eax
call fcn.180004150
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x2f0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1800053da
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [rbx + 0x218], 0x100
jne 0x1800053e7
mov rax, qword [rsp + 0x50]
lea r8, [0x180007310]
mov qword [rsp + 0x28], rdi
mov r9, rbx
xor edx, edx
mov qword [rbx + 0x1f0], rax
xor ecx, ecx
mov dword [rsp + 0x20], edi
call fcn.180018e78
mov qword [rbx + 0x200], rax
test rax, rax
jne 0x1800053e7
mov rcx, qword [rbx + 0x1f0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbx + 0x1f0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x1f0], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xe0ff0000
jmp 0x1800053e9
xor eax, eax
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.180007c10
mov rbx, qword [rsp + 0x528]
add rsp, 0x510
pop rdi
ret
Function at 0x180005ac0
Capabilities:
Terminate thread

Disassembly:
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
mov rbx, rcx
xor edi, edi
mov qword [rcx + 0x10], rdi
mov r14, qword [rcx + 0x18]
mov qword [rcx + 0x18], rdi
lea esi, [rdi - 1]
test r14, r14
je 0x180005b23
mov eax, esi
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x180005b23
mov rax, qword [r14]
mov rcx, r14
call qword [rax]
mov eax, esi
lock xadd dword [r14 + 0xc], eax
cmp eax, 1
jne 0x180005b23
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 8]
nop
mov qword [rbx + 0x30], rdi
mov r14, qword [rbx + 0x38]
mov qword [rbx + 0x38], rdi
test r14, r14
je 0x180005b60
mov eax, esi
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x180005b60
mov rax, qword [r14]
mov rcx, r14
call qword [rax]
mov eax, esi
lock xadd dword [r14 + 0xc], eax
cmp eax, 1
jne 0x180005b60
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 8]
nop
mov qword [rbx], rdi
mov r14, qword [rbx + 8]
mov qword [rbx + 8], rdi
test r14, r14
je 0x180005b9c
mov eax, esi
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x180005b9c
mov rax, qword [r14]
mov rcx, r14
call qword [rax]
mov eax, esi
lock xadd dword [r14 + 0xc], eax
cmp eax, 1
jne 0x180005b9c
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 8]
nop
mov qword [rbx + 0x20], rdi
mov r14, qword [rbx + 0x28]
mov qword [rbx + 0x28], rdi
test r14, r14
je 0x180005bd7
mov eax, esi
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x180005bd7
mov rax, qword [r14]
mov rcx, r14
call qword [rax]
lock xadd dword [r14 + 0xc], esi
cmp esi, 1
jne 0x180005bd7
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 8]
nop
mov rcx, qword [rbx + 0x68]
test rcx, rcx
je 0x180005c09
mov edx, 0x1f4
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180005bfb
xor edx, edx
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x68], rdi
cmp qword [rbx + 0x200], 0
je 0x180005c56
mov rcx, qword [rbx + 0x1f8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, 0x1f4
mov rcx, qword [rbx + 0x200]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180005c42
xor edx, edx
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x200]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x200], rdi
xchg dword [rbx + 0x1e8], edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x180005e50
Capabilities:
Create thread
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
xor eax, eax
lea r8, [0x180005c80]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call fcn.180018e78
mov rbx, rax
test rax, rax
je 0x180005ec9
mov edx, 0x7530
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
test eax, eax
je 0x180005eb1
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xe0010001
add rsp, 0x30
pop rbx
ret
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x180005eda
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xe0ff0000
add rsp, 0x30
pop rbx
ret
mov eax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret

Function at 0x18001d750
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x18001d72d
call fcn.18001b564
mov dword [rax], 0x16
call fcn.180018c94
or eax, 0xffffffff
jmp 0x18001d74a
sub dword [rcx + 0x10], 1
jns 0x18001d73c
add rsp, 0x28
jmp fcn.180020a98
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x18001d70c
Function at 0x180020a98
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x180020754
call fcn.18001b564
mov dword [rax], 0x16
call fcn.180018c94
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18002073c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x18002073c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x180020786
lock or dword [rax + 0x14], 0x10
jmp 0x18002073c
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1800207a3
mov rcx, qword [rbp + 0x10]
call fcn.180023584
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18001b720
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.18001be20
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1800207fa
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x18002073c
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x180020866
mov rcx, qword [rbp + 0x10]
call fcn.18001b720
cmp eax, 0xffffffff
je 0x18002084d
mov rcx, qword [rbp + 0x10]
call fcn.18001b720
cmp eax, 0xfffffffe
je 0x18002084d
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18001b720
movsxd rdi, eax
lea rsi, [0x180038710]
mov rcx, rbx
sar rdi, 6
call fcn.18001b720
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x180020854
lea rax, [0x180037270]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180020866
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x18002089c
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x180020898
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x180020898
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x18002073f
jmp 0x18002070c
Function at 0x180020aa0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x180020906
call fcn.18001b564
mov dword [rax], 0x16
call fcn.180018c94
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800208e8
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1800208e8
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x180020938
lock or dword [rax + 0x14], 0x10
jmp 0x1800208e8
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x180020955
mov rcx, qword [rbp + 0x20]
call fcn.180023584
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x18002096a
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x180020970
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.18001b720
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.18001be20
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x1800209c3
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x1800208e8
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x180020a2f
mov rcx, qword [rbp + 0x20]
call fcn.18001b720
cmp eax, 0xffffffff
je 0x180020a16
mov rcx, qword [rbp + 0x20]
call fcn.18001b720
cmp eax, 0xfffffffe
je 0x180020a16
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.18001b720
movsxd rdi, eax
lea r15, [0x180038710]
mov rcx, rbx
sar rdi, 6
call fcn.18001b720
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x180020a1d
lea rax, [0x180037270]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180020a2f
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x180020a65
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x180020a61
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x180020a61
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x180020a83
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x180020a8e
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x1800208ed
jmp 0x1800208b4
Function at 0x140011221
Capabilities:
Terminate process

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

Function at 0x1400112ad
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400147a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400147c0
xor al, al
jmp 0x140014841
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400147d3
xor al, al
jmp 0x140014841
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 0x1400147fd
xor al, al
jmp 0x140014841
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014811
xor al, al
jmp 0x140014841
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014823
xor al, al
jmp 0x140014841
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001483f
xor al, al
jmp 0x140014841
mov al, 1
add rsp, 0x38
ret
Function at 0x140012690
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113e3
movzx eax, al
test eax, eax
jne 0x1400126b0
mov ecx, 7
call fcn.140011352
nop
mov byte [rsp + 0x20], 0
call fcn.140011366
mov byte [rsp + 0x21], al
cmp dword [0x14001d868], 1
jne 0x1400126d4
mov ecx, 7
call fcn.140011352
nop
jmp 0x14001272c
cmp dword [0x14001d868], 0
jne 0x140012727
mov dword [0x14001d868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111c2
test eax, eax
je 0x140012708
mov eax, 0xff
jmp 0x140012831
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.14001135c
mov dword [0x14001d868], 2
jmp 0x14001272c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011339
call fcn.1400112d0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012789
mov rcx, qword [rsp + 0x30]
call fcn.140011168
movzx eax, al
test eax, eax
je 0x140012789
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140024020]
nop
call fcn.140011307
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400127bd
mov rcx, qword [rsp + 0x38]
call fcn.140011168
movzx eax, al
test eax, eax
je 0x1400127bd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011398
nop
call fcn.1400128e0
mov dword [rsp + 0x28], eax
call fcn.1400112ad
movzx eax, al
test eax, eax
jne 0x1400127dc
mov ecx, dword [rsp + 0x28]
call fcn.14001105a
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400127eb
call fcn.1400113a2
nop
xor edx, edx
mov cl, 1
call fcn.140011159
mov eax, dword [rsp + 0x28]
jmp 0x140012831
add rsp, 0x68
ret