joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14016cba0
Capabilities:
Initialize winhttp library

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov ebp, 4
mov rbx, rdx
mov rsi, rcx
mov edx, ebp
mov rcx, qword [0x140241998]
lea r8d, [rbp + 0x1c]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor edx, edx
mov dword [rsp + 0x20], 0
cmp dword [0x140237d34], 0x3f
xorps xmm0, xmm0
mov rcx, rbx
mov rdi, rax
cmovae edx, ebp
xor r9d, r9d
movups xmmword [rax], xmm0
xor r8d, r8d
movups xmmword [rax + 0x10], xmm0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword ds:[rdi], rax
test rax, rax
jne 0x14016cc26
mov rcx, qword [0x140241998]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor al, al
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
cmp dword [0x140237d34], 0x3f
lea r8, [rsp + 0x70]
mov r9d, ebp
mov edx, 0x54
mov rcx, rax
jae 0x14016cc49
mov dword [rsp + 0x70], 0xa00
jmp 0x14016cc96
mov dword [rsp + 0x70], 0x2a00
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov rcx, qword [rdi]
lea r8, [rsp + 0x78]
mov r9d, ebp
mov dword [rsp + 0x78], 3
mov edx, 0x76
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp dword [0x140237d34], 0x64
jb 0x14016cc9c
mov rcx, qword [rdi]
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 1
mov r9d, ebp
mov edx, 0x85
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov rbx, qword [rsp + 0x60]
mov al, 1
mov qword [rsi], rdi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x14016cdc0
Capabilities:
Prepare http request

Disassembly:
push rbx
sub rsp, 0x40
mov r10d, r9d
mov rbx, rcx
mov rcx, qword [rcx + 8]
and r10d, 1
shl r10d, 0x17
mov eax, r10d
bts eax, 8
and r9b, 2
cmove eax, r10d
xor r9d, r9d
mov dword [rsp + 0x30], eax
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x14016ce15
add rsp, 0x40
pop rbx
ret
mov r9d, 4
mov dword [rsp + 0x50], 8
lea r8, [rsp + 0x50]
mov rcx, rax
lea edx, [r9 + 0x3b]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov al, 1
add rsp, 0x40
pop rbx
ret

Function at 0x14016ce80
Capabilities:
Receive http response

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x10]
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14016cee0
Capabilities:
Set http header

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x10]
mov eax, r8d
test eax, eax
mov r8d, 0xffffffff
mov r9d, 0xa0000000
cmovne r8d, eax
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14016cf20
Capabilities:
Read http header

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
lea rax, [rsp + 0x50]
mov rsi, rcx
mov qword [rsp + 0x28], rbp
mov rcx, qword [rcx + 0x10]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x50], ebp
lea edx, [rbp + 0x16]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x14016cf65
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
cmp eax, 0x7a
jne 0x14016cfd5
mov rdx, qword [0x1402418e8]
mov qword [rsp + 0x60], rbx
mov ebx, dword [rsp + 0x50]
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rdi, rax
mov qword [rsp + 0x28], rbp
xor r8d, r8d
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
lea rax, [rsp + 0x50]
mov word [rcx + rbx], bp
lea edx, [r8 + 0x16]
mov r9, qword [rdi + 8]
mov rcx, qword [rsi + 0x10]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov rbx, qword [rsp + 0x60]
test eax, eax
jne 0x14016cfdf
lea rcx, [rdi - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14016cfd5
call fcn.1400fbcc0
xor eax, eax
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rax, rdi
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x14016d000
Capabilities:
Read http header

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor r14d, r14d
lea rax, [rsp + 0x50]
mov rsi, rdx
mov qword [rsp + 0x28], r14
mov rbp, rcx
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
mov r8, rdx
xor r9d, r9d
mov dword [rsp + 0x50], r14d
mov edx, 0xffff
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
nop
test eax, eax
jne 0x14016d04f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14016d0ca
mov rdx, qword [0x1402418e8]
mov qword [rsp + 0x58], rbx
mov ebx, dword [rsp + 0x50]
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rdi, rax
mov qword [rsp + 0x28], r14
mov r8, rsi
mov edx, 0xffff
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
lea rax, [rsp + 0x50]
mov word [rcx + rbx], r14w
mov r9, qword [rdi + 8]
mov rcx, qword [rbp + 0x10]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov rbx, qword [rsp + 0x58]
test eax, eax
jne 0x14016d0da
lea rcx, ds:[rdi - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14016d0ca
call fcn.1400fbcc0
xor eax, eax
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov rcx, qword ds:[rdi + 8]
call sym.ProcessHacker.exe_PhCountStringZ
mov rbp, qword [rsp + 0x68]
add rax, rax
mov qword [rdi], rax
mov rax, rdi
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14016d100
Capabilities:
Read http header

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 0x10]
mov eax, edx
mov r10d, edx
mov dword [rsp + 0x58], 4
and al, 1
mov rbx, r8
xor r8d, r8d
neg al
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x58]
mov dword [rsp + 0x40], r8d
sbb r9d, r9d
mov qword [rsp + 0x20], rax
and r9d, 5
mov edx, r9d
or edx, 0x13
and r10b, 2
cmove edx, r9d
lea r9, [rsp + 0x40]
bts edx, 0x1d
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x14016d16b
mov eax, dword [rsp + 0x40]
mov dword [rbx], eax
mov al, 1
add rsp, 0x30
pop rbx
ret
xor al, al
add rsp, 0x30
pop rbx
ret

Function at 0x14016d2c0
Capabilities:
Receive http response

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x1040
call fcn.1401a8120
sub rsp, rax
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov r14, r8
mov r15, rdx
mov rbp, rcx
mov edi, 0x1000
mov rcx, qword [0x140241998]
mov r8d, edi
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
lea r9, [rsp + 0x20]
mov r8d, edi
lea rdx, [rsp + 0x30]
mov rcx, rbp
mov rsi, rax
xor ebx, ebx
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14016d3be
mov ecx, dword [rsp + 0x20]
test ecx, ecx
je 0x14016d398
lea eax, ds:[rcx + rbx]
cmp edi, eax
jae 0x14016d365
mov rcx, qword [0x140241998]
add edi, edi
mov r9d, edi
mov r8, rsi
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov ecx, dword [rsp + 0x20]
mov rsi, rax
mov r8d, ecx
lea rdx, [rsp + 0x30]
mov ecx, ebx
add rcx, rsi
call fcn.140188690
add ebx, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov r8d, 0x1000
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x14016d331
lea eax, [rbx + 1]
cmp edi, eax
jae 0x14016d3be
lfence
mov rcx, qword [0x140241998]
lea r9d, [rdi + 1]
mov r8, rsi
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov rsi, rax
mov byte [rbx + rsi], 0
test ebx, ebx
je 0x14016d3f2
test r15, r15
je 0x14016d3d0
mov qword [r15], rsi
jmp 0x14016d3e6
mov rcx, qword [0x140241998]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test r14, r14
je 0x14016d3ee
mov dword [r14], ebx
mov al, 1
jmp 0x14016d408
mov rcx, qword [0x140241998]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor al, al
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.1401848a0
mov rbx, qword [rsp + 0x1088]
add rsp, 0x1040
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401737d0
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov edi, dword [rcx + 0x30]
mov eax, 0x38
mov r8d, edi
mov rsi, rdx
and r8d, 0x3f
mov rbp, rcx
sub eax, r8d
lea rcx, [rsp + 0x21]
mov ebx, 0x78
sub ebx, r8d
cmp r8d, 0x38
cmovb ebx, eax
xor edx, edx
lea eax, [rbx - 1]
movsxd r8, eax
call fcn.1401868c0
mov ecx, dword [rbp + 0x2c]
lea rdx, [rsp + 0x20]
shl ecx, 3
lea r8d, [rbx + 8]
movsxd rax, ebx
add rdx, rax
mov byte [rsp + 0x20], 0x80
mov eax, edi
shr eax, 0x1d
or ecx, eax
lea eax, [rdi*8]
bswap ecx
mov dword [rdx], ecx
mov rcx, rbp
bswap eax
mov dword [rdx + 4], eax
lea rdx, [rsp + 0x20]
call fcn.1401736e0
mov ecx, dword [rbp + 0x18]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shr edx, 8
and ecx, 0xff00
shl eax, 0x10
or eax, ecx
shl eax, 8
or edx, eax
mov dword [rsi], edx
mov ecx, dword [rbp + 0x1c]
mov edx, ecx
shl edx, 0x10
mov eax, ecx
and eax, 0xff00
shr ecx, 8
or edx, eax
and ecx, 0xff00
movzx eax, byte [rbp + 0x1f]
shl edx, 8
or edx, ecx
or edx, eax
mov dword [rsi + 4], edx
mov ecx, dword [rbp + 0x20]
mov edx, ecx
shl edx, 0x10
mov eax, ecx
and eax, 0xff00
shr ecx, 8
or edx, eax
and ecx, 0xff00
movzx eax, byte [rbp + 0x23]
shl edx, 8
or edx, ecx
or edx, eax
mov dword [rsi + 8], edx
mov ecx, dword [rbp + 0x24]
mov edx, ecx
and edx, 0xff00
mov eax, ecx
shl eax, 0x10
or edx, eax
shl edx, 8
movzx eax, byte [rbp + 0x27]
shr ecx, 8
and ecx, 0xff00
or edx, ecx
or edx, eax
mov dword [rsi + 0xc], edx
mov ecx, dword [rbp + 0x28]
mov eax, ecx
and eax, 0xff00
mov edx, ecx
shl edx, 0x10
or edx, eax
shr ecx, 8
movzx eax, byte [rbp + 0x2b]
and ecx, 0xff00
shl edx, 8
or edx, eax
or edx, ecx
mov dword [rsi + 0x10], edx
xor eax, eax
mov qword [rbp + 0x2c], rax
mov dword [rbp + 0x18], 0x67452301
mov dword [rbp + 0x1c], 0xefcdab89
mov dword [rbp + 0x20], 0x98badcfe
mov dword [rbp + 0x24], 0x10325476
mov dword [rbp + 0x28], 0xc3d2e1f0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401848a0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x140174840
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0xf0
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rsi, rdx
xor r9d, r9d
lea rdx, [rsp + 0x68]
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U_WithStatus]
mov ebx, eax
test eax, eax
js 0x1401749d1
xor ecx, ecx
mov dword [rsp + 0x78], 0x30
mov dword [rsp + 0x50], ecx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rcx
lea r9, [rsp + 0xa8]
mov dword [rsp + 0x40], 0x60
lea r8, [rsp + 0x78]
mov dword [rsp + 0x38], 1
xorps xmm0, xmm0
mov dword [rsp + 0x30], 5
mov edx, 0x120089
mov qword [rsp + 0x80], rcx
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x90], 0x40
mov qword [rsp + 0x88], rax
movdqu xmmword [rsp + 0x98], xmm0
call qword [sym.imp.ntdll.dll_NtCreateFile]
lea rcx, [rsp + 0x68]
mov ebx, eax
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
test ebx, ebx
js 0x1401749d1
mov qword [rsp + 0x110], rdi
lea r8, [rsp + 0xc8]
mov rdi, qword [rsp + 0x60]
lea rdx, [rsp + 0xb8]
mov rcx, rdi
mov dword [rsp + 0x20], 5
mov r9d, 0x18
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x140174996
cmp qword [rsp + 0xd0], 0
jne 0x140174996
lfence
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, 0xc0000011
mov rdi, qword [rsp + 0x110]
mov rcx, qword ds:[rsp + 0xe0]
xor rcx, rsp
call fcn.1401848a0
mov rbx, qword [rsp + 0x118]
add rsp, 0xf0
pop rsi
ret
mov rdx, rdi
call fcn.14017d6a0
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtClose]
test rbx, rbx
je 0x1401749ca
cmp dword [rbx], 0
jne 0x1401749c2
test rsi, rsi
je 0x1401749bc
mov qword [rsi], rbx
xor eax, eax
jmp 0x14017496b
mov rcx, rbx
call fcn.14017d080
mov eax, 0xc0000102
jmp 0x14017496b
lfence
mov eax, ebx
jmp 0x140174973
Function at 0x140176200
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
movsd qword [rsp + 0x20], xmm3
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xa0]
mov rsi, rdx
mov rdx, qword [rsp + 0x98]
test eax, eax
mov r9, rdx
mov r11d, 0xd
mov r10d, r11d
movabs rbx, 0xfffffffffffff
cmovns r10d, eax
mov rbp, r8
and r9, rbx
shr rdx, 0x34
mov r14, rcx
test edx, edx
jne 0x140176274
mov rax, r9
neg rax
sbb ecx, ecx
and ecx, 0xfffffc02
jmp 0x14017627a
lea ecx, [rdx - 0x3ff]
mov rax, r9
movabs r8, 0x10000000000000
or rax, r8
mov r15d, 0x2d
test edx, edx
cmovne r9, rax
mov eax, ecx
cdq
mov edi, eax
mov eax, 0x2b
xor edi, edx
sub edi, edx
test ecx, ecx
cmovns r15d, eax
cmp edi, 0xa
jae 0x1401762b4
lea edx, [rax - 0x27]
jmp 0x1401762cf
cmp edi, 0x64
jae 0x1401762c2
mov edx, 5
jmp 0x1401762cf
cmp edi, 0x3e8
sbb rdx, rdx
add rdx, 7
mov rcx, rbp
movsxd r8, r10d
sub rcx, rsi
cmp rcx, r8
jl 0x14017641b
xor eax, eax
test r10d, r10d
setg al
sub rcx, r8
add rax, rdx
cmp rcx, rax
jl 0x14017641b
cmp r10d, r11d
jge 0x140176335
lea r8, [r9 + r9]
sub r11d, r10d
shl r11d, 2
lea rax, [r8 - 1]
or rax, r9
movzx ecx, r11b
mov edx, 1
shl rdx, cl
and rdx, rax
and rdx, r8
add r9, rdx
mov rax, r9
and r9, rbx
shr rax, 0x34
add al, 0x30
mov byte [rsi], al
inc rsi
test r10d, r10d
jle 0x1401763c2
mov byte [rsi], 0x2e
lea r11, str.0123456789abcdefghijklmnopqrstuvwxyz
mov rax, r9
lea r8d, [r10 - 1]
shr rax, 0x30
mov ecx, 0x30
movzx eax, byte [rax + r11]
mov byte [rsi + 1], al
add rsi, 2
test r8d, r8d
je 0x1401763c2
movabs rdx, 0x1000000000000
test ecx, ecx
je 0x1401763ac
lea rax, [rdx - 1]
sub ecx, 4
and r9, rax
ror rdx, 4
mov rax, r9
shr rax, cl
mov eax, eax
movzx eax, byte [rax + r11]
mov byte [rsi], al
inc rsi
sub r8d, 1
jne 0x140176380
jmp 0x1401763c2
movsxd rbx, r8d
mov edx, 0x30
mov r8, rbx
mov rcx, rsi
call fcn.1401868c0
add rsi, rbx
mov byte [rsi], 0x70
lea r9, [rsp + 0x40]
mov byte [rsi + 1], r15b
add rsi, 2
nop dword [rax]
nop word [rax + rax]
dec r9
mov eax, 0xcccccccd
mul edi
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub dil, cl
add dil, 0x30
mov byte [r9], dil
mov edi, edx
test edx, edx
jne 0x1401763e0
lea rbx, [rsp + 0x40]
mov rax, rbp
sub rbx, r9
sub rax, rsi
cmp rax, rbx
jge 0x140176425
mov dword [r14 + 8], 0x84
jmp 0x140176442
lfence
mov r8, rbx
mov rdx, r9
mov rcx, rsi
call fcn.140188690
mov dword [r14 + 8], 0
lea rbp, [rbx + rsi]
mov qword [r14], rbp
mov rax, r14
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401848a0
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14017d720
Capabilities:
Write file on windows

Disassembly:
push rbx
mov eax, 0x2090
call fcn.1401a8120
sub rsp, rax
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rsp + 0x2080], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x60]
lea rax, [rsp + 0x2078]
xor r9d, r9d
mov qword [rsp + 0x70], rax
lea rax, [0x14023f3e0]
mov qword [rsp + 0x28], rax
lea rax, [0x14017ddf0]
mov qword [rsp + 0x20], rax
call fcn.140180320
test eax, eax
js 0x14017d85a
xor ebx, ebx
test eax, eax
mov rax, qword [rsp + 0x68]
jle 0x14017d806
cmp rax, qword [rsp + 0x70]
jb 0x14017d7f6
lea rcx, [rsp + 0x78]
cmp rax, rcx
je 0x14017d7f6
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x60]
sub eax, ecx
mov qword [rsp + 0x38], rbx
mov rcx, qword [rsp + 0x60]
sub eax, 0x18
mov dword [rsp + 0x30], eax
xor r9d, r9d
lea rax, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
js 0x14017d85a
lea rax, [rsp + 0x78]
mov qword [rsp + 0x68], rax
mov byte [rax], 0xa
mov rax, qword [rsp + 0x68]
inc rax
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x78]
cmp rax, rcx
je 0x14017d856
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x60]
sub eax, ecx
mov qword [rsp + 0x38], rbx
mov rcx, qword [rsp + 0x60]
sub eax, 0x18
mov dword [rsp + 0x30], eax
xor r9d, r9d
lea rax, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
setns bl
dec ebx
mov eax, ebx
jmp 0x14017d85f
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2080]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0x2090
pop rbx
ret
Function at 0x14017dea0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rbx, rcx
test rcx, rcx
je 0x14017df14
xor eax, eax
lea rdi, [rcx + 0x18]
mov rcx, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor edx, edx
mov dword [rsp + 0x30], 0x2000
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
js 0x14017df14
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14017df14
add rax, 0x18
mov qword [rbx + 8], rdi
add rax, rbx
mov qword [rbx + 0x10], rax
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov rbx, qword [rsp + 0x70]
mov eax, 0xffffffff
add rsp, 0x60
pop rdi
ret

Function at 0x14017df40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rbx, rcx
test rcx, rcx
je 0x14017dfa9
mov rax, qword [rcx + 8]
lea rdi, [rcx + 0x18]
cmp rax, rdi
je 0x14017df9c
xor ecx, ecx
sub eax, ebx
mov qword [rsp + 0x40], rcx
sub eax, 0x18
mov qword [rsp + 0x38], rcx
xor r9d, r9d
mov rcx, qword [rbx]
xor r8d, r8d
mov dword [rsp + 0x30], eax
xor edx, edx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
js 0x14017dfa9
mov qword [rbx + 8], rdi
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov rbx, qword [rsp + 0x70]
mov eax, 0xffffffff
add rsp, 0x60
pop rdi
ret
Function at 0x14019619c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1402402c0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1401961fa
cmp word [rdx], r12w
jne 0x1401961fa
or byte [rax + r8*8 + 0x38], cl
jmp 0x140196200
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14019635b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140196336
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140196239
mov rcx, r9
jmp 0x14019625c
cmp r9, rdx
jae 0x140196273
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14019621d
jmp 0x14019635b
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140196330
cmp dword [rsp + 0x80], edi
je 0x140196330
mov rdx, r14
lea r11, [0x1402402c0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140196309
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1401962dc
mov word [rbx], r12w
jmp 0x140196357
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1401962e5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140196357
cmp word [rsp + 0x70], r12w
jne 0x140196316
cmp rbx, rsi
je 0x1401962d6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1401a29b8
cmp word [rsp + 0x70], r12w
je 0x14019635b
mov word [rbx], r13w
jmp 0x140196357
lea r11, [0x1402402c0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140196353
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14019635b
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140198888
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140198865
call fcn.140192894
mov dword [rax], 0x16
call fcn.140192758
or eax, 0xffffffff
jmp 0x140198882
sub dword [rcx + 0x10], 1
jns 0x140198874
add rsp, 0x28
jmp 0x1401a2ee0
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x140198844
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1401a2f12
call fcn.140192894
mov dword [rax], 0x16
call fcn.140192758
jmp 0x1401a3031
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401a3031
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1401a3031
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1401a2f41
lock or dword [rcx + 0x14], 0x10
jmp 0x1401a3031
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1401a2f55
call fcn.1401a3838
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14019ada8
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140196648
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1401a301f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1401a2fea
mov rcx, rsi
call fcn.14019ada8
cmp eax, edi
je 0x1401a2fd5
mov rcx, rsi
call fcn.14019ada8
cmp eax, 0xfffffffe
je 0x1401a2fd5
mov rcx, rsi
call fcn.14019ada8
movsxd rbx, eax
lea r14, [0x1402402c0]
mov rcx, rsi
sar rbx, 6
call fcn.14019ada8
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1401a2fdc
lea rdx, [0x140237410]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401a2fea
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1401a300e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1401a300e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1401a300e
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1401a3034
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret

Function at 0x1401997e8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401995d8