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

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x180
mov rax, qword [0x1400f1080]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call case.0x140077ff9.0
mov r13, rax
test rax, rax
jne 0x1400b89ce
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140096530
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.140083310
xor ecx, ecx
lea ebx, [rbp + 0x4d]
call qword [fcn.1400c2c17]
jmp 0x1400b8b88
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r13
mov qword [rsp + 0x170], r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.DLL_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400b8a41
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140096530
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.140083310
xor ecx, ecx
lea ebx, [r14 + 0x4e]
jmp 0x1400b8b72
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
jne 0x1400b8a8a
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140096530
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.140083310
mov ebx, Ordinal_79
jmp 0x1400b8b66
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x1400b8abf
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.140083310
mov ebx, Ordinal_79
jmp 0x1400b8b5e
lea rcx, [rdi + 1]
call qword [str.__f_]
mov rbp, rax
test rax, rax
jne 0x1400b8ad9
lea ebx, [rax + 0x1b]
jmp 0x1400b8b5e
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x1400b8b38
nop word [rax + rax]
mov r8d, edi
mov dword [rsp + 0x40], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x1400b8baa
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x1400b8b2f
mov edi, esi
jmp 0x1400b8b31
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x1400b8af0
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.1400b86b0
mov ebx, eax
mov rsi, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x178]
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, rbp
call qword [fcn.1400c2c17]
mov rcx, r13
call fcn.1400c2c17
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400c1970
add rsp, 0x180
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140096530
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.140083310
mov ebx, Ordinal_79
jmp 0x1400b8b56
Function at 0x1400bfc60
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [str.__f_]
mov rdi, rax
test rax, rax
jne 0x1400bfca2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400bfce9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400bfd42
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400bfd00
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400bfd83
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400d33bc]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400d33bd]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400bfd50
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400c2918
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x1400c2962
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c2962
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c2962
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c2962
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c2962
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400c2964
xor al, al
add rsp, 0x28
ret
Function at 0x1400011d0
Capabilities:
Authenticate hmac

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
mov eax, 0x1048
call fcn.14001b8f0
sub rsp, rax
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x1030], rax

Function at 0x140001200
Capabilities:
Authenticate hmac

Disassembly:
or r10, r11
xor r13, r13
addps xmm0, xmm12
mov rbx, qword [rsp + r13]
add rsi, 0x83
and r15, r14
mov rsi, 0x38c42c75
push r15
pop r11
push r13
pop r11
mov rdi, 0x38c43268
push r15
pop r11
test r13, r10
xor rsi, rdi
subps xmm3, xmm1
add r11, 0x3e
sub rbx, rsi
shl r15, 0x22
shr r12, 0x36
mov r15, 0x1564a8e5
or r12, 0x2c
mov rsi, 0x15657a25
xor r13, 0xb0
xor r15, rsi
shr r14, 5
add r15, rbx
mov r11, 0xcf
subps xmm6, xmm7
mov rsi, qword [r15]
mov r10, r14
or rdi, 0x83
mov r11, 0x430a9a12
shr r13, 0x17
xchg r10, rdi
mov r12, 0x430f4502
shl rax, 0x19
xor r11, r12

Function at 0x1400012a0
Capabilities:
Encode data using xor

Disassembly:
xor r10, 0x68
add r11, rbx
push r10
pop r13
mov r15, 0x67b7282e
xorps xmm0, xmm9
ror rdi, 6
mov r10, 0x67b60b9b
ror r12, 0x11
rol r13, 0x23
xor r15, r10
xor r12, rbx
mov r10, 0x79
xchg rdi, r13
mov r14, 0x7d
and rbx, r13
xor r10, r14
rol r13, 0x32
push r11
xor r12, rbx
sub rdi, rbx
push r15
xchg r13, rbx
push rsi
xor rax, 0
sub rdi, 0xb4
sub rsp, 0x20
and r13, 0x6b
mov rcx, r11
cmp rdi, rax
dec rdi
mov rdx, r15
ror r15, 0x30
subps xmm12, xmm10
mov r8, r10
lea r11, [r11 + 0x11]
sub r12, 0x6c
lea r9, [rsp]
xor r14, rdi
lea r10, [r10 + 0x11]
call rsi
shl r14, 0x23
test r10, rsi
invalid
invalid
Function at 0x1400025e8
Capabilities:
Parse pe header

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

