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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov edi, r9d
mov rbp, r8
mov rsi, rcx
call fcn.1400686e0
nop
lea rax, vtable.Thread.0
mov qword [rsi + 0x88], rax
mov byte [rsi + 0x9c], 0
mov byte [rsi + 0x9d], 0
lea rax, [rsi + 0x98]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
lea r9, [rsi + 0x88]
lea r8, [0x140039100]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 0x90], rax
lea rax, vtable.LocalFilesDeleteOperation.0
mov qword [rsi], rax
lea rax, vtable.LocalFilesDeleteOperation.1.0
mov qword [rsi + 0x88], rax
lea r15, [rsi + 0xa0]
mov qword [rsp + 0x30], r15
mov rcx, r15
call fcn.14002e130
nop
add rsi, 0xd8
mov ecx, 8
call fcn.1400797fc
xor ebx, ebx
test rax, rax
je 0x140067414
mov qword [rax], rsi
jmp 0x140067417
mov rax, rbx
mov qword [rsi], rax
mov qword [rsi + 0x18], rbx
mov qword [rsi + 0x20], rbx
mov qword [rsi + 0x28], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov word [rsp + 0x50], bx
lea rcx, [rsp + 0x58]
call fcn.14002e130
mov r13, rdi
lea r8, [rsp + 0x40]
mov rdx, rdi
mov rcx, rsi
call fcn.14005ef60
mov r12, rbx
test edi, edi
je 0x14006751b
lea rbx, [rbp + 0x38]
mov r14, 0xffffffffffffffc8
sub r14, rbp
movabs r15, 0x6666666666666667
nop word [rax + rax]
mov rcx, qword [rsi + 0x20]
sub rcx, qword [rsi + 0x18]
mov rax, r15
imul rcx
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r12, rdx
jb 0x1400674a6
call fcn.1400796a8
lea rcx, [r14 + rbx]
add rcx, qword [rsi + 0x18]
mov rax, qword [rbx - 0x38]
mov qword [rcx], rax
mov rax, qword [rbx - 0x30]
mov qword [rcx + 8], rax
movzx eax, word [rbx - 0x28]
mov word [rcx + 0x10], ax
lea rbp, [rcx + 0x18]
mov rdi, qword [rbx]
cmp rdi, qword [rbx + 8]
jbe 0x1400674d7
call fcn.1400796a8
mov rax, qword [rbx - 0x18]
test rax, rax
jne 0x1400674ea
call fcn.1400796a8
xor r11d, r11d
jmp 0x1400674ed
mov r11, qword [rax]
cmp rdi, qword [r11 + 0x20]
jb 0x1400674f8
call fcn.1400796a8
mov rax, qword [rbp]
mov rdx, rdi
mov rcx, rbp
call qword [rax + reloc.WS2_32.dll_htonl]
inc r12
add rbx, 0x50
sub r13, 1
jne 0x140067480
mov r15, qword [rsp + 0x30]
mov rax, qword [r15]
mov rdx, qword [rsp + 0xf0]
mov rcx, r15
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rax, qword [rsp + 0xd0]
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x1400676c0
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140068930
mov rcx, qword [rbx + 0x90]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne al
mov byte [rbx + 0x9c], al
add rsp, 0x20
pop rbx
ret
Function at 0x14006cf40
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push r12
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
mov rbx, qword [rcx + 0x98]
cmp rbx, qword [rcx + 0xa0]
jbe 0x14006cf7a
call fcn.1400796a8
mov rdx, qword [rdi + 0x80]
xor ebp, ebp
test rdx, rdx
jne 0x14006cf92
call fcn.1400796a8
mov rdx, rbp
jmp 0x14006cf95
mov rdx, qword [rdx]
cmp rbx, qword [rdx + 0x20]
jb 0x14006cfa0
call fcn.1400796a8
lea r12, vtable.StringStorage.0
mov qword [rsp + 0x28], r12
mov ecx, 8
call fcn.1400797fc
test rax, rax
je 0x14006cfc5
lea rcx, [rsp + 0x30]
mov qword [rax], rcx
jmp 0x14006cfc8
mov rax, rbp
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rbp
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400d1b20]
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
xor r8d, r8d
lea rcx, [rsp + 0x30]
call fcn.14002bfc0
mov rdx, qword [rsp + 0x50]
mov rsi, rdx
mov rdi, qword [rsp + 0x48]
sub rsi, rdi
sar rsi, 1
add rsi, rsi
cmp rdi, rdx
jbe 0x14006d01f
call fcn.1400796a8
mov rax, qword [rsp + 0x30]
test rax, rax
jne 0x14006d033
call fcn.1400796a8
mov rdx, rbp
jmp 0x14006d036
mov rdx, qword [rax]
cmp rdi, qword [rdx + 0x20]
jb 0x14006d041
call fcn.1400796a8
mov r8, rsi
lea rdx, [0x1400d1b20]
mov rcx, rdi
call fcn.14007ad70
nop
mov rdx, rbx
lea rcx, [rsp + 0x28]
mov rax, qword [rsp + 0x28]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdi, qword [rsp + 0x48]
cmp rdi, qword [rsp + 0x50]
jbe 0x14006d076
call fcn.1400796a8
mov rax, qword [rsp + 0x30]
test rax, rax
jne 0x14006d08a
call fcn.1400796a8
mov rdx, rbp
jmp 0x14006d08d
mov rdx, qword [rax]
cmp rdi, qword [rdx + 0x20]
jb 0x14006d098
call fcn.1400796a8
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov qword [rsp + 0x28], r12
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14006d0b7
call fcn.140078e60
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rbp
mov rcx, qword [rsp + 0x30]
call fcn.140078e60
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x14006e650
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov r12, rcx
lea rbp, vtable.StringStorage.0
mov qword [rax - 0x70], rbp
mov ecx, 8
call fcn.1400797fc
xor r15d, r15d
test rax, rax
je 0x14006e6a2
lea rcx, [rsp + 0x40]
mov qword [rax], rcx
jmp 0x14006e6a5
mov rax, r15
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400d1b20]
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
xor r8d, r8d
lea rcx, [rsp + 0x40]
call fcn.14002bfc0
mov rdx, qword [rsp + 0x60]
mov rdi, rdx
mov rbx, qword [rsp + 0x58]
sub rdi, rbx
sar rdi, 1
add rdi, rdi
cmp rbx, rdx
jbe 0x14006e6fc
call fcn.1400796a8
mov rax, qword [rsp + 0x40]
test rax, rax
jne 0x14006e710
call fcn.1400796a8
mov rdx, r15
jmp 0x14006e713
mov rdx, qword [rax]
cmp rbx, qword [rdx + 0x20]
jb 0x14006e71e
call fcn.1400796a8
mov r8, rdi
lea rdx, [0x1400d1b20]
mov rcx, rbx
call fcn.14007ad70
nop
mov rcx, qword [r12 + 0x28]
sub rcx, qword [r12 + 0x20]
movabs rax, 0x4924924924924925
imul rcx
mov r13, rdx
sar r13, 4
mov rax, r13
shr rax, 0x3f
add r13, rax
mov rsi, r15
nop dword [rax]
mov rax, qword [r12 + 0x38]
cmp r13, rax
cmovb rax, r13
cmp rsi, rax
jae 0x14006e845
mov r8, rsi
lea rdx, [0x1400d3e88]
lea rcx, [rsp + 0x38]
call fcn.14002ecb0
mov rdx, rsi
lea rcx, [r12 + 8]
call fcn.14006f4e0
mov rdi, rax
mov rbp, qword [rax + 0x20]
cmp rbp, qword [rax + 0x28]
jbe 0x14006e7a8
call fcn.1400796a8
mov rdx, qword [rdi + 8]
test rdx, rdx
jne 0x14006e7bb
call fcn.1400796a8
mov rdx, r15
jmp 0x14006e7be
mov rdx, qword [rdx]
cmp rbp, qword [rdx + 0x20]
jb 0x14006e7c9
call fcn.1400796a8
mov rbx, qword [rsp + 0x58]
cmp rbx, qword [rsp + 0x60]
jbe 0x14006e7da
call fcn.1400796a8
cmp qword [rsp + 0x40], 0
jne 0x14006e7ec
call fcn.1400796a8
mov rdx, r15
jmp 0x14006e7f4
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax]
cmp rbx, qword [rdx + 0x20]
jb 0x14006e7ff
call fcn.1400796a8
mov rax, qword [r12 + 0x40]
mov r10, qword [rax + 8]
test r10, r10
je 0x14006e83d
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
mov r9d, 1
xor r8d, r8d
mov rdx, rbx
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
inc rsi
jmp 0x14006e760
cmp r13, qword [r12 + 0x38]
jbe 0x14006e855
mov rcx, r12
call fcn.14006e8b0
nop
lea rax, vtable.StringStorage.0
mov qword [rsp + 0x38], rax
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x14006e873
mov rcx, rbx
call fcn.140078e60
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
mov rcx, qword [rsp + 0x40]
call fcn.140078e60
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14006ecf0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rbp, rcx
lea r14, vtable.StringStorage.0
mov qword [rax - 0x70], r14
mov ecx, 8
call fcn.1400797fc
xor r13d, r13d
test rax, rax
je 0x14006ed3f
lea rcx, [rsp + 0x30]
mov qword [rax], rcx
jmp 0x14006ed42
mov rax, r13
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400d1b20]
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
xor r8d, r8d
lea rcx, [rsp + 0x30]
call fcn.14002bfc0
mov rdx, qword [rsp + 0x50]
mov rbx, rdx
mov rdi, qword [rsp + 0x48]
sub rbx, rdi
sar rbx, 1
add rbx, rbx
cmp rdi, rdx
jbe 0x14006ed99
call fcn.1400796a8
mov rax, qword [rsp + 0x30]
test rax, rax
jne 0x14006edad
call fcn.1400796a8
mov rdx, r13
jmp 0x14006edb0
mov rdx, qword [rax]
cmp rdi, qword [rdx + 0x20]
jb 0x14006edbb
call fcn.1400796a8
mov r8, rbx
lea rdx, [0x1400d1b20]
mov rcx, rdi
call fcn.14007ad70
nop
mov rsi, r13
mov rcx, qword [rbp + 0x28]
sub rcx, qword [rbp + 0x20]
movabs r15, 0x4924924924924925
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x14006eeda
nop dword [rax]
mov r8, rsi
lea rdx, [0x1400d3e88]
lea rcx, [rsp + 0x28]
call fcn.14002ecb0
mov rdx, rsi
lea rcx, [rbp + 8]
call fcn.14006f4e0
mov rbx, rax
mov rdi, qword [rax + 0x20]
cmp rdi, qword [rax + 0x28]
jbe 0x14006ee32
call fcn.1400796a8
mov rdx, qword [rbx + 8]
test rdx, rdx
jne 0x14006ee45
call fcn.1400796a8
mov rdx, r13
jmp 0x14006ee48
mov rdx, qword [rdx]
cmp rdi, qword [rdx + 0x20]
jb 0x14006ee53
call fcn.1400796a8
mov rax, qword [rbp + 0x40]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14006ee69
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rdi, qword [rsp + 0x48]
cmp rdi, qword [rsp + 0x50]
jbe 0x14006ee7a
call fcn.1400796a8
mov rax, qword [rsp + 0x30]
test rax, rax
jne 0x14006ee8e
call fcn.1400796a8
mov r11, r13
jmp 0x14006ee91
mov r11, qword [rax]
cmp rdi, qword [r11 + 0x20]
jb 0x14006ee9c
call fcn.1400796a8
mov rax, qword [rbp + 0x40]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14006eeb2
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc rsi
mov rdx, qword [rbp + 0x28]
sub rdx, qword [rbp + 0x20]
mov rax, r15
imul rdx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rsi, rdx
jb 0x14006ee00
lea rcx, [rbp + 8]
call fcn.14006f5c0
nop
mov qword [rsp + 0x28], r14
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14006eef8
call fcn.140078e60
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov rcx, qword [rsp + 0x30]
call fcn.140078e60
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14006fe50
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rbp, qword [rcx + 0x60]
mov r12, r8
mov r13, rdx
mov rbx, rcx
cmp rbp, qword [rcx + 0x68]
jbe 0x14006fe80
call fcn.1400796a8
mov r11, qword [rbx + 0x48]
xor edi, edi
test r11, r11
jne 0x14006fe95
call fcn.1400796a8
mov r11, rdi
jmp 0x14006fe98
mov r11, qword [r11]
cmp rbp, qword [r11 + 0x20]
jb 0x14006fea3
call fcn.1400796a8
mov rsi, qword [rbx + 0x28]
cmp rsi, qword [rbx + 0x30]
jbe 0x14006feb2
call fcn.1400796a8
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x14006fec2
call fcn.1400796a8
jmp 0x14006fec5
mov rdi, qword [rax]
cmp rsi, qword [rdi + 0x20]
jb 0x14006fed0
call fcn.1400796a8
mov r9, rbp
mov r8d, 0xabcdef
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 0xabcdef
jne 0x14006fef0
xor al, al
jmp 0x14006fef6
mov dword [r12], eax
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x1400700f0
Capabilities:
Read .ini file

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov r14, r9
mov r13, r8
mov r15, rdx
mov rbx, rcx
mov ecx, 8
call fcn.1400797fc
test rax, rax
je 0x14007013a
lea rcx, [rsp + 0x38]
mov qword [rax], rcx
jmp 0x14007013c
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov r12d, 0x400
nop word [rax + rax]
xor r8d, r8d
mov edx, r12d
lea rcx, [rsp + 0x38]
call fcn.14002bfc0
mov rbp, qword [rbx + 0x60]
cmp rbp, qword [rbx + 0x68]
jbe 0x14007018f
call fcn.1400796a8
mov rax, qword [rbx + 0x48]
test rax, rax
jne 0x1400701a2
call fcn.1400796a8
xor r11d, r11d
jmp 0x1400701a5
mov r11, qword [rax]
cmp rbp, qword [r11 + 0x20]
jb 0x1400701b0
call fcn.1400796a8
mov rsi, qword [rsp + 0x50]
cmp rsi, qword [rsp + 0x58]
jbe 0x1400701c1
call fcn.1400796a8
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x1400701d5
call fcn.1400796a8
xor r11d, r11d
jmp 0x1400701d8
mov r11, qword [rax]
cmp rsi, qword [r11 + 0x20]
jb 0x1400701e3
call fcn.1400796a8
mov rdi, qword [rbx + 0x28]
cmp rdi, qword [rbx + 0x30]
jbe 0x1400701f2
call fcn.1400796a8
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x140070205
call fcn.1400796a8
xor r11d, r11d
jmp 0x140070208
mov r11, qword [rax]
cmp rdi, qword [r11 + 0x20]
jb 0x140070213
call fcn.1400796a8
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r12d
mov r9, rsi
mov r8, r14
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [r12 - 1]
cmp eax, ecx
sete cl
mov eax, r12d
shr eax, 1
add r12d, eax
test cl, cl
jne 0x140070170
mov rbx, qword [rsp + 0x50]
cmp rbx, qword [rsp + 0x58]
jbe 0x14007025a
call fcn.1400796a8
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x140070270
call fcn.1400796a8
xor edi, edi
mov r11, rdi
jmp 0x140070275
mov r11, qword [rax]
xor edi, edi
cmp rbx, qword [r11 + 0x20]
jb 0x140070280
call fcn.1400796a8
mov rax, qword [r13]
mov rdx, rbx
mov rcx, r13
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14007029d
call fcn.140078e60
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
mov rcx, qword [rsp + 0x38]
call fcn.140078e60
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140073e20
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x20], 0xfffffffffffffffe
test r8d, r8d
jns 0x140073e7c
lea rax, vtable.Exception.0
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
call fcn.14002e130
nop
lea rdx, str.Size_of_buffer_is_too_big.
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rax, vtable.IOException.0
mov qword [rsp + 0x28], rax
lea rdx, [0x140101d48]
lea rcx, [rsp + 0x28]
call fcn.14007c4b0
int3
mov rcx, qword [rcx + 8]
xor r9d, r9d
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140073edc
lea rax, vtable.Exception.0
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
call fcn.14002e130
nop
lea rdx, str.Failed_to_send_data_to_socket.
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rax, vtable.IOException.0
mov qword [rsp + 0x28], rax
lea rdx, [0x140101d48]
lea rcx, [rsp + 0x28]
call fcn.14007c4b0
int3
cdqe
add rsp, 0x78
ret

