joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c2a0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c3b0
lea r14, [rbx + 0x68]
mov rcx, r14
call fcn.14001e820
cmp esi, dword [rbx + 0x48]
jae 0x14001c330
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r14
mov byte [rax + rsi], 1
call fcn.14001e860
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbx + 0x50]
lea r15d, [rsi + 1]
movsxd r13, r15d
lea rdx, [r13*8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
test rax, rax
mov rdi, rax
je 0x14001c3bd
mov rcx, qword [rbx + 0x58]
mov rdx, r13
movq xmm6, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
movq xmm0, rax
test rax, rax
mov r13, rax
punpcklqdq xmm6, xmm0
je 0x14001c3bd
mov eax, dword [rbx + 0x48]
mov edx, r15d
lea rcx, [rdi + rax*8]
sub edx, eax
lea r8, [rdx*8]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov edx, dword [rbx + 0x48]
mov r8d, r15d
lea rcx, [r13 + rdx]
sub r8d, edx
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movaps xmmword [rbx + 0x50], xmm6
mov dword [rbx + 0x48], r15d
jmp 0x14001c2f4
call fcn.14001b550
mov rbx, rax
jmp 0x14001c2df
mov rcx, r14
call fcn.14001e860
mov eax, 0xc
jmp 0x14001c312

Function at 0x14001c440
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c468
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14001b550
test rax, rax
jne 0x14001c45a
add rsp, 0x28
ret

Function at 0x14001c4d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c4f8
add rax, 0x18
add rsp, 0x28
ret
call fcn.14001b550
test rax, rax
jne 0x14001c4ea
jmp 0x14001c4ee

Function at 0x14001c610
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140db2658]
test eax, eax
jne 0x14001c628
xor eax, eax
add rsp, 0x28
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c658
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001c61e
test byte [rax + 0x40], 3
je 0x14001c61e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001c620
call fcn.14001b550
test rax, rax
jne 0x14001c63e
jmp 0x14001c61e
Function at 0x14001c670
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c6b0
test ebx, ebx
jle 0x14001c6a0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.14001b550
test rax, rax
jne 0x14001c68d
add rsp, 0x20
pop rbx
ret

Function at 0x14001c7a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c818
test byte [rbx + 0x40], 0xc
jne 0x14001c7cf
mov eax, dword [0x140db2658]
test eax, eax
jne 0x14001c7e0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001a720
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001c803
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001c803
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001c82c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001aa10
call fcn.14001b550
test rax, rax
mov rbx, rax
jne 0x14001c7bf
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001c84a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001aa10
call fcn.14001c6c0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001c8d0
call fcn.14001d9b0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001c908
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c960
test esi, esi
je 0x14001c8e6
call fcn.14001c7a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c940
mov edx, edi
call fcn.14001da60
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c950
call fcn.14001c7a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x14001c8a5
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c8be
call fcn.14001b550
jmp 0x14001c8e6
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a1
Function at 0x14001c860
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c818
test byte [rbx + 0x40], 0xc
jne 0x14001c7cf
mov eax, dword [0x140db2658]
test eax, eax
jne 0x14001c7e0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001a720
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001c803
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001c803
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001c82c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001aa10
call fcn.14001b550
test rax, rax
mov rbx, rax
jne 0x14001c7bf
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001c84a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001aa10
call fcn.14001c6c0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001c8d0
call fcn.14001d9b0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001c908
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c960
test esi, esi
je 0x14001c8e6
call fcn.14001c7a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c940
mov edx, edi
call fcn.14001da60
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c950
call fcn.14001c7a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x14001c8a5
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c8be
call fcn.14001b550
jmp 0x14001c8e6
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a1

Function at 0x14001c970
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c9e0
test esi, esi
je 0x14001c9c0
call fcn.14001c7a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c9f0
mov edx, esi
call fcn.14001da60
call fcn.14001c7a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001c7a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c7a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001b550
mov rbx, rax
jmp 0x14001c991
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c9aa
Function at 0x14001d36f
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 8
push r12
push r13
push r14
push r15
push rbx
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov r12, 3
mov r13, 1
sub rsp, 0x20
mov rcx, qword [rbp + 0x10]
mov rdx, r12
call fcn.14001d4e1
add rsp, 0x20
rol eax, 8
sub rsp, 0x20
mov rcx, rax
mov rdx, qword [rbp + 0x18]
call fcn.14001d505
add rsp, 0x20
sub rsp, 0x20
mov rcx, rax
mov rdx, qword [rbp + 0x20]
mov r8, r13
call fcn.14001d4b6
add rsp, 0x20
inc r13
mov rbx, rax
mov r14, r12
sub r14, 3
sub rsp, 0x20
mov rcx, qword [rbp + 0x10]
mov rdx, r14
call fcn.14001d4e1
add rsp, 0x20
xor rax, rbx
inc r12
sub rsp, 0x20
mov rcx, rax
mov rdx, qword [rbp + 0x10]
mov r8, r12
call fcn.14001d48a
add rsp, 0x20
mov r15, 3
sub rsp, 0x20
mov rcx, qword [rbp + 0x10]
mov rdx, r12
call fcn.14001d4e1
add rsp, 0x20
mov rbx, rax
mov r14, r12
sub r14, 3
sub rsp, 0x20
mov rcx, qword [rbp + 0x10]
mov rdx, r14
call fcn.14001d4e1
add rsp, 0x20
xor rax, rbx
inc r12
sub rsp, 0x20
mov rcx, rax
mov rdx, qword [rbp + 0x10]
mov r8, r12
call fcn.14001d48a
add rsp, 0x20
dec r15
jne 0x14001d421
cmp r12, 0x2b
jne 0x14001d39a
pop rbx
pop r15
pop r14
pop r13
pop r12
leave
ret

Function at 0x14001d704
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
push r12
push rbx
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov rdx, qword [rbp + 0x10]
mov r12, 4
mov eax, dword [rdx]
bswap eax
mov rbx, qword [rbp + 0x18]
xlatb
mov cl, al
shr eax, 8
mov rbx, qword [rbp + 0x28]
xlatb
xor cl, al
shr eax, 8
mov rbx, qword [rbp + 0x20]
xlatb
xor cl, al
shr eax, 8
mov rbx, qword [rbp + 0x30]
xlatb
xor cl, al
mov dword [rbp - 0x10], ecx
mov eax, dword [rdx]
bswap eax
mov rbx, qword [rbp + 0x28]
xlatb
mov cl, al
shr eax, 8
mov rbx, qword [rbp + 0x20]
xlatb
xor cl, al
shr eax, 8
mov rbx, qword [rbp + 0x30]
xlatb
xor cl, al
shr eax, 8
mov rbx, qword [rbp + 0x18]
xlatb
xor cl, al
mov eax, dword [rbp - 0x10]
shl eax, 8
mov al, cl
mov dword [rbp - 0x10], eax
mov eax, dword [rdx]
bswap eax
mov rbx, qword [rbp + 0x20]
xlatb
mov cl, al
shr eax, 8
mov rbx, qword [rbp + 0x30]
xlatb
xor cl, al
shr eax, 8
mov rbx, qword [rbp + 0x18]
xlatb
xor cl, al
shr eax, 8
mov rbx, qword [rbp + 0x28]
xlatb
xor cl, al
mov eax, dword [rbp - 0x10]
shl eax, 8
mov al, cl
mov dword [rbp - 0x10], eax
mov eax, dword [rdx]
bswap eax
mov rbx, qword [rbp + 0x30]
xlatb
mov cl, al
shr eax, 8
mov rbx, qword [rbp + 0x18]
xlatb
xor cl, al
shr eax, 8
mov rbx, qword [rbp + 0x28]
xlatb
xor cl, al
shr eax, 8
mov rbx, qword [rbp + 0x20]
xlatb
xor cl, al
mov eax, dword [rbp - 0x10]
shl eax, 8
mov al, cl
bswap eax
mov dword [rdx], eax
add rdx, 4
dec r12
jne 0x14001d72a
pop rbx
pop r12
leave
ret
Function at 0x14001e451
Capabilities:
Inspect section memory permissions

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x110
push rbx
push r12
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rdx, qword [rbp + 0x10]
mov ebx, dword [rdx + 0x24]
and ebx, 0xe0000000
cmp ebx, 0xe0000000
jne 0x14001e490
mov rax, 0x40
mov qword [rbp - 0x110], rax
jmp 0x14001e501
mov ebx, dword [rdx + 0x24]
and ebx, 0x60000000
cmp ebx, 0x60000000
jne 0x14001e4b1
mov rax, 0x20
mov qword [rbp - 0x110], rax
jmp 0x14001e501
mov ebx, dword [rdx + 0x24]
and ebx, 0xc0000000
cmp ebx, 0xc0000000
jne 0x14001e4d2
mov rax, 4
mov qword [rbp - 0x110], rax
jmp 0x14001e501
mov ebx, dword [rdx + 0x24]
and ebx, 0x40000000
cmp ebx, 0x40000000
jne 0x14001e4f3
mov rax, 2
mov qword [rbp - 0x110], rax
jmp 0x14001e501
mov rax, 1
mov qword [rbp - 0x110], rax
mov eax, dword [rdx + 0xc]
add rax, qword [rbp + 0x18]
mov ebx, dword [rdx + 8]
lea r12, [rbp - 0x108]
sub rsp, 0x20
mov rcx, rax
mov rdx, rbx
mov r8, qword [rbp - 0x110]
mov r9, r12
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
add rsp, 0x20
test rax, rax
je 0x14001e549
mov rdx, qword [rbp + 0x10]
mov eax, dword [rdx + 0xc]
add rax, qword [rbp + 0x18]
mov rax, 1
jmp 0x14001e54c
sub rax, rax
pop r12
pop rbx
leave
ret

