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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140083d07
call fcn.14007854c
mov dword [rax], SafeArrayUnaccessData
call fcn.140078084
xor eax, eax
jmp 0x140083d95
mov rdx, r9
mov rcx, r8
call fcn.140083c6c
mov rbx, rax
test rax, rax
je 0x140083d92
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140083b98]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140083d7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400784c0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140083d66
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140083d75
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14008b4e8
jmp 0x140083d92
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140083d8f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140084384
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 0x1400841ef
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400841ef
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400841ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400841ef
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400841ef
cmp dword [rcx + 0x84], 0xe
jbe 0x1400841ef
cmp dword [rcx + 0xf8], 0
je 0x1400841ef
mov ecx, ebx
call fcn.1400842a0
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.14008407c
nop
cmp dword [rbp + 0x20], 0
je 0x14008423d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140084248
int3
xor r8d, r8d
xor edx, edx
jmp 0x140084180
Function at 0x14008ee90
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.140071ce0
sub rsp, rax
mov rax, qword [0x1400d9448]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14008c8ac
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14008eedf
mov rax, rbp
jmp 0x14008efe7
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 + 0xdd7b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14008ffb0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xdd7b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14008efe3
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 0x14008efe3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14008ffb0
test rax, rax
js 0x14008efe3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14008efe3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14008efd5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14008efd5
cmp byte [rcx], 0xd
jne 0x14008efbb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14008efca
cmp byte [rcx + 1], 0xa
jne 0x14008efca
inc rcx
jmp 0x14008efca
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xd9850]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14008ef9d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14008efe7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140071cb0
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 0x14008f208
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14008f21e
mov al, 1
jmp 0x14008f27e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14008f22f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14008f27c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140096848
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14008f27c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14008f27c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14008f27c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14008f27e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14008f350
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, [0x1400dd7b0]
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 0x14008f3a7
cmp word [rdx], r13w
jne 0x14008f3a7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14008f3ac
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14008f4d1
mov r11d, SafeArrayDestroy
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14008f4f2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14008f3e5
mov rdx, r9
mov word [rbx], cx
jmp 0x14008f40c
cmp r9, r8
jae 0x14008f41c
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 0x14008f3c6
jmp 0x14008f4d1
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 0x14008f4c6
cmp dword [rsp + 0x80], esi
je 0x14008f4c6
lea r8, [0x1400dd7b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14008f49e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14008f46e
mov word [rbx], r13w
jmp 0x14008f4ce
mov ecx, SafeArrayDestroy
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 0x14008f47b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14008f4ce
cmp word [rsp + 0x70], r13w
jne 0x14008f4ab
cmp rbx, r14
je 0x14008f468
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14008ffb8
cmp word [rsp + 0x70], r13w
je 0x14008f4d1
mov ecx, SafeArrayDestroy
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, [0x1400dd7b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14008f4cb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14008f4d1
Function at 0x140094d9c
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.14008ace4
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 0x140094e3d
cmp ebx, dword [rsp + 0x30]
je 0x140094e36
test esi, esi
je 0x140094e36
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140094e11
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140094e1e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140094dfb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140094e22
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140094e3f
mov eax, 1
jmp 0x140094e3f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400961fc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140096283
mov rsi, rbx
cmp word [rax], bp
je 0x140096242
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14009622c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140096228
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14008b728
mov rdi, rax
test rax, rax
je 0x140096270
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140073ae0
mov rbp, rdi
xor ecx, ecx
call fcn.14008b4e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14009a8a0
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.14008ffb8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14008ffb8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14009a9f0
cmp rax, 0xffffffffffffffff
je 0x14009a9f0
xor edi, edi
test rbp, rbp
jle 0x14009a99b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14008ccb4
mov rbx, rax
test rax, rax
jne 0x14009a928
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14009a991
mov edx, 0x8000
mov ecx, r14d
call fcn.14008a5dc
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.14008e708
cmp eax, 0xffffffff
je 0x14009a971
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14009a938
mov edx, r15d
mov ecx, r14d
call fcn.14008a5dc
jmp 0x14009a991
cmp byte [rsi + 0x38], dil
je 0x14009a988
cmp dword [rsi + 0x34], 5
jne 0x14009a988
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
cmp byte [rsi + 0x30], dil
je 0x14009a991
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14008b4e8
jmp 0x14009aa04
jns 0x14009aa04
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14008ffb8
cmp rax, 0xffffffffffffffff
jne 0x14009a9bc
cmp byte [rsi + 0x30], dil
je 0x14009aa04
mov edi, dword [rsi + 0x2c]
jmp 0x14009aa04
mov ecx, r14d
call fcn.140096848
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14009aa04
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayDestroy
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
jmp 0x14009aa04
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14009a9fd
mov eax, dword [rsi + 0x2c]
jmp 0x14009aa02
mov eax, SafeArrayUnaccessData
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14008ffb8
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 0x180014a18
Capabilities:
Get file size

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

Function at 0x180016e74
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x18000003c]
lea rsi, [0x180000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x180016eed
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x180016eed
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
cmp r9w, r11w
jae 0x180016eed
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x180016ee1
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x180016eff
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x180016ecf
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x180016eef

Function at 0x1800173b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800173d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800173d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140004aa4
Capabilities:
Parse pe header

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

Function at 0x100411cd0
Capabilities:
Encode data using xor

Disassembly:
cmp al, 0x35
xor dword [rcx], esi
xor dword [rcx], esi
xor dword [rcx], esi
xor dword [rcx], esi
xor dword [rcx], esi
xor dword [rbx + 0x439df97f], eax
popfq
xor qword [rcx], rsi
xor dword [rcx], esi
xor dword [rcx], esi
xor dword [rcx], esi
xor dword [rcx], esi
xor dword [rcx], esi
xor dword [rcx], esi
invalid
Function at 0x1400279dc
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.14001b104
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b104
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027b2c
cmp rax, 0xffffffffffffffff
je 0x140027b2c
xor edi, edi
test rbp, rbp
jle 0x140027ad7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001da18
mov rbx, rax
test rax, rax
jne 0x140027a64
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027acd
mov edx, 0x8000
mov ecx, r14d
call fcn.140018a68
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.14001bde0
cmp eax, 0xffffffff
je 0x140027aad
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027a74
mov edx, r15d
mov ecx, r14d
call fcn.140018a68
jmp 0x140027acd
cmp byte [rsi + 0x38], dil
je 0x140027ac4
cmp dword [rsi + 0x34], 5
jne 0x140027ac4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027acd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400197c8
jmp 0x140027b40
jns 0x140027b40
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b104
cmp rax, 0xffffffffffffffff
jne 0x140027af8
cmp byte [rsi + 0x30], dil
je 0x140027b40
mov edi, dword [rsi + 0x2c]
jmp 0x140027b40
mov ecx, r14d
call fcn.140017594
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027b40
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 0x140027b40
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027b39
mov eax, dword [rsi + 0x2c]
jmp 0x140027b3e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b104
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 0x140028c30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140028c58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140028c58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001040
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov edx, 0x47
lea rcx, [entry0]
or eax, 0xffffffd1
mov al, byte [rcx + rdx]
xor al, 0x53
add al, 0xd5
xor al, 0x43
mov byte [rcx + rdx], al
inc rdx
cmp rdx, 0x2d9
jl 0x140001068
jne 0x14000106a
int3
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14002f6d0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14002f6e0]
mov dword [rax], 1
mov rax, qword [0x14002f6f0]
mov dword [rax], 1
mov rax, qword [0x14002f640]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14002f6c0]
mov dword [0x14003500c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14002f7a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14002f780]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14002f620]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140002e6d
Capabilities:
Get hostname

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov qword [rbp - 8], 0
lea rax, [rbp - 0x50]
mov edx, 0x40
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_gethostname]
call rax
mov byte [rbp - 0x11], 0
mov ecx, 3
call dbg.buffer_create
mov qword [rbp - 8], rax
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 8]
mov rcx, rax
call dbg.buffer_add_string
mov rax, qword [rbp - 8]
lea rdx, [0x14002c094]
mov rcx, rax
call dbg.buffer_add_string
lea rdx, [rbp - 0x50]
mov rax, qword [rbp - 8]
mov rcx, rax
call dbg.buffer_add_string
mov rax, qword [rbp - 8]
lea rdx, [0x14002c097]
mov rcx, rax
call dbg.buffer_add_string
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
call dbg.buffer_add_int8
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
call dbg.buffer_create_string_and_destroy
add rsp, 0x70
pop rbp
ret
Function at 0x140003bfe
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 0x48], 0
mov qword [rbp - 8], 0
mov rax, qword [rbp + 0x18]
mov eax, dword [rax + 8]
test eax, eax
jne 0x140003c33
mov eax, 0
jmp 0x140003d70
mov rax, qword [rbp + 0x18]
mov rax, qword [rax + 0x10]
lea rdx, [s.st_dev]
mov rcx, rax
call dbg.stat
test eax, eax
je 0x140003c6d
mov rax, qword [rbp + 0x18]
movzx eax, word [rax]
movzx eax, ax
lea r8, str.Error_opening_file_for_reading
mov edx, 0xffff
mov ecx, eax
call dbg.command_packet_create_error_response
jmp 0x140003d70
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax + 0x10]
lea rax, [rbp - 0x48]
lea r8, [0x14002c347]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_fopen_s]
call rax
mov rax, qword [rbp - 0x48]
test rax, rax
jne 0x140003cb7
mov rax, qword [rbp + 0x18]
movzx eax, word [rax]
movzx eax, ax
lea r8, str.Error_opening_file_for_reading
mov edx, 0xffff
mov ecx, eax
call dbg.command_packet_create_error_response
jmp 0x140003d70
mov eax, dword [s.st_size]
cdqe
mov r8d, 0x47
lea rdx, str.drivers_command_commands_standard.h
mov rcx, rax
call dbg.safe_malloc_internal
mov qword [rbp - 0x10], rax
mov rcx, qword [rbp - 0x48]
mov eax, dword [s.st_size]
movsxd rdx, eax
mov rax, qword [rbp - 0x10]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov rdx, rax
mov eax, dword [s.st_size]
cdqe
cmp rdx, rax
jne 0x140003d26
mov eax, dword [s.st_size]
mov ecx, eax
mov rax, qword [rbp + 0x18]
movzx eax, word [rax]
movzx eax, ax
mov rdx, qword [rbp - 0x10]
mov r8d, ecx
mov ecx, eax
call dbg.command_packet_create_download_response
mov qword [rbp - 8], rax
jmp 0x140003d47
mov rax, qword [rbp + 0x18]
movzx eax, word [rax]
movzx eax, ax
lea r8, str.There_was_an_error_reading_the_file
mov edx, 0xffff
mov ecx, eax
call dbg.command_packet_create_error_response
mov qword [rbp - 8], rax
mov rax, qword [rbp - 0x48]
mov rcx, rax
call sym.fclose
mov rax, qword [rbp - 0x10]
mov r8d, 0x4e
lea rdx, str.drivers_command_commands_standard.h
mov rcx, rax
call dbg.safe_free_internal
mov rax, qword [rbp - 8]
add rsp, 0x70
pop rbp
ret
Function at 0x140003d76
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x18]
mov eax, dword [rax + 8]
test eax, eax
jne 0x140003d9b
mov eax, 0
jmp 0x140003e28
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax + 0x10]
lea rax, [rbp - 8]
lea r8, [0x14002c39c]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_fopen_s]
call rax
mov rax, qword [rbp - 8]
test rax, rax
jne 0x140003de2
mov rax, qword [rbp + 0x18]
movzx eax, word [rax]
movzx eax, ax
lea r8, str.Error_opening_file_for_writing
mov edx, 0xffff
mov ecx, eax
call dbg.command_packet_create_error_response
jmp 0x140003e28
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x18]
mov eax, dword [rax + 0x20]
mov ecx, eax
mov rax, qword [rbp + 0x18]
mov rax, qword [rax + 0x18]
mov r9, rdx
mov r8d, 1
mov rdx, rcx
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.fclose
mov rax, qword [rbp + 0x18]
movzx eax, word [rax]
movzx eax, ax
mov ecx, eax
call dbg.command_packet_create_upload_response
add rsp, 0x30
pop rbp
ret

Function at 0x1400067e0
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x20]
mov r8d, eax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x28]
lea rcx, [rbp - 4]
mov rdx, qword [rbp + 0x18]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
nop
add rsp, 0x40
pop rbp
ret