joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400766fc
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1400aa180]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x1400b1280]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1400b1130], ecx
jg 0x1400767de
mov eax, ebx
cmp rbx, rax
jne 0x1400767a0
xor ecx, ecx
test rbx, rbx
setne cl
xor eax, eax
test ebx, ebx
setne al
cmp ecx, eax
jne 0x1400767a0
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, qword [0x1400b1128]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x140076821
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14007e7b0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x20]
call fcn.140025c90
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14007642c
lea rdx, [0x1400a6518]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [0x1400b1130]
call fcn.14007e878
cmp dword [0x1400b1130], 0xffffffff
jne 0x140076748
lea rcx, [0x1400b1128]
call fcn.140076340
lea rcx, [0x14008267c]
call fcn.14007eb54
nop
lea rcx, [0x1400b1130]
call fcn.14007e80c
jmp 0x140076748
mov ecx, eax
call fcn.140076864
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x14008aa08]
lea rcx, [rsp + 0x20]
call fcn.140025c90
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14007642c
lea rdx, [0x1400a6518]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140077c68
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
cmp r8, 8
jb 0x140077cdb
mov rbp, r8
shr rbp, 3
imul rax, rbp, 0xfffffffffffffff8
add rdi, rax
mov r8d, 8
lea rcx, [rsp + 0x58]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 8
lea rcx, [rsp + 0x50]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x50]
add rsi, 8
xor rax, qword [rsp + 0x58]
add rbx, 8
or r14, rax
sub rbp, 1
jne 0x140077c9a
mov rcx, r14
shr rcx, 0x20
or ecx, r14d
mov edx, ecx
mov eax, ecx
shr edx, 8
or edx, ecx
shr eax, 0x10
and edx, 0xff00
or edx, eax
movzx eax, cl
shr edx, 8
or edx, eax
test rdi, rdi
je 0x140077d1d
sub rsi, rbx
movzx ecx, byte [rsi + rbx]
movzx eax, byte [rbx]
inc rbx
xor ecx, eax
or edx, ecx
sub rdi, 1
jne 0x140077d09
mov rbx, qword [rsp + 0x40]
test edx, edx
mov rbp, qword [rsp + 0x48]
sete al
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140077d38
Capabilities:
Encode data using xor

Disassembly:
test r9, r9
je 0x140077dfe
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, r9
mov r15d, 4
mov rdi, r8
mov rsi, rdx
mov r14, rcx
cmp rbx, r15
jb 0x140077dc9
mov rbp, rbx
shr rbp, 2
imul rax, rbp, 0xfffffffffffffffc
add rbx, rax
mov r8, r15
lea rcx, [rsp + 0x20]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r15
lea rcx, [rsp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x68]
lea rdx, [rsp + 0x24]
xor eax, dword [rsp + 0x20]
mov r8, r15
mov rcx, r14
mov dword [rsp + 0x24], eax
call sub.VCRUNTIME140.dll_memcpy
add r14, r15
add rsi, r15
add rdi, r15
sub rbp, 1
jne 0x140077d7e
test rbx, rbx
je 0x140077de6
sub rsi, rdi
sub r14, rdi
mov al, byte [rsi + rdi]
xor al, byte [rdi]
mov byte [r14 + rdi], al
inc rdi
sub rbx, 1
jne 0x140077dd4
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x140077e00
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140077ead
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbx, r8
mov r14d, 4
mov rsi, rdx
mov rdi, rcx
cmp rbx, r14
jb 0x140077e85
mov rbp, rbx
shr rbp, 2
imul rax, rbp, 0xfffffffffffffffc
add rbx, rax
mov r8, r14
lea rcx, [rsp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r14
lea rcx, [rsp + 0x60]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x60]
lea rdx, [rsp + 0x20]
xor eax, dword [rsp + 0x68]
mov r8, r14
mov rcx, rdi
mov dword [rsp + 0x20], eax
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
add rsi, r14
sub rbp, 1
jne 0x140077e3d
test rbx, rbx
je 0x140077e9b
sub rsi, rdi
mov al, byte [rsi + rdi]
xor byte [rdi], al
inc rdi
sub rbx, 1
jne 0x140077e8d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14007ddec
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movdqu xmm1, xmmword [rcx]
mov r9d, 4
shl edx, 2
mov r8, rcx
movdqu xmm0, xmmword [rcx + rdx*4]
movdqu xmmword [rcx], xmm0
movdqu xmmword [rcx + rdx*4], xmm1
add edx, 0xfffffffc
cmp edx, r9d
jbe 0x14007de3b
aesimc xmm0, xmmword [r8 + rdx*4]
mov ecx, r9d
add r9d, 4
aesimc xmm1, xmmword [r8 + rcx*4]
movdqu xmmword [r8 + rcx*4], xmm0
movdqu xmmword [r8 + rdx*4], xmm1
add edx, 0xfffffffc
cmp r9d, edx
jb 0x14007de12
mov eax, r9d
aesimc xmm0, xmmword [r8 + rax*4]
movdqu xmmword [r8 + rax*4], xmm0
ret

Function at 0x14007e3c0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14007e3fa
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14007e3ff
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14007e448
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14008c2a0]
cmp byte [rcx + rax], 0
je 0x14007e448
dec r8
sub rdx, 1
jne 0x14007e42e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14007f58c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007f5d6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007f5d6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007f5d6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007f5d6
cmp dword [rcx + 0x84], 0xe
jbe 0x14007f5d6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14007f5d8
xor al, al
add rsp, 0x28
ret
Function at 0x140001240
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov r8d, 0x100
lea rdx, [0x14003ed90]
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
cmp eax, 0x100
jb 0x1400012a3
lea ecx, [rax + 1]
mov qword [rsp + 0x30], rdi
add rcx, rcx
call fcn.140007dc4
mov rdi, rax
test rax, rax
je 0x1400012c6
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rax, rdi
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
test ebx, ebx
jne 0x1400012b4
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov rbx, qword [rsp + 0x38]
lea rax, [0x14003ed90]
add rsp, 0x20
pop rsi
ret
lea rdx, str.Could_not_allocate_environment_buffer
mov ecx, 0x68
call fcn.140001180
int3
Function at 0x140004174
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 0x140004007
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004007
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004007
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004007
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004007
cmp dword [rcx + 0x84], 0xe
jbe 0x140004007
cmp dword [rcx + 0xf8], 0
je 0x140004007
mov ecx, ebx
call fcn.1400040a8
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.140003e98
cmp dword [rbp + 0x20], 0
je 0x140004054
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000405c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140003fa0
Function at 0x6e681730
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x6e68174f
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sub.msvcrt.dll_fflush