Function at 0x1400744d0
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xb0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rbx, rdx
mov rdi, rcx
lea rdx, [rax + 0x10]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp qword [rsp + 0xc8], rbx
jge 0x140074544
lea rax, vtable.Exception.0
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
call fcn.14002e130
nop
lea rdx, str.Specified_file_pointer_position_is_more_than_file_length
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rdx, [0x140101ad0]
lea rcx, [rsp + 0x28]
call fcn.14007c4b0
int3
mov qword [rsp + 0xc0], rbx
mov r9d, 1
lea r8, [rsp + 0xc4]
mov edx, ebx
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0xc0], eax
cmp eax, 0xffffffff
jne 0x1400745f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400745f7
lea rax, vtable.Exception.0
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
call fcn.14002e130
nop
lea rdx, [0x1400d1b20]
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rax, vtable.SystemException.0
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x68]
call fcn.14002e130
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xa0], eax
mov r8d, eax
lea rdx, str.Cannot_set_file_pointer_to_specified_position
lea rcx, [rsp + 0x28]
call fcn.140041da0
nop
lea rdx, [0x140101da8]
lea rcx, [rsp + 0x28]
call fcn.14007c4b0
int3
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop rdi
ret
Function at 0x1400748e0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov eax, r8d
cmp r8, rax
je 0x14007494e
lea rax, vtable.Exception.0
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x38]
call fcn.14002e130
nop
lea rdx, str.Requested_size_to_read_is_too_big
lea rcx, [rsp + 0x38]
mov rax, qword [rsp + 0x38]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rax, vtable.IOException.0
mov qword [rsp + 0x30], rax
lea rdx, [0x140101d48]
lea rcx, [rsp + 0x30]
call fcn.14007c4b0
int3
xor ebx, ebx
mov dword [rsp + 0xe0], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0xe0]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140074ab1
lea rax, vtable.StringStorage.0
mov qword [rsp + 0x30], rax
lea ecx, [rbx + 8]
call fcn.1400797fc
test rax, rax
je 0x140074999
lea rcx, [rsp + 0x38]
mov qword [rax], rcx
jmp 0x14007499c
mov rax, rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400d1b20]
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
call fcn.14002bfc0
mov rdx, qword [rsp + 0x58]
mov rsi, rdx
mov rdi, qword [rsp + 0x50]
sub rsi, rdi
sar rsi, 1
add rsi, rsi
cmp rdi, rdx
jbe 0x1400749f3
call fcn.1400796a8
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x140074a07
call fcn.1400796a8
mov rdx, rbx
jmp 0x140074a0a
mov rdx, qword [rax]
cmp rdi, qword [rdx + 0x20]
jb 0x140074a15
call fcn.1400796a8
mov r8, rsi
lea rdx, [0x1400d1b20]
mov rcx, rdi
call fcn.14007ad70
nop
lea rcx, [rsp + 0x30]
call fcn.14003c980
mov rdi, qword [rsp + 0x50]
cmp rdi, qword [rsp + 0x58]
jbe 0x140074a43
call fcn.1400796a8
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x140074a54
call fcn.1400796a8
jmp 0x140074a57
mov rbx, qword [rax]
cmp rdi, qword [rbx + 0x20]
jb 0x140074a62
call fcn.1400796a8
lea rax, vtable.Exception.0
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x80]
call fcn.14002e130
nop
mov rdx, rdi
lea rcx, [rsp + 0x80]
mov rax, qword [rsp + 0x80]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rax, vtable.IOException.0
mov qword [rsp + 0x78], rax
lea rdx, [0x140101d48]
lea rcx, [rsp + 0x78]
call fcn.14007c4b0
nop
mov eax, dword [rsp + 0xe0]
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140079c68
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140079cf1
movsxd rax, dword [0x14000003c]
lea rdi, [0x140000000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x140079cb3
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x140079d01
mov ecx, 0x20b
cmp word [rax + 0x18], cx
je 0x140079cc9
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x140079d01
cmp dword [rax + 0x84], 0xe
ja 0x140079cdd
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x140079d01
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xb0], ebx
jmp 0x140079d01
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
lea rdi, [0x140000000]
mov ecx, 1
call fcn.140081290
test eax, eax
jne 0x140079d31
cmp dword [0x140109c40], 1
jne 0x140079d1d
call fcn.140081650
mov ecx, 0x1c
call fcn.140081428
mov ecx, 0xff
call fcn.14007ffb0
call fcn.14007fe78
test eax, eax
jne 0x140079d5c
cmp dword [0x140109c40], 1
jne 0x140079d48
call fcn.140081650
mov ecx, reloc.WS2_32.dll_recv
call fcn.140081428
mov ecx, 0xff
call fcn.14007ffb0
call fcn.140083600
nop
call fcn.140083310
test eax, eax
jns 0x140079d75
mov ecx, 0x1b
call fcn.14007ff44
call sub.KERNEL32.dll_GetCommandLineW
mov qword [0x14010c0a8], rax
call fcn.14008327c
mov qword [0x140109c38], rax
call fcn.14008318c
test eax, eax
jns 0x140079da0
mov ecx, 8
call fcn.14007ff44
call fcn.140082ebc
test eax, eax
jns 0x140079db3
mov ecx, 9
call fcn.14007ff44
mov ecx, 1
call fcn.140080050
test eax, eax
je 0x140079dc8
mov ecx, eax
call fcn.14007ff44
call fcn.140082e60
test byte [rsp + 0x6c], 1
movzx edx, word [rsp + 0x70]
mov r9d, 0xa
cmovne r9d, edx
mov r8, rax
xor edx, edx
mov rcx, rdi
call fcn.140018570
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x140079dff
mov ecx, eax
call fcn.14008028c
call fcn.1400802a4
jmp 0x140079e20
mov eax, edi
jmp 0x140079e29
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
sub rsp, 0x28
call fcn.140083670
add rsp, 0x28
jmp 0x140079c68
Function at 0x14007f9c3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1401043b8]
jne 0x140078e5a
rol rcx, 0x10
test cx, 0xffff
jne 0x140078e56
repz ret
ror rcx, 0x10
jmp 0x14007f91c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140109d00]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140109df8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14007f9a1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140109d00]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14007f9c3
mov rax, qword [rsp + 0x88]
mov qword [0x140109df8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140109d98], rax
mov rax, qword [0x140109df8]
mov qword [0x140109c70], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140109d80], rax
mov dword [0x140109c60], 0xc0000409
mov dword [0x140109c64], 1
mov rax, qword [0x1401043b8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1401043c0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140109cf8], eax
mov ecx, 1
call fcn.1400812dc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400c86f8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140109cf8], 0
jne 0x14007fa4a
mov ecx, 1
call fcn.1400812dc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret