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

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14011f100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14011f0e0]
test rbx, rbx
je 0x14000b5e4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000b5db
test r12, r12
je 0x14000b5db
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000b5c0
lea rcx, [0x14011f100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000b920
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1400fa5e0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x14000b999
mov rcx, r10
call fcn.14000b7f0
test eax, eax
je 0x14000b999
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x14000b996
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14000b98d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x14000b999
add r8, 0x28
cmp r8, r9
jne 0x14000b978
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x14000bc90
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x14011f0e8]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x14000b620
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x14000b673
mov dword [rax], edi
lea rcx, [0x14011f100]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x14011f0e0]
lea rcx, [0x14011f100]
mov qword [0x14011f0e0], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
or eax, 0xffffffff
jmp 0x14000b616
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x14000bcc0
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x1400172b0
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x1400172c0
xor eax, eax
ret
jmp 0x14000b600

Function at 0x14000bd00
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x14000bd40
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000bd58
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x140073c80
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
jmp 0x140073ca7
call rbp
cmp dword [rax], 4
jne 0x140073cc4
mov rcx, rdi
call fcn.140073aa0
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x140073ca0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400af370
Capabilities:
Create thread
Inject thread

Disassembly:
push r12
push rbx
sub rsp, 0x88
call fcn.14000abe0
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0x40e10
call rbx
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea r9, [rsp + 0x70]
mov dword [rsp + 0x28], 4
mov rcx, rax
mov dword [rsp + 0x20], 0x3000
call sub.ntdll.dll_NtAllocateVirtualMemory
call fcn.140017450
mov edx, dword [0x1400b1190]
mov r9d, 0x10
lea r8, [0x1400b11a0]
lea rcx, [0x1400b3fc0]
call fcn.1400172d0
mov r12, qword [rsp + 0x68]
call rbx
mov r9d, 0x40e10
lea r8, [0x1400b3fc0]
mov qword [rsp + 0x20], 0
mov rcx, rax
mov rdx, r12
call sub.ntdll.dll_NtWriteVirtualMemory
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x64]
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400af4bf
call fcn.140017450
mov r12, qword [rsp + 0x68]
call rbx
lea rcx, [rsp + 0x78]
xor r8d, r8d
mov edx, 0x1f03ff
mov qword [rsp + 0x50], 0
mov r9, rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], r12
call sub.ntdll.dll_NtCreateThreadEx
call fcn.140017450
mov rcx, qword [rsp + 0x78]
xor r8d, r8d
xor edx, edx
call sub.ntdll.dll_NtWaitForSingleObject
call fcn.140017450
mov rcx, qword [rsp + 0x78]
call sub.ntdll.dll_NtClose
xor eax, eax
add rsp, 0x88
pop rbx
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.VirtualProtect_failed_with_error_code:__lx_n
mov edx, eax
call fcn.140017950
or eax, 0xffffffff
jmp 0x1400af4b4
Function at 0x140004907
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.1400123e0
mov r15, qword [0x14002048c]
cmp r15, 1
jne 0x1400049d6
push qword [0x14002057c]
pop rcx
call fcn.14000d5b4
mov r15, rax
and r15, r15
jle 0x14000496c
mov rcx, qword [0x14002057c]
call fcn.14000d5bc
mov rcx, qword [0x14002057c]
call fcn.14000d5d0
or rax, rax
je 0x14000496c
mov rbp, qword [0x140020584]
push qword [rbp + 0x10]
pop rcx
call fcn.14000da6c
jmp 0x140004949
push qword [0x14002056c]
pop rcx
call fcn.14000d5b4
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x1400049d6
push 5
push 0
push 1
push qword [0x14002056c]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009070
mov rcx, qword [0x14002056c]
call fcn.14000d5bc
mov rcx, qword [0x14002056c]
call fcn.14000d5d0
or rax, rax
je 0x1400049d6
mov rbp, qword [0x140020574]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x1400049b3
mov rax, 1
jmp 0x1400049e2
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006a58
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x14000720c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
fsubr st(4), st(0)
mov bh, ah
sbb al, 0x23
cmp al, 0xdd
invalid
mov al, 0x4f
mov ebp, 0xd77a5eb4
mov edx, 0x630a49a8
or spl, byte [r11 + 0x65]
pop rbx
invalid
cmpsd dword [rsi], dword [rdi]
in al, 0x43
rol dword [rax + 0x5f], 1
xor al, 0xca
pop rsp
invalid
cli
add byte [rsi + rsi - 9], dh
ja 0x14003f686
mov dl, 0x70
loop 0x14003f6c0
xor byte [rcx - 0x21], ah
ja 0x14003f693
mov ecx, 0xf9212d7f
jg 0x14003f6a7
and ecx, edi
invalid
loop 0x14003f6cc
invalid
mov dh, 0xec
invalid
invalid
mov eax, 0x556ca7c2
invalid
ret 0x6ca7
retf
sbb dword [rsp + rax - 0x63b32607], edi
invalid
sub byte [rax - 0x48228f8a], dh
jbe 0x14003f740
invalid
mov bh, 7
Function at 0x140011249
Capabilities:
Enumerate processes

Disassembly:
jmp 0x14001bba0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x258
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x5e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x278]
mov rax, qword [0x140032340]
xor rax, rbp
mov qword [rbp + 0x228], rax
lea rcx, [0x14003a5ab]
call fcn.1400118e3
xor edx, edx
mov ecx, 2
call fcn.140011410
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x14001bc0e
xor al, al
jmp 0x14001bc71
mov dword [rbp + 0x30], 0x130
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.14001173f
test eax, eax
je 0x14001bc65
lea rdx, [rbp + 0x5c]
mov rcx, qword [rbp + 0x258]
call fcn.1400119fb
test eax, eax
jne 0x14001bc54
mov rax, qword [rbp + 0x260]
mov ecx, dword [rbp + 0x38]
mov dword [rax], ecx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14001bc71
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.1400118f7
test eax, eax
jne 0x14001bc26
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14002c0f0]
call fcn.14001174e
mov rax, rdi
mov rcx, qword [rbp + 0x228]
xor rcx, rbp
call fcn.14001142e
lea rsp, [rbp + 0x238]
pop rdi
pop rbp
ret

Function at 0x1400114ce
Capabilities:
Terminate process

Disassembly:
jmp 0x140023230
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400115fa
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400220f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140022110
xor al, al
jmp 0x140022191
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140022123
xor al, al
jmp 0x140022191
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14002214d
xor al, al
jmp 0x140022191
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140022161
xor al, al
jmp 0x140022191
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140022173
xor al, al
jmp 0x140022191
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002218f
xor al, al
jmp 0x140022191
mov al, 1
add rsp, 0x38
ret
Function at 0x140011613
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x14001bce0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x828
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x172
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x848]
mov rax, qword [0x140032340]
xor rax, rbp
mov qword [rbp + 0x7f8], rax
mov dword [rbp + 0x7c4], 0
lea rcx, [0x14003a5ab]
call fcn.1400118e3
mov rax, qword [rbp + 0x820]
mov edx, dword [rax]
mov ecx, 0x18
call fcn.140011410
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x14001bd8c
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x828]
call fcn.1400110cd
mov eax, dword [rbp + 0x7c4]
or eax, 1
mov dword [rbp + 0x7c4], eax
mov rax, qword [rbp + 0x828]
jmp 0x14001beb2
lea rcx, [rbp + 0x28]
call fcn.1400110cd
nop
mov dword [rbp + 0x80], 0x438
lea rdx, [rbp + 0x80]
mov rcx, qword [rbp + 8]
call fcn.140011573
test eax, eax
je 0x14001be79
lea rdx, [rbp + 0xb0]
mov rcx, qword [rbp + 0x830]
call qword [sym.imp.ucrtbased.dll_wcscmp]
test eax, eax
jne 0x14001be61
lea rax, [rbp + 0x768]
mov qword [rbp + 0x7a8], rax
mov eax, dword [rbp + 0xa0]
mov qword [rbp + 0x7d8], rax
mov rdx, qword [rbp + 0x830]
mov rcx, qword [rbp + 0x7a8]
call fcn.1400112d5
mov qword [rbp + 0x7e0], rax
mov rax, qword [rbp + 0x7d8]
mov r9, rax
mov r8, qword [rbp + 0x98]
mov rdx, qword [rbp + 0x7e0]
lea rcx, [rbp + 0x718]
call fcn.14001135c
mov qword [rbp + 0x7e8], rax
mov rax, qword [rbp + 0x7e8]
mov qword [rbp + 0x7f0], rax
mov rdx, qword [rbp + 0x7f0]
lea rcx, [rbp + 0x28]
call fcn.140011870
nop
lea rcx, [rbp + 0x718]
call fcn.1400113b1
jmp 0x14001be79
lea rdx, [rbp + 0x80]
mov rcx, qword [rbp + 8]
call fcn.14001114a
test eax, eax
jne 0x14001bdb8
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 0x828]
call fcn.140011118
mov eax, dword [rbp + 0x7c4]
or eax, 1
mov dword [rbp + 0x7c4], eax
lea rcx, [rbp + 0x28]
call fcn.1400113b1
mov rax, qword [rbp + 0x828]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14002c1c0]
call fcn.14001174e
mov rax, rdi
mov rcx, qword [rbp + 0x7f8]
xor rcx, rbp
call fcn.14001142e
lea rsp, [rbp + 0x808]
pop rdi
pop rbp
ret
Function at 0x1400419c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400419e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400419e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x140003108
Capabilities:
Parse pe header

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

