joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140035294
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400352c4
xor eax, eax
jmp 0x140035387
mov rbp, rbx
cmp word [rax], si
je 0x1400352e9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400352d0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400352cc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400338c0
movsxd r14, eax
test eax, eax
jne 0x140035327
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400352bd
mov rcx, r14
call fcn.140030084
mov rdi, rax
test rax, rax
jne 0x140035340
xor ecx, ecx
call fcn.14002ca6c
jmp 0x14003531c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400338c0
test eax, eax
jne 0x140035371
mov rcx, rdi
call fcn.14002ca6c
jmp 0x14003537b
xor ecx, ecx
call fcn.14002ca6c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140038980
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14005c0a0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400389de
cmp word [rdx], r12w
jne 0x1400389de
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400389e4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140038b3f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140038b1a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140038a1d
mov rcx, r9
jmp 0x140038a40
cmp r9, rdx
jae 0x140038a57
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140038a01
jmp 0x140038b3f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140038b14
cmp dword [rsp + 0x80], edi
je 0x140038b14
mov rdx, r14
lea r11, [0x14005c0a0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140038aed
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140038ac0
mov word [rbx], r12w
jmp 0x140038b3b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140038ac9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140038b3b
cmp word [rsp + 0x70], r12w
jne 0x140038afa
cmp rbx, rsi
je 0x140038aba
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14002fe94
cmp word [rsp + 0x70], r12w
je 0x140038b3f
mov word [rbx], r13w
jmp 0x140038b3b
lea r11, [0x14005c0a0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140038b37
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140038b3f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003c604
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140027f4c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14003c68e
cmp byte [rbp - 0x21], r15b
je 0x14003c689
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14003c6c4
call fcn.14002dc04
test eax, eax
jne 0x14003c6b0
cmp byte [rbp - 0x21], r15b
je 0x14003c6a8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14003c6c4
cmp byte [rbp - 0x21], r15b
je 0x14003c6c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400288b4
test eax, eax
jne 0x14003c764
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140027f4c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003c703
cmp byte [rbp - 0x21], r15b
je 0x14003c738
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14003c738
call fcn.14002dc04
test eax, eax
jne 0x14003c724
cmp byte [rbp - 0x21], r15b
je 0x14003c71d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14003c738
cmp byte [rbp - 0x21], r15b
je 0x14003c735
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400288b4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003c764
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003c767
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003c775
mov rcx, rdi
call fcn.14002ca6c
cmp byte [rbp + 0x3f], r15b
je 0x14003c784
mov rcx, qword [rbp + 0x27]
call fcn.14002ca6c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14003d578
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14002fe94
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002fe94
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14003d6c8
cmp rax, 0xffffffffffffffff
je 0x14003d6c8
xor edi, edi
test rbp, rbp
jle 0x14003d673
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002c9f4
mov rbx, rax
test rax, rax
jne 0x14003d600
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14003d669
mov edx, 0x8000
mov ecx, r14d
call fcn.1400299a0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14002f37c
cmp eax, 0xffffffff
je 0x14003d649
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14003d610
mov edx, r15d
mov ecx, r14d
call fcn.1400299a0
jmp 0x14003d669
cmp byte [rsi + 0x38], dil
je 0x14003d660
cmp dword [rsi + 0x34], 5
jne 0x14003d660
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14003d669
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002ca6c
jmp 0x14003d6dc
jns 0x14003d6dc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002fe94
cmp rax, 0xffffffffffffffff
jne 0x14003d694
cmp byte [rsi + 0x30], dil
je 0x14003d6dc
mov edi, dword [rsi + 0x2c]
jmp 0x14003d6dc
mov ecx, r14d
call fcn.140035cd4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14003d6dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14003d6dc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14003d6d5
mov eax, dword [rsi + 0x2c]
jmp 0x14003d6da
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002fe94
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14003e310
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003e338
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003e338
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14069cc00
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword gs:[0x60]
movabs r11, 0x69cc70
movabs r10, 0x69cc74
mov r9, qword [rax + 0x10]
xor eax, eax
movsxd rcx, dword [r9 + 0x3c]
movsxd r11, dword [r9 + r11]
add rcx, r9
mov r10d, dword [r9 + r10]
movzx r8d, word [rcx + 0x14]
add r8, rcx
cmp dword [r8 + 0x20], eax
jbe 0x14069cc66
mov edx, eax
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [r8 + 0x24]
inc eax
add rcx, rdx
inc rdx
xor byte [rcx + r9], r10b
cmp eax, dword [r8 + 0x20]
jb 0x14069cc50
lea rax, [r9 + r11]
jmp rax
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400097a0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400097b0]
mov dword [rax], 1
mov rax, qword [0x1400097c0]
mov dword [rax], 1
mov rax, qword [0x140009740]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140009790]
mov dword [0x14000c00c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010b0
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140009870]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140009850]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400096f0]
cmp dword [rax], 1
je 0x1400010f1
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001104
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001581
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov dword [rbp - 4], 0
mov eax, dword [rbp + 0x20]
mov dword [rbp - 8], eax
jmp 0x1400015d9
mov rax, qword [rbp + 0x18]
mov r9d, 0
mov r8d, 8
mov rdx, rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0xffffffff
je 0x1400015e3
mov eax, dword [rbp - 0xc]
add dword [rbp - 4], eax
mov eax, dword [rbp - 0xc]
sub dword [rbp - 8], eax
mov eax, dword [rbp - 4]
cmp eax, dword [rbp + 0x20]
jl 0x1400015a4
jmp 0x1400015e4
nop
cmp dword [rbp - 0xc], 0xffffffff
je 0x1400015ef
mov eax, dword [rbp - 4]
jmp 0x1400015f4
mov eax, 0xffffffff
add rsp, 0x30
pop rbp
ret
Function at 0x1400015fa
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x2e0
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x270], ecx
mov qword [rbp + 0x278], rdx
call sym.__main
mov dword [rbp + 0x25c], 0
lea rax, [rbp - 0x60]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp + 0x250], rax
lea rax, [rbp + 0x240]
mov r8d, 0x10
mov edx, 0
mov rcx, rax
call sym.memset
mov word [rbp + 0x240], 2
lea rax, str.32768
mov rcx, rax
call sym.atoi
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x242], ax
lea rax, str.127.0.0.1
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp + 0x244], eax
lea rax, [rbp + 0x240]
mov rcx, qword [rbp + 0x250]
mov r8d, 0x10
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
lea rax, [rbp + 0x140]
mov rcx, qword [rbp + 0x250]
mov r8d, 0x100
mov rdx, rax
call dbg.recvall
mov dword [rbp + 0x25c], eax
cmp dword [rbp + 0x25c], 0
jle 0x140001721
lea rax, [rbp + 0x140]
mov rdx, rax
lea rax, str._.255s
mov rcx, rax
call dbg.printf
jmp 0x140001738
mov eax, dword [rbp + 0x25c]
mov edx, eax
lea rax, str.Error:__d
mov rcx, rax
call dbg.printf
mov rax, qword [rbp + 0x250]
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_shutdown]
call rax
mov rax, qword [rbp + 0x250]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
call sym.getchar
mov eax, 0
add rsp, 0x2e0
pop rbp
ret

