joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400713f8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
lea rsi, [r8 + 0x10]
mov rbx, r8
cmp qword [rsi + 0x18], 8
mov r15, rdx
mov r9, qword [rsi + 0x10]
mov r14, rcx
jb 0x14007142d
mov r8, qword [rsi]
jmp 0x140071430
mov r8, rsi
xor ebp, ebp
movabs rcx, 0xcbf29ce484222325
mov edx, ebp
add r9, r9
je 0x140071461
movzx eax, byte [r8 + rdx]
movabs r10, 0x100000001b3
xor rcx, rax
inc rdx
imul rcx, r10
cmp rdx, r9
jb 0x140071443
mov r8, qword [r14 + 0x28]
mov rdx, rcx
shr rdx, 0x20
xor rdx, rcx
and rdx, r8
cmp qword [r14 + 0x30], rdx
ja 0x140071485
shr r8, 1
or rax, 0xffffffffffffffff
sub rax, r8
add rdx, rax
mov rcx, qword [r14 + 0x10]
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x1400714b4
cmp qword [rcx + rdx*8], rbx
jne 0x1400714a9
mov rax, qword [r14]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r14 + 0x10]
mov rax, qword [r14]
jmp 0x1400714ad
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400714c1
cmp qword [rcx + rdx*8], rbx
jne 0x1400714c1
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rdi, qword [rbx]
cmp rbx, qword [r14]
je 0x140071507
mov rax, qword [rbx + 8]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
cmp qword [rsi + 0x18], 8
jb 0x1400714eb
mov rcx, qword [rsi]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsi + 0x18], 7
mov rcx, rbx
mov qword [rsi + 0x10], rbp
mov word [rsi], bp
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
dec qword [r14 + 8]
mov rbx, qword [rsp + 0x40]
mov rax, r15
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov qword [r15], rdi
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400716fc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, r9
mov r12, r8
mov r15, rdx
mov r14, rcx
mov rax, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x140071738
mov r8, qword [r8]
movabs rcx, 0xcbf29ce484222325
lea r9, [rax + rax]
xor eax, eax
mov edx, eax
test r9, r9
je 0x14007176d
movzx eax, byte [rdx + r8]
xor rcx, rax
movabs r10, 0x100000001b3
imul rcx, r10
inc rdx
cmp rdx, r9
jb 0x14007174f
mov rax, rcx
shr rax, 0x20
xor rcx, rax
mov rdx, qword [r14 + 0x28]
mov rsi, rdx
and rsi, rcx
cmp qword [r14 + 0x30], rsi
ja 0x140071794
shr rdx, 1
or rax, 0xffffffffffffffff
sub rax, rdx
add rsi, rax
mov rdi, qword [r14]
add rsi, rsi
mov rax, qword [r14 + 0x10]
mov rcx, qword [rax + rsi*8]
cmp rdi, rcx
je 0x14007184c
mov rdi, qword [rax + rsi*8 + 8]
mov rdi, qword [rdi]
cmp rdi, rcx
je 0x14007184c
mov rdi, qword [rdi + 8]
lea rdx, [rdi + 0x10]
mov rcx, r12
call fcn.140036960
test al, al
jne 0x1400717dc
mov rax, qword [r14 + 0x10]
cmp rdi, qword [rax + rsi*8]
jne 0x1400717bc
jmp 0x14007184c
mov rdx, r12
lea rcx, [rdi + 0x10]
call fcn.140036960
xor r12d, r12d
test al, al
jne 0x1400717f4
mov rdi, qword [rdi]
jmp 0x14007184c
cmp rbx, qword [r14]
je 0x14007183d
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
cmp qword [rbx + 0x28], 8
jb 0x14007181f
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbx + 0x28], 7
mov qword [rbx + 0x20], r12
mov word [rbx + 0x10], r12w
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
dec qword [r14 + 8]
mov qword [r15], rdi
mov byte [r15 + 8], r12b
mov rax, r15
jmp 0x1400718e0
mov rax, qword [rbx]
cmp rdi, rax
je 0x140071881
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rbx
mov rdx, qword [rdi + 8]
mov rcx, qword [rax + 8]
mov qword [rdi + 8], rcx
mov rcx, qword [rbx + 8]
mov qword [rax + 8], rcx
mov qword [rbx + 8], rdx
mov rdx, qword [r14 + 0x10]
mov rax, qword [rdx + rsi*8]
cmp rax, qword [r14]
jne 0x14007189d
mov qword [rdx + rsi*8], rbx
mov rax, qword [r14 + 0x10]
mov qword [rax + rsi*8 + 8], rbx
jmp 0x1400718cc
cmp rax, rdi
jne 0x1400718a8
mov qword [rdx + rsi*8], rbx
jmp 0x1400718cc
mov rax, qword [rdx + rsi*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + rsi*8 + 8], rcx
cmp rcx, rbx
je 0x1400718cc
mov rdx, qword [r14 + 0x10]
mov rax, qword [rdx + rsi*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + rsi*8 + 8], rcx
mov rcx, r14
call fcn.140071340
nop
mov qword [r15], rbx
mov byte [r15 + 8], 1
mov rax, r15
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14008148c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rdx + 0x18], 0x10
mov rbx, rcx
mov r9, qword [rdx + 0x10]
jb 0x1400814a3
mov rdx, qword [rdx]
xor r8d, r8d
movabs rcx, 0xcbf29ce484222325
test r9, r9
je 0x1400814d3
movzx eax, byte [rdx + r8]
movabs r10, 0x100000001b3
xor rcx, rax
inc r8
imul rcx, r10
cmp r8, r9
jb 0x1400814b5
mov rax, rcx
mov edx, 0x1f31d
shr rax, 0x20
xor ecx, eax
btr ecx, 0x1f
call qword [sym.imp.msvcrt.dll_ldiv]
mov qword [rsp + 0x30], rax
shr rax, 0x20
imul ecx, eax, 0x41a7
imul eax, dword [rsp + 0x30], 0xb14
sub ecx, eax
jns 0x14008150c
add ecx, 0x7fffffff
mov rdx, qword [rbx + 0x28]
movsxd rax, ecx
and rax, rdx
cmp qword [rbx + 0x30], rax
ja 0x140081529
shr rdx, 1
or rcx, 0xffffffffffffffff
sub rcx, rdx
add rax, rcx
add rsp, 0x20
pop rbx
ret

