joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bb580
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rdi, rcx
mov dword [rbp + 0x380], 0x400
xor ecx, ecx
mov dword [rbp + 0x390], 0xf003f
xorps xmm0, xmm0
mov qword [rsp + 0x30], rcx
mov rbx, r9
mov rax, r8
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rcx
mov r10, rdx
mov qword [rdi + 0x18], send
mov byte [rdi], cl
cmp qword [r8 + 0x18], 0x10
jb 0x1400bb5d8
mov rax, qword [r8]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x488], rsi
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
mov rcx, r10
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400bb76c
cmp qword [rbx + 0x18], 0x10
jb 0x1400bb611
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x380]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x390]
lea rax, [rsp + 0x60]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400bb76c
mov qword [rsp + 0x498], r14
lea rcx, [rsp + 0x38]
mov r14d, dword [rbp + 0x380]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
cmp r14, 0x10
jae 0x1400bb691
mov r8d, r14d
mov qword [rsp + 0x48], r14
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x50], send
call fcn.1400e4c90
mov byte [rsp + r14 + 0x38], 0
mov rsi, qword [rsp + 0x50]
jmp 0x1400bb6d4
mov eax, socket
mov rsi, r14
or rsi, 0xf
cmp rsi, rax
cmovb rsi, rax
lea rdx, [rsi + 1]
call fcn.140027ca0
mov r8, r14
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x48], r14
mov rcx, rax
mov qword [rsp + 0x50], rsi
mov rbx, rax
call fcn.1400e4c90
mov byte [rbx + r14], 0
mov r14, qword [rsp + 0x498]
lea rax, [rsp + 0x38]
cmp rdi, rax
je 0x1400bb737
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400bb71c
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1400bb717
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400bb792
mov rcx, r8
call fcn.1400e2cd8
movups xmm0, xmmword [rsp + 0x38]
mov esi, send
mov byte [rsp + 0x38], 0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm1
cmp rsi, 0x10
jb 0x1400bb76c
mov rcx, qword [rsp + 0x38]
lea rdx, [rsi + 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400bb767
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400bb792
call fcn.1400e2cd8
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400bb77c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x488]
mov rax, rdi
add rsp, 0x460
pop rdi
pop rbx
pop rbp
ret
call fcn.1400c4dc4
int3

Function at 0x1400bb7a0
Capabilities:
Get hostname

Disassembly:
push rbx
mov eax, 0x10020
call fcn.1400e3030
sub rsp, rax
mov rbx, rcx
mov dword [rsp + 0x10038], 0x7fff
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x10038]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x1400bb7ed
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140036d20
mov rax, rbx
add rsp, 0x10020
pop rbx
ret
xorps xmm0, xmm0
mov rax, rbx
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], send
mov byte [rbx], 0
add rsp, 0x10020
pop rbx
ret
Function at 0x1400bc310
Capabilities:
Create restart manager session
Enumerate processes that use resource

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov ecx, dword [0x140113040]
xor ebx, ebx
mov rax, qword gs:[0x58]
mov edx, 4
mov dword [rbp + 0x6f], ebx
mov rax, qword [rax + rcx*8]
mov eax, dword [rdx + rax]
cmp dword [0x1401125a8], eax
jg 0x1400bc49d
xor eax, eax
mov qword [rsp + 0xa8], rsi
lea rdi, [rbp - 0x19]
mov ecx, 0x42
rep stosb byte [rdi], al
lea rcx, [rbp + 0x6f]
xor edx, edx
lea r8, [rbp - 0x19]
call sub.RstrtMgr.DLL_RmStartSession
test eax, eax
jne 0x1400bc460
mov ecx, dword [rbp + 0x6f]
lea r8, [rbp + 0x67]
mov qword [rsp + 0x30], rbx
lea edx, [rax + 1]
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov qword [rsp + 0x20], rbx
call sub.RstrtMgr.DLL_RmRegisterResources
test eax, eax
jne 0x1400bc458
lea rdi, [rbp - 0x21]
mov dword [rbp - 0x29], ebx
mov ecx, 8
mov dword [rbp + 0x77], ebx
rep stosb byte [rdi], al
mov ecx, dword [rbp + 0x6f]
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x7f]
mov dword [rbp + 0x7f], ebx
lea rdx, [rbp + 0x77]
call sub.RstrtMgr.DLL_RmGetList
cmp eax, 0xea
jne 0x1400bc491
mov eax, dword [rbp + 0x77]
test eax, eax
je 0x1400bc491
imul rcx, rax, 0x29c
call fcn.1400ca704
mov ecx, dword [rbp + 0x6f]
mov rsi, rax
test rax, rax
je 0x1400bc494
mov eax, dword [rbp + 0x77]
lea r8, [rbp + 0x7f]
mov dword [rbp + 0x7f], eax
lea rdx, [rbp + 0x77]
lea rax, [rbp - 0x29]
mov r9, rsi
mov qword [rsp + 0x20], rax
call sub.RstrtMgr.DLL_RmGetList
test eax, eax
jne 0x1400bc489
cmp dword [rbp + 0x77], ebx
je 0x1400bc489
mov r8d, dword [rbp + 0x7f]
mov edx, ebx
test r8d, r8d
je 0x1400bc458
mov r9d, dword [0x1401125a4]
nop
mov eax, edx
imul rcx, rax, 0x29c
mov edi, dword [rcx + rsi]
cmp edi, r9d
jne 0x1400bc475
inc edx
cmp edx, r8d
jb 0x1400bc440
mov ecx, dword [rbp + 0x6f]
call sub.RstrtMgr.DLL_RmEndSession
mov eax, ebx
mov rsi, qword [rsp + 0xa8]
add rsp, 0xb0
pop rdi
pop rbx
pop rbp
ret
mov rcx, rsi
call fcn.1400c7c24
mov ecx, dword [rbp + 0x6f]
call sub.RstrtMgr.DLL_RmEndSession
mov ebx, edi
jmp 0x1400bc460
mov rcx, rsi
call fcn.1400c7c24
mov ecx, dword [rbp + 0x6f]
call sub.RstrtMgr.DLL_RmEndSession
xor eax, eax
jmp 0x1400bc462
lea rcx, [0x1401125a8]
call fcn.1400e2f9c
cmp dword [0x1401125a8], 0xffffffff
jne 0x1400bc350
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessId]
lea rcx, [0x1401125a8]
mov dword [0x1401125a4], eax
call fcn.1400e2f30
jmp 0x1400bc350
Function at 0x1400bc4e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, rdx
lea r9, [rsp + 0x50]
xorps xmm0, xmm0
xor esi, esi
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rsi
mov rbx, rcx
mov edi, 7
xor r8d, r8d
mov qword [rcx + 0x18], rdi
xor edx, edx
mov word [rcx], si
mov rcx, rax
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x1400bc5f3
mov rdx, qword [rsp + 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], si
jne 0x1400bc533
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
xorps xmm1, xmm1
movups xmmword [rsp + 0x20], xmm0
movdqu xmmword [rsp + 0x30], xmm1
call fcn.1400222b0
lea rax, [rsp + 0x20]
cmp rbx, rax
je 0x1400bc5b5
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400bc59d
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400bc598
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400bc611
mov rcx, r8
call fcn.1400e2cd8
movups xmm0, xmmword [rsp + 0x20]
mov word [rsp + 0x20], si
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
jmp 0x1400bc5ba
mov rdi, qword [rsp + 0x38]
cmp rdi, 8
jb 0x1400bc5f3
mov rcx, qword [rsp + 0x20]
lea rdx, [rdi*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400bc5ee
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400bc611
call fcn.1400e2cd8
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rsi, qword [rsp + 0x60]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
call fcn.1400c4dc4
int3
Function at 0x1400bcd20
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rdi, rcx
mov dword [rbp + 0x380], 0x400
xor ecx, ecx
mov dword [rbp + 0x390], 0xf003f
xorps xmm0, xmm0
mov qword [rsp + 0x30], rcx
mov rbx, r9
mov rax, r8
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rcx
mov r10, rdx
mov qword [rdi + 0x18], send
mov byte [rdi], cl
cmp qword [r8 + 0x18], 0x10
jb 0x1400bcd78
mov rax, qword [r8]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x488], rsi
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
mov rcx, r10
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400bcf0f
cmp qword [rbx + 0x18], 0x10
jb 0x1400bcdb1
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x380]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x390]
lea rax, [rsp + 0x60]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400bcf0f
mov qword [rsp + 0x498], r14
lea rcx, [rsp + 0x38]
mov r14d, dword [rbp + 0x380]
xorps xmm0, xmm0
dec r14d
movups xmmword [rsp + 0x38], xmm0
cmp r14, 0x10
jae 0x1400bce34
mov r8d, r14d
mov qword [rsp + 0x48], r14
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x50], send
call fcn.1400e4c90
mov byte [rsp + r14 + 0x38], 0
mov rsi, qword [rsp + 0x50]
jmp 0x1400bce77
mov eax, socket
mov rsi, r14
or rsi, 0xf
cmp rsi, rax
cmovb rsi, rax
lea rdx, [rsi + 1]
call fcn.140027ca0
mov r8, r14
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x48], r14
mov rcx, rax
mov qword [rsp + 0x50], rsi
mov rbx, rax
call fcn.1400e4c90
mov byte [rbx + r14], 0
mov r14, qword [rsp + 0x498]
lea rax, [rsp + 0x38]
cmp rdi, rax
je 0x1400bceda
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400bcebf
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1400bceba
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400bcf35
mov rcx, r8
call fcn.1400e2cd8
movups xmm0, xmmword [rsp + 0x38]
mov esi, send
mov byte [rsp + 0x38], 0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm1
cmp rsi, 0x10
jb 0x1400bcf0f
mov rcx, qword [rsp + 0x38]
lea rdx, [rsi + 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400bcf0a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400bcf35
call fcn.1400e2cd8
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400bcf1f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x488]
mov rax, rdi
add rsp, 0x460
pop rdi
pop rbx
pop rbp
ret
call fcn.1400c4dc4
int3

Function at 0x1400bd8e0
Capabilities:
Get session user name

Disassembly:
push rbx
mov eax, 0x10020
call fcn.1400e3030
sub rsp, rax
mov rbx, rcx
mov dword [rsp + 0x10038], 0x7fff
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x10038]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1400bd92d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140036d20
mov rax, rbx
add rsp, 0x10020
pop rbx
ret
xorps xmm0, xmm0
mov rax, rbx
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], send
mov byte [rbx], 0
add rsp, 0x10020
pop rbx
ret
Function at 0x1400c04e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov dword [rsp + 0x28], 2
lea rdx, [rbp + 0x37]
mov r9b, 0x20
mov byte [rsp + 0x20], 0
mov r8d, 4
lea rcx, [0x140110360]
call fcn.1400b8910
cmp qword [rax + 0x18], 0x10
mov r8, qword [rax + 0x10]
jb 0x1400c0530
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp + 0x17]
call fcn.140023c20
cmp qword [0x140112460], 0x10
lea r9, [0x140112448]
mov rcx, qword [rbp + 0x2f]
cmovae r9, qword [0x140112448]
mov rax, rcx
mov rsi, qword [rbp + 0x27]
mov rdi, qword [0x140112458]
sub rax, rsi
cmp rdi, rax
ja 0x1400c059f
cmp rcx, 0x10
lea rax, [rsi + rdi]
lea rbx, [rbp + 0x17]
mov qword [rbp + 0x27], rax
cmovae rbx, qword [rbp + 0x17]
mov r8, rdi
mov rdx, r9
lea rcx, [rbx + rsi]
call fcn.1400e4c90
lea rax, [rdi + rbx]
mov byte [rax + rsi], 0
lea rax, [rbp + 0x17]
jmp 0x1400c05b5
movzx r8d, byte [rbp + 0x67]
lea rcx, [rbp + 0x17]
mov rdx, rdi
mov qword [rsp + 0x20], rdi
call fcn.140023160
xor ebx, ebx
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rbx
mov qword [rbp + 0xf], rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 9], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 7], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], send
mov byte [rax], bl
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0x10
jb 0x1400c061e
mov rcx, qword [rbp + 0x17]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c0619
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c070f
call fcn.1400e2cd8
mov rdx, qword [rbp + 0x4f]
mov qword [rbp + 0x27], rbx
mov qword [rbp + 0x2f], send
mov byte [rbp + 0x17], bl
cmp rdx, 0x10
jb 0x1400c0668
mov rcx, qword [rbp + 0x37]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c0663
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c070f
call fcn.1400e2cd8
cmp qword [rbp + 0xf], 0x10
lea rcx, [rbp - 9]
mov rdx, qword [rbp + 7]
cmovae rcx, qword [rbp - 9]
call fcn.1400c2650
cmp qword [rbp + 0xf], 0x10
lea rdx, [rbp - 9]
mov rcx, qword [0x1401101b0]
cmovae rdx, qword [rbp - 9]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_recv]
mov rcx, qword [0x1401101b0]
test rcx, rcx
je 0x1400c06b3
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rdx, qword [rbp + 0xf]
cmp rdx, 0x10
jb 0x1400c06f0
mov rcx, qword [rbp - 9]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c06eb
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c0709
call fcn.1400e2cd8
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1400c4dc4
int3
call fcn.1400c4dc4
int3
Function at 0x1400c2650
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x1400c26c4
mov qword [rsp + 0x30], rbp
mov ebp, 0x7fffffff
nop word [rax + rax]
mov rcx, qword [0x1401101b0]
lea rdx, [rbx + rsi]
mov r8d, edi
cmp rdi, rbp
cmova r8d, ebp
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x1400c26ac
cdqe
add rbx, rax
sub rdi, rax
jne 0x1400c2680
mov rbp, qword [rsp + 0x30]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c4650
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1400c4681
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x1400c46fb
mov rdi, r14
mov rcx, rbx
call fcn.1400a9f10
test rax, rax
jle 0x1400c46d3
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1400e4c90
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400c46eb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400c46f3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400c4695
sub r14, rdi
jmp 0x1400c47df
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400c4712
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400c4714
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400c4746
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400e4c90
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400c47dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400c4781
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x1400c47bd
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400c8cfc
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400c47dc
cmp rbp, rax
ja 0x1400c4790
test rbp, rbp
je 0x1400c47dc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400c8cfc
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400d05b8
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 0x1400d0627
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d0627
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d0627
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d0627
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d0627
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d0627
cmp dword [rcx + 0xf8], 0
je 0x1400d0627
mov ecx, ebx
call fcn.1400d06d8
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.1400d04b4
nop
cmp dword [rbp + 0x20], 0
je 0x1400d0675
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400d0680
int3
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1400d05b8

