joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ee80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov esi, r8d
mov edi, edx
mov rbx, rcx
mov dword [rsp + 0x24], r8d
lea r14, [rcx + 0x1afa8]
mov eax, 0x3d4059f8
lea r12, str.invalid_length
mov r13d, 0xde9d2501
mov ebp, 0x70572ff9
and r15b, 1
nop
cmp eax, 0xff984389
jle 0x14000ef60
cmp eax, 0x3d4059f7
jg 0x14000efb0
cmp eax, 0xff98438a
je 0x14000efcb
cmp eax, 0x2615677f
jne 0x14000eec0
movzx eax, byte [rbx + 0x1af94]
mov rcx, qword [rbx + 0x1afa0]
mov edx, dword [rbx + 0x1afa8]
lea r8d, [rdx + 1]
mov dword [rbx + 0x1afa8], r8d
mov byte [rcx + rdx], al
movzx eax, byte [rbx + 0x1af95]
mov rcx, qword [rbx + 0x1afa0]
mov edx, dword [rbx + 0x1afa8]
lea r8d, [rdx + 1]
mov dword [rbx + 0x1afa8], r8d
mov byte [rcx + rdx], al
mov eax, dword [rbx + 0x1af98]
add eax, 0xfffffff0
mov ecx, esi
sub ecx, eax
mov edx, edi
shr edx, cl
mov dword [rbx + 0x1af98], eax
mov dword [rbx + 0x1af94], edx
mov eax, 0x842df586
jmp 0x14000eec0
cmp eax, 0x842df586
je 0x14000f0b5
cmp eax, 0x852a3aaa
je 0x14000f02c
cmp eax, 0x8bc069a3
jne 0x14000eec0
mov eax, dword [rbx + 0x1afac]
dec eax
cmp dword [rbx + 0x1afa8], eax
mov eax, 0x852a3aaa
mov ecx, 0x2615677f
cmovb eax, ecx
jmp 0x14000eec0
cmp eax, 0x70572ff9
je 0x14000f080
cmp eax, 0x3d4059f8
jne 0x14000eec0
jmp 0x14000f0a0
mov byte [rsp + 0x23], r15b
mov eax, 0x61e9df51
nop word cs:[rax + rax]
cmp eax, 0x61e9df50
jg 0x14000f000
cmp eax, 0xbe95501a
je 0x14000f046
cmp eax, 0xde9d2501
jne 0x14000efe0
mov qword [rbx + 0x6aff0], r12
jmp 0x14000f025
cmp eax, 0x6827a4a6
je 0x14000f025
cmp eax, 0x61e9df51
jne 0x14000efe0
movzx eax, byte [rsp + 0x23]
mov ecx, eax
xor cl, 0xfe
test cl, al
mov eax, 0x6827a4a6
cmove eax, r13d
jmp 0x14000efe0
mov eax, 0xbe95501a
jmp 0x14000efe0
mov rdx, qword [rbx + 0x1afa0]
mov rcx, qword [rbx]
mov r8, r14
call qword [rbx + 0x18]
mov eax, 0x2615677f
jmp 0x14000eec0
add dword [rbx + 0x1afb0], esi
mov ecx, dword [rbx + 0x1af98]
mov eax, edi
shl eax, cl
or dword [rbx + 0x1af94], eax
add ecx, esi
mov dword [rbx + 0x1af98], ecx
cmp ecx, 0x11
mov eax, 0x842df586
mov ecx, 0x8bc069a3
cmovge eax, ecx
jmp 0x14000eec0
cmp esi, 0x10
setl byte [rsp + 0x22]
mov eax, 0xff98438a
movzx r15d, byte [rsp + 0x22]
jmp 0x14000eebb
cmp dword [rsp + 0x24], 0
mov eax, 0xff98438a
cmovg eax, ebp
xor r15d, r15d
jmp 0x14000eebb
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140018380
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov ebx, r8d
mov rdi, rdx
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0xb8]
mov qword [rsp + 0x40], rax
mov eax, 0x254eed
mov r12d, 0x96492f65
mov r13d, 0xc6758f12
mov r15d, 0xdb4d56fc
mov ebp, 0xd8f395a2
jmp 0x1400183f0
cmp eax, 0xc6758f12
jne 0x140018615
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x24], 0x1000000
mov eax, 0xb056ae3a
xor r14d, r14d
nop dword [rax]
cmp eax, 0xdb4d56fb
jg 0x140018460
cmp eax, 0xc8dd4ec1
jg 0x1400184a0
cmp eax, 0xb056ae39
jg 0x1400183ca
cmp eax, 0x96492f65
je 0x140018534
cmp eax, 0x9aaa051a
jne 0x1400183f0
mov r14d, dword [rsp + 0x3c]
mov rax, qword [rsp + 0x30]
add dword [rax + 0x9c], r14d
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 0xa0]
mov rdx, rdi
mov r8, r14
call fcn.140014db0
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 0xa0], eax
mov eax, 0xec7a5850
jmp 0x1400183f0
cmp eax, 0x24944c48
jg 0x1400184f0
cmp eax, 0xdb4d56fc
je 0x140018540
cmp eax, 0xec7a5850
je 0x14001855b
cmp eax, 0x254eed
jne 0x1400183f0
cmp qword [rsp + 0x40], 0
mov eax, 0x5eb68d7a
cmove eax, r15d
jmp 0x1400183f0
cmp eax, 0xc8dd4ec2
je 0x1400183e1
cmp eax, 0xc907a8a1
je 0x140018565
cmp eax, 0xd8f395a2
jne 0x1400183f0
mov rax, qword [rsp + 0x30]
mov esi, dword [rax + 0xc0]
mov rax, qword [rsp + 0x30]
sub esi, dword [rax + 0xc4]
cmp esi, ebx
mov eax, 0x38394a5e
cmova eax, r12d
jmp 0x1400183f0
cmp eax, 0x24944c49
je 0x14001859f
cmp eax, 0x38394a5e
je 0x1400185ac
cmp eax, 0x5eb68d7a
jne 0x1400183f0
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xc4]
mov rcx, qword [rsp + 0x30]
cmp eax, dword [rcx + 0xc0]
mov eax, 0xc8dd4ec2
cmovb eax, ebp
jmp 0x1400183f0
mov eax, 0x38394a5e
mov esi, ebx
jmp 0x1400183f0
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0xa8], 0
mov eax, 0xc907a8a1
cmove eax, r13d
jmp 0x1400183f0
mov eax, 0xb056ae3a
jmp 0x1400183f0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0xa8]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, ebx
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, 0x9aaa051a
mov ecx, 0x24944c49
cmove eax, ecx
jmp 0x1400183f0
mov eax, 0xec7a5850
xor r14d, r14d
jmp 0x1400183f0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov edx, dword [rcx + 0xc4]
add rdx, qword [rax + 0xb8]
mov r14d, esi
mov rcx, rdi
mov r8, r14
call fcn.140035380
mov rax, qword [rsp + 0x30]
add dword [rax + 0xc4], esi
mov rax, qword [rsp + 0x30]
add dword [rax + 0x9c], esi
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 0xa0]
mov rdx, rdi
mov r8, r14
call fcn.140014db0
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 0xa0], eax
mov eax, 0xb056ae3a
mov r14d, esi
jmp 0x1400183f0
cmp eax, 0xb056ae3a
jne 0x1400183f0
mov eax, r14d
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14001c7dc
Capabilities:
Parse pe header

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