Function at 0x1400018e8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001932
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001932
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001932
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001932
cmp dword [rcx + 0x84], 0xe
jbe 0x140001932
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001934
xor al, al
add rsp, 0x28
ret
Function at 0x14000ec40
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
sub rsp, 0x180
lea rbp, [rsp + 0x70]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1400ab0c0]
xor rax, rsp
mov qword [rbp + 0x100], rax
xorps xmm0, xmm0
mov dword [rbp + 0x60], 0x68
xor eax, eax
cmp qword [rcx + 0x18], 0xf
movups xmmword [rbp + 0x64], xmm0
mov dword [rbp + 0xc4], eax
movups xmmword [rbp + 0x74], xmm0
mov qword [rbp + 0x50], rax
movups xmmword [rbp + 0x84], xmm0
movups xmmword [rbp + 0x94], xmm0
movups xmmword [rbp + 0xa4], xmm0
movups xmmword [rbp + 0xb4], xmm0
movups xmmword [rbp + 0x40], xmm0
jbe 0x14000ecaf
mov rcx, qword [rcx]
lea rax, [rbp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp + 0x60]
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14000edea
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
movabs rdx, 0x1f1f9fbcccd9232
movabs rax, 0x7ee9d91c9256a498
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x20], rax
movabs rax, 0x11f04ce6083b3437
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movabs rax, 0x4455c91c58cd9fdc
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x30], rax
mov qword [rbp], rdx
mov rax, qword [rbp]
mov qword [rbp + 0x38], rax
movabs rax, 0xcb9bc68f333d6db
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xe0], rax
movabs rax, 0x70966c957b5e5758
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xe8], rax
movabs rax, 0x4455e9263ca8f3b5
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xf0], rax
mov qword [rbp], rdx
lea rdx, [rbp + 0x20]
mov rax, qword [rbp]
mov qword [rbp + 0xf8], rax
vmovdqu ymm0, ymmword [rbp + 0xe0]
vpxor ymm1, ymm0, ymmword [rbp + 0x20]
vmovdqa ymmword [rbp + 0x20], ymm1
vzeroupper
call fcn.140001e50
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140006f30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
jmp 0x14000ee00
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.1400858c0
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rbp
ret
Function at 0x14000ee20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor eax, eax
mov dword [rsp + 0x24], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], al
mov dword [rsp + 0x24], 1
test edx, edx
jle 0x14000ef16
mov ecx, dword [0x1400ad7f0]
mov rax, qword gs:[0x58]
mov r8d, 4
mov r14, qword [rax + rcx*8]
add r14, r8
mov esi, edx
lea rbp, [0x1400abe00]
movzx ebx, byte [rsp + 0x20]
nop
mov eax, dword [r14]
cmp dword [0x1400ad188], eax
jg 0x14000ef6a
mov rcx, rbp
call fcn.14000e4a0
mov ecx, eax
imul r9, rcx, 0x1a
cmp r9d, 0x15
ja 0x14000eec7
mov rcx, rbp
call fcn.14000e4a0
mov ecx, eax
imul r9, rcx, 0x1a
cmp r9d, 0x16
jb 0x14000eeb3
shr r9, 0x20
add r9b, 0x41
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x14000eefb
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x14000eef0
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14000ef0c
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140004f70
sub rsi, 1
jne 0x14000ee90
mov rax, rdi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rbp + rcx*4 + 4], edx
inc rcx
cmp rcx, 0x270
jb 0x14000ef30
mov dword [0x1400abe00], 0x270
lea rcx, [0x1400ad188]
call fcn.14008566c
jmp 0x14000ee9f
lea rcx, [0x1400ad188]
call fcn.1400856d8
cmp dword [0x1400ad188], 0xffffffff
jne 0x14000ee9f
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov edx, eax
mov dword [0x1400ad184], 0xffffffff
mov dword [0x1400abe04], eax
mov ecx, 1
jmp 0x14000ef30
Function at 0x14000f3b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
sub rsp, 0x1d0
lea rbp, [rsp + 0x50]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1400ab0c0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rbx, rcx
mov qword [rbp], rcx
lea rax, [rbp + 0x60]
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, Ordinal_32
xor edi, edi
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x14000f432
xorps xmm0, xmm0
lea rax, [rbp + 0x60]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], rdi
nop
inc r8
cmp byte [rax + r8], dil
jne 0x14000f420
lea rdx, [rbp + 0x60]
jmp 0x14000f522
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
movabs rdx, 0x1f1f9fbcccd9232
movabs rax, 0x4999d10d8740af88
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x20], rax
movabs rax, 0x44d54caf0931252a
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movabs rax, 0x4455e9263ca8c285
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x30], rax
mov qword [rbp], rdx
mov rax, qword [rbp]
mov qword [rbp + 0x38], rax
movabs rax, 0xcb9bc68f333d6db
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x40], rax
movabs rax, 0x70966c957b5e5758
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x48], rax
movabs rax, 0x4455e9263ca8f3b5
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x50], rax
mov qword [rbp], rdx
lea rdx, [rbp + 0x20]
mov rax, qword [rbp]
mov qword [rbp + 0x58], rax
vmovdqu ymm0, ymmword [rbp + 0x40]
vpxor ymm1, ymm0, ymmword [rbp + 0x20]
vmovdqa ymmword [rbp + 0x20], ymm1
vzeroupper
call fcn.140001e50
lea rdx, [0x140006f30]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xorps xmm0, xmm0
lea rdx, [0x14008af99]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
xor r8d, r8d
mov qword [rbx + 0x18], rdi
mov rcx, rbx
call fcn.140002280
mov rax, rbx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400858c0
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140011190
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400ab0c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140011263
cmp byte [rcx + 0x71], 0
je 0x140011263
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14001125f
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 0x140011224
sub eax, 1
je 0x140011228
cmp eax, 2
jne 0x14001125f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400858c0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140011256
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 0x14001125f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001120c
xor al, al
jmp 0x14001120c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400858c0
add rsp, 0x60
pop rbx
ret