joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140048170
Capabilities:
Write file on windows

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

Function at 0x1400481e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140638194]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140048370
mov rax, qword [0x140638198]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14004822c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x1400482b5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140048210
mov rcx, rdi
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x1400483c2
mov rax, qword [0x140638198]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140638198]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400483a5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400482ae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140048320
add dword [0x140638194], 1
cmp ebx, 8
jae 0x1400482e1
test bl, 4
jne 0x140048380
test ebx, ebx
je 0x1400482d6
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140048394
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x1400482d6
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x1400482fa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x140638198]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400482ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
xor esi, esi
jmp 0x140048237
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x1400482d6
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x1400482d6
mov rax, qword [0x140638198]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call sym.__report_error
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140048990
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140638200]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1406381e0]
test rbx, rbx
je 0x1400489e4
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 0x1400489db
test rsi, rsi
je 0x1400489db
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400489c0
lea rcx, [0x140638200]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140048c30
Capabilities:
Parse pe header

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

Function at 0x140048c50
Capabilities:
Enumerate pe sections

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

Function at 0x140048d40
Capabilities:
Enumerate pe sections

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

Function at 0x140048eb0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x140632aa0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x140048f1f
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140048f1f
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 0x140048f1d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140048f14
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140048f24
add rax, 0x28
cmp rax, r9
jne 0x140048f00
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140048f40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x140632aa0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140048fb3
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140048fb3
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140048fb3
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140048fb3
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov rcx, r9
jb 0x140048fa7
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140048fc0
add rdx, 0x28
cmp rdx, r10
jne 0x140048f93
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jne 0x140048fd8
jmp 0x140048fb0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x140048fe6
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140048fb0
test r8d, r8d
jg 0x140048fd0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x1be7c00
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x14a8
call fcn.01c17180
sub rsp, rax
movaps xmmword [rsp + 0x1490], xmm15
movaps xmmword [rsp + 0x1480], xmm14
movaps xmmword [rsp + 0x1470], xmm13
movaps xmmword [rsp + 0x1460], xmm12
movaps xmmword [rsp + 0x1450], xmm11
movaps xmmword [rsp + 0x1440], xmm10
movaps xmmword [rsp + 0x1430], xmm9
movdqa xmmword [rsp + 0x1420], xmm8
movaps xmmword [rsp + 0x1410], xmm7
movaps xmmword [rsp + 0x1400], xmm6
movdqa xmm9, xmmword [0x01c1f5e0]
xor eax, eax
movdqa xmm12, xmmword [0x01c1f5f0]
pxor xmm2, xmm2
movdqa xmm4, xmmword [0x01c1f610]
movdqa xmm6, xmmword [0x01c1f630]
movdqa xmm13, xmmword [0x01c1f670]
movdqa xmm14, xmmword [0x01c1f680]
movdqa xmm15, xmmword [0x01c1f690]
movdqa xmm7, xmmword [0x01c1f6a0]
movdqa xmm10, xmmword [0x01c1f6b0]
movdqa xmm11, xmmword [0x01c1f6c0]
nop dword [rax + rax]
Function at 0x1bfa860
Capabilities:
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
jmp 0x1bfaab8
mov edi, edx
jmp 0x1bfab91
je 0x1bfaabe
jne 0x1bfaabe
je 0x55150218
push rsi
push rdi
push rbp
push rbx
jmp 0x1bfabba
sub rsp, 0xa8
jmp 0x1bfa9b8

Function at 0x1c08c50
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, dword [rdx]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x1c], eax
lea rax, [rdx + 0x10]
cmp r8d, 0x100
cmovne rax, rdx
lea r8, str.expand_32_byte_kexpand_16_byte_k
lea r9, [0x01c1fbe0]
cmove r9, r8
mov edx, dword [rax]
mov dword [rcx + 0x20], edx
mov edx, dword [rax + 4]
mov dword [rcx + 0x24], edx
mov edx, dword [rax + 8]
mov dword [rcx + 0x28], edx
mov eax, dword [rax + 0xc]
mov dword [rcx + 0x2c], eax
mov dword [rcx], 0x61707865
mov rax, qword [r9 + 4]
mov qword [rcx + 4], rax
mov eax, dword [r9 + 0xc]
mov dword [rcx + 0xc], eax
ret

Function at 0x1c08d90
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov qword [rsp + 0x50], rcx
mov eax, dword [rdx]
mov dword [rsp + 0xc], eax
mov eax, dword [rdx + 4]
mov dword [rsp + 0x10], eax
mov eax, dword [rdx + 8]
mov dword [rsp + 0x14], eax
mov r12d, dword [rdx + 0xc]
mov r13d, dword [rdx + 0x10]
mov r14d, dword [rdx + 0x14]
mov r15d, dword [rdx + 0x18]
mov r10d, dword [rdx + 0x1c]
mov edi, dword [rdx + 0x20]
mov r11d, dword [rdx + 0x24]
mov ebx, dword [rdx + 0x28]
mov ebp, dword [rdx + 0x2c]
mov ecx, dword [rdx + 0x30]
mov eax, dword [rdx + 0x34]
mov r9d, dword [rdx + 0x38]
mov r8d, dword [rdx + 0x3c]
mov dword [rsp + 0x4c], 0xfffffff8
mov dword [rsp + 0x48], r8d
mov dword [rsp + 0x44], r9d
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x3c], ecx
mov edx, ecx
mov dword [rsp + 0x38], ebp
mov dword [rsp + 8], ebp
mov dword [rsp + 0x34], ebx
mov dword [rsp], ebx
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x2c], edi
mov ebp, edi
mov dword [rsp + 0x28], r10d
mov edi, r10d
mov dword [rsp + 0x24], r15d
mov dword [rsp + 0x20], r14d
mov ebx, r14d
mov dword [rsp + 0x1c], r13d
mov dword [rsp + 0x18], r12d
mov r14d, r12d
mov r12d, dword [rsp + 0x14]
mov r10d, dword [rsp + 0x10]
mov ecx, dword [rsp + 0xc]
nop

Function at 0x1c0ed00
Capabilities:
Hash data using sha512