Function at 0x6e681770
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.6e69d660]
mov r8d, 0x3f
mov edx, 1
lea rcx, str._GC__cannot_register_global_variable__too_many_global_variables
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop
lea rax, [0x6e69f040]
test rcx, rcx
je 0x6e6817c8
cmp qword [rcx], 0
lea rdx, [rcx + 0x10]
cmovne rax, rdx
mov rcx, rax
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryA]
Function at 0x6e683670
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.6e69d660]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop
sub rsp, 0x28
mov rdx, qword [str.PXn]
mov rax, qword [rdx]
cmp rax, 0xdab
jg 0x6e6836dd
mov r8, qword [0x6e7ab1a0]
mov qword [r8 + rax*8], rcx
add rax, 1
mov qword [rdx], rax
add rsp, 0x28
ret
call fcn.6e683670
nop
nop dword [rax]
nop word cs:[rax + rax]
sub rsp, 0x28
mov rdx, qword [str.PXn]
mov rax, qword [rdx]
cmp rax, 0xdab
jg 0x6e6837b8
mov r8, qword [0x6e7ab1a0]
lea rcx, [0x6e68c830]
mov qword [r8 + rax*8], rcx
lea rcx, [rax + 1]
cmp rcx, 0xdac
mov qword [rdx], rcx
je 0x6e6837b8
lea r9, [0x6e68c810]
add rax, 2
mov qword [rdx], rax
mov rax, qword [str._Yn]
lea rdx, [0x6e6813b0]
mov qword [r8 + rcx*8], r9
lea rcx, [0x6e681430]
movq xmm1, rdx
lea rdx, [0x6e6813c0]
movq xmm0, rcx
lea rcx, [0x6e689ff0]
punpcklqdq xmm0, xmm1
movq xmm2, rdx
movups xmmword [rax], xmm0
lea rdx, [0x6e6813d0]
movq xmm0, rcx
lea rcx, [0x6e681410]
punpcklqdq xmm0, xmm2
movq xmm3, rdx
movups xmmword [rax + 0x10], xmm0
lea rdx, [0x6e693090]
movq xmm0, rcx
punpcklqdq xmm0, xmm3
mov qword [rax + 0x30], rdx
movups xmmword [rax + 0x20], xmm0
add rsp, 0x28
ret
call fcn.6e683670
nop
nop
sub rsp, 0x28
mov rdx, qword [str.PXn]
mov rax, qword [rdx]
cmp rax, 0xdab
jg 0x6e6837f4
mov rcx, qword [0x6e7ab1a0]
lea r8, [0x6e68c860]
mov qword [rcx + rax*8], r8
add rax, 1
mov qword [rdx], rax
add rsp, 0x28
ret
call fcn.6e683670
nop
nop word [rax + rax]
sub rsp, 0x28
mov rdx, qword [str.PXn]
mov rax, qword [rdx]
cmp rax, 0xdab
jg 0x6e683834
mov rcx, qword [0x6e7ab1a0]
lea r8, [0x6e68c870]
mov qword [rcx + rax*8], r8
add rax, 1
mov qword [rdx], rax
add rsp, 0x28
ret
call fcn.6e683670
nop
nop word [rax + rax]
sub rsp, 0x28
mov rdx, qword [str.PXn]
mov rax, qword [rdx]
cmp rax, 0xdab
jg 0x6e68388f
mov r8, qword [0x6e7ab1a0]
lea rcx, [0x6e68c8d0]
mov qword [r8 + rax*8], rcx
lea rcx, [rax + 1]
cmp rcx, 0xdac
mov qword [rdx], rcx
je 0x6e68388f
lea r9, [0x6e68c8c0]
add rax, 2
mov qword [r8 + rcx*8], r9
mov qword [rdx], rax
add rsp, 0x28
ret
call fcn.6e683670
nop
nop
nop word cs:[rax + rax]

Function at 0x6e684060
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call fcn.6e683fe0
test rax, rax
je 0x6e6840c7
mov r9, qword [rax]
test r9, r9
jle 0x6e6840c7
mov r8, rax
add r9, rbx
sub r8, rbx
nop dword [rax]
nop word cs:[rax + rax]
mov rcx, rbx
mov rdx, rbx
sar rcx, 8
sar rdx, 0x10
xor ecx, ebx
and edx, 0xffffffee
and ecx, 0xffffffee
xor cl, byte [r8 + rbx + 0x10]
xor ecx, edx
mov rdx, rbx
sar rdx, 0x18
and edx, 0xffffffee
xor ecx, edx
mov byte [r8 + rbx + 0x10], cl
add rbx, 1
cmp rbx, r9
jne 0x6e684090
add rsp, 0x20
pop rbx
ret
Function at 0x6e6840d0
Capabilities:
Parse credit card information