Function at 0x1400220ec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400221fc
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14002226b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002226b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002226b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002226b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002226b
cmp dword [rcx + 0x84], 0xe
jbe 0x14002226b
cmp dword [rcx + 0xf8], 0
je 0x14002226b
mov ecx, ebx
call fcn.140022168
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400223a0
nop
cmp dword [rbp + 0x20], 0
jne 0x1400222cc
call fcn.14002a768
cmp eax, 1
jne 0x1400222bc
xor dl, dl
jmp 0x1400222c6
call fcn.14002a734
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x1400222d7
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400221cc
int3

Function at 0x1400221fc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400221fc
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14002226b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002226b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002226b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002226b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002226b
cmp dword [rcx + 0x84], 0xe
jbe 0x14002226b
cmp dword [rcx + 0xf8], 0
je 0x14002226b
mov ecx, ebx
call fcn.140022168
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400223a0
nop
cmp dword [rbp + 0x20], 0
jne 0x1400222cc
call fcn.14002a768
cmp eax, 1
jne 0x1400222bc
xor dl, dl
jmp 0x1400222c6
call fcn.14002a734
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x1400222d7
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400221cc
int3
Function at 0x140024050
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.14001bfc0
sub rsp, rax
mov rax, qword [0x140044040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002a674
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002409f
mov rax, rbp
jmp 0x1400241ab
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 + 0x45a90]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002dd70
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x45a90]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400241a7
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400241a7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002dd70
test rax, rax
js 0x1400241a7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400241a7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140024199
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140024199
cmp byte [rcx], 0xd
jne 0x14002417f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002418e
cmp byte [rcx + 1], 0xa
jne 0x14002418e
inc rcx
jmp 0x14002418e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x449a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140024161
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400241ab
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140026690
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 0x140024cf0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140024d18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140024d18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14002c178
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 0x14002c1a8
xor eax, eax
jmp 0x14002c26b
mov rbp, rbx
cmp word [rax], si
je 0x14002c1cd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002c1b4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002c1b0
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.14002c098
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x14002c20e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002c1a1
call fcn.140028f80
mov rdi, rax
test rax, rax
jne 0x14002c224
xor ecx, ecx
call fcn.140028140
jmp 0x14002c203
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.14002c098
test eax, eax
jne 0x14002c255
mov rcx, rdi
call fcn.140028140
jmp 0x14002c25f
xor ecx, ecx
call fcn.140028140
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 0x14002d964
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
xor edi, edi
mov rax, r15
lea rcx, [0x140045a90]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x14002d9ba
cmp word [rdx], r9w
jne 0x14002d9ba
or byte [rax + rbp*8 + 0x38], 4
jmp 0x14002d9bf
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x14002db3e
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x14002db09
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x14002da07
cmp rcx, r8
jae 0x14002da27
cmp word [rcx], r9w
jne 0x14002da07
add rax, 4
mov edx, r9d
jmp 0x14002da0a
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x14002d9dc
jmp 0x14002db3e
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002db02
cmp dword [rsp + 0x80], edi
je 0x14002db02
lea r9, [0x140045a90]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x14002dadc
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x14002da8f
mov word [rbx], bp
jmp 0x14002db3b
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x14002daaa
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x14002db3b
cmp word [rsp + 0x70], bp
jne 0x14002dae8
cmp rbx, rsi
je 0x14002da87
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002dccc
cmp word [rsp + 0x70], bp
je 0x14002db3e
mov word [rbx], 0xd
jmp 0x14002db3b
mov rcx, r15
lea r9, [0x140045a90]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14002db38
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14002db3e
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
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
Function at 0x1400344d4
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.14002dccc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002dccc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140034621
cmp rax, 0xffffffffffffffff
je 0x140034621
xor edi, edi
test rbp, rbp
jle 0x1400345cf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002abd0
mov rbx, rax
test rax, rax
jne 0x14003455c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400345c5
mov edx, 0x8000
mov ecx, r14d
call fcn.1400232bc
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.14002f6b8
cmp eax, 0xffffffff
je 0x1400345a5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14003456c
mov edx, r15d
mov ecx, r14d
call fcn.1400232bc
jmp 0x1400345c5
cmp byte [rsi + 0x38], dil
je 0x1400345bc
cmp dword [rsi + 0x34], 5
jne 0x1400345bc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
cmp byte [rsi + 0x30], dil
je 0x1400345c5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140028140
jmp 0x140034633
jns 0x140034633
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002dccc
cmp rax, 0xffffffffffffffff
jne 0x1400345ed
cmp byte [rsi + 0x30], dil
je 0x140034633
jmp 0x140034629
mov ecx, r14d
call fcn.14002c288
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140034633
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], send
jmp 0x140034633
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14003462e
mov edi, dword [rsi + 0x2c]
jmp 0x140034633
mov edi, socket
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002dccc
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 0x140005c60
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140005c8e
xor eax, eax
jmp 0x140005d74
cmp qword [rcx + 0x68], 0
je 0x140005c9f
call fcn.140003800
jmp 0x140005d74
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140005cb6
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005cb8
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005cea
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140026230
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140005d6e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140005d21
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140005d4a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400131e4
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140005d6e
cmp rsi, rbx
ja 0x140005d28
test rsi, rsi
je 0x140005d6e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400131e4
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400078a8
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001531f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001531f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001531f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001531f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001531f
cmp dword [rcx + 0x84], 0xe
jbe 0x14001531f
cmp dword [rcx + 0xf8], 0
je 0x14001531f
mov ecx, ebx
call fcn.1400153d0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400151ac
nop
cmp dword [rbp + 0x20], 0
je 0x14001536d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140015378
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400152b0

Function at 0x1400154b4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400152b0
Function at 0x14001bd64
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.140007400
sub rsp, rax
mov rax, qword [0x14003b040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400194d4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001bdb3
mov rax, rbp
jmp 0x14001bebb
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 + 0x3d2b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001ce84
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3d2b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001beb7
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 0x14001beb7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001ce84
test rax, rax
js 0x14001beb7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001beb7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001bea9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001bea9
cmp byte [rcx], 0xd
jne 0x14001be8f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001be9e
cmp byte [rcx + 1], 0xa
jne 0x14001be9e
inc rcx
jmp 0x14001be9e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3b480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001be71
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001bebb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140006b00
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 0x14001c0dc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001c0f2
mov al, 1
jmp 0x14001c152
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001c103
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001c150
mov ecx, dword [rcx + 0x18]
nop
call fcn.140020998
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001c150
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001c150
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001c150
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001c152
xor al, al
add rsp, 0x20
pop rbx
ret