joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000af80
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002d528]
test rcx, rcx
je 0x14000afbb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000afae
mov rcx, qword [0x14002d528]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002d528]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140031578], 0
je 0x14000b0ae
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140025978]
mov qword [rsp + 0x80], rsi
lea rsi, [0x14002d550]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b08f
test al, 0x10
je 0x14000b08f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b035
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000d6c4
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000d557
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d557
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d557
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d557
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d557
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d557
cmp dword [rcx + 0xf8], 0
je 0x14000d557
mov ecx, ebx
call fcn.14000d5f8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14000d3e8
cmp dword [rbp + 0x20], 0
je 0x14000d5a4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000d5ac
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000d4f0
Function at 0x140209000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
push rbp
mov rbp, rsp
sub rsp, 0x20
and rsp, 0xfffffffffffffff0
lea rdx, [0x14017c600]
movabs rsi, 0
push rdx
Function at 0x180005320
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x1800053b0
cmp r11, r10
ja 0x180005426
cmp r10, rdx
ja 0x18000543a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x1800053b2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x180005390
jmp 0x180005414
ja 0x1800053ba
mov r11, r10
cmp rax, r8
jne 0x180005354
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x1800053f0
mov rdi, r8
sub ecx, edx
jns 0x18000540b
jmp 0x180005416
cmp r8, rsi
je 0x18000544b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x180005416
xor al, 1
cmp rdi, rsi
jne 0x1800053d0
jmp 0x180005416
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.180028430
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1800281c0
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.180028240
ud2

Function at 0x180009f80
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.180002bc0
cmp rax, rcx
je 0x180009fa5
cmp rdx, 4
jae 0x180009fa8
xor eax, eax
xor r8d, r8d
jmp 0x18000a040
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x18002a400]
movdqa xmm3, xmmword [0x18002a410]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x180009fd0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x18000a057
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x18000a040
ret
Function at 0x18000b3d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x18000b42b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x18000b42b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x18000b446
cmp eax, 0x42
jne 0x18000b42b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x18000b4f6
cmp byte [r9 + r11], 0x5f
jne 0x18000b4f6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x18000b55e
mov rcx, rsi
xor edx, edx
call fcn.180006710
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.180006710
test al, al
jne 0x18000b5f1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x18000b482
lea rdx, [0x18002bb2b]
mov r8d, 1
call fcn.180003030
test al, al
jne 0x18000b5f1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x18000b43a
xor r14d, r14d
lea rbx, [0x18002bee0]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x18000b4b4
cmp byte [rax + rcx], 0x45
je 0x18000b61a
sub r14, 1
jb 0x18000b4d9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x18000b4d9
mov r8d, 2
mov rdx, rbx
call fcn.180003030
test al, al
jne 0x18000b5f1
mov rcx, rsi
call fcn.180007f70
test al, al
jne 0x18000b5f1
mov rax, qword [rsi]
test rax, rax
jne 0x18000b4a0
jmp 0x18000b43a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x18000b5b8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x18000b552
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x18000b53c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x18000b52b
add dl, 0xa9
jmp 0x18000b53a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x18000b5b8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x18000b5b8
movzx edx, bl
add rax, rdx
jae 0x18000b500
jmp 0x18000b5b8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x18000b5b8
cmp rax, rcx
jae 0x18000b5b5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x18000b5f9
cmp qword [rsi + 0x20], 0
je 0x18000b613
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.18000b3d0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x18000b43c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x18000b608
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x18002bea0]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.180003030
test al, al
je 0x18000b608
mov dil, 2
jmp 0x18000b43a
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x18000b5c3
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x18000b43a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x18000b43a
Function at 0x18000f0d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x18002d8e8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x18000f143
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x18000f17a
test eax, eax
js 0x18000f154
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x18000f16d
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.18000d9f0
mov rcx, rax
call fcn.18000db30
mov ecx, 7
int 0x29
ud2