Function at 0x1400061c4
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 0x140006023
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006023
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006023
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006023
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006023
cmp dword [rcx + 0x84], 0xe
jbe 0x140006023
cmp dword [rcx + 0xf8], 0
je 0x140006023
mov ecx, ebx
call fcn.1400060e0
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.140005eb0
nop
cmp dword [rbp + 0x20], 0
je 0x140006071
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000607c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140005fb4
Function at 0x140012dc4
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, [0x14002b790]
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 0x140012e22
cmp word [rdx], r12w
jne 0x140012e22
or byte [rax + r8*8 + 0x38], cl
jmp 0x140012e28
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140012f83
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140012f5e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140012e61
mov rcx, r9
jmp 0x140012e84
cmp r9, rdx
jae 0x140012e9b
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 0x140012e45
jmp 0x140012f83
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 0x140012f58
cmp dword [rsp + 0x80], edi
je 0x140012f58
mov rdx, r14
lea r11, [0x14002b790]
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 0x140012f31
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140012f04
mov word [rbx], r12w
jmp 0x140012f7f
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 0x140012f0d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140012f7f
cmp word [rsp + 0x70], r12w
jne 0x140012f3e
cmp rbx, rsi
je 0x140012efe
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14001878c
cmp word [rsp + 0x70], r12w
je 0x140012f83
mov word [rbx], r13w
jmp 0x140012f7f
lea r11, [0x14002b790]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140012f7b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140012f83
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 0x1400137d8
Capabilities:
Read file on windows

Disassembly:
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 0x14001380a
call fcn.14000ef38
mov dword [rax], 0x16
call fcn.14000edfc
jmp 0x140013929
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140013929
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140013929
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140013839
lock or dword [rcx + 0x14], 0x10
jmp 0x140013929
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14001384d
call fcn.140019480
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400103e4
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140013270
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140013917
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400138e2
mov rcx, rsi
call fcn.1400103e4
cmp eax, edi
je 0x1400138cd
mov rcx, rsi
call fcn.1400103e4
cmp eax, 0xfffffffe
je 0x1400138cd
mov rcx, rsi
call fcn.1400103e4
movsxd rbx, eax
lea r14, [0x14002b790]
mov rcx, rsi
sar rbx, 6
call fcn.1400103e4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400138d4
lea rdx, [0x14002a2d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400138e2
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140013906
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140013906
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140013906
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 0x14001392c
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 0x140014c24
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 0x140014cab
mov rsi, rbx
cmp word [rax], bp
je 0x140014c6a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140014c54
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140014c50
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000ef94
mov rdi, rax
test rax, rax
je 0x140014c98
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140003f50
mov rbp, rdi
xor ecx, ecx
call fcn.14000ef58
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 0x14001a904
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.14001878c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001878c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14001aa54
cmp rax, 0xffffffffffffffff
je 0x14001aa54
xor edi, edi
test rbp, rbp
jle 0x14001a9ff
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140011060
mov rbx, rax
test rax, rax
jne 0x14001a98c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14001a9f5
mov edx, 0x8000
mov ecx, r14d
call fcn.14000dff8
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.140012308
cmp eax, 0xffffffff
je 0x14001a9d5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14001a99c
mov edx, r15d
mov ecx, r14d
call fcn.14000dff8
jmp 0x14001a9f5
cmp byte [rsi + 0x38], dil
je 0x14001a9ec
cmp dword [rsi + 0x34], 5
jne 0x14001a9ec
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14001a9f5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14000ef58
jmp 0x14001aa68
jns 0x14001aa68
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001878c
cmp rax, 0xffffffffffffffff
jne 0x14001aa20
cmp byte [rsi + 0x30], dil
je 0x14001aa68
mov edi, dword [rsi + 0x2c]
jmp 0x14001aa68
mov ecx, r14d
call fcn.1400155c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14001aa68
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 0x14001aa68
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14001aa61
mov eax, dword [rsi + 0x2c]
jmp 0x14001aa66
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001878c
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 0x14001b780
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400a0700]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400a0710]
mov dword [rax], 1
mov rax, qword [0x1400a0720]
mov dword [rax], 1
mov rax, qword [0x1400a0690]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400a06f0]
mov dword [0x1400bc00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400a07e0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400a07c0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14009fcc0]
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 [sym._matherr]
call sym.__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 0x1400014e7
Capabilities:
Get session user name

