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

Disassembly:
cmp edx, 0x1f
jne 0x140061808
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1400616c5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400616c5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400616c5
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400616fc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140061752
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140061752
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140061752
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140061752
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140061752
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140061110
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1400617b4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14003d870
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400614e0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140061800
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14003d870
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140062f70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400b7098]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140063005
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140063066
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14003d870
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140076920
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140063121
sub ecx, 1
je 0x140063194
sub ecx, 1
je 0x1400630d0
cmp ecx, 1
je 0x1400630b3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140083c70]
call fcn.14003d870
jmp 0x140063194
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140062ca0
test eax, eax
je 0x140063194
jmp 0x14006303a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140063194
sub rax, rsi
cmp rax, rbp
jae 0x140063194
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14003d9f0
jmp 0x140063194
cmp r8d, 4
jle 0x140063194
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140063194
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14003d790
mov esi, eax
test eax, eax
je 0x140063173
mov edx, 5
mov rcx, rbx
call fcn.140063c60
mov eax, esi
jmp 0x14006303a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14004c090
mov rcx, r14
call fcn.14004c370
test eax, eax
je 0x140063038
mov edx, 5
mov rcx, rbx
call fcn.140063c60
mov eax, Ordinal_45
jmp 0x14006303a
Function at 0x140075f30
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.r_a_]
mov rdi, rax
test rax, rax
jne 0x140075f72
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 0x140075fb9
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 0x140076012
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 0x140075fd0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140076053
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400893fa]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400893fb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140076020
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 0x14007606c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400760f0
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400760f0
dec r8
sub rdx, 1
jne 0x1400760d6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140077878
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400778c2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400778c2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400778c2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400778c2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400778c2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400778c4
xor al, al
add rsp, 0x28
ret
Function at 0x14000dc80
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14004b150]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov esi, edx
mov rdi, rcx
or ebx, 0xffffffff
cmp edx, ebx
jne 0x14000dcc2
xor eax, eax
jmp 0x14000de53
mov rax, qword [rcx + 0x48]
cmp qword [rax], 0
je 0x14000dcfc
mov rdx, qword [rcx + 0x60]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x14000dcfc
lea ecx, [r8 - 1]
mov dword [rdx], ecx
mov rdx, qword [rdi + 0x48]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
mov eax, esi
jmp 0x14000de53
mov rdx, qword [rdi + 0x88]
test rdx, rdx
je 0x14000de51
cmp qword [rdi + 0x70], 0
jne 0x14000dd2d
movsx ecx, sil
call qword [sym.imp.msvcrt.dll_fputc]
nop dword [rax + rax]
cmp eax, ebx
cmovne ebx, esi
jmp 0x14000de51
mov byte [rbp - 0x19], sil
lea rcx, [rbp + 7]
call fcn.140012534
nop
lea r8, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae r8, qword [rbp + 0xf]
lea r9, [rbp + 0xf]
cmovae r9, qword [rbp + 0xf]
mov rcx, qword [rdi + 0x70]
mov rdx, qword [rcx]
add r8, qword [rbp + 0x1f]
mov rax, qword [rdx + 0x28]
lea rdx, [rbp - 0x11]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], r9
lea rdx, [rbp - 9]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x18]
lea r8, [rbp - 0x19]
lea rdx, [rdi + 0x7c]
call qword [0x140032bd8]
test eax, eax
js 0x14000de41
cmp eax, 1
jg 0x14000de20
lea rax, [rbp + 0xf]
mov rdx, qword [rbp + 0xf]
mov r10, qword [rbp + 0x27]
cmp r10, 0x10
cmovae rax, rdx
mov r14, qword [rbp - 0x11]
sub r14, rax
je 0x14000dde9
lea rcx, [rbp + 0xf]
cmp r10, 0x10
cmovae rcx, rdx
mov r9, qword [rdi + 0x88]
mov r8, r14
mov edx, 1
call qword [sym.imp.msvcrt.dll_fwrite]
nop dword [rax + rax]
cmp r14, rax
jne 0x14000de41
mov byte [rdi + 0x79], 1
lea rax, [rbp - 0x19]
cmp qword [rbp - 9], rax
jne 0x14000de1c
test r14, r14
jne 0x14000dd3b
cmp qword [rbp + 0x1f], 0x20
jae 0x14000de41
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp + 7]
call fcn.140012664
jmp 0x14000dd3b
mov ebx, esi
jmp 0x14000de41
cmp eax, 3
jne 0x14000de41
movsx ecx, byte [rbp - 0x19]
mov rdx, qword [rdi + 0x88]
call qword [sym.imp.msvcrt.dll_fputc]
nop dword [rax + rax]
cmp eax, ebx
cmovne ebx, esi
cmp qword [rbp + 0x27], 0x10
jb 0x14000de51
mov rcx, qword [rbp + 0xf]
call sub.msvcrt.dll_free
mov eax, ebx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14002d5f0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000e0fc
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14004b150]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x70], rbx
je 0x14000e23c
cmp byte [rcx + 0x79], bl
je 0x14000e23c
or edx, 0xffffffff
call fcn.14000dc80
cmp eax, 0xffffffff
jne 0x14000e159
xor al, al
jmp 0x14000e241
lea rcx, [rbp - 0x30]
call fcn.140012534
nop
mov esi, 1
lea r9, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae r9, qword [rbp - 0x28]
lea r8, [rbp - 0x28]
cmovae r8, qword [rbp - 0x28]
mov rcx, qword [rdi + 0x70]
mov rdx, qword [rcx]
add r9, qword [rbp - 0x18]
mov rax, qword [rdx + 0x30]
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rdx
lea rdx, [rdi + 0x7c]
call qword [0x140032bd8]
mov ecx, eax
test eax, eax
je 0x14000e1b2
sub ecx, esi
je 0x14000e1b5
cmp ecx, 2
jne 0x14000e228
jmp 0x14000e225
mov byte [rdi + 0x79], bl
lea rax, [rbp - 0x28]
mov rdx, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
cmp r10, 0x10
cmovae rax, rdx
mov r14, qword [rbp - 0x40]
sub r14, rax
je 0x14000e1fc
lea rcx, [rbp - 0x28]
cmp r10, 0x10
cmovae rcx, rdx
mov r9, qword [rdi + 0x88]
mov r8, r14
mov rdx, rsi
call qword [sym.imp.msvcrt.dll_fwrite]
nop dword [rax + rax]
cmp r14, rax
jne 0x14000e222
cmp byte [rdi + 0x79], bl
je 0x14000e21f
test r14, r14
jne 0x14000e168
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp - 0x30]
call fcn.140012664
jmp 0x14000e168
mov bl, sil
mov sil, bl
mov bl, sil
cmp qword [rbp - 0x10], 0x10
jb 0x14000e238
mov rcx, qword [rbp - 0x28]
call sub.msvcrt.dll_free
mov al, bl
jmp 0x14000e241
mov eax, 1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14002d5f0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140012320
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14004b150]
xor rax, rsp
mov qword [rbp + 0x2f], rax
movzx esi, dx
mov rdi, rcx
mov ebx, 0xffff
xor r14d, r14d
cmp bx, dx
jne 0x140012370
movzx eax, r14w
jmp 0x140012504
mov rax, qword [rcx + 0x48]
mov r8, qword [rax]
test r8, r8
je 0x1400123ac
mov rax, qword [rcx + 0x60]
movsxd r9, dword [rax]
lea rdx, [r8 + r9*2]
cmp r8, rdx
jae 0x1400123ac
lea ecx, [r9 - 1]
mov dword [rax], ecx
mov rdx, qword [rdi + 0x48]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], si
movzx eax, si
jmp 0x140012504
mov rdx, qword [rcx + 0x88]
test rdx, rdx
je 0x140012501
cmp qword [rcx + 0x70], r14
jne 0x1400123e2
movzx ecx, si
call qword [sym.imp.msvcrt.dll_fputwc]
nop dword [rax + rax]
cmp ax, bx
je 0x140012501
movzx ebx, si
jmp 0x140012501
mov word [rbp - 0x19], si
lea rcx, [rbp + 7]
call fcn.140012534
nop
lea r8, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae r8, qword [rbp + 0xf]
lea r9, [rbp + 0xf]
cmovae r9, qword [rbp + 0xf]
mov rcx, qword [rdi + 0x70]
mov rdx, qword [rcx]
add r8, qword [rbp + 0x1f]
mov rax, qword [rdx + 0x28]
lea rdx, [rbp - 0x11]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], r9
lea rdx, [rbp - 9]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x17]
lea r8, [rbp - 0x19]
lea rdx, [rdi + 0x7c]
call qword [0x140032bd8]
test eax, eax
js 0x1400124f1
cmp eax, 1
jg 0x1400124cd
lea rax, [rbp + 0xf]
mov rdx, qword [rbp + 0xf]
mov r10, qword [rbp + 0x27]
cmp r10, 0x10
cmovae rax, rdx
mov r15, qword [rbp - 0x11]
sub r15, rax
je 0x14001249a
lea rcx, [rbp + 0xf]
cmp r10, 0x10
cmovae rcx, rdx
mov r9, qword [rdi + 0x88]
mov r8, r15
mov edx, 1
call qword [sym.imp.msvcrt.dll_fwrite]
nop dword [rax + rax]
cmp r15, rax
jne 0x1400124f1
mov byte [rdi + 0x7a], 1
lea rax, [rbp - 0x19]
cmp qword [rbp - 9], rax
jne 0x1400124ee
test r15, r15
jne 0x1400123f0
cmp qword [rbp + 0x1f], 0x20
jae 0x1400124f1
xor r8d, r8d
lea edx, [r15 + 8]
lea rcx, [rbp + 7]
call fcn.140012664
jmp 0x1400123f0
cmp eax, 3
jne 0x1400124f1
mov rdx, qword [rdi + 0x88]
movzx ecx, word [rbp - 0x19]
call qword [sym.imp.msvcrt.dll_fputwc]
nop dword [rax + rax]
cmp ax, bx
je 0x1400124f1
movzx ebx, si
cmp qword [rbp + 0x27], 0x10
jb 0x140012501
mov rcx, qword [rbp + 0xf]
call sub.msvcrt.dll_free
movzx eax, bx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14002d5f0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140012760
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14004b150]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x70], rbx
je 0x1400128a4
cmp byte [rcx + 0x7a], bl
je 0x1400128a4
mov esi, 0xffff
mov edx, esi
call fcn.140012320
cmp si, ax
jne 0x1400127c1
xor al, al
jmp 0x1400128a9
lea rcx, [rbp - 0x30]
call fcn.140012534
nop
mov esi, 1
lea r9, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae r9, qword [rbp - 0x28]
lea r8, [rbp - 0x28]
cmovae r8, qword [rbp - 0x28]
mov rcx, qword [rdi + 0x70]
mov rdx, qword [rcx]
add r9, qword [rbp - 0x18]
mov rax, qword [rdx + 0x30]
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rdx
lea rdx, [rdi + 0x7c]
call qword [0x140032bd8]
mov ecx, eax
test eax, eax
je 0x14001281a
sub ecx, esi
je 0x14001281d
cmp ecx, 2
jne 0x140012890
jmp 0x14001288d
mov byte [rdi + 0x7a], bl
lea rax, [rbp - 0x28]
mov rdx, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
cmp r10, 0x10
cmovae rax, rdx
mov r14, qword [rbp - 0x40]
sub r14, rax
je 0x140012864
lea rcx, [rbp - 0x28]
cmp r10, 0x10
cmovae rcx, rdx
mov r9, qword [rdi + 0x88]
mov r8, r14
mov rdx, rsi
call qword [sym.imp.msvcrt.dll_fwrite]
nop dword [rax + rax]
cmp r14, rax
jne 0x14001288a
cmp byte [rdi + 0x7a], bl
je 0x140012887
test r14, r14
jne 0x1400127d0
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp - 0x30]
call fcn.140012664
jmp 0x1400127d0
mov bl, sil
mov sil, bl
mov bl, sil
cmp qword [rbp - 0x10], 0x10
jb 0x1400128a0
mov rcx, qword [rbp - 0x28]
call sub.msvcrt.dll_free
mov al, bl
jmp 0x1400128a9
mov eax, 1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14002d5f0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400143e0
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [r11 - 0x50], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x14004b150]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r12, rdx
mov rsi, rcx
mov qword [r11 - 0x48], rcx
xor eax, eax
mov edi, eax
mov ebp, eax
mov r15d, eax
xor ebx, ebx
mov dword [rsp + 0x40], eax
lea r14, [rcx + 8]
cmp qword [rcx + 0x20], 8
jb 0x140014436
mov rcx, qword [r14]
jmp 0x140014439
mov rcx, r14
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov r13, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14001456c
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov dword [rsp + 0x40], eax
test eax, eax
je 0x14001459c
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x1400144c7
mov edi, 0x80004005
jmp 0x14001459c
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop dword [rax + rax]
mov r15, rax
test rax, rax
jne 0x1400144f7
mov edi, 0x80004005
jmp 0x140014585
mov r8, r12
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
nop dword [rax + rax]
mov rcx, qword [r12]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rax, qword [rax + 0x28]
call qword [0x140032bd8]
mov edi, eax
test eax, eax
js 0x140014571
mov rcx, qword [r12]
mov rax, qword [rcx]
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x40]
mov rdx, r15
mov rax, qword [rax + 0x20]
call qword [0x140032bd8]
mov edi, eax
test eax, eax
js 0x140014571
mov rcx, qword [r12]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rax, qword [rax + 0x28]
call qword [0x140032bd8]
mov edi, eax
jmp 0x140014571
mov edi, 0x80004005
test r15, r15
je 0x140014585
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop dword [rax + rax]
xor r15d, r15d
test rbp, rbp
je 0x14001459c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test r13, r13
je 0x1400145b1
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
nop
cmp qword [rsi + 0x20], 8
jb 0x1400145c0
mov rcx, qword [r14]
call sub.msvcrt.dll_free
mov qword [rsi + 0x20], 7
mov qword [rsi + 0x18], r15
mov word [r14], r15w
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002d5f0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002d3f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14004b920], rbx
je 0x14002d43c
cmp rax, rbx
jne 0x14002d42f
mov ebx, 1
mov esi, ebx
jmp 0x14002d441
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002d414
mov ebx, 1
mov eax, dword [0x14004b928]
cmp eax, ebx
jne 0x14002d457
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14002d4bc
mov eax, dword [0x14004b928]
test eax, eax
jne 0x14002d4b6
mov dword [0x14004b928], ebx
lea r15, [0x140032c30]
lea rdi, [0x140032c18]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x14002d4a8
test eax, eax
jne 0x14002d4ac
cmp qword [rdi], 0
je 0x14002d49d
mov rax, qword [rdi]
mov rcx, qword [0x140032bd8]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14002d47e
test eax, eax
je 0x14002d4bc
mov eax, 0xff
jmp 0x14002d598
mov dword [0x14004b184], ebx
mov eax, dword [0x14004b928]
cmp eax, ebx
jne 0x14002d4e3
lea rdx, [0x140032c10]
lea rcx, [0x140032be0]
call sub.msvcrt.dll__initterm
mov dword [0x14004b928], 2
test esi, esi
jne 0x14002d4f0
xor eax, eax
xchg qword [0x14004b920], rax
cmp qword [0x14004b930], 0
je 0x14002d524
lea rcx, [0x14004b930]
call fcn.14002da30
test eax, eax
je 0x14002d524
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14004b930]
mov r9, qword [0x140032bd8]
call r9
mov r8, qword [0x14004b198]
mov rdx, qword [0x14004b190]
mov ecx, dword [0x14004b188]
call fcn.1400024d8
mov dword [0x14004b180], eax
cmp dword [0x14004b1a0], 0
jne 0x14002d554
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14004b184], 0
jne 0x14002d569
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14004b180]
jmp 0x14002d598
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1401bc000
add rsp, 0x28
jmp 0x14002d3f0

Function at 0x14002d614
Capabilities:
Print debug messages

Disassembly:
jmp 0x14002d620
push rbx
sub rsp, 0x540
mov rax, qword [0x14004b150]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14002d69d
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x14002d6bd
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14002d5f0
add rsp, 0x540
pop rbx
ret