Disassembly:
cmp cx, 0x16
je 0x6e684370
jbe 0x6e684130
cmp cx, 0x25
je 0x6e684560
jbe 0x6e684270
cmp cx, 0x44
je 0x6e684550
ja 0x6e684240
cmp cx, 0x41
je 0x6e684540
jbe 0x6e684180
cmp cx, 0x42
je 0x6e684530
cmp cx, 0x43
jne 0x6e684520
lea rcx, [0x6e6a00e0]
jmp fcn.6e683fe0
cmp cx, 0xa
je 0x6e684510
ja 0x6e684200
cmp cx, 4
je 0x6e684500
jbe 0x6e6841c0
cmp cx, 7
je 0x6e6844f0
jbe 0x6e6841a0
cmp cx, 8
je 0x6e6844e0
cmp cx, 9
jne 0x6e684520
lea rcx, [0x6e6a0460]
jmp fcn.6e683fe0
cmp cx, 0x26
je 0x6e6844d0
cmp cx, 0x40
jne 0x6e684520
lea rcx, [0x6e6a0140]
jmp fcn.6e683fe0
cmp cx, 5
je 0x6e6844c0
cmp cx, 6
jne 0x6e684520
lea rcx, [0x6e6a04c0]
jmp fcn.6e683fe0
cmp cx, 1
je 0x6e6844b0
test cx, cx
je 0x6e6844a0
cmp cx, 2
je 0x6e684490
cmp cx, 3
jne 0x6e684520
lea rcx, [0x6e6a0520]
jmp fcn.6e683fe0
cmp cx, 0x10
je 0x6e684480
jbe 0x6e684340
cmp cx, 0x13
je 0x6e684470
jbe 0x6e684320
cmp cx, 0x14
je 0x6e684460
cmp cx, 0x15
jne 0x6e684520
lea rcx, [0x6e6a0300]
jmp fcn.6e683fe0
cmp cx, 0x47
je 0x6e684450
jbe 0x6e6842b0
cmp cx, 0x48
je 0x6e684440
cmp cx, 0xfff
jne 0x6e684520
lea rcx, [0x6e69ffe0]
jmp fcn.6e683fe0
cmp cx, 0x1b
je 0x6e684430
jbe 0x6e6842f0
cmp cx, 0x1e
je 0x6e684420
jbe 0x6e6842d0
cmp cx, 0x1f
je 0x6e684410
cmp cx, 0x24
jne 0x6e684520
lea rcx, [0x6e6a01a0]
jmp fcn.6e683fe0
cmp cx, 0x45
je 0x6e684400
cmp cx, 0x46
jne 0x6e684520
lea rcx, [0x6e6a0040]
jmp fcn.6e683fe0
cmp cx, 0x1c
je 0x6e6843f0
cmp cx, 0x1d
jne 0x6e684520
lea rcx, [0x6e6a0200]
jmp fcn.6e683fe0
cmp cx, 0x18
je 0x6e6843e0
jb 0x6e6843d0
cmp cx, 0x19
je 0x6e6843c0
cmp cx, 0x1a
jne 0x6e684520
lea rcx, [0x6e6a0260]
jmp fcn.6e683fe0
cmp cx, 0x11
je 0x6e6843b0
cmp cx, 0x12
jne 0x6e684520
lea rcx, [0x6e6a0360]
jmp fcn.6e683fe0
cmp cx, 0xc
je 0x6e6843a0
jb 0x6e684390
cmp cx, 0xd
je 0x6e684380
cmp cx, 0xe
jne 0x6e684520
lea rcx, [0x6e6a03c0]
jmp fcn.6e683fe0
lea rcx, [0x6e6a02e0]
jmp fcn.6e683fe0
lea rcx, [0x6e6a03e0]
jmp fcn.6e683fe0
lea rcx, [0x6e6a0420]
jmp fcn.6e683fe0
lea rcx, [0x6e6a0400]
jmp fcn.6e683fe0
lea rcx, [0x6e6a0380]
jmp fcn.6e683fe0
lea rcx, [0x6e6a0280]
jmp fcn.6e683fe0
lea rcx, [0x6e6a02c0]
jmp fcn.6e683fe0
lea rcx, [0x6e6a02a0]
jmp fcn.6e683fe0
lea rcx, [0x6e6a0220]
jmp fcn.6e683fe0
lea rcx, [0x6e6a0060]
jmp fcn.6e683fe0
lea rcx, [0x6e6a01c0]
jmp fcn.6e683fe0
lea rcx, [0x6e6a01e0]
jmp fcn.6e683fe0
lea rcx, [0x6e6a0240]
jmp fcn.6e683fe0
lea rcx, [0x6e6a0000]
jmp fcn.6e683fe0
lea rcx, [0x6e6a0020]
jmp fcn.6e683fe0
lea rcx, [0x6e6a0320]
jmp fcn.6e683fe0
lea rcx, [0x6e6a0340]
jmp fcn.6e683fe0
lea rcx, [0x6e6a03a0]
jmp fcn.6e683fe0
lea rcx, [0x6e6a0540]
jmp fcn.6e683fe0
lea rcx, [0x6e6a0580]
jmp fcn.6e683fe0
lea rcx, [0x6e6a0560]
jmp fcn.6e683fe0
lea rcx, [0x6e6a04e0]
jmp fcn.6e683fe0
lea rcx, [0x6e6a0160]
jmp fcn.6e683fe0
lea rcx, [0x6e6a0480]
jmp fcn.6e683fe0
lea rcx, [0x6e6a04a0]
jmp fcn.6e683fe0
lea rcx, [0x6e6a0500]
jmp fcn.6e683fe0
lea rcx, [0x6e6a0440]
jmp fcn.6e683fe0
lea rcx, [0x6e6a0660]
jmp fcn.6e683fe0
lea rcx, [0x6e6a0100]
jmp fcn.6e683fe0
lea rcx, [0x6e6a0120]
jmp fcn.6e683fe0
lea rcx, [0x6e6a00a0]
jmp fcn.6e683fe0
lea rcx, [0x6e6a0180]
jmp fcn.6e683fe0
Function at 0x6e68f8e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rcx, qword [0x6e7b3c78]
test rcx, rcx
je 0x6e68f8fd
add rsp, 0x38
pop rbx
pop rsi
jmp 0x6e68eb60
lea rcx, [0x6e7b3dd0]
call fcn.6e695190
lea rcx, [0x6e69fc60]
mov rbx, rax
mov rsi, qword [rbx + 0x18]
lea rax, [0x6e7b41f0]
mov qword [rbx], rax
lea rax, str.ReraiseDefect
mov qword [rbx + 0x10], rax
call fcn.6e68d3e0
test rsi, rsi
mov qword [rbx + 0x18], rax
je 0x6e68f960
mov rax, qword [rsi - 0x10]
lea rdx, [rsi - 0x10]
sub rax, 8
cmp rax, 7
mov qword [rsi - 0x10], rax
ja 0x6e68f960
mov rcx, qword [0x6e7ab130]
add rcx, 0x18
call fcn.6e68be30
mov qword [rsp + 0x20], 0x35
lea r9, str.fatal.nim
mov rcx, rbx
lea r8, str.sysFatal
lea rdx, str.ReraiseDefect
call fcn.6e68ec80
nop
nop word [rax + rax]

Function at 0x6e68f990
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
mov rbp, rsp
sub rsp, 0x150
cmp qword [0x6e7b3fd0], 0
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov byte [rbp - 0x111], 1
je 0x6e68fa86
mov rax, qword [0x6e7ab120]
lea rcx, [rbp - 0x110]
mov rdx, qword [rax]
mov qword [rax], rcx
add rcx, 0x10
mov qword [rbp - 0x110], rdx
mov rdx, rbp
call sub.msvcrt.dll__setjmp
cdqe
test rax, rax
mov qword [rbp - 0x108], rax
jne 0x6e68faa0
xor ebx, ebx
cmp qword [rbp + 0x20], 0
je 0x6e68fa58
mov rcx, qword [rbp + 0x20]
call sub.msvcrt.dll_strlen
mov edx, 0x18
mov qword [rbp - 0x128], 7
cmp rax, 6
mov rsi, rax
jbe 0x6e68fa29
lea rdx, [rax + 0x11]
mov qword [rbp - 0x128], rax
mov rcx, qword [0x6e7ab190]
call fcn.6e694fb0
mov rdx, qword [rbp + 0x20]
movq xmm0, rsi
lea rcx, [rax + 0x10]
movhps xmm0, qword [rbp - 0x128]
mov rbx, rax
movups xmmword [rax], xmm0
lea r8, [rsi + 1]
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call qword [0x6e7b3fd0]
mov rax, qword [0x6e7ab120]
mov byte [rbp - 0x111], 0
cmp qword [rbp - 0x108], 0
mov rdx, qword [rax]
mov rdx, qword [rdx]
mov qword [rax], rdx
jne 0x6e68fb17
movzx eax, byte [rbp - 0x111]
test al, al
jne 0x6e68fb30
add rsp, 0x150
pop rbx
pop rsi
pop rbp
ret
mov rax, qword [0x6e7ab120]
mov rdx, qword [rax]
mov rdx, qword [rdx]
mov qword [rbp - 0x108], 0
mov qword [rax], rdx
mov rax, qword [0x6e7b3c78]
mov rbx, qword [rax + 0x28]
test rbx, rbx
je 0x6e68fadc
add qword [rbx - 0x10], 8
mov rax, qword [0x6e7b3c78]
test rax, rax
je 0x6e68fb02
mov rsi, qword [rax - 0x10]
lea rdx, [rax - 0x10]
lea rcx, [rsi - 8]
cmp rcx, 7
mov qword [rax - 0x10], rcx
ja 0x6e68fb02
mov rcx, qword [0x6e7ab130]
add rcx, 0x18
call fcn.6e68be30
cmp qword [rbp - 0x108], 0
mov qword [0x6e7b3c78], rbx
je 0x6e68fa86
call fcn.6e68f8e0
jmp 0x6e68fa86
mov ecx, 2
call qword [fcn.6e69d660]
mov rcx, qword [rbp + 0x20]
mov edx, 1
mov r8, qword [rbp + 0x28]
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
jmp 0x6e68fa95
Function at 0x6e6954a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [fcn.6e69d660]
mov rsi, qword [rcx]
mov ecx, 1
call rbx
mov rcx, rax
mov rdx, rsi
call fcn.6e6953a0
mov ecx, 1
call rbx
mov r8d, 1
mov edx, 1
lea rcx, [0x6e6a1504]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbx
mov rcx, rax
add rsp, 0x28
pop rbx
pop rsi
jmp sub.msvcrt.dll_fflush
Function at 0x6e69c4a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6e7b2bc4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6e69c628
mov rax, qword [0x6e7b2bc8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6e69c4ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6e69c575
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6e69c4d0
mov rcx, rbx
call fcn.6e69d140
test rax, rax
mov r12, rax
je 0x6e69c65d
mov rax, qword [0x6e7b2bc8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.6e69d270
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6e7b2bc8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6e69c640
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6e69c56e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6e69c5d0
add dword [0x6e7b2bc4], 1
cmp edi, 8
jae 0x6e69c5a3
test dil, 4
jne 0x6e69c614
test edi, edi
je 0x6e69c598
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6e69c62f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6e69c598
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6e69c5bc
jmp 0x6e69c598
add rsi, qword [0x6e7b2bc8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6e69c56e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.6e69d7c0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6e69c598
xor esi, esi
jmp 0x6e69c4f7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6e69c598
mov rax, qword [0x6e7b2bc8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.6e69d7c0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.6e69d7c0
nop
nop dword [rax]

Function at 0x6e69cdb0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6e7b2ea0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6e7b2e80]
test rbx, rbx
je 0x6e69ce04
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 0x6e69cdfb
test rsi, rsi
je 0x6e69cdfb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6e69cde0
lea rcx, [0x6e7b2ea0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6e69d140
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6e7ab080]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6e69d1ad
mov rcx, r8
call fcn.6e69d020
test eax, eax
je 0x6e69d1ad
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 0x6e69d1ad
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6e69d1a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6e69d1af
add rax, 0x28
cmp rax, r9
jne 0x6e69d190
xor eax, eax
add rsp, 0x28
ret

Function at 0x6e69d7c0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x6e6813a0]
jmp 0x6e681380
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 fcn.6e69d660
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.6e69d660
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x6e681390