Function at 0x140001aa0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001b10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000c084]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140001ca0
mov rax, qword [0x14000c088]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x140001b5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140001be5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140001b40
mov rcx, rdi
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x140001cf2
mov rax, qword [0x14000c088]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14000c088]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001cd5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001bde
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001c50
add dword [0x14000c084], 1
cmp ebx, 8
jae 0x140001c11
test bl, 4
jne 0x140001cb0
test ebx, ebx
je 0x140001c06
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140001cc4
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140001c06
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x140001c2a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x14000c088]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001bde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
xor esi, esi
jmp 0x140001b67
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140001c06
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140001c06
mov rax, qword [0x14000c088]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call sym.__report_error
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x1400022c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14000c0e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c0c0]
test rbx, rbx
je 0x140002314
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000230b
test rsi, rsi
je 0x14000230b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400022f0
lea rcx, [0x14000c0e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002560
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x140002570
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x140002580
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400025c1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x1400025b8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1400025c3
add rax, 0x28
cmp rax, r9
jne 0x1400025a4
xor eax, eax
ret

Function at 0x140002670
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140009740]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400026df
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400026df
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x1400026dd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400026d4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400026df
add rdx, 0x28
cmp rdx, r9
jne 0x1400026c0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x1400027e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x140009740]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x14000284f
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14000284f
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x14000284d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140002844
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002854
add rax, 0x28
cmp rax, r9
jne 0x140002830
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140002870
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x140009740]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x1400028e3
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400028e3
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x1400028e3
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400028e3
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov rcx, r9
jb 0x1400028d7
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x1400028f0
add rdx, 0x28
cmp rdx, r10
jne 0x1400028c3
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jne 0x140002908
jmp 0x1400028e0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x140002916
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400028e0
test r8d, r8d
jg 0x140002900
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x1400619f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1400e1040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, r8
mov r15, rdx
mov r12, rcx
mov qword [rsp + 0x20], r8
mov rbp, 0xffffffffffffffff
mov rbx, rbp
nop dword [rax + rax]
inc rbx
cmp byte [r8 + rbx], 0
jne 0x140061a30
mov qword [rsp + 0x28], rbx
xor esi, esi
test rbx, rbx
je 0x140061a95
mov r8, rbx
mov edx, 0x2e
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140061a95
sub rax, rdi
cmp rax, 0xffffffffffffffff
je 0x140061a95
mov rcx, rax
cmp rbx, rax
cmovb rcx, rbx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rcx
inc rax
cmp rbx, rax
jb 0x140061b7b
sub rbx, rax
cmp rbx, 0xffffffffffffffff
cmovb rbp, rbx
lea r9, [rdi + rax]
jmp 0x140061a9e
mov r9, rsi
mov rbp, rsi
mov rcx, rbx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
mov ebx, esi
mov r10d, 0x73a531db
mov r11d, r10d
movabs r13, 0x100000001b3
test rcx, rcx
je 0x140061b02
movq rdi, xmm0
mov r14, qword [rsp + 0x28]
nop dword [rax]
movzx r8d, byte [rdi]
lea edx, [r8 - 0x41]
lea eax, [r8 + 0x20]
movzx ecx, al
cmp dl, 0x19
cmova ecx, r8d
movsx rax, cl
xor rax, r11
imul rax, r13
add r11, rax
inc ebx
lea rdi, [rdi + 1]
movsxd rax, ebx
cmp rax, r14
jb 0x140061ad0
test rbp, rbp
je 0x140061b42
nop word [rax + rax]
movzx r8d, byte [r9]
lea edx, [r8 - 0x41]
lea eax, [r8 + 0x20]
movzx ecx, al
cmp dl, 0x19
cmova ecx, r8d
movsx rdx, cl
xor rdx, r10
imul rdx, r13
add r10, rdx
inc esi
lea r9, [r9 + 1]
movsxd rdx, esi
cmp rdx, rbp
jb 0x140061b10
mov r9, r11
mov r8, r10
mov rdx, r15
mov rcx, r12
call fcn.140061710
mov rax, r15
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14009b330
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140068230
nop
int3