Function at 0x180011d90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rax, rdx
movzx r9d, byte [rdx + 0x38]
movzx r8d, byte [rdx + 0x3a]
xor edx, edx
cmp r9b, 1
ja 0x180011df7
movzx r11d, byte [rax + 0x10]
test r8b, r8b
jne 0x180011f58
cmp r11b, 5
jb 0x180011f58
mov r10, qword [rax]
mov rdx, qword [rax + 8]
xor esi, esi
test r9b, r9b
jne 0x180011de7
cmp r11b, 6
je 0x180011de7
mov esi, 2
cmp rdx, 2
jb 0x180012006
cmp rsi, rdx
jne case.0x180010c7c.31
xor edx, edx
jmp 0x180011f58
xor r10d, r10d
add rdx, r10
lea rdi, [r10 + rsi]
inc rdi
cmp rdi, rdx
sete dl
movzx r10d, byte [r10 + rsi]
test dl, 1
jne 0x180011f4d
invalid
cmp r10b, 0x2e
jne 0x180011f4d
invalid
movzx edx, byte [rdi]
cmp dl, 0x5c
sete r10b
cmp dl, 0x2f
sete dl
or dl, r10b
jmp 0x180011f58
cmp r10b, 0x2e
sete r10b
xchg esp, eax
ret 0x2044
invalid
xor r10d, r10d
test r9b, r9b
jne case.default.0x180011f80
xchg esi, eax
invalid
invalid
invalid
cmp r11b, 6
je case.default.0x180011f80
invalid
invalid
invalid
movzx r10d, r11b
lea r11, [0x18002e7f8]
add byte [rdi + 0x63], cl
adc al, 0x93
mov r10, qword [rax + 0x20]
mov r10, qword [rax + 0x20]
mov r11, qword [rax + 0x30]
xor byte [rcx - 0x73], cl
jae 0x180011f9d
mov r10d, 6
jmp case.default.0x180011f80
mov r10, qword [rax + 0x20]
mov r11, qword [rax + 0x30]
xor byte [rcx - 0x73], cl
jae 0x180011fc7
mov r10d, 2
jmp case.default.0x180011f80
lea r8, str.library_std_srcpath.rs
mov ecx, 2
call fcn.1800280c0
ud2
out dx, al
or byte [rcx + rcx*4 - 0x37], cl
Function at 0x1800222b4
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 0x1800222e4
xor eax, eax
jmp 0x1800223a7
mov rbp, rbx
cmp word [rax], si
je 0x180022309
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800222f0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800222ec
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.1800221d4
movsxd r14, eax
test eax, eax
jne 0x180022347
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x1800222dd
mov rcx, r14
call fcn.180023544
mov rdi, rax
test rax, rax
jne 0x180022360
xor ecx, ecx
call fcn.18002080c
jmp 0x18002233c
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.1800221d4
test eax, eax
jne 0x180022391
mov rcx, rdi
call fcn.18002080c
jmp 0x18002239b
xor ecx, ecx
call fcn.18002080c
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 0x141553108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14155328f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141553139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14155311f
add dl, dl
jne 0x141553146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415531a6
xor eax, eax
add dl, dl
jne 0x141553155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14155325d
add dl, dl
jne 0x141553166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141553173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141553180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14155318d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14155319a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14155312e
mov eax, 1
add dl, dl
jne 0x1415531b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415531c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415531ab
sub eax, ebx
mov ebx, 1
jne 0x1415531fc
mov ecx, 1
add dl, dl
jne 0x1415531de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1415531eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415531d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14155312e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141553218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141553225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14155320d
cmp eax, 0x7d00
jae 0x14155324b
cmp eax, 0x500
jb 0x141553246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14155312e
cmp eax, 0x7f
ja 0x14155324e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14155312e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141553282
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14155312e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002880
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140003980
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140003980
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400028f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400080a4]
mov rbx, rcx
test esi, esi
jle 0x140002a20
mov rax, qword [0x1400080a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000293b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400029c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002920
mov rcx, rbx
call fcn.140003340
mov rdi, rax
test rax, rax
je 0x140002a42
mov rax, qword [0x1400080a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003480
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400080a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002a27
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400029be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400029d0
add dword [0x1400080a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400080a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400029be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002880
nop dword [rax]
xor esi, esi
jmp 0x140002948
mov rax, qword [0x1400080a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002880
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002880
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002fb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x14000300c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003003
test rsi, rsi
je 0x140003003
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002fe8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003340
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140005a20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003360
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003368
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003360
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400033bd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400033b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003360
add rax, 0x28
cmp rax, r9
jne 0x1400033a0
xor eax, eax
ret

Function at 0x1400033c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005a20]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400033df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400033e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400033df
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003480
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005a20]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000349f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400034a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001350
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
sub rsp, 0xb8
cmp byte [0x14001360b], 0
xorps xmm0, xmm0
mov eax, dword [str.xyxL]
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x40], eax
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmm0, xmmword [0x1400135f8]
movups xmmword [rsp + 0x30], xmm0
je 0x140001551
xor ecx, ecx
cmp dword [0x140020018], 2
jl 0x140001513
movdqa xmm0, xmmword [0x14001d2a0]
lea rdx, [rsp + 0x34]
movdqa xmm5, xmmword [0x14001d220]
mov eax, 5
movdqa xmm4, xmmword [0x14001d2f0]
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [r11 - 0x28], xmm7
movdqa xmm7, xmmword [0x14001d250]
movd xmm6, eax
mov eax, 0x1f
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [r11 - 0x38], xmm8
movd xmm8, eax
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x14001d280]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14001d280]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x1400013f0
movaps xmm8, xmmword [rsp + 0x80]
movaps xmm7, xmmword [rsp + 0x90]
movaps xmm6, xmmword [rsp + 0xa0]
cmp ecx, 0x14
jge 0x140001551
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop
mov eax, 0x8fb823ef
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul edx, eax, 0x39
add dl, cl
inc ecx
xor byte [r8 - 1], dl
cmp ecx, 0x14
jl 0x140001520
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x30]
call fcn.1400049c0
add rsp, 0xb8
ret
Function at 0x140006290
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x138
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x1400062f7
lea r8, [r10 + 0x10]
movabs r11, 0xb5026f5aa96619e9
mov rdx, qword [r8]
xor rdx, qword [r8 - 8]
lea r8, [r8 + 8]
and rdx, 0xffffffff80000000
xor rdx, qword [r8 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x1400062b2
mov ecx, dword [r10]
jmp 0x140006406
cmp ecx, 0x270
jb 0x140006406
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [r10 + 0x9c8]
mov qword [rsp], rdi
mov rax, qword [rbx]
mov edi, 0x9c
nop word [rax + rax]
mov r9, qword [rbx + 8]
lea rbx, [rbx + 8]
mov rdx, r9
xor rdx, rax
and rdx, 0xffffffff80000000
xor rdx, r9
movzx eax, dl
and al, 1
neg al
mov rax, r9
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [rbx + 0x4d8]
xor rcx, rdx
mov qword [rbx - 0x9c8], rcx
sub rdi, 1
jne 0x140006330
lea rbx, [r10 + 0xea8]
mov edi, 0x9b
mov r9, qword [rbx]
mov r8, qword [rbx + 8]
lea rbx, [rbx + 8]
xor r9, r8
and r9, 0xffffffff80000000
xor r9, r8
movzx eax, r9b
and al, 1
neg al
sbb rcx, rcx
shr r9, 1
and rcx, r11
xor rcx, qword [rbx - 0xea8]
xor rcx, r9
mov r9, r8
mov qword [rbx - 0x9c8], rcx
sub rdi, 1
jne 0x140006381
mov rdx, qword [r10 + 8]
xor rdx, qword [r10 + 0x1380]
mov rdi, qword [rsp]
and rdx, 0xffffffff80000000
xor rdx, qword [r10 + 8]
mov rbx, qword [rsp + 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov rdx, qword [r10 + rax*8 + 8]
lea eax, [rcx + 1]
mov dword [r10], eax
mov rcx, rdx
mov rax, qword [r10 + 0x1388]
shr rcx, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor rdx, rax
mov rax, rdx
and rax, rcx
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
add rsp, 8
ret