joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003499c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140027130
sub rsp, rax
mov rax, qword [0x140069fb8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14003ef40
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400349eb
mov rax, rbp
jmp 0x140034af3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x6df90]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14003f3f0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x6df90]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140034aef
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140034aef
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14003f3f0
test rax, rax
js 0x140034aef
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140034aef
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140034ae1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140034ae1
cmp byte [rcx], 0xd
jne 0x140034ac7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140034ad6
cmp byte [rcx + 1], 0xa
jne 0x140034ad6
inc rcx
jmp 0x140034ad6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x6a3a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140034aa9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140034af3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14004fe80
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140038e04
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140038c00
Function at 0x14003feb8
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, [0x14006df90]
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 0x14003ff0f
cmp word [rdx], r13w
jne 0x14003ff0f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14003ff14
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140040039
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14004005a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14003ff4d
mov rdx, r9
mov word [rbx], cx
jmp 0x14003ff74
cmp r9, r8
jae 0x14003ff84
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 0x14003ff2e
jmp 0x140040039
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 0x14004002e
cmp dword [rsp + 0x80], esi
je 0x14004002e
lea r8, [0x14006df90]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140040006
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14003ffd6
mov word [rbx], r13w
jmp 0x140040036
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 0x14003ffe3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140040036
cmp word [rsp + 0x70], r13w
jne 0x140040013
cmp rbx, r14
je 0x14003ffd0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14003f3f8
cmp word [rsp + 0x70], r13w
je 0x140040039
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, [0x14006df90]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140040033
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140040039
Function at 0x140044b48
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 0x140044b78
xor eax, eax
jmp 0x140044c3b
mov rbp, rbx
cmp word [rax], si
je 0x140044b9d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140044b84
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140044b80
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.140044a68
movsxd r14, eax
test eax, eax
jne 0x140044bdb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140044b71
mov rcx, r14
call fcn.140041590
mov rdi, rax
test rax, rax
jne 0x140044bf4
xor ecx, ecx
call fcn.14003e5cc
jmp 0x140044bd0
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.140044a68
test eax, eax
jne 0x140044c25
mov rcx, rdi
call fcn.14003e5cc
jmp 0x140044c2f
xor ecx, ecx
call fcn.14003e5cc
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 0x140048254
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.14003e980
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 0x1400482f5
cmp ebx, dword [rsp + 0x30]
je 0x1400482ee
test esi, esi
je 0x1400482ee
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400482c9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400482d6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400482b3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400482da
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400482f7
mov eax, 1
jmp 0x1400482f7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004a4c8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14004a4de
mov al, 1
jmp 0x14004a53e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14004a4ef
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14004a53c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140045b70
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004a53c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14004a53c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14004a53c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004a53e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14004df04
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.1400312ec
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14004df8e
cmp byte [rbp - 0x21], r15b
je 0x14004df89
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14004dfc4
call fcn.140040d58
test eax, eax
jne 0x14004dfb0
cmp byte [rbp - 0x21], r15b
je 0x14004dfa8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14004dfc4
cmp byte [rbp - 0x21], r15b
je 0x14004dfc1
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.14003d6a4
test eax, eax
jne 0x14004e064
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400312ec
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14004e003
cmp byte [rbp - 0x21], r15b
je 0x14004e038
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14004e038
call fcn.140040d58
test eax, eax
jne 0x14004e024
cmp byte [rbp - 0x21], r15b
je 0x14004e01d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14004e038
cmp byte [rbp - 0x21], r15b
je 0x14004e035
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.14003d6a4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14004e064
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14004e067
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14004e075
mov rcx, rdi
call fcn.14003e5cc
cmp byte [rbp + 0x3f], r15b
je 0x14004e084
mov rcx, qword [rbp + 0x27]
call fcn.14003e5cc
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 0x14004e5a4
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.14003f3f8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14003f3f8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14004e6f4
cmp rax, 0xffffffffffffffff
je 0x14004e6f4
xor edi, edi
test rbp, rbp
jle 0x14004e69f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140040a18
mov rbx, rax
test rax, rax
jne 0x14004e62c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14004e695
mov edx, 0x8000
mov ecx, r14d
call fcn.140039c94
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.14004a0c8
cmp eax, 0xffffffff
je 0x14004e675
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14004e63c
mov edx, r15d
mov ecx, r14d
call fcn.140039c94
jmp 0x14004e695
cmp byte [rsi + 0x38], dil
je 0x14004e68c
cmp dword [rsi + 0x34], 5
jne 0x14004e68c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14004e695
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14003e5cc
jmp 0x14004e708
jns 0x14004e708
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14003f3f8
cmp rax, 0xffffffffffffffff
jne 0x14004e6c0
cmp byte [rsi + 0x30], dil
je 0x14004e708
mov edi, dword [rsi + 0x2c]
jmp 0x14004e708
mov ecx, r14d
call fcn.140045b70
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14004e708
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 0x14004e708
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14004e701
mov eax, dword [rsi + 0x2c]
jmp 0x14004e706
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14003f3f8
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 0x140010b74
Capabilities:
Check if file exists

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 - 0x168]
sub rsp, 0x250
mov rax, qword [0x140115ab8]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r15d, r15d
lea rax, [rsp + 0x30]
mov qword [r8], r15
lea rdx, [rsp + 0x30]
sub rcx, rax
mov r14, r8
mov r9d, 0x104
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x140010be5
movzx eax, word [rcx + rdx]
test ax, ax
je 0x140010be5
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x140010bc3
test r9, r9
lea rax, [rdx - 2]
lea r8, [0x1400e1c98]
cmovne rax, rdx
lea rcx, [rsp + 0x30]
mov word [rax], r15w
call fcn.14000ec48
mov ebx, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, ebx
xor edx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140010c59
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x140010c3d
mov esi, r15d
jmp 0x140010c91
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400e1bbc]
mov edx, 0xc9
call fcn.140010690
mov esi, eax
jmp 0x140010c91
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], r15d
mov rcx, rdi
mov dword [rsp + 0x24], r15d
call fcn.1400109ec
mov esi, eax
test eax, eax
jns 0x140010cc9
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400e1bbc]
mov r9d, eax
mov edx, 0xcf
call fcn.140010668
test rdi, rdi
jne 0x140010d80
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400d22a0
lea r11, [rsp + 0x250]
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
lea r8, [0x1400e1ca0]
lea rcx, [rsp + 0x30]
call fcn.14000ec48
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140010d13
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400e1bbc]
mov edx, 0xd5
call fcn.140010690
mov esi, eax
jmp 0x140010d80
lea rdx, [rsp + 0x24]
mov rcx, rbx
call fcn.1400109ec
mov esi, eax
test eax, eax
jns 0x140010d56
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400e1bbc]
mov r9d, eax
mov edx, 0xd7
call fcn.140010668
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
je 0x140010daa
jmp 0x140010d80
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
je 0x140010d98
movsxd rcx, dword [rsp + 0x24]
mov esi, r15d
movsxd rax, dword [rsp + 0x20]
shl rcx, 0x1f
or rcx, rax
mov qword [r14], rcx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
je 0x140010dbc
jmp 0x140010c9a
mov rcx, qword [rbp + 0x168]
mov edx, 0x937
call fcn.1400106b0
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x937
call fcn.1400106b0
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x937
call fcn.1400106b0
int3
Function at 0x140045770
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r15, rdx
mov rbx, rcx
lea rdx, [rsp + 0x40]
mov r14, r9
mov rdi, r8
mov rcx, qword [r15]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
nop dword [rax + rax]
mov r11d, dword [rsp + 0x40]
mov r10d, 0x811c9dc5
mov r9d, 0
add r11, r11
je 0x1400457d0
movzx ecx, byte [r9 + rax]
inc r9
xor ecx, r10d
imul r10d, ecx, 0x1000193
cmp r9, r11
jb 0x1400457b9
xor edx, edx
mov dword [r14], r10d
mov eax, r10d
div dword [rbx + 0x18]
mov rbx, qword [rbx + 8]
mov dword [rdi], edx
test rbx, rbx
je 0x140045833
mov rsi, qword [rsp + 0x60]
xor edi, edi
mov rbx, qword [rbx + rdx*8]
and qword [rsi], rdi
test rbx, rbx
je 0x140045833
cmp dword [rbx + 0x18], r10d
jne 0x14004581d
mov r8, qword [r15]
lea r9, [rsp + 0x40]
mov rdx, qword [rbx]
call fcn.1400456ec
mov r10d, dword [r14]
test eax, eax
js 0x14004583e
cmp byte [rsp + 0x40], 0
jne 0x140045826
mov rdi, rbx
mov rbx, qword [rbx + 0x10]
jmp 0x1400457f4
mov rax, qword [rsp + 0x68]
mov qword [rsi], rdi
mov qword [rax], rbx
jmp 0x14004583c
mov rax, qword [rsp + 0x68]
and qword [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400591c4
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0xc8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
nop dword [rax + rax]
lea rdx, [rbx + 0xb0]
mov rcx, rbx
call fcn.140058f50
xor edi, edi
test eax, eax
js 0x14005927f
mov rcx, qword [rbx + 0xf8]
call fcn.14005c8f4
test eax, eax
js 0x14005927f
mov qword [rbx + 0xd0], rdi
lea rdx, [rbx + 0xd0]
mov qword [rbx + 0xd8], rdi
mov qword [rbx + 0xe0], rdi
mov rax, qword [rbx + 0xc8]
mov rcx, qword [rbx + 0xb8]
mov qword [rbx + 0xe8], rax
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_ConnectNamedPipe]
nop dword [rax + rax]
test eax, eax
jne 0x14005925c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov dword [rbx + 0xf0], edi
cmp edi, 0x3e5
je 0x14005927d
mov rcx, qword [rbx + 0xe8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14005b658
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
mov esi, 1
lock add dword [rcx + 0x58], esi
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_StartThreadpoolIo]
nop dword [rax + rax]
mov qword [rsp + 0x30], rdi
mov byte [rsp + 0x38], sil
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
lea r9, [rcx + 0x10]
mov r8d, dword [rcx + 0x48]
mov rdx, qword [rcx + 0x40]
mov rax, qword [rbx]
mov rcx, qword [rax + 0x90]
mov qword [rsp + 0x20], r9
xor r9d, r9d
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x14005b6f6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3e5
je 0x14005b6f6
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov ebx, 0x8000ffff
test ecx, ecx
cmovs ebx, ecx
jmp 0x14005b71a
mov rax, qword [rdi]
movabs r10, 0xfd41b67356dad870
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [0x1400de010]
xor sil, sil
mov byte [rsp + 0x38], sil
xor ebx, ebx
test sil, sil
je 0x14005b733
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CancelThreadpoolIo]
nop dword [rax + rax]
lock dec dword [rdi + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14005b74c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
mov esi, 1
lock add dword [rcx + 0x58], esi
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_StartThreadpoolIo]
nop dword [rax + rax]
mov qword [rsp + 0x30], rdi
mov byte [rsp + 0x38], sil
mov rax, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rax + 0xb0], xmm0
movups xmmword [rax + 0xc0], xmm0
mov rcx, qword [rbx]
mov rax, qword [rcx + 0xa8]
mov qword [rcx + 0xc8], rax
mov rcx, qword [rbx]
lea r9, [rcx + 0xb0]
mov rax, qword [rcx + 0xe8]
mov r8, qword [rcx + 0xf0]
sub r8, rax
mov edx, dword [rcx + 0x100]
sub r8d, edx
add rdx, rax
mov rax, qword [rcx + 0x90]
mov qword [rsp + 0x20], r9
xor r9d, r9d
mov rcx, qword [rax + 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x14005b827
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3e5
je 0x14005b827
cmp eax, 0xea
je 0x14005b827
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov ebx, 0x8000ffff
test ecx, ecx
cmovs ebx, ecx
jmp 0x14005b84b
mov rax, qword [rdi]
movabs r10, 0xfd41b67356dad870
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [0x1400de010]
xor sil, sil
mov byte [rsp + 0x38], sil
xor ebx, ebx
test sil, sil
je 0x14005b864
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CancelThreadpoolIo]
nop dword [rax + rax]
lock dec dword [rdi + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400c3760
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov ebx, r9d
mov r14, r8
mov r15d, edx
mov rsi, rcx
mov ecx, edx
sub ecx, 0xe
je 0x1400c38b2
sub ecx, 1
je 0x1400c380f
sub ecx, 1
je 0x1400c37e6
cmp ecx, 1
je 0x1400c37bd
test r9d, r9d
je 0x1400c3951
mov edx, r15d
mov rcx, r14
call fcn.140099690
add ebx, 0xffffffff
jne 0x1400c37a8
jmp 0x1400c3951
mov qword [rbp - 0x18], r14
xor edi, edi
mov byte [rbp - 0x10], dil
test r9d, r9d
je 0x1400c37e1
mov byte [rbp - 0x10], dil
lea rdx, [rbp - 0x20]
mov rcx, r14
call fcn.14009fc00
add ebx, 0xffffffff
jne 0x1400c37cc
jmp 0x1400c3951
mov qword [rbp - 0x18], r14
xor edi, edi
mov byte [rbp - 0x10], dil
test r9d, r9d
je 0x1400c380a
mov byte [rbp - 0x10], dil
lea rdx, [rbp - 0x20]
mov rcx, r14
call fcn.14009fc00
add ebx, 0xffffffff
jne 0x1400c37f5
jmp 0x1400c3951
mov qword [rbp - 0x18], r14
xor edi, edi
mov byte [rbp - 0x10], dil
mov word [rbp + 0x38], di
mov r9, rbx
mov r8, qword [rsi + 8]
mov rcx, qword [rsi]
mov rax, r8
sub rax, rcx
sar rax, 1
cmp rbx, rax
jae 0x1400c384f
lea rax, [rcx + rbx*2]
cmp rax, rcx
jne 0x1400c3844
mov qword [rsi + 8], rcx
jmp 0x1400c3869
cmp rax, r8
je 0x1400c3869
mov qword [rsi + 8], rax
jmp 0x1400c3869
jbe 0x1400c3869
sub r9, rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x20]
mov rcx, rsi
call fcn.1400c6d60
mov r15, qword [rsi]
mov r12, qword [rsi + 8]
cmp r15, r12
je 0x1400c38ad
mov esi, 1
lea rbx, [r15 + 2]
mov byte [rbp - 0x10], dil
lea rdx, [rbp + 0x38]
mov rcx, r14
call fcn.1400a7220
movzx eax, word [rbp + 0x38]
movzx ecx, ax
shr cx, 1
and ax, si
neg ax
xor cx, ax
mov word [r15], cx
mov r15, rbx
cmp rbx, r12
jne 0x1400c387a
jmp 0x1400c3951
mov qword [rbp - 0x18], r14
xor edi, edi
mov byte [rbp - 0x10], dil
mov word [rbp + 0x38], di
mov r9, rbx
mov r8, qword [rsi + 8]
mov rcx, qword [rsi]
mov rax, r8
sub rax, rcx
sar rax, 1
cmp rbx, rax
jae 0x1400c38f2
lea rax, [rcx + rbx*2]
cmp rax, rcx
jne 0x1400c38e7
mov qword [rsi + 8], rcx
jmp 0x1400c390c
cmp rax, r8
je 0x1400c390c
mov qword [rsi + 8], rax
jmp 0x1400c390c
jbe 0x1400c390c
sub r9, rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x20]
mov rcx, rsi
call fcn.1400c6d60
mov r8, qword [rsi]
mov r9, qword [rsi + 8]
cmp r8, r9
je 0x1400c3951
mov esi, 1
lea r11, [r8 + 2]
mov byte [rbp - 0x10], dil
mov r10d, dword [r14 + 0x20]
mov eax, dword [r14 + 0x18]
sub eax, r10d
cmp eax, esi
jb 0x1400c396b
mov rax, qword [r14 + 0x10]
movsx edx, byte [r10 + rax]
lea eax, [r10 + 1]
mov dword [r14 + 0x20], eax
mov word [r8], dx
mov r8, r11
cmp r11, r9
jne 0x1400c391d
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov edx, esi
mov rcx, r14
call fcn.140077984
int3