Disassembly:
push rbp
push rbx
sub rsp, 0x158
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov dword [rbp - 0x54], 0x101
lea rdx, [rbp - 0x54]
lea rax, [rbp - 0x50]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetUserNameA]
call rax
test eax, eax
setne al
test al, al
je 0x140001561
lea rax, [rbp + 0xbe]
mov qword [rbp + 0xc8], rax
nop
nop
lea rdx, [rbp + 0xbe]
lea rax, [rbp - 0x50]
mov rcx, qword [rbp + 0xf0]
mov r8, rdx
mov rdx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0xbe]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
jmp 0x1400015de
lea rax, [rbp + 0xbf]
mov qword [rbp + 0xc0], rax
nop
nop
lea rdx, [rbp + 0xbf]
mov rax, qword [rbp + 0xf0]
mov r8, rdx
lea rdx, [0x14009b00c]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0xbf]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
jmp 0x1400015de
mov rax, qword [rbp + 0xf0]
add rsp, 0x158
pop rbx
pop rbp
ret
Function at 0x1400015ef
Capabilities:
Get hostname

Disassembly:
push rbp
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x20], rcx
mov dword [rbp - 0x34], 0x10
lea rdx, [rbp - 0x34]
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetComputerNameA]
call rax
test eax, eax
setne al
test al, al
je 0x140001651
lea rax, [rbp - 0x12]
mov qword [rbp - 8], rax
nop
nop
lea rdx, [rbp - 0x12]
lea rax, [rbp - 0x30]
mov rcx, qword [rbp + 0x20]
mov r8, rdx
mov rdx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp - 0x12]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
jmp 0x1400016b9
lea rax, [rbp - 0x11]
mov qword [rbp - 0x10], rax
nop
nop
lea rdx, [rbp - 0x11]
mov rax, qword [rbp + 0x20]
mov r8, rdx
lea rdx, [0x14009b00c]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp - 0x11]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
jmp 0x1400016b9
mov rax, qword [rbp + 0x20]
add rsp, 0x68
pop rbx
pop rbp
ret
Function at 0x1400016c4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x188
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x120], rcx
mov dword [rbp + 0xdc], 1
mov dword [rbp - 0x34], 0x104
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov r8d, 0
lea rax, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rdx, rax
mov rcx, 0xffffffff80000002
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
test eax, eax
sete al
test al, al
je 0x1400017df
mov rax, qword [rbp + 0xe0]
lea rdx, [rbp - 0x34]
mov qword [rsp + 0x30], rdx
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp + 0xdc]
mov qword [rsp + 0x20], rdx
mov r9d, 2
lea r8, str.ProductName
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegGetValueA]
call rax
test eax, eax
sete al
test al, al
je 0x1400017cc
mov rax, qword [rbp + 0xe0]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
lea rax, [rbp + 0xee]
mov qword [rbp + 0xf8], rax
nop
nop
lea rdx, [rbp + 0xee]
lea rax, [rbp - 0x30]
mov rcx, qword [rbp + 0x120]
mov r8, rdx
mov rdx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0xee]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
jmp 0x14000185c
mov rax, qword [rbp + 0xe0]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
lea rax, [rbp + 0xef]
mov qword [rbp + 0xf0], rax
nop
nop
lea rdx, [rbp + 0xef]
mov rax, qword [rbp + 0x120]
mov r8, rdx
lea rdx, str.Unknown
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0xef]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
jmp 0x14000185c
mov rax, qword [rbp + 0x120]
add rsp, 0x188
pop rbx
pop rbp
ret