Disassembly:
test rcx, rcx
je 0x1c0ed8b
mov qword [rcx + 0x48], 0
mov qword [rcx], 0
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx + 8], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 0x10], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x18], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x20], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x28], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x30], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x38], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x40], rax
xor eax, eax
ret
mov eax, 1
ret
Function at 0x1c0f7b0
Capabilities:
Encrypt data using curve25519

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rsi, rdx
mov rdi, rcx
mov edx, 0x20
mov rcx, r8
mov r8, rsi
call fcn.01c0f520
and byte [rsi], 0xf8
mov al, byte [rsi + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [rsi + 0x1f], al
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov rdx, rsi
call fcn.01c0c170
mov rcx, rdi
mov rdx, rbx
call fcn.01c0c0f0
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
ret
Function at 0x1c0f810
Capabilities:
Encrypt data using curve25519

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x198
mov qword [rsp + 0x28], rcx
xor eax, eax
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
mov byte [rsp + rax + 0x30], cl
add rax, 1
cmp rax, 0x20
jne 0x1c0f830
and byte [rsp + 0x30], 0xf8
mov al, byte [rsp + 0x4f]
and al, 0x3f
or al, 0x40
mov byte [rsp + 0x4f], al
lea rbp, [rsp + 0x140]
mov rcx, rbp
call fcn.01c09570
lea rbx, [rsp + 0x170]
mov rcx, rbx
call fcn.01c09200
lea rsi, [rsp + 0xb0]
mov rcx, rsi
mov rdx, rbp
mov r8, rbx
call fcn.01c09220
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.01c0b4a0
mov rcx, rbx
mov rdx, rbx
call fcn.01c09800
mov rcx, rbp
mov rdx, rsi
mov r8, rbx
call fcn.01c09fa0
lea rcx, [rsp + 0x80]
call fcn.01c09200
lea rdi, [rsp + 0x110]
mov rcx, rdi
call fcn.01c091e0
lea rcx, [rsp + 0x50]
mov rdx, rbp
call fcn.01c09550
lea r14, [rsp + 0xe0]
mov rcx, r14
call fcn.01c09200
mov r13d, 0xfe
xor r15d, r15d
nop word cs:[rax + rax]
nop
mov ebp, r15d
mov eax, r13d
shr rax, 3
movzx r15d, byte [rsp + rax + 0x30]
mov ecx, r13d
and cl, 7
shr r15d, cl
and r15d, 1
xor ebp, r15d
lea rsi, [rsp + 0x80]
mov rcx, rsi
lea r12, [rsp + 0x50]
mov rdx, r12
mov r8d, ebp
call fcn.01c093b0
mov rcx, rdi
mov rdx, r14
mov r8d, ebp
call fcn.01c093b0
lea rbp, [rsp + 0xb0]
mov rcx, rbp
mov rdx, r12
mov r8, r14
call fcn.01c0b4a0
mov rcx, rbx
mov rdx, rsi
mov r8, rdi
call fcn.01c0b4a0
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.01c09220
mov rcx, rdi
mov rdx, r12
mov r8, r14
call fcn.01c09220
mov rcx, r14
mov rdx, rbp
mov r8, rsi
call fcn.01c09fa0
mov rcx, rdi
mov rdx, rdi
mov r8, rbx
call fcn.01c09fa0
mov rcx, rbp
mov rdx, rbx
call fcn.01c09a90
mov rcx, rbx
mov rdx, rsi
call fcn.01c09a90
mov rcx, r12
mov rdx, r14
mov r8, rdi
call fcn.01c09220
mov rcx, rdi
mov rdx, r14
mov r8, rdi
call fcn.01c0b4a0
mov rcx, rsi
mov rdx, rbx
mov r8, rbp
call fcn.01c09fa0
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.01c0b4a0
mov rcx, rdi
mov rdx, rdi
call fcn.01c09a90
mov rcx, r14
mov rdx, rbx
call fcn.01c0aae0
mov rcx, r12
mov rdx, r12
call fcn.01c09a90
mov rcx, rbp
mov rdx, rbp
mov r8, r14
call fcn.01c09220
mov rcx, r14
lea rdx, [rsp + 0x140]
mov r8, rdi
call fcn.01c09fa0
mov rcx, rdi
mov rdx, rbx
mov r8, rbp
call fcn.01c09fa0
add r13d, 0xffffffff
cmp r13d, 0xffffffff
jne 0x1c0f900
lea rsi, [rsp + 0x80]
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov r8d, r15d
call fcn.01c093b0
lea rdi, [rsp + 0x110]
lea rdx, [rsp + 0xe0]
mov rcx, rdi
mov r8d, r15d
call fcn.01c093b0
mov rcx, rdi
mov rdx, rdi
call fcn.01c09800
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.01c09fa0
mov rcx, qword [rsp + 0x28]
mov rdx, rsi
call fcn.01c0a810
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140cc9058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140cc91df
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 0x140cc9089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cc906f
add dl, dl
jne 0x140cc9096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cc90f6
xor eax, eax
add dl, dl
jne 0x140cc90a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cc91ad
add dl, dl
jne 0x140cc90b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cc90c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cc90d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cc90dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140cc90ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140cc907e
mov eax, 1
add dl, dl
jne 0x140cc9106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cc9113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cc90fb
sub eax, ebx
mov ebx, 1
jne 0x140cc914c
mov ecx, 1
add dl, dl
jne 0x140cc912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cc913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cc9123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cc907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140cc9168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cc9175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cc915d
cmp eax, 0x7d00
jae 0x140cc919b
cmp eax, 0x500
jb 0x140cc9196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cc907e
cmp eax, 0x7f
ja 0x140cc919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cc907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140cc91d2
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 0x140cc907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140006030
Capabilities:
Initialize winsock library

Disassembly:
push rsi
sub rsp, 0x1c0
mov rax, qword [0x14006a0c0]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0
sete al
and al, 1
movzx esi, al
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.14002dc30
mov eax, esi
add rsp, 0x1c0
pop rsi
ret
Function at 0x14001c1f0
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x20
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp], rcx
mov qword [rsp + 8], 0
mov rax, qword [rsp + 8]
cmp rax, qword [rsp + 0x18]
jae 0x14001c250
mov rax, qword [rsp + 0x10]
mov rcx, qword [rsp + 8]
movzx eax, byte [rax + rcx]
xor rax, qword [rsp]
mov qword [rsp], rax
movabs rax, 0x100000001b3
imul rax, qword [rsp]
mov qword [rsp], rax
mov rax, qword [rsp + 8]
add rax, 1
mov qword [rsp + 8], rax
jmp 0x14001c20b
mov rax, qword [rsp]
add rsp, 0x20
ret

Function at 0x14001d0e0
Capabilities:
Get memory capacity

Disassembly:
push rbp
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov rax, qword [0x14006a0c0]
xor rax, rbp
mov qword [rbp], rax
mov dword [rbp - 0x40], 0x40
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rbp - 0x38]
shr rax, 0xa
shr rax, 0xa
mov dword [rbp - 0x44], eax
cmp dword [rbp - 0x44], 0xc18
jae 0x14001d134
pop rax
push rbx
je 0x14001d128
je 0x14001d12d
and dword [rcx + rsi], esi
xor dh, byte [rbx]
pop rbx
and dword [rcx + rsi], esi
xor dh, byte [rbx]
push rax
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.14002dc30
nop
add rsp, 0x78
pop rbx
pop rbp
ret

Function at 0x14001d150
Capabilities:
Identify system language via api

Disassembly:
push rbp
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [rbp + 6], ax
movzx eax, word [rbp + 6]
and eax, 0x3ff
cmp eax, 4
je 0x14001d1a7
lea rcx, [0x14006c010]
lea rdx, [0x1400606c2]
call fcn.1400063c0
lea rdx, [0x140006820]
mov rcx, rax
call fcn.140006870
pop rax
push rbx
je 0x14001d19b
je 0x14001d1a0
and dword [rcx + rsi], esi
xor dh, byte [rbx]
pop rbx
and dword [rcx + rsi], esi
xor dh, byte [rbx]
push rax
nop
add rsp, 0x28
pop rbx
pop rbp
ret
Function at 0x14001ff40
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x14006a0c0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x50], rcx
mov rsi, qword [rsp + 0x50]
cmp qword [rsp + 0x30], 0
jg 0x14001ff7f
mov qword [rsp + 0x38], 0
jmp 0x1400200fb
cmp qword [rsi + 0x68], 0
je 0x14001ffa2
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
call fcn.14001ef40
mov qword [rsp + 0x38], rax
jmp 0x1400200fb
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov rcx, rsi
call fcn.14001f2b0
mov qword [rsp + 0x60], rax
xor eax, eax
cmp rax, qword [rsp + 0x60]
jae 0x14002002e
lea rcx, [rsp + 0x68]
lea rdx, [rsp + 0x60]
call fcn.140005df0
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x28]
mov rcx, rsi
call fcn.14001f2e0
mov rcx, qword [rsp + 0x20]
mov rdx, rax
mov r8, rdi
call fcn.140005750
mov rax, qword [rsp + 0x28]
add rax, qword [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov qword [rsp + 0x68], rcx
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call fcn.14001f300
cmp qword [rsi + 0x80], 0
je 0x1400200ec
mov rcx, rsi
call fcn.14001ed60
mov qword [rsp + 0x58], 0xfff
mov eax, 0xfff
cmp rax, qword [rsp + 0x68]
jae 0x1400200b9
mov r9, qword [rsi + 0x80]
mov rcx, qword [rsp + 0x20]
mov edx, 1
mov r8d, 0xfff
call fcn.140039d90
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
add rax, qword [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov qword [rsp + 0x68], rcx
cmp qword [rsp + 0x40], 0xfff
je 0x1400200b7
mov rax, qword [rsp + 0x48]
sub rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
jmp 0x1400200fb
jmp 0x14002004d
xor eax, eax
cmp rax, qword [rsp + 0x68]
jae 0x1400200ea
mov r9, qword [rsi + 0x80]
mov r8, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x20]
mov edx, 1
call fcn.140039d90
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov qword [rsp + 0x68], rcx
jmp 0x1400200ec
mov rax, qword [rsp + 0x48]
sub rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14002dc30
mov rax, rsi
add rsp, 0x78
pop rdi
pop rsi
ret

Function at 0x1400229f0
Capabilities:
Get common file path

Disassembly:
push rsi
sub rsp, 0x140
mov rsi, rcx
mov rax, qword [0x14006a0c0]
xor rax, rsp
mov qword [rsp + 0x138], rax
mov qword [rsp + 0x28], rsi
lea rdx, [rsp + 0x30]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140005120
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.14002dc30
mov rax, rsi
add rsp, 0x140
pop rsi
ret
Function at 0x14002ab90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0x78
mov rax, qword [0x14006a0c0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x34], 0
mov rax, qword [str.fdaufdiqe]
mov qword [rsp + 0x66], rax
mov ax, word [0x14005d938]
mov word [rsp + 0x6e], ax
mov dword [rsp + 0x54], 9
lea rcx, [0x14006adb0]
mov edx, 0x22a
call fcn.140005fe0
mov dword [rsp + 0x3c], 0x22a
mov eax, dword [rsp + 0x3c]
add eax, 1
mov ecx, 2
cdq
idiv ecx
mov dword [rsp + 0x34], eax
movsxd rcx, dword [rsp + 0x34]
call fcn.14003a88c
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
cmp eax, dword [rsp + 0x3c]
jge 0x14002ac6f
mov eax, dword [rsp + 0x30]
mov ecx, 2
cdq
idiv ecx
cmp edx, 0
jne 0x14002ac60
movsxd rax, dword [rsp + 0x30]
lea rcx, [0x14006adb0]
mov al, byte [rcx + rax]
mov rcx, qword [rsp + 0x48]
movsxd rdx, dword [rsp + 0x38]
mov byte [rcx + rdx], al
mov eax, dword [rsp + 0x38]
add eax, 1
mov dword [rsp + 0x38], eax
jmp 0x14002ac62
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
jmp 0x14002ac1e
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0x2c]
cmp eax, dword [rsp + 0x34]
jge 0x14002acb5
mov eax, dword [rsp + 0x2c]
cdq
idiv dword [rsp + 0x54]
movsxd rax, edx
movsx eax, byte [rsp + rax + 0x66]
mov rcx, qword [rsp + 0x48]
movsxd rdx, dword [rsp + 0x2c]
movzx r8d, byte [rcx + rdx]
xor r8d, eax
mov byte [rcx + rdx], r8b
mov eax, dword [rsp + 0x2c]
add eax, 1
mov dword [rsp + 0x2c], eax
jmp 0x14002ac77
mov qword [rsp + 0x40], 0
movsxd rdx, dword [rsp + 0x34]
xor ecx, ecx
mov r8d, 0x3000
mov r9d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14002ace6
jmp 0x14002ad08
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
movsxd r8, dword [rsp + 0x34]
call fcn.140053890
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
call qword [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14002dc30
nop
add rsp, 0x78
ret

Function at 0x14002d400
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 0x14002d43a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14002d43f
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 0x14002d488
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140055960]
cmp byte [rcx + rax], 0
je 0x14002d488
dec r8
sub rdx, 1
jne 0x14002d46e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret