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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [0x004a89f8]
mov rsi, rcx
mov rdi, rdx
test rax, rax
je 0x40c171
mov eax, dword [rax]
test eax, eax
js 0x40c151
mov rax, qword [0x004a89f8]
test rax, rax
je 0x40c15b
mov ebp, dword [rax]
test ebp, ebp
je 0x40c140
mov rax, qword [0x004a8a00]
test rax, rax
je 0x40c190
mov ebp, dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x20], rbp
jmp 0x40c114
cmp ebx, 5
je 0x40c130
mov rax, qword [rsp + 0x20]
mov rbp, qword [rax]
mov qword [rsp + 0x20], rbp
cmp rbp, 1
mov rdx, rdi
lea rcx, [rsp + 0x20]
sbb ebx, ebx
and ebx, 5
call rsi
test eax, eax
je 0x40c102
mov ebx, 3
mov eax, ebx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rax, qword [0x004a8a08]
test rax, rax
je 0x40c182
mov rbp, qword [rax]
jmp 0x40c0fb
call dbg.fc_key_init_once
jmp 0x40c0b8
nop dword [rax + rax]
call dbg.__shmem_grabber_use_fc_key
mov qword [0x004a89f8], rax
jmp 0x40c0c8
call dbg.__shmem_grabber_use_fc_key
mov qword [0x004a89f8], rax
jmp 0x40c0ae
call dbg.__shmem_grabber_fc_static
mov qword [0x004a8a08], rax
jmp 0x40c14c
call dbg.__shmem_grabber_fc_key
mov qword [0x004a8a00], rax
jmp 0x40c0de

Function at 0x40c230
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40c260
mov rdx, rsi
mov ecx, eax
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop rsi
jmp dbg.__mingwthr_key_dtor
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x28
pop rbx
pop rsi
jmp rax

Function at 0x40c2a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x40c2d0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40c2e5
xor eax, eax
add rsp, 0x28
ret
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x28
jmp rax
Function at 0x40c5e0
Capabilities:
Check mutex on windows

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, rcx
mov r15d, edx
mov qword [rbp + 0x20], r8
call sym.strlen
mov r13d, eax
mov r14, rax
lea eax, [r13 + 0x51]
cdqe
add rax, 0x1e
and rax, 0xfffffffffffffff0
call fcn.0040c7e0
sub rsp, rax
movsxd rbx, r14d
movabs rax, 0x656d68732d636367
lea rsi, [rsp + 0x20]
mov r8, rbx
mov rdx, rdi
lea r12d, [r13 + 0x50]
movabs rdi, 0x6161616161616161
lea rcx, [rsi + 0xf]
mov qword [rsi], rax
mov dword [rsi + 8], 0x64742d6d
mov word [rsi + 0xc], 0x326d
mov byte [rsi + 0xe], 0x2d
call sym.memcpy
lea rax, [rsi + rbx + 0x10]
movabs rbx, 0x6161616161616161
movabs r9, 0x6161616161616161
movabs r10, 0x6161616161616161
movabs r11, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [rax + 0x30], rbx
lea ebx, [r13 + 0xf]
movabs rcx, 0x6161616161616161
movabs r8, 0x6161616161616161
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], r8
mov qword [rax + 0x18], r9
movsxd rbx, ebx
mov qword [rax + 0x20], r10
mov qword [rax + 0x28], r11
xor edx, edx
mov qword [rax + 0x38], rdi
movsxd rax, r12d
xor ecx, ecx
mov byte [rsi + rax], 0
mov r8, rsi
mov byte [rsi + rbx], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsi + rbx], 0x2d
mov rdi, rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40c704
int3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x40c7a0
movsxd r15, r15d
add r13d, 0x10
add r14d, 0x50
mov rcx, r15
call sym.malloc
mov rbx, rax
mov eax, 0x40
bt rbx, rax
jae 0x40c743
mov edx, r14d
sub edx, eax
movsxd rdx, edx
mov byte [rsi + rdx], 0x41
sub eax, 1
jne 0x40c731
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x40c79d
mov rdx, rsi
movzx ecx, ax
mov r9d, r13d
mov r8d, r12d
call dbg.get_ptr_from_atom
cmp rax, rbx
mov rsi, rax
je 0x40c7b7
mov rcx, rbx
call sym.free
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
int3
lea r9d, [r13 + 0x10]
mov rdx, rsi
movzx ecx, ax
mov r8d, r12d
call dbg.get_ptr_from_atom
mov rsi, rax
jmp 0x40c777
xor edx, edx
mov r8, r15
mov rcx, rbx
call sym.memset
cmp qword [rbp + 0x20], 0
je 0x40c777
mov rcx, rbx
call qword [rbp + 0x20]
jmp 0x40c777

Function at 0x413350
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [dbg.__shmem_init_init]
lea rcx, str.init
mov edx, 8
jmp dbg.__shmem_grab

Function at 0x413370
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [dbg.__shmem_init_eh_globals]
lea rcx, str.eh_globals
mov edx, 0x10
jmp dbg.__shmem_grab

Function at 0x413a60
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [dbg.__shmem_init___terminate_handler_sh]
lea rcx, str.__terminate_handler_sh
mov edx, 8
jmp dbg.__shmem_grab

Function at 0x413a80
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [dbg.__shmem_init___unexpected_handler_sh]
lea rcx, str.__unexpected_handler_sh
mov edx, 8
jmp dbg.__shmem_grab
Function at 0x415280
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
test rax, rax
jle 0x4152b1
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
mov dword [rbx + 0x48], 0xffffffff
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x4159b0
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0xc0
lea rax, [dbg.__gxx_personality_sj0]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x90], rsp
mov qword [rsp + 0x70], rax
lea rax, [0x004878d8]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x80], rax
lea rax, [0x00415b44]
mov qword [rsp + 0x88], rax
call dbg._Unwind_SjLj_Register
cmp byte [0x004944e0], 0
jne 0x415b0a
mov byte [global_terminating], 1
call dbg.__cxa_current_exception_type
test rax, rax
je 0x415b62
mov rax, qword [rax + 8]
lea r9, [rsp + 0xbc]
cmp byte [rax], 0x2a
mov qword [rsp + 0x20], rax
mov dword [rsp + 0xbc], 0xffffffff
mov dword [rsp + 0x48], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
movzx eax, al
add qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call dbg.__cxa_demangle
mov qword [rsp + 0x30], rax
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
mov qword [rsp + 0x28], rax
call rax
lea rcx, str.terminate_called_after_throwing_an_instance_of_
lea r9, [rax + 0x60]
mov r8d, 0x30
mov edx, 1
call sym.fwrite
cmp dword [rsp + 0xbc], 0
je 0x415af6
mov dword [rsp + 0x48], 0xffffffff
call qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
lea rdx, [rax + 0x60]
call sym.fputs
mov dword [rsp + 0x48], 0xffffffff
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, [0x004960c1]
lea r9, [rax + 0x60]
mov r8d, 2
mov edx, 1
call sym.fwrite
cmp dword [rsp + 0xbc], 0
je 0x415b38
mov dword [rsp + 0x48], 1
call dbg.__cxa_rethrow
call qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
lea rdx, [rax + 0x60]
call sym.fputs
jmp 0x415ab6
mov dword [rsp + 0x48], 0xffffffff
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.terminate_called_recursively_n
lea r9, [rax + 0x60]
mov r8d, 0x1d
mov edx, 1
call sym.fwrite
call sym.abort
mov rcx, qword [rsp + 0x30]
call sym.free
jmp 0x415ae9
mov dword [rsp + 0x48], 0xffffffff
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.terminate_called_without_an_active_exception_n
lea r9, [rax + 0x60]
mov r8d, 0x2d
mov edx, 1
call sym.fwrite
mov dword [rsp + 0x48], 0xffffffff
call sym.abort
call dbg.__cxa_end_catch
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x48], 0xffffffff
call dbg._Unwind_SjLj_Resume
sub rdx, 1
mov rcx, qword [rsp + 0x38]
je 0x415bce
call dbg.__cxa_begin_catch
mov dword [rsp + 0x48], 0xffffffff
call dbg.__cxa_end_catch
jmp 0x415b8b
call dbg.__cxa_begin_catch
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov dword [rsp + 0x48], 2
mov qword [rsp + 0xa8], rax
call qword [sym.imp.msvcrt.dll___iob_func]
lea r9, [rax + 0x60]
lea rcx, str.__what__:
mov r8d, 0xb
mov edx, 1
call sym.fwrite
call qword [sym.imp.msvcrt.dll___iob_func]
mov rcx, qword [rsp + 0xa8]
lea rdx, [rax + 0x60]
call sym.fputs
call qword [sym.imp.msvcrt.dll___iob_func]
lea rdx, [rax + 0x60]
mov ecx, 0xa
call sym.fputc
call dbg.__cxa_end_catch
jmp 0x415b8b
Function at 0x451d70
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, rdi
call dbg.fd
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sym.read
movsxd r12, eax
cmp r12, 0xffffffffffffffff
je 0x451dc0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call rbp
cmp dword [rax], 4
je 0x451d8a
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x403a30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00406f40]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x403a9f
mov rcx, r9
call fcn.00403900
test eax, eax
je 0x403a9f
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 0x403a9d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x403a94
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x403a9f
add rdx, 0x28
cmp rdx, r9
jne 0x403a80
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x140040ae0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
xor eax, eax
mov dword [rsp + 0x20], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], send
mov byte [rcx], al
mov dword [rsp + 0x20], 1
lea rcx, [r8 + 2]
movabs rbp, 0xaaaaaaaaaaaaaaab
mov rax, rbp
mul rcx
shr rdx, 1
shl rdx, 2
xor r8d, r8d
mov rcx, rdi
call fcn.14003e460
mov r10, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140040b57
mov r10, qword [rdi]
mov rcx, r10
mov rax, rbp
mul rsi
mov r8, rdx
shr r8, 1
mov r9, r8
lea r11, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
je 0x140040bd1
movzx eax, byte [rbx]
shr rax, 2
movzx eax, byte [rax + r11]
mov byte [rcx], al
movsx edx, byte [rbx]
and edx, 3
shl edx, 4
movzx eax, byte [rbx + 1]
shr eax, 4
add edx, eax
movzx eax, byte [rdx + r11]
mov byte [rcx + 1], al
movsx edx, byte [rbx + 1]
and edx, 0xf
movzx eax, byte [rbx + 2]
shr eax, 6
lea eax, [rax + rdx*4]
movzx eax, byte [rax + r11]
mov byte [rcx + 2], al
movsx rax, byte [rbx + 2]
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [rcx + 3], al
add rcx, 4
add rbx, 3
sub r9, 1
jne 0x140040b72
lea rax, [r8 + r8*2]
sub rsi, rax
sub rsi, 1
je 0x140040c22
cmp rsi, 1
jne 0x140040c4c
movzx eax, byte [rbx]
shr rax, 2
movzx eax, byte [rax + r11]
mov byte [rcx], al
movsx edx, byte [rbx]
and edx, 3
shl edx, 4
movzx eax, byte [rbx + 1]
shr eax, 4
add edx, eax
movzx eax, byte [rdx + r11]
mov byte [rcx + 1], al
movsx rax, byte [rbx + 1]
and eax, 0xf
movzx eax, byte [r11 + rax*4]
mov byte [rcx + 2], al
mov byte [rcx + 3], 0x3d
jmp 0x140040c48
movzx eax, byte [rbx]
shr rax, 2
movzx eax, byte [rax + r11]
mov byte [rcx], al
movsx rax, byte [rbx]
and eax, 3
add rax, rax
movzx eax, byte [r11 + rax*8]
mov byte [rcx + 1], al
mov word [rcx + 2], 0x3d3d
add rcx, 4
sub rcx, r10
xor r8d, r8d
mov rdx, rcx
mov rcx, rdi
call fcn.14003e460
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140041580
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], send
mov byte [rcx], r12b
mov dword [rsp + 0x20], 1
mov rax, qword [rdx + 0x10]
shr rax, 2
lea rdx, [rax + rax*2]
xor r8d, r8d
call fcn.14003e460
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x1400415e6
mov rbx, qword [rbx]
mov r15, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x1400415f3
mov r15, qword [rsi]
mov rdi, r15
mov r8d, r12d
test r9, r9
je 0x140041708
mov rdx, r12
lea r13, [0x1400c7fb0]
mov eax, dword [rsp + 0x78]
movzx r14d, byte [rsp + 0x7b]
movzx r11d, byte [rsp + 0x7a]
movzx ebp, byte [rsp + 0x79]
dec r9
movzx ecx, byte [rbx]
cmp cl, 0x3d
je 0x1400416b2
movzx r10d, byte [rcx + r13]
cmp r10b, 0xff
je 0x1400416b2
inc rbx
mov byte [rsp + rdx + 0x78], r10b
inc r8d
inc rdx
mov eax, dword [rsp + 0x78]
movzx r14d, byte [rsp + 0x7b]
movzx r11d, byte [rsp + 0x7a]
movzx ebp, byte [rsp + 0x79]
cmp rdx, 4
jne 0x1400416a9
movzx r8d, bpl
shr r8b, 4
and r8b, 3
movzx ecx, al
shl cl, 2
add r8b, cl
movzx edx, r11b
shr dl, 2
and dl, 0xf
movzx ecx, bpl
shl cl, 4
add dl, cl
movzx ecx, r11b
shl cl, 6
add cl, r14b
mov byte [rdi], r8b
mov byte [rdi + 1], dl
mov byte [rdi + 2], cl
add rdi, 3
mov r8d, r12d
mov rdx, r12
test r9, r9
jne 0x140041621
test r8d, r8d
je 0x140041708
movzx ecx, bpl
shr cl, 4
and cl, 3
shl al, 2
add cl, al
mov byte [rsp + 0x78], cl
movzx eax, r11b
shr al, 2
and al, 0xf
shl bpl, 4
add al, bpl
mov byte [rsp + 0x79], al
shl r11b, 6
add r11b, r14b
mov byte [rsp + 0x7a], r11b
lea eax, [r8 - 1]
movsxd rbx, eax
test eax, eax
jle 0x140041708
mov r8, rbx
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.14009d060
add rdi, rbx
sub rdi, r15
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.14003e460
mov rax, rsi
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140043db0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140043de4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140043dd0
ret
Function at 0x14004b600
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14004b6cc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14004b6cc
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14004b6e5
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14004b6bc
cmp byte [rax], 0x5c
jne 0x14004b6b6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14004b6b6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14004b6a2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14004b6b3
test r8b, 0x10
jne 0x14004b6b6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14004b6b6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400478c0
test edi, edi
jne 0x14004b620
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.1400478b0
int3
Function at 0x14005f350
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x1400debf0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rcx
mov qword [rbp - 0x11], rcx
xor esi, esi
mov dword [rbp - 0x15], esi
mov qword [rbp + 0xf], rdx
mov dword [rbp + 7], r8d
lea rax, [rbp - 9]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 7]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x14005f47c
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], rsi
mov qword [rbp + 0x2f], rsi
mov qword [rbp + 0x27], rsi
mov qword [rbp + 0x2f], send
mov byte [rbp + 0x17], sil
mov ebx, dword [rbp - 9]
test rbx, rbx
jne 0x14005f3e7
mov qword [rbp + 0x27], rbx
mov byte [rbp + rbx + 0x17], bl
jmp 0x14005f41b
lea rcx, [rbp + 0x17]
cmp rbx, 0xf
ja 0x14005f406
mov qword [rbp + 0x27], rbx
mov r8, rbx
xor edx, edx
call fcn.14009cca0
mov byte [rbp + rbx + 0x17], 0
jmp 0x14005f41b
mov byte [rsp + 0x20], 0
mov r9, rbx
movzx r8d, byte [rbp - 0x19]
mov rdx, rbx
call fcn.1400435c0
lea rcx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 0x10
cmovae rcx, qword [rbp + 0x17]
mov r8d, dword [rbp - 9]
mov rdx, qword [rbp - 1]
call fcn.14009d060
mov rcx, qword [rbp - 1]
call qword [sym.imp.KERNEL32.dll_LocalFree]
movups xmm0, xmmword [rbp + 0x17]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp + 0x27]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbp + 0x27], rsi
mov qword [rbp + 0x2f], send
mov byte [rbp + 0x17], 0
mov byte [rdi + 0x20], 1
mov dword [rbp - 0x15], 1
mov qword [rbp + 0x27], rsi
mov qword [rbp + 0x2f], send
mov byte [rbp + 0x17], 0
jmp 0x14005f487
mov byte [rdi + 0x20], sil
mov dword [rbp - 0x15], 1
mov rax, rdi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14009a9d0
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005fa60
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14005fa82
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14005fafc
mov rdi, r14
mov rcx, rbx
call fcn.14003fa80
test rax, rax
jle 0x14005fad4
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.14009d060
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14005faec
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14005faf4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14005fa96
sub r14, rdi
jmp 0x14005fbdf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14005fb13
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14005fb15
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14005fb47
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14009d060
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14005fbdc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14005fb82
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
cmp rbp, 0xfff
jbe 0x14005fbbd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140085080
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14005fbdc
cmp rbp, rax
ja 0x14005fb90
test rbp, rbp
je 0x14005fbdc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140085080
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x140067070
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400debf0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x140067185
mov rdx, qword [rsp + 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400670e3
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
lea rcx, [rsp + 0x28]
call fcn.1400429d0
mov ebx, 5
mov dword [rsp + 0x20], ebx
and ebx, 0xfffffffb
mov dword [rsp + 0x20], ebx
or ebx, 2
mov dword [rsp + 0x20], ebx
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.14003e220
and ebx, 0xfffffffd
mov dword [rsp + 0x20], ebx
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140067172
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006716d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400671b2
call fcn.14009a9f0
movdqa xmm0, xmmword [0x1400c9df0]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], si
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14009a9d0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14007cea0
int3
Function at 0x140068830
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x1400688a4
mov qword [rsp + 0x30], rbp
mov ebp, 0x7fffffff
nop word [rax + rax]
mov rcx, qword [0x1400ded30]
lea rdx, [rbx + rsi]
mov r8d, edi
cmp rdi, rbp
cmova r8d, ebp
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x14006888c
cdqe
add rbx, rax
sub rdi, rax
jne 0x140068860
mov rbp, qword [rsp + 0x30]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14006d010
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
lea ecx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
mov esi, eax
mov word [rsp + 0x20], bp
xor r9d, r9d
xor r8d, r8d
lea edx, [rbp + 4]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetGeoInfoA]
movsxd rdi, eax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], send
mov byte [rbx], bpl
mov dword [rsp + 0x30], 1
mov rdx, rdi
xor r8d, r8d
mov rcx, rbx
call fcn.14003e460
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14006d08e
mov r8, qword [rbx]
mov word [rsp + 0x20], bp
mov r9d, edi
mov edx, 4
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetGeoInfoA]
lea eax, [rdi - 1]
movsxd rdx, eax
xor r8d, r8d
mov rcx, rbx
call fcn.14003e460
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret