joyce8/EMBER2024-capa huggingface dataset:
Function at 0x23912d740
Capabilities:
Encrypt data using des

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
xor eax, eax
jmp 0x23912d74f
inc rax
cmp rax, 8
jge 0x23912d759
xor ecx, ecx
jmp 0x23912d762
add rsp, 0x10
pop rbp
ret
inc rcx
cmp rcx, 4
jge 0x23912d74c
xor edx, edx
jmp 0x23912d780
mov dword [rbx + rax*4], ecx
lea rbx, [rdi + 1]
mov rax, r10
mov rcx, r9
mov rdx, rbx
nop dword [rax]
cmp rdx, 0x10
jge 0x23912d75f
mov rbx, rax
shl rax, 6
lea rsi, [0x239177fe0]
lea rdi, [rsi + rax]
mov r8, rcx
shl rcx, 4
add rdi, rcx
movzx edi, byte [rdi + rdx]
lea rcx, [rbx - 7]
neg rcx
shl rcx, 2
shl rdi, cl
cmp rcx, 0x40
sbb r9, r9
and rdi, r9
xor eax, eax
xor ecx, ecx
jmp 0x23912d856
mov rdi, r8
and r8d, 2
shl r8, 4
mov r9, rdi
and edi, 1
or r8, rdi
mov rdi, rdx
shl rdx, 1
or r8d, edx
mov rdx, rcx
shl rcx, 1
shr rdx, 0x1f
mov r10, rbx
shl rbx, 8
movzx eax, r8b
or rcx, rdx
lea rdx, [0x23938ed80]
add rbx, rdx
cmp rax, 0x40
jb 0x23912d76c
jmp 0x23912d865
lea r9, [0x2391738e0]
movzx r10d, byte [r9 + rax]
mov r11, rcx
mov ecx, r10d
mov r12, rdi
shr r12, cl
lea r13, [rax - 0x1f]
neg r13
inc rax
cmp cl, 0x40
sbb rcx, rcx
and rcx, r12
and ecx, 1
mov r10, rcx
mov rcx, r13
shl r10, cl
cmp rcx, 0x40
sbb rcx, rcx
and rcx, r10
or rcx, r11
cmp rax, 0x20
jl 0x23912d812
nop dword [rax]
jmp 0x23912d7c7
mov ecx, 0x40
call dbg.runtime.panicIndex
nop
int3
Function at 0x2391521a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x23915228d
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
lea rcx, [rbx + 1]
nop dword [rax + rax]
test rcx, rcx
jle 0x239152279
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x58], rax
mov qword [rsp], rcx
nop dword [rax]
call dbg.main._cgo_cmalloc
xorps xmm15, xmm15
mov r14, qword [0x23938d098]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x18]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rcx
mov rdx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x60]
cmp rbx, rcx
mov rsi, rcx
cmovl rsi, rbx
mov rdi, qword [rsp + 0x58]
cmp rdi, rdx
jne 0x239152233
cmp rbx, rcx
jmp 0x239152265
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rdx
mov rax, rdx
mov rbx, rdi
mov rcx, rsi
call dbg.runtime.memmove
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x18]
cmp rax, rcx
mov rdx, qword [rsp + 0x28]
mov rbx, rax
mov rax, qword [rsp + 0x20]
jae 0x239152271
mov byte [rdx + rbx], 0
add rsp, 0x48
pop rbp
ret
mov rax, rbx
call dbg.runtime.panicIndex
lea rax, [0x2391b0540]
lea rbx, [0x239237dc0]
call dbg.runtime.gopanic
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call dbg.runtime.morestack_noctxt
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp dbg.main._Cfunc_CString

Function at 0x2391533d0
Capabilities:
Create thread

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__beginthread]
mov rdi, qword [sym.imp.msvcrt.dll__errno]
xor r12d, r12d
mov rsi, rcx
mov rbx, rdx
xor edx, edx
mov r8, rbx
mov rcx, rsi
call rbp
cmp rax, 0xffffffffffffffff
jne 0x239153430
call rdi
cmp dword [rax], 0xd
je 0x239153440
call rdi
mov ecx, 2
mov ebx, dword [rax]
call qword [dbg.__acrt_iob_func]
lea rdx, str.runtime:_failed_to_create_new_OS_thread___d__n
mov rcx, rax
mov r8d, ebx
call sym.fprintf
call sym.abort
nop
nop
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov ecx, r12d
add r12d, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp r12d, 0x14
jne 0x2391533f1
jmp 0x239153408

Function at 0x239153910
Capabilities:
Create thread

Disassembly:
mov rdx, rcx
lea rcx, [sym.threadentry]
jmp sym._cgo_beginthread
Function at 0x239164180
Capabilities:
Hash data using sha256

Disassembly:
push r12
add rsp, 0xffffffffffffff80
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x70], xmm7
movdqa xmm0, xmmword [0x23932bed0]
movdqa xmm7, xmmword [0x23932beb0]
mov r8d, 0x40
movdqa xmm6, xmmword [0x23932bec0]
movdqu xmm2, xmmword [rdx]
movdqu xmm1, xmmword [rdx + 0x10]
pxor xmm2, xmm0
pxor xmm1, xmm0
lea r9, [rsp + 0x20]
mov r12, rcx
movups xmmword [rcx + 0x68], xmm7
lea rcx, [rcx + 0x68]
mov qword [rcx + 0x60], 0
mov rdx, r9
movups xmmword [rcx + 0x10], xmm6
movaps xmmword [rsp + 0x20], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm0
call sym.secp256k1_sha256_write
movdqa xmm0, xmmword [0x23932bee0]
movups xmmword [r12], xmm7
movdqa xmm3, xmmword [rsp + 0x20]
movdqa xmm2, xmmword [rsp + 0x30]
movdqa xmm1, xmmword [rsp + 0x40]
movups xmmword [r12 + 0x10], xmm6
mov rcx, r12
pxor xmm3, xmm0
lea rdx, [r12 + 0x20]
mov qword [r12 + 0x60], 0x40
pxor xmm2, xmm0
pxor xmm1, xmm0
pxor xmm0, xmmword [rsp + 0x50]
movups xmmword [r12 + 0x20], xmm3
movups xmmword [r12 + 0x30], xmm2
movups xmmword [r12 + 0x40], xmm1
movups xmmword [r12 + 0x50], xmm0
movaps xmmword [rsp + 0x20], xmm3
movaps xmmword [rsp + 0x30], xmm2
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x50], xmm0
call sym.secp256k1_sha256_transform
nop
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
sub rsp, 0xffffffffffffff80
pop r12
ret

Function at 0x23916fb90
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x23916fc00
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x2393923a4]
mov r12, rcx
test ebx, ebx
jle 0x23916fd30
mov rax, qword [0x2393923a8]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x23916fc4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x23916fcd5
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x23916fc30
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x23916fd52
mov rax, qword [0x2393923a8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x2393923a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x23916fd37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x23916fcce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x23916fce0
add dword [0x2393923a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x2393923a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x23916fcce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x23916fc58
mov rax, qword [0x2393923a8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x239170000
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x2393923e0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2393923c0]
test rbx, rbx
je 0x23917005c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x239170053
test r12, r12
je 0x239170053
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x239170038
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x239170290
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x2391702a8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x2391702b0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x2391702c0
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 0x239170305
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x2391702fc
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x239170307
add rax, 0x28
cmp rax, r9
jne 0x2391702e8
xor eax, eax
ret

Function at 0x239170310
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x2391703a0
mov rdx, qword [0x23932c4a0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x23917038e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x23917038e
cmp word [rax + 0x18], 0x20b
jne 0x23917038e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x2391703a0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x239170379
add r12, 0x28
cmp r12, rsi
je 0x2391703a0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x239170370
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x2391703b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x23932c4a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2391703d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2391703d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2391703d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x239170425
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x23917041c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2391703d0
add rax, 0x28
cmp rax, r9
jne 0x239170408
xor eax, eax
ret

Function at 0x239170430
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x23932c4a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x239170450
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x239170458
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x239170450
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x239170470
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x23932c4a0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x239170490
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x239170498
ret
cmp word [rdx + 0x18], 0x20b
jne 0x239170490
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x2391704d8
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x2391704cf
test rcx, rcx
je 0x239170490
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x2391704c0
xor eax, eax
ret
Function at 0x2391704e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x23932c4a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x239170500
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x239170508
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x239170520
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x23932c4a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x239170540
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x239170548
ret
cmp word [r8 + 0x18], 0x20b
jne 0x239170540
sub rcx, rdx
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x239170540
lea eax, [r8 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop dword [rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x23917058c
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x2391705a0
add rdx, 0x28
cmp rdx, r9
jne 0x239170578
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x2391705b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x23932c4a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x2391705d2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x2391705e0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2391705d2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x2391705d2
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x2391705d2
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x23917062d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x239170640
add rdx, 0x28
cmp r10, rdx
jne 0x239170618
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x23917064f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x23917065f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x239170636
test ecx, ecx
jg 0x239170648
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001fd0
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x120
mov rax, qword [0x14008f840]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov rdx, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x140002003
mov rdx, qword [rcx]
lea rax, [rsp + 0x108]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140002076
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140002037
mov rdx, qword [rdi]
xor r8d, r8d
mov qword [rsp + 0x40], r8
lea rax, [rsp + 0x108]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r8
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], r8d
xor r9d, r9d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x14000216e
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140002083
mov rcx, qword [rbx]
mov rdx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x140002090
mov rdx, qword [rsi]
mov eax, dword [rbx + 0x10]
inc eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400020e4
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14006e620
add rsp, 0x120
pop rdi
pop rsi
pop rbx
ret
mov edx, ebx
lea rcx, [rsp + 0xe8]
call fcn.1400013c0
mov rbx, rax
mov r8, rsi
lea rdx, str.Registry_value_could_not_be_written:
lea rcx, [rsp + 0xc8]
call fcn.140009520
nop
lea r8, str.__Error_Code:
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.1400099f0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.140009a60
nop
lea r8, [0x140082a24]
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400099f0
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140001250
lea rdx, [0x14008b788]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.1400013c0
mov rbx, rax
mov r8, rdi
lea rdx, str.Registry_key_could_not_be_created:
lea rcx, [rsp + 0x88]
call fcn.140009520
nop
lea r8, str.__Error_Code:
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.1400099f0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0xc8]
call fcn.140009a60
nop
lea r8, [0x140082a24]
mov rdx, rax
lea rcx, [rsp + 0xe8]
call fcn.1400099f0
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140001250
lea rdx, [0x14008b788]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400027b0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14008f840]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rdx
mov qword [rsp + 0x28], rdx
xor ebp, ebp
mov dword [rsp + 0x28], 0x101
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov ecx, 0x101
call fcn.14006e648
mov rbx, rax
mov qword [rsp + 0x30], rax
lea rdi, [rax + 0x101]
mov qword [rsp + 0x40], rdi
xor edx, edx
mov r8d, 0x101
mov rcx, rax
call fcn.14006f69e
mov qword [rsp + 0x38], rdi
lea rdx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rbp
mov qword [rsi + 0x18], rbp
test eax, eax
je 0x1400028c0
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x140002850
mov rdx, rbx
mov rcx, rsi
call fcn.14000a050
nop
test rbx, rbx
je 0x14000289b
sub rdi, rbx
cmp rdi, 0x1000
jb 0x140002890
mov edi, 0x128
mov rax, qword [rbx - 8]
sub rbx, rax
add rbx, 0xfffffffffffffff8
cmp rbx, 0x1f
ja 0x1400028cf
mov rbx, rax
mov rdx, rdi
mov rcx, rbx
call fcn.14006e640
mov rax, rsi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14006e620
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov r8d, 7
lea rdx, str.Unknown
jmp 0x14000285d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140008090
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14008f840]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400080bd
xor eax, eax
jmp 0x140008229
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400080f7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400080f7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140008229
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000821c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000813a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140008165
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140008221
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400081d4
sub eax, 1
je 0x1400081d4
cmp eax, 2
jne 0x14000821c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140008221
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140008202
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000821c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140008221
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14006e620
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400090a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14008f840]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140009173
cmp byte [rcx + 0x71], 0
je 0x140009173
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14000916f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140009134
sub eax, 1
je 0x140009138
cmp eax, 2
jne 0x14000916f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14006e620
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140009166
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000916f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000911c
xor al, al
jmp 0x14000911c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14006e620
add rsp, 0x60
pop rbx
ret
Function at 0x140015d30
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140015e12
call fcn.140032bb0
test al, al
jne 0x140015e12
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x140015d62
mov r8, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rbx
call fcn.14003c8c0
test rax, rax
je 0x140015da7
sub rax, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rbx
call fcn.14003c8c0
mov rsi, rax
test rax, rax
je 0x140015da7
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x140015ddb
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.14002d3e0
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x140015dc0
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140025390
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xa5e], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x14002545d
cmp qword [rcx + 0x270], 0
je 0x14002540e
mov qword [rsp + 0x40], rbx
call fcn.140010160
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.140010b70
mov rcx, qword [rdi + 0x1e8]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x270]
movzx edx, bl
mov rcx, rdi
call fcn.140010b70
mov rbx, qword [rsp + 0x40]
jmp 0x14002545d
mov ecx, esi
test edx, edx
je 0x14002541e
sub ecx, 1
je 0x14002541e
cmp ecx, 1
jne 0x14002545d
mov r9, qword [rdi + 0x1e0]
lea rax, [0x140075bb0]
lea rcx, [rsi + rsi*2]
mov edx, 2
add rcx, rax
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x1e0]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140029590
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
add rsp, 0x28
ret