joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f57c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000f5fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000f5f1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14000f5f1
mov rax, qword [rbp - 8]
jmp 0x14000f60f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14000f5c4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14001d5c9
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x14001d714
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.14001cbed
cmp eax, 1
jne 0x14001d707
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x15], 0
mov qword [rbp - 0xd], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x14001d6bd
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x14001d6d3
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x14001d6b9
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x14001d6f2
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x14001d715
nop
add rsp, 0x90
pop rbp
ret
Function at 0x14001e927
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [0x14001e74a]
mov rdx, rax
lea rax, [0x14010cc70]
mov rcx, rax
call fcn.14001dd42
mov eax, dword [0x1400d31e0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14001e97a
mov rax, qword [rbp - 0x10]
jmp 0x14001eada
call fcn.14001d4a5
mov qword [rbp - 0x10], rax
mov rax, qword [0x140110048]
test rax, rax
je 0x14001e996
cmp qword [rbp - 0x10], 0
jne 0x14001e9a0
mov eax, 0
jmp 0x14001eada
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call fcn.14001d5c9
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x14001ea7b
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x1400d31e0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x14001ead6
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14001ebd7
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call fcn.14001e927
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call fcn.14001e778
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x14001ec44
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_longjmp]
call rax
mov eax, dword [0x1400d31e0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14001ed88
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14001ece1
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14001ec9c
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14001d37e
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400d31e0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14001ed88
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14001ed1b
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x14001ed88
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14001d37e
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400d31e0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
call rax
nop
Function at 0x140020e70
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
lea rax, [0x1400d3200]
mov rcx, rax
call fcn.14001cbfc
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov eax, dword [rax]
cmp eax, 0xbab1f0ed
jne 0x140020eac
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov eax, dword [rax + 4]
test eax, eax
jg 0x140020eec
mov ecx, 2
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov rcx, rax
mov dword [rsp + 0x20], 0x28
lea r9, str..._.._.._mingw_w64_libraries_winpthreads_src_rwlock.c
lea r8, str.___rwlock_t__rwl___valid__LIFE_RWLOCK______rwlock_t__rwl___busy___0_
lea rax, str.Assertion_failed:___s___file__s__line__d_n
mov rdx, rax
call fcn.14001a0f0
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov edx, dword [rax + 4]
sub edx, 1
mov dword [rax + 4], edx
lea rax, [0x1400d3200]
mov rcx, rax
call fcn.14001cc7b
mov eax, dword [rbp + 0x18]
add rsp, 0x30
pop rbp
ret
Function at 0x140088230
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140088278
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14008824a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14009ad30
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x14009ad58
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
test eax, eax
jle 0x14009ada0
cdqe
add rsi, rax
sub rbx, rax
jne 0x14009ad70
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x14009adac
call rbp
cmp dword [rax], 4
je 0x14009ad70
lea rcx, str.random_device_could_not_be_read
call fcn.1400d0f30
nop
nop
nop
nop
nop
nop
nop
nop
mov rax, qword [0x1400dd1d0]
add rax, 0x10
mov qword [rcx], rax
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov eax, dword [rax - 8]
test eax, eax
mov rax, qword [rcx + 8]
jg 0x14009adf0
mov dword [rax - 8], 1
ret
lock add dword [rax - 8], 1
ret

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

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x9c0], 0x26f
mov r9, rcx
jbe 0x1400a6f89
call fcn.1400a6ea0
mov rax, qword [r9 + 0x9c0]
lea rdx, [rax + 1]
mov eax, dword [r9 + rax*4]
mov qword [r9 + 0x9c0], rdx
mov edx, eax
shr edx, 0xb
xor edx, eax
mov eax, edx
shl eax, 7
and eax, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 0x28
ret

Function at 0x1400c6ad0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rdx
mov rax, rcx
mov r10, rdx
and r11, 0xfffffffffffffff8
add r11, rcx
movabs rcx, 0xc6a4a7935bd1e995
imul r10, rcx
xor r10, r8
cmp rax, r11
je 0x1400c6b28
nop word cs:[rax + rax]
mov r9, qword [rax]
add rax, 8
imul r9, rcx
mov r8, r9
shr r8, 0x2f
xor r8, r9
imul r8, rcx
xor r8, r10
mov r10, r8
imul r10, rcx
cmp r11, rax
jne 0x1400c6b00
and edx, 7
je 0x1400c6b5d
sub edx, 1
movsxd rax, edx
xor edx, edx
nop dword [rax]
movzx ecx, byte [r11 + rax]
shl rdx, 8
sub rax, 1
add rdx, rcx
test eax, eax
jns 0x1400c6b38
xor rdx, r10
movabs r10, 0xc6a4a7935bd1e995
imul r10, rdx
movabs rax, 0xc6a4a7935bd1e995
mov rdx, r10
shr rdx, 0x2f
xor rdx, r10
imul rdx, rax
mov rax, rdx
shr rax, 0x2f
xor rax, rdx
ret
Function at 0x1400cf9e0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbx, rcx
call fcn.1400ce5f0
mov rax, qword [rbx - 0x10]
mov rcx, qword [rbx - 0x40]
mov rbp, qword [rbx - 0x18]
movsxd rsi, dword [rbx - 0x24]
mov qword [rsp + 0x30], rax
mov rdi, qword [rbx - 0x38]
call fcn.140026620
mov rcx, rax
jmp 0x1400cf8d0
call fcn.1400ce5f0
call fcn.1400ce840
mov rbx, qword [rax]
test byte [rbx + 0x50], 1
je 0x1400cf957
mov rbx, qword [rbx]
lea r12, [rsp + 0x20]
mov rdx, rbp
xor ecx, ecx
mov r8, r12
call fcn.1400261f0
mov rdx, qword [rbx - 0x90]
mov r9, rsi
mov r8, rbx
mov rcx, r12
call fcn.1400262e0
test al, al
jne 0x1400cf975
lea rbx, [0x1400dffc0]
mov r9, rsi
xor r8d, r8d
mov rcx, r12
mov rdx, rbx
call fcn.1400262e0
test al, al
je 0x1400cf97a
mov ecx, 8
call fcn.1400ce580
lea r8, [0x14008e450]
mov rdx, rbx
mov rcx, rax
mov rax, qword [0x1400dd180]
add rax, 0x10
mov qword [rcx], rax
call fcn.1400ceb00
add rbx, 0x90
jmp 0x1400cf8e6
call fcn.1400ceab0
mov rcx, rdi
call fcn.140026600
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov rcx, rax
call fcn.1400ce5f0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, 8
call fcn.1400ce580
lea r8, [fcn.1400c5560]
lea rdx, [0x1400e0c30]
mov rcx, rax
mov rax, qword [0x1400dd450]
add rax, 0x10
mov qword [rcx], rax
call fcn.1400ceb00
nop
nop
nop
mov rcx, rax
mov rax, rdx
sub rax, 1
jne 0x1400cfa5c
call fcn.1400ce5f0
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
call fcn.1400ce720
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov rcx, rdi
call fcn.14001a650
call fcn.1400ceab0
call fcn.1400ce5f0
call fcn.1400ce720
jmp 0x1400cfa4a
Function at 0x14006c560
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14006c56d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14006c57d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14006c565
lea eax, [rcx + 1]
jmp 0x14006c58b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14006c59e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14006c584
sub eax, 3
jb 0x14006c5be
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14006c60d
sar eax, 1
movsxd rbp, eax
jb 0x14006c5f4
jmp 0x14006c5cc
add ebx, ebx
jne 0x14006c5ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14006c5f4
inc ecx
add ebx, ebx
jne 0x14006c5da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14006c5f4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14006c5ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14006c5dc
add ecx, 2
jmp 0x14006c5f9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14006c522
jmp 0x14006c56d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x33000
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14006c659
cmp rsi, rcx
jae 0x14006c661
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14006c640
cmp al, 0x8f
ja 0x14006c640
cmp byte [rsi - 2], 0xf
je 0x14006c646
sub al, 0xe8
cmp al, 1
ja 0x14006c62a
cmp rsi, rcx
jae 0x14006c661
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14006c630
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14006c661
lodsb al, byte [rsi]
jmp 0x14006c640
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x6a000]
mov eax, dword [rdi]
or eax, eax
je 0x14006c6be
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x6d2f4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14006c66e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14006c6b8
mov qword [rbx], rax
add rbx, 8
jmp 0x14006c68e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14006c6f8
cmp al, 0xef
ja 0x14006c6ea
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14006c6ca
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14006c6d9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x247]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14006c74c
sub rsp, 0xffffffffffffff80
jmp 0x140020130
Function at 0x1400013fc
Capabilities:
Encode data using xor

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, 0x30
movdqa xmm0, xmmword [0x140014490]
or rbx, 0xffffffffffffffff
movdqu xmmword [rax - 0x18], xmm0
xor edi, edi
mov rbp, rdx
mov r14, rcx
inc rbx
cmp byte [rbx + rdx], dil
jne 0x14000142e
inc rbx
mov rcx, rbx
call fcn.140003a94
mov rsi, rax
test rbx, rbx
je 0x14000146b
sub rbp, rax
mov rcx, rdi
lea rdx, [rdi + rsi]
and ecx, 0xf
mov al, byte [rsp + rcx + 0x20]
xor al, byte [rdx + rbp]
xor al, dil
inc rdi
mov byte [rdx], al
cmp rdi, rbx
jb 0x14000144d
mov rdx, rsi
mov rcx, r14
call qword [0x140017c40]
mov rcx, rsi
mov rbx, rax
call fcn.140003a08
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1400014a0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
movdqa xmm0, xmmword [0x140014480]
lea rbp, [0x1400143e0]
or rbx, 0xffffffffffffffff
movdqu xmmword [rax - 0x18], xmm0
xor edi, edi
inc rbx
cmp byte [rbx + rbp], dil
jne 0x1400014ce
inc rbx
mov rcx, rbx
call fcn.140003a94
mov rsi, rax
mov r8, rdi
test rbx, rbx
je 0x14000150e
sub rbp, rax
mov rax, r8
lea rdx, [r8 + rsi]
and eax, 0xf
mov cl, byte [rsp + rax + 0x20]
xor cl, byte [rdx + rbp]
xor cl, r8b
inc r8
mov byte [rdx], cl
cmp r8, rbx
jb 0x1400014f0
mov rcx, rsi
call qword [0x140017c48]
mov rcx, rsi
mov qword [0x140017bf8], rax
call fcn.140003a08
cmp qword [0x140017bf8], rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
setne dil
mov rsi, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x140001548
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rax, qword gs:[0x60]
mov r14d, 0x65
mov dword [rbp - 0x20], 0x65006b
xor ebx, ebx
mov dword [rbp - 0x1c], 0x6e0072
mov dword [rbp - 0x18], 0x6c0065
mov dword [rbp - 0x14], 0x320033
lea r15d, [r14 + 0xd]
mov dword [rbp - 0x10], 0x64002e
lea esi, [r14 - 1]
mov dword [rbp - 0xc], 0x6c006c
mov word [rbp - 8], bx
mov rax, qword [rax + 0x18]
mov rdi, qword [rax + 0x10]
jmp 0x1400015cc
mov rcx, qword [rdi + 0x60]
lea rdx, [rbp - 0x20]
call fcn.140003b2c
test eax, eax
je 0x140001651
mov rdi, qword [rdi]
cmp qword [rdi + 0x30], rbx
jne 0x1400015b4
mov rcx, qword [0x140017c00]
movsxd rax, dword [rcx + 0x3c]
mov r9d, ebx
mov rdx, rbx
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov r10d, dword [r8 + 0x20]
movsxd r11, dword [r8 + 0x18]
add r10, rcx
test r11, r11
jle 0x140001685
mov eax, dword [r10 + rdx*4]
add rax, rcx
cmp byte [rax], 0x47
jne 0x140001644
cmp byte [rax + 1], r14b
jne 0x140001644
cmp byte [rax + 2], 0x74
jne 0x140001644
cmp byte [rax + 3], 0x50
jne 0x140001644
cmp byte [rax + 4], r15b
jne 0x140001644
cmp byte [rax + 5], 0x6f
jne 0x140001644
cmp byte [rax + 6], 0x63
jne 0x140001644
cmp byte [rax + 7], 0x41
jne 0x140001644
cmp byte [rax + 8], sil
jne 0x140001644
cmp byte [rax + 9], sil
je 0x140001661
inc r9d
inc rdx
cmp rdx, r11
jge 0x140001685
jmp 0x140001602
mov rcx, qword [rdi + 0x30]
mov qword [0x140017c00], rcx
jmp 0x1400015d9
mov eax, dword [r8 + 0x24]
mov r8d, dword [r8 + 0x1c]
add rax, rcx
movsxd rdx, r9d
add r8, rcx
movzx r9d, word [rax + rdx*2]
mov edx, dword [r8 + r9*4]
add rdx, rcx
mov qword [0x140017c40], rdx
lea rdx, [0x140014430]
call fcn.1400013fc
mov rsi, qword [rsp + 0x68]
test rax, rax
mov rdi, qword [rsp + 0x70]
setne bl
mov qword [0x140017c48], rax
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
Function at 0x140004d78
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 0x140004c03
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004c03
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004c03
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004c03
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004c03
cmp dword [rcx + 0x84], 0xe
jbe 0x140004c03
cmp dword [rcx + 0xf8], 0
je 0x140004c03
mov ecx, ebx
call fcn.140004ca4
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.140004a80
cmp dword [rbp + 0x20], 0
je 0x140004c50
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140004c58
int3
xor r8d, r8d
xor edx, edx
jmp 0x140004b9c