Function at 0x1400d07bc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400d05b8
Function at 0x1400d5974
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.1400e3030
sub rsp, rax
mov rax, qword [0x140110f68]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400d2e0c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400d59c3
mov rax, rbp
jmp 0x1400d5acb
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 + 0x112810]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400d6a94
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x112810]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400d5ac7
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 0x1400d5ac7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400d6a94
test rax, rax
js 0x1400d5ac7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400d5ac7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400d5ab9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400d5ab9
cmp byte [rcx], 0xd
jne 0x1400d5a9f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400d5aae
cmp byte [rcx + 1], 0xa
jne 0x1400d5aae
inc rcx
jmp 0x1400d5aae
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x110710]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400d5a81
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400d5acb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400e3610
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 0x1400d5cec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400d5d02
mov al, 1
jmp 0x1400d5d62
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400d5d13
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400d5d60
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400dfa28
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400d5d60
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400d5d60
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400d5d60
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400d5d62
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400d5e34
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, [0x140112810]
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 0x1400d5e8b
cmp word [rdx], r13w
jne 0x1400d5e8b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400d5e90
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400d5fb5
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400d5fd6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400d5ec9
mov rdx, r9
mov word [rbx], cx
jmp 0x1400d5ef0
cmp r9, r8
jae 0x1400d5f00
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 0x1400d5eaa
jmp 0x1400d5fb5
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 0x1400d5faa
cmp dword [rsp + 0x80], esi
je 0x1400d5faa
lea r8, [0x140112810]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400d5f82
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400d5f52
mov word [rbx], r13w
jmp 0x1400d5fb2
mov ecx, recv
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 0x1400d5f5f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400d5fb2
cmp word [rsp + 0x70], r13w
jne 0x1400d5f8f
cmp rbx, r14
je 0x1400d5f4c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400d6a9c
cmp word [rsp + 0x70], r13w
je 0x1400d5fb5
mov ecx, recv
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, [0x140112810]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400d5faf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400d5fb5