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

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d1550
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d0e72
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f3108]
test eax, eax
je 0x2fc4d0f0a
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f3110]
mov qword [rbp - 8], rax
jmp 0x2fc4d0eee
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d0ee2
cmp qword [rbp - 0x10], 0
je 0x2fc4d0ee2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d0ea8
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d0f0b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d1010
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d1038
mov eax, 0
jmp 0x2fc4d1086
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d1061
mov eax, 0
jmp 0x2fc4d1086
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d1081
mov eax, 0
jmp 0x2fc4d1086
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d108c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d110a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d1101
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d1101
mov rax, qword [rbp - 8]
jmp 0x2fc4d111f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d10d4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000e450
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r12, r8
xor esi, esi
test r8, r8
je 0x14000e546
mov r15, rdx
mov r13, rcx
sub r13, rdx
nop dword [rax]
mov cl, 1
call fcn.14001036c
mov r14, rax
mov qword [rsp + 0x30], rax
mov cl, 1
call fcn.14001036c
mov rbp, rax
mov qword [rsp + 0x40], rax
movzx ebx, byte [r15 + r13]
lea rcx, [rsp + 0x28]
call fcn.1400035e0
mov r8, qword [rax]
movzx edx, bl
mov rcx, rax
call qword [r8 + 0x30]
movzx edi, al
movzx ebx, byte [r15]
lea rcx, [rsp + 0x38]
call fcn.1400035e0
mov r8, qword [rax]
movzx edx, bl
mov rcx, rax
call qword [r8 + 0x30]
cmp dil, al
sete bl
test rbp, rbp
je 0x14000e511
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x10]
test rax, rax
je 0x14000e511
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
test r14, r14
je 0x14000e533
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x10]
test rax, rax
je 0x14000e533
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
test bl, bl
je 0x14000e560
inc rsi
inc r15
cmp rsi, r12
jb 0x14000e490
xor eax, eax
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov cl, 1
call fcn.14001036c
mov r14, rax
mov qword [rsp + 0x40], rax
mov cl, 1
call fcn.14001036c
mov r15, rax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x90]
movzx ebx, byte [rsi + rax]
lea rcx, [rsp + 0x38]
call fcn.1400035e0
mov r8, qword [rax]
movzx edx, bl
mov rcx, rax
call qword [r8 + 0x30]
movzx edi, al
mov rax, qword [rsp + 0x98]
movzx ebx, byte [rsi + rax]
lea rcx, [rsp + 0x28]
call fcn.1400035e0
mov r8, qword [rax]
movzx edx, bl
mov rcx, rax
call qword [r8 + 0x30]
cmp dil, al
setl bl
test r15, r15
je 0x14000e5ef
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x10]
test rax, rax
je 0x14000e5ef
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
test r14, r14
je 0x14000e611
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x10]
test rax, rax
je 0x14000e611
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
movzx eax, bl
xor eax, 1
lea eax, [rax*2 - 1]
jmp 0x14000e548

Function at 0x14003f320
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
mov dword [rsp + 0x30], eax
call fcn.140066ad0
mov ebx, 2
lea r8, [rsp + 0x30]
mov r9d, ebx
mov rcx, qword [rax + 0x28]
lea edx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov eax, dword [rsp + 0x30]
cmp ax, 0x30
je 0x14003f36e
cmp ax, 0x31
jne 0x14003f362
mov ebx, 1
jmp 0x14003f36e
xor ebx, ebx
cmp ax, 0x32
lea ecx, [rbx + 3]
cmove ebx, ecx
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x2fc5158d0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc5169b0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc5162d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc538108]
test eax, eax
je 0x2fc51636a
lea rax, [0x2fc5380e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc538110]
mov qword [rbp - 8], rax
jmp 0x2fc51634e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc516342
cmp qword [rbp - 0x10], 0
je 0x2fc516342
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc516308
lea rax, [0x2fc5380e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc51636b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc516470
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc516498
mov eax, 0
jmp 0x2fc5164e6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc5164c1
mov eax, 0
jmp 0x2fc5164e6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc5164e1
mov eax, 0
jmp 0x2fc5164e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc5164ec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc51656a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc516561
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc516561
mov rax, qword [rbp - 8]
jmp 0x2fc51657f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc516534
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc54ff70
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc551050
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc550972
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc573108]
test eax, eax
je 0x2fc550a0a
lea rax, [0x2fc5730e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc573110]
mov qword [rbp - 8], rax
jmp 0x2fc5509ee
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc5509e2
cmp qword [rbp - 0x10], 0
je 0x2fc5509e2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc5509a8
lea rax, [0x2fc5730e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc550a0b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc550b10
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc550b38
mov eax, 0
jmp 0x2fc550b86
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc550b61
mov eax, 0
jmp 0x2fc550b86
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc550b81
mov eax, 0
jmp 0x2fc550b86
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc550b8c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc550c0a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc550c01
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc550c01
mov rax, qword [rbp - 8]
jmp 0x2fc550c1f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc550bd4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002620
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x120], rax
movups xmm0, xmmword [str.Accept:___r_n_r_n]
mov rbx, rcx
mov rsi, r8
lea rcx, [r11 - 0x38]
mov rdi, rdx
movups xmmword [r11 - 0x38], xmm0
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x110]
mov r9d, eax
mov dword [rsp + 0x20], 0x4000000
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rdi, rax
test rax, rax
je 0x140002707
lea rdx, [0x140009680]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
je 0x140002707
lea r9, [rsp + 0x30]
mov r8d, 0x32
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400026fe
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140002724
mov r8d, eax
lea rcx, [rsp + 0x40]
mov r9, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea r9, [rsp + 0x30]
mov r8d, 0x32
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1400026c3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400077f0
add rsp, 0x130
pop rdi
pop rsi
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, 1
jmp 0x140002709
Function at 0x140005be0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140005c0d
xor eax, eax
jmp 0x140005d62
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140005c38
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140005c38
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140005d62
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140005d55
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140005c7b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x140005ca6
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 0x140005d5a
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 0x140005d15
sub eax, 1
je 0x140005d15
cmp eax, 2
jne 0x140005d55
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 0x140005d5a
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140005d43
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 0x140005d55
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x140005d5a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400077f0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140006110
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400061e3
cmp byte [rcx + 0x71], 0
je 0x1400061e3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400061df
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 0x1400061a4
sub eax, 1
je 0x1400061a8
cmp eax, 2
jne 0x1400061df
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400077f0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400061d6
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 0x1400061df
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000618c
xor al, al
jmp 0x14000618c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400077f0
add rsp, 0x60
pop rbx
ret
Function at 0x140006d70
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x140006dd1
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140006d90
mov ecx, dword [r10]
jmp 0x140006eba
cmp ecx, 0x4e0
jb 0x140006eba
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140006df0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140006e40
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x140007400
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14d, edx
xorps xmm0, xmm0
mov r15, r8
movups xmmword [rbp - 0x59], xmm0
movups xmmword [rbp - 0x49], xmm0
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
test r8, r8
jne 0x14000744e
neg r14d
jmp 0x1400075ff
cmp r9d, r14d
jae 0x14000745a
xor eax, eax
jmp 0x140007602
mov qword [rsp + 0xf8], rbx
mov rdx, rcx
mov qword [rsp + 0xb8], rsi
mov rcx, r15
mov r8, r14
mov qword [rsp + 0xb0], rdi
call sub.VCRUNTIME140.dll_memcpy
xor ebx, ebx
lea rsi, [rbp + 7]
mov edi, ebx
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
inc edi
mov byte [rsi], al
lea rsi, [rsi + 1]
cmp edi, 0x20
jb 0x140007488
mov rdi, qword [rsp + 0xb0]
mov r10b, 1
mov rsi, qword [rsp + 0xb8]
mov rcx, rbx
mov edx, 0x20
nop word [rax + rax]
movzx eax, byte [rbp + rcx + 7]
mov byte [rbp + rcx - 0x19], al
mov byte [rbp + rcx - 0x39], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1400074c0
mov r9b, 7
lea r11, str.cw
movzx ecx, byte [rbp - 0x19]
lea rdx, [rbp - 0x17]
movzx eax, byte [rbp + 4]
mov r8b, 4
xor cl, byte [rax + r11]
movzx eax, byte [rbp + 5]
xor cl, r10b
mov byte [rbp - 0x19], cl
movzx eax, byte [rax + r11]
xor byte [rbp - 0x18], al
movzx eax, byte [rbp + 6]
movzx eax, byte [rax + r11]
xor byte [rbp - 0x17], al
movzx eax, byte [rbp + 3]
movzx eax, byte [rax + r11]
xor byte [rbp - 0x16], al
movzx eax, r10b
shr al, 7
add r10b, r10b
movzx eax, al
imul ecx, eax, 0x1b
xor r10b, cl
movzx eax, r8b
lea rdx, [rdx + 4]
add r8b, 4
movzx ecx, byte [rbp + rax - 0x1d]
movzx eax, byte [rdx - 5]
xor byte [rdx - 1], al
movzx eax, byte [rdx - 4]
xor byte [rdx], al
movzx eax, byte [rdx - 3]
xor byte [rdx + 1], al
xor byte [rdx - 2], cl
cmp r8b, 0x10
jb 0x140007531
movzx eax, byte [rbp - 0xd]
mov r8b, 0x14
movzx eax, byte [rax + r11]
xor byte [rbp - 9], al
movzx eax, byte [rbp - 0xc]
movzx eax, byte [rax + r11]
xor byte [rbp - 8], al
movzx eax, byte [rbp - 0xb]
movzx eax, byte [rax + r11]
xor byte [rbp - 7], al
movzx eax, byte [rbp - 0xa]
movzx eax, byte [rax + r11]
xor byte [rbp - 6], al
lea rax, [rbp - 7]
nop word [rax + rax]
movzx ecx, r8b
lea rax, [rax + 4]
add r8b, 4
movzx edx, byte [rbp + rcx - 0x1d]
movzx ecx, byte [rax - 5]
xor byte [rax - 1], cl
movzx ecx, byte [rax - 4]
xor byte [rax], cl
movzx ecx, byte [rax - 3]
xor byte [rax + 1], cl
xor byte [rax - 2], dl
cmp r8b, 0x20
jb 0x1400075a0
add r9b, 0xff
jne 0x1400074e1
test r14d, r14d
je 0x1400075f7
nop dword [rax]
movsxd rdx, ebx
lea rcx, [rbp - 0x59]
add rdx, r15
call fcn.140006f20
add ebx, 0x10
cmp ebx, r14d
jb 0x1400075e0
mov rbx, qword [rsp + 0xf8]
mov eax, r14d
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400077f0
add rsp, 0xc0
pop r15
pop r14
pop rbp
ret