Function at 0x14008df68
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xe0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140119ad0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rbx, rdx
mov rdi, rcx
cmp qword [rcx + 0x18], 8
jb 0x14008dfa6
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14008dfc7
test rbx, rbx
je 0x14008dfc3
and dword [rbx], 0
call fcn.14008eefc
mov qword [rbx + 8], rax
mov al, 1
jmp 0x14008e01e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
and dword [rsp + 0x20], 0
call fcn.14008eefc
mov qword [rsp + 0x28], rax
cmp esi, 0xb7
jne 0x14008e00c
lea r8, [rsp + 0x20]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.14008e1d4
cmp dword [rax], 3
jne 0x14008e00c
test rbx, rbx
je 0x14008e01c
and dword [rbx], 0
call fcn.14008eefc
jmp 0x14008e018
test rbx, rbx
je 0x14008e043
call fcn.14008eefc
mov dword [rbx], esi
mov qword [rbx + 8], rax
xor al, al
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400b6b90
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rdx, str.boost::filesystem::create_directory
lea rcx, [rsp + 0x48]
call fcn.1400039b8
nop
call fcn.14008eefc
mov r8, rax
mov edx, esi
lea rcx, [rsp + 0x38]
call fcn.140025efc
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x20], xmm0
lea r9, [rsp + 0x20]
mov r8, rdi
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.14008d3c8
lea rdx, [0x140110460]
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x14008e0a4
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rax - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x140119ad0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14, rcx
mov qword [rsp + 0x20], rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
mov eax, 1
xor esi, esi
test edi, edi
cmove edi, eax
mov ecx, edi
lea eax, [rsi + 2]
mul rcx
lea rbp, [rsi - 1]
cmovo rax, rbp
mov rcx, rax
call fcn.14009af2c
mov rbx, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], rsi
mov byte [rsp + 0x30], sil
lea r8d, [rsi + 0x1f]
lea rdx, str.boost::filesystem::current_path
lea rcx, [rsp + 0x30]
call fcn.140003bfc
nop
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x14008e14e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14008e150
mov eax, esi
lea r8, [rsp + 0x30]
mov ecx, eax
call fcn.14008d4b8
nop
cmp qword [rsp + 0x48], 0x10
jb 0x14008e170
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [r14 + 0x18], 7
mov qword [r14 + 0x10], rsi
mov word [r14], si
cmp word [rbx], si
je 0x14008e191
inc rbp
cmp word [rbx + rbp*2], si
jne 0x14008e185
mov rsi, rbp
mov r8, rsi
mov rdx, rbx
mov rcx, r14
call fcn.140006180
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov rax, r14
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400b6b90
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14008e1d4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov rax, qword [0x140119ad0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, r8
mov rdi, rdx
mov rsi, rcx
cmp qword [rdx + 0x18], 8
jb 0x14008e214
mov rcx, qword [rdx]
jmp 0x14008e217
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x14008e238
mov r8, r15
mov rdx, rdi
mov rcx, rsi
call fcn.14008d94c
jmp 0x14008e349
xor r12d, r12d
bt r14d, 0xa
jae 0x14008e30f
cmp qword [rdi + 0x18], 8
jb 0x14008e252
mov rdx, qword [rdi]
jmp 0x14008e255
mov rdx, rdi
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r12
mov word [rbp - 0x30], r12w
cmp word [rdx], r12w
jne 0x14008e271
mov r8, r12
jmp 0x14008e27f
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r12w
jne 0x14008e275
lea rcx, [rbp - 0x30]
call fcn.140006180
mov dword [rsp + 0x28], 0x2000000
xor edx, edx
lea rcx, [rbp - 0x30]
call fcn.14008d84c
mov rbx, rax
mov qword [rbp - 0x40], rax
cmp qword [rbp - 0x18], 8
jb 0x14008e2b3
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r12
mov word [rbp - 0x30], r12w
cmp rbx, 0xffffffffffffffff
jne 0x14008e2db
mov r8, r15
mov rdx, rdi
mov rcx, rsi
call fcn.14008d94c
nop
jmp 0x14008e349
mov rcx, rdi
call fcn.14008d888
test al, al
jne 0x14008e306
mov edx, r14d
mov rcx, rdi
call fcn.14008d54c
mov dword [rsi], 9
mov dword [rsi + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14008e349
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15, r15
je 0x14008e320
mov dword [r15], r12d
call fcn.14008eefc
mov qword [r15 + 8], rax
mov edx, r14d
mov rcx, rdi
test r14b, 0x10
mov dword [rbp - 0x40], 3
jne 0x14008e33a
mov dword [rbp - 0x40], 2
call fcn.14008d54c
mov dword [rbp - 0x3c], eax
mov rax, qword [rbp - 0x40]
mov qword [rsi], rax
mov rax, rsi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400b6b90
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14008f268
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0xb0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x140119ad0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x30], 0xc15730e2
mov dword [rsp + 0x34], 0x7f0725e3
mov byte [rsp + 0x38], 0
and qword [rsp + 0x40], 0
mov byte [rsp + 0x48], 0
mov eax, dword [0x14011b418]
cmp eax, dword [rsp + 0x30]
je 0x14008f3b5
mov ecx, dword [rsp + 0x34]
xor eax, eax
lock cmpxchg dword [0x14011b418], ecx
jne 0x14008f3e6
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jne 0x14008f31e
cmp byte [rsp + 0x48], bl
jne 0x14008f2ea
lea rcx, [rsp + 0x48]
call fcn.14008f150
lea r8, [rsp + 0x48]
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenEventA]
mov rbx, rax
mov rcx, qword [rsp + 0x40]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14008f314
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x14008f328
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
nop
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140119c50], eax
cmp byte [rsp + 0x38], 0
jne 0x14008f347
lock inc dword [0x14011b41c]
mov byte [rsp + 0x38], 1
mov eax, dword [rsp + 0x30]
xchg dword [0x14011b418], eax
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jne 0x14008f3ac
mov eax, dword [0x14011b41c]
cmp eax, 1
jle 0x14008f3b5
cmp byte [rsp + 0x48], bl
jne 0x14008f376
lea rcx, [rsp + 0x48]
call fcn.14008f150
lea r9, [rsp + 0x48]
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
mov rcx, qword [rsp + 0x40]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14008f3a2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x14008f3ba
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rbx, qword [rsp + 0x40]
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14008f3cd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400b6b90
add rsp, 0xb0
pop rbx
ret
cmp byte [rsp + 0x38], 0
jne 0x14008f455
lock inc dword [0x14011b41c]
mov byte [rsp + 0x38], 1
mov eax, dword [0x14011b418]
cmp eax, dword [rsp + 0x30]
je 0x14008f3b5
mov rcx, qword [rsp + 0x40]
test rcx, rcx
jne 0x14008f45a
cmp byte [rsp + 0x48], cl
jne 0x14008f41f
lea rcx, [rsp + 0x48]
call fcn.14008f150
lea r9, [rsp + 0x48]
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
mov rcx, qword [rsp + 0x40]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14008f44b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rbx
jmp 0x14008f2ac
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
jmp 0x14008f2ac
Function at 0x140095c60
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, r9
mov rcx, rdi
mov rdx, r8
call qword [sym.imp.ADVAPI32.dll_EqualSid]
xor ebx, ebx
test eax, eax
jne 0x140095c97
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140095c99
mov bl, 1
mov rsi, qword [rsp + 0x38]
mov al, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400b3530
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x20
and dword [rsp + 0x30], 0
mov ecx, 5
call fcn.14009b0e8
mov ebx, 2
lea r8, [rsp + 0x30]
mov rcx, rax
mov r9d, ebx
lea edx, [rbx + 0x20]
call sub.KERNEL32.dll_GetLocaleInfoW
mov eax, dword [rsp + 0x30]
cmp ax, 0x30
je 0x1400b3580
cmp ax, 0x31
jne 0x1400b3574
mov ebx, 1
jmp 0x1400b3580
xor ebx, ebx
cmp ax, 0x32
lea ecx, [rbx + 3]
cmove ebx, ecx
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1400b4b84
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov ebp, 0x7ff
movzx ecx, word [rcx + 6]
mov esi, edx
shr cx, 4
and cx, bp
cmp cx, bp
jne 0x1400b4be8
test byte [rbx + 6], 0xf
jne 0x1400b4bd8
xor edi, edi
cmp word [rbx + 4], di
jne 0x1400b4bd8
cmp word [rbx + 2], di
jne 0x1400b4bd8
cmp word [rbx], di
jne 0x1400b4bd8
lea esi, [rdi + 1]
jmp 0x1400b4be0
mov eax, 2
movzx esi, ax
movzx eax, si
jmp 0x1400b4deb
xor edi, edi
test cx, cx
jne 0x1400b4c03
mov rcx, rbx
call fcn.1400b6470
movzx ecx, ax
cmp di, ax
jl 0x1400b4de8
movsx edx, cx
test esi, esi
jle 0x1400b4c33
sub ebp, edx
cmp ebp, esi
jg 0x1400b4c33
movsd xmm0, qword [0x140119a90]
cmp word [rbx + 6], di
jge 0x1400b4c25
xorps xmm0, xmmword [0x1400e01a0]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x1400b4deb
movzx r11d, word [rbx + 6]
mov eax, edx
neg eax
cmp eax, esi
jge 0x1400b4c60
add si, cx
mov eax, 0x800f
shl si, 4
and r11w, ax
or si, r11w
mov word [rbx + 6], si
or eax, 0xffffffff
jmp 0x1400b4deb
movzx r15d, r11w
lea eax, [rdx + rsi]
and r11w, 0xf
lea ebp, [rax - 1]
mov r13d, 0x8000
mov r12d, 0x10
or r11w, r12w
and r15w, r13w
mov word [rbx + 6], r11w
cmp eax, 0xffffffcb
jle 0x1400b4ddd
test ebp, ebp
jns 0x1400b4ddd
lea esi, [r12 - 0xf]
movzx r14d, di
cmp bp, 0xfff0
jg 0x1400b4d01
movzx ecx, word [rbx + 4]
mov eax, 0xfff0
movzx edx, word [rbx + 2]
sub ax, bp
shr ax, 4
movzx r9d, r11w
add ax, si
movzx r8d, ax
movzx eax, r8w
shl ax, 4
add bp, ax
test r14w, r14w
mov eax, edi
setne al
movzx r14d, ax
or r14w, word [rbx]
mov word [rbx], dx
movzx edx, cx
movzx ecx, r9w
mov r9d, edi
sub r8, rsi
jne 0x1400b4cd2
mov word [rbx + 4], cx
movzx r11d, di
mov word [rbx + 2], dx
neg bp
je 0x1400b4d80
movzx r8d, word [rbx]
mov eax, edi
movzx r9d, word [rbx + 2]
movzx edx, r8w
movsx r10d, bp
sub r12d, r10d
mov ecx, r12d
shl dx, cl
test r14w, r14w
movzx r14d, dx
movzx edx, word [rbx + 4]
setne al
or r14w, ax
movzx eax, r9w
shl ax, cl
movzx ecx, bp
shr r8w, cl
mov ecx, r12d
or ax, r8w
mov word [rbx], ax
movzx eax, dx
shl ax, cl
movzx ecx, bp
shr r9w, cl
mov ecx, r12d
or ax, r9w
mov word [rbx + 2], ax
movzx eax, r11w
shl ax, cl
movzx ecx, bp
shr dx, cl
mov ecx, r10d
or ax, dx
mov word [rbx + 4], ax
shr r11w, cl
or r11w, r15w
mov word [rbx + 6], r11w
cmp r13w, r14w
jb 0x1400b4d96
jne 0x1400b4db5
test byte [rbx], sil
je 0x1400b4db5
add word [rbx], si
jne 0x1400b4db5
add word [rbx + 2], si
jne 0x1400b4db5
add word [rbx + 4], si
jne 0x1400b4db5
add r11w, si
mov word [rbx + 6], r11w
jmp 0x1400b4c58
cmp r11w, r15w
jne 0x1400b4c58
cmp word [rbx + 4], di
jne 0x1400b4c58
cmp word [rbx + 2], di
jne 0x1400b4c58
cmp word [rbx], di
je 0x1400b4de8
jmp 0x1400b4c58
mov word [rbx + 6], r15w
mov dword [rbx + 2], edi
mov word [rbx], di
movzx eax, di
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400b6980
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14011be30], rbx
je 0x1400b69cc
cmp rax, rbx
jne 0x1400b69bf
mov ebx, 1
mov esi, ebx
jmp 0x1400b69d1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400b69a4
mov ebx, 1
mov eax, dword [0x14011be38]
cmp eax, ebx
jne 0x1400b69e7
mov ecx, 0x1f
call fcn.1401b3000
jmp 0x1400b6a4c
mov eax, dword [0x14011be38]
test eax, eax
jne 0x1400b6a46
mov dword [0x14011be38], ebx
lea r15, [0x1400ca800]
lea rdi, [0x1400ca7e8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400b6a38
test eax, eax
jne 0x1400b6a3c
cmp qword [rdi], 0
je 0x1400b6a2d
mov rax, qword [rdi]
mov rcx, qword [str._w_v_]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400b6a0e
test eax, eax
je 0x1400b6a4c
mov eax, 0xff
jmp 0x1400b6b28
mov dword [0x14011a418], ebx
mov eax, dword [0x14011be38]
cmp eax, ebx
jne 0x1400b6a73
lea rdx, [0x1400ca7e0]
lea rcx, [0x1400ca218]
call sub.msvcrt.dll__initterm
mov dword [0x14011be38], 2
test esi, esi
jne 0x1400b6a80
xor eax, eax
xchg qword [0x14011be30], rax
cmp qword [0x14011be50], 0
je 0x1400b6ab4
lea rcx, [0x14011be50]
call fcn.1400b7150
test eax, eax
je 0x1400b6ab4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14011be50]
mov r9, qword [str._w_v_]
call r9
mov r8, qword [0x14011a430]
mov rdx, qword [0x14011a428]
mov ecx, dword [0x14011a420]
call fcn.140003860
mov dword [0x14011a414], eax
cmp dword [0x14011a438], 0
jne 0x1400b6ae4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14011a418], 0
jne 0x1400b6af9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14011a414]
jmp 0x1400b6b28
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400b71e4
add rsp, 0x28
jmp 0x1400b6980

Function at 0x1400b704c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400b7098
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400b7090
cmp dword [rcx + 0x3c], edx
jl 0x1400b7090
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400b7090
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400b7098
mov rax, rdx
add rsp, 0x18
ret
Function at 0x402eb0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.00403f00
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00403f00
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x402f20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x004090c4]
mov r12, rcx
test ebx, ebx
jle 0x403050
mov rax, qword [0x004090c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x402f6c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x402ff3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x402f50
mov rcx, r12
call fcn.004038d0
mov rsi, rax
test rax, rax
je 0x403072
mov rax, qword [0x004090c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.00403a00
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004090c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x403057
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x402fec
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x403000
add dword [0x004090c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x004090c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x402fec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00402eb0
nop dword [rax]
xor ebx, ebx
jmp 0x402f77
mov rax, qword [0x004090c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.00402eb0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00402eb0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x403540
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00409120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00409100]
test rbx, rbx
je 0x403594
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40358b
test r12, r12
je 0x40358b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x403570
lea rcx, [0x00409120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]