Function at 0x14001e551
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
mov qword [rbp + 0x10], rcx
mov rcx, qword [rbp + 0x10]
mov ax, word [rcx]
cmp ax, 0x5a4d
jne 0x14001e57e
mov eax, dword [rcx + 0x3c]
add rcx, rax
mov eax, dword [rcx]
cmp eax, 0x4550
jne 0x14001e57e
add rcx, 4
mov rax, rcx
leave
ret
sub rax, rax
leave
ret

Function at 0x14001e5c6
Capabilities:
Terminate process

Disassembly:
sub rsp, 8
sub rsp, 0x20
call fcn.14001e5f7
add rsp, 0x20
test rax, rax
je 0x14001e5e2
add rsp, 8
jmp rax
sub rsp, 0x20
mov rcx, 0
call qword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x140001510
Capabilities:
Encode data using base64

Disassembly:
cmp r8, 2
jbe 0x140001591
lea r9, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_________________________________________________456789:_____A___
nop dword [rax]
movzx eax, byte [rdx]
add rcx, 4
sub r8, 3
add rdx, 3
sar eax, 2
cdqe
movzx eax, byte [r9 + rax]
mov byte [rcx - 4], al
movzx eax, byte [rdx - 3]
movzx r10d, byte [rdx - 2]
shl eax, 4
sar r10d, 4
and eax, 0x30
or eax, r10d
cdqe
movzx eax, byte [r9 + rax]
mov byte [rcx - 3], al
movzx eax, byte [rdx - 2]
movzx r10d, byte [rdx - 1]
shl eax, 2
and eax, 0x3c
shr r10d, 6
or eax, r10d
cdqe
movzx eax, byte [r9 + rax]
mov byte [rcx - 2], al
movzx eax, byte [rdx - 1]
and eax, 0x3f
movzx eax, byte [r9 + rax]
mov byte [rcx - 1], al
cmp r8, 2
ja 0x140001520
mov rax, rcx
test r8, r8
je 0x1400015ee
movzx eax, byte [rdx]
lea r9, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_________________________________________________456789:_____A___
sar eax, 2
cdqe
movzx eax, byte [r9 + rax]
mov byte [rcx], al
movzx eax, byte [rdx]
shl eax, 4
cmp r8, 1
je 0x1400015f8
movzx r8d, byte [rdx + 1]
and eax, 0x30
sar r8d, 4
or eax, r8d
cdqe
movzx eax, byte [r9 + rax]
mov byte [rcx + 1], al
movzx eax, byte [rdx + 1]
shl eax, 2
and eax, 0x3c
movzx edx, byte [r9 + rax]
mov byte [rcx + 2], dl
lea rax, [rcx + 4]
mov byte [rcx + 3], 0x3d
mov byte [rax], 0
ret
and eax, 0x30
mov edx, 0x3d
movzx eax, byte [r9 + rax]
mov byte [rcx + 1], al
jmp 0x1400015e3

Function at 0x140001610
Capabilities:
Encode data using xor

Disassembly:
movabs r9, 0x89705f3112a28fe5
mov rax, rdx
mov r8, rcx
mov rcx, rdx
mul r9
mov rax, rdx
shr rax, 0x1d
imul rdx, rax, 0x3b9aca07
mov rax, rcx
sub rax, rdx
movsx rdx, byte [r8]
test dl, dl
je 0x140001689
nop word [rax + rax]
lea rcx, [rax*4]
add rdx, rdx
add r8, 1
xor rcx, rdx
mov rax, rcx
mul r9
shr rdx, 0x1d
imul rax, rdx, 0x3b9aca07
sub rcx, rax
mov rdx, rcx
mov rax, rcx
shl rcx, 5
sub rcx, rdx
movsx rdx, byte [r8]
shr rax, 1
xor rax, rcx
test dl, dl
jne 0x140001648
ret

Function at 0x140001690
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
xor r15d, r15d
movsxd rax, dword [rcx + 0x3c]
mov esi, dword [rcx + rax + 0x88]
add rsi, rcx
mov rbx, rcx
mov r12, rdx
mov rbp, r8
mov r13d, dword [rsi + 0x1c]
mov edi, dword [rsi + 0x20]
mov r14d, dword [rsi + 0x24]
lea rax, [rcx + r13]
add rdi, rcx
mov qword [rsp + 0x28], rax
mov eax, dword [rsi + 0x18]
add r14, rcx
test eax, eax
je 0x1400016fc
mov r13d, r15d
mov rdx, rbp
mov ecx, dword [rdi + r13*4]
add rcx, rbx
call fcn.140001610
cmp rax, r12
je 0x140001700
add r15d, 1
cmp r15d, dword [rsi + 0x18]
jb 0x1400016db
xor eax, eax
jmp 0x140001710
movzx eax, word [r14 + r13*2]
mov rdx, qword [rsp + 0x28]
mov eax, dword [rdx + rax*4]
add rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140001870
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, r8
mov edi, edx
mov rsi, r8
call sub.msvcrt.dll_strlen
mov r8d, edi
mov r9, rax
test edi, edi
je 0x1400018b0
xor ecx, ecx
nop dword [rax + rax]
mov rax, rcx
xor edx, edx
div r9
movzx eax, byte [rsi + rdx]
xor byte [rbx + rcx], al
add rcx, 1
cmp rcx, r8
jne 0x140001898
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140001bb0
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.140007920
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.140007920
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 0x140001c20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400270a4]
mov rbx, rcx
test esi, esi
jle 0x140001d50
mov rax, qword [0x1400270a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001c6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001cf5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001c50
mov rcx, rbx
call fcn.140002670
mov rdi, rax
test rax, rax
je 0x140001d72
mov rax, qword [0x1400270a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400027b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400270a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001d57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001cee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001d00
add dword [0x1400270a4], 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 [0x1400270a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001cee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001bb0
nop dword [rax]
xor esi, esi
jmp 0x140001c78
mov rax, qword [0x1400270a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001bb0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001bb0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400022e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140027100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400270e0]
test rbx, rbx
je 0x14000233c
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 0x140002333
test rsi, rsi
je 0x140002333
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002318
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 0x140002670
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140023920]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002690
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002698
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002690
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400026ed
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 0x1400026e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002690
add rax, 0x28
cmp rax, r9
jne 0x1400026d0
xor eax, eax
ret

Function at 0x1400026f0
Capabilities:
Parse pe header

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

Function at 0x1400027b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140023920]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400027cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400027d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140016a80
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x20], r8
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x10], rcx
mov qword [rsp + 8], 0
mov dword [rsp + 4], 0x911dfa26
mov eax, dword [rsp + 4]
mov dword [rsp], eax
sub eax, 0x911dfa26
je 0x140016b32
jmp 0x140016abb
mov eax, dword [rsp]
sub eax, 0xb763b197
je 0x140016cbe
jmp 0x140016ace
mov eax, dword [rsp]
sub eax, 0xc7919697
je 0x140016b52
jmp 0x140016ae1
mov eax, dword [rsp]
sub eax, 0xe6250640
je 0x140016cd5
jmp 0x140016af4
mov eax, dword [rsp]
sub eax, 0xec7a97ce
je 0x140016c5b
jmp 0x140016b07
mov eax, dword [rsp]
sub eax, 0x4f7fc45b
je 0x140016ccb
jmp 0x140016b1a
mov eax, dword [rsp]
sub eax, 0x7a85d089
je 0x140016bd9
jmp 0x140016b2d
jmp 0x140016d05
mov rdx, qword [rsp + 8]
mov eax, 0x4f7fc45b
mov ecx, 0xc7919697
cmp rdx, qword [rsp + 0x20]
cmovb eax, ecx
mov dword [rsp + 4], eax
jmp 0x140016d05
mov rax, qword [rsp + 0x18]
mov rcx, qword [rsp + 8]
movzx eax, byte [rax + rcx]
mov edx, eax
mov r8, qword [rsp + 0x10]
mov rax, r8
xor rax, 0xffffffffffffffff
movabs rcx, 0x90a217728f9d98d
and rax, rcx
mov r9, 0xffffffffffffffff
movabs rcx, 0x90a217728f9d98d
xor r9, rcx
and r8, r9
mov rcx, rdx
xor rcx, 0xffffffffffffffff
movabs r10, 0x90a217728f9d98d
and rcx, r10
and rdx, r9
or rax, r8
or rcx, rdx
xor rax, rcx
mov qword [rsp + 0x10], rax
movabs rax, 0x100000001b3
imul rax, qword [rsp + 0x10]
mov qword [rsp + 0x10], rax
mov dword [rsp + 4], 0x7a85d089
jmp 0x140016d05
mov ecx, dword [0x14009fb60]
mov eax, dword [0x14009fb64]
mov edx, ecx
add edx, 0xa6c57879
sub edx, 1
sub edx, 0xa6c57879
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete r11b
cmp eax, 0xa
setl r10b
mov al, r11b
xor al, 0xff
mov r8b, r10b
xor r8b, 0xff
mov cl, 1
xor cl, 0
mov dl, al
and dl, 0
and r11b, cl
mov r9b, r8b
and r9b, 0
and r10b, cl
or dl, r11b
or r9b, r10b
xor dl, r9b
or al, r8b
xor al, 0xff
or cl, 0
and al, cl
or dl, al
mov eax, 0xe6250640
mov ecx, 0xec7a97ce
test dl, 1
cmovne eax, ecx
mov dword [rsp + 4], eax
jmp 0x140016d05
mov rax, qword [rsp + 8]
xor ecx, ecx
sub rcx, 1
sub rax, rcx
mov qword [rsp + 8], rax
mov eax, dword [0x14009fb60]
mov ecx, dword [0x14009fb64]
mov edx, eax
add edx, 0x785be0fb
sub edx, 1
sub edx, 0x785be0fb
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xe6250640
mov ecx, 0xb763b197
test dl, 1
cmovne eax, ecx
mov dword [rsp + 4], eax
jmp 0x140016d05
mov dword [rsp + 4], 0x911dfa26
jmp 0x140016d05
mov rax, qword [rsp + 0x10]
add rsp, 0x28
ret
mov rax, qword [rsp + 8]
movabs rcx, 0x72bd163fe9ce1059
sub rax, rcx
add rax, 1
movabs rcx, 0x72bd163fe9ce1059
add rax, rcx
mov qword [rsp + 8], rax
mov dword [rsp + 4], 0xec7a97ce
jmp 0x140016aa4

Function at 0x14002e740
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x34], edx
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x20], rcx
mov edx, dword [rsp + 0x34]
mov r8d, 0xffffffff
mov r9d, 0x6c078965
call fcn.140040110
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret