joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140038340
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x40
xor r8d, r8d
lea r9, [rcx + 0x28]
cmp dword [rcx + 0x18], 2
mov rbx, rcx
mov dword [r9], r8d
jne 0x140038416
mov eax, dword [rcx + 0x1a8]
lea rdx, [rcx + 0x1c8]
add eax, dword [rcx + 0x58]
xorps xmm0, xmm0
sub eax, dword [rcx + 0x68]
movups xmmword [rdx], xmm0
xor ecx, ecx
mov dword [rsp + 0x50], r8d
mov qword [rdx + 0x10], rcx
mov dword [rbx + 0x200], eax
mov rax, qword [rbx + 0x68]
mov qword [rbx + 0x208], rax
lock inc dword [rbx + 0x260]
mov ecx, dword [rbx + 0x24]
test ecx, ecx
je 0x1400383d1
cmp ecx, 1
jne 0x140038416
mov r8d, dword [rbx + 0x200]
xor r9d, r9d
mov rcx, qword [rbx + 0x10]
mov qword [rsp + 0x20], rdx
mov rdx, qword [rbx + 0x208]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140038416
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140038407
mov rcx, qword [rbx + 0x10]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], r8
mov r8d, 1
mov qword [rsp + 0x28], rdx
lea rdx, [rbx + 0x200]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x140038416
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x140038416
mov rcx, rbx
call fcn.140038690
add rsp, 0x40
pop rbx
ret
Function at 0x140038850
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
movzx ebx, dl
mov rdi, rcx
test dl, dl
jne 0x14003887a
movzx eax, byte [rcx + 0x50]
test al, al
jne 0x1400389c8
mov rcx, qword [rcx + 0x240]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ebp, ebp
mov qword [rdi + 0x240], rbp
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rsi, qword [rdi + 0x38]
test rsi, rsi
je 0x1400389a4
mov rax, qword [rsi]
mov qword [rdi + 0x38], rax
mov qword [rsi], rbp
mov qword [rsp + 0x50], r14
cmp qword [rdi + 0x38], rbp
jne 0x1400388c0
mov qword [rdi + 0x40], rbp
dec dword [rdi + 0x48]
mov eax, dword [rsi + 0x10]
mov rcx, qword [rdi + 0x30]
sub dword [rdi + 0x4c], eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [rsi + 0x10]
xor ecx, ecx
mov dword [rdi + 0x248], eax
mov rbx, qword [rsi + 8]
mov qword [rdi + 0x250], rbx
mov qword [rsi + 8], rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, 0x20
mov rcx, rsi
call fcn.14003c550
lock inc dword [rdi + 0x260]
mov ecx, dword [rdi + 0x24]
mov qword [rdi + 0x240], rbx
test ecx, ecx
je 0x14003894d
cmp ecx, 1
jne 0x140038997
mov r8d, dword [rdi + 0x248]
lea rax, [rdi + 0x210]
mov rdx, qword [rdi + 0x250]
xor r9d, r9d
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140038997
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140038988
mov rcx, qword [rdi + 0x10]
lea rax, [rdi + 0x210]
mov qword [rsp + 0x30], rbp
lea r9, [rdi + 0x54]
mov qword [rsp + 0x28], rax
lea rdx, [rdi + 0x248]
mov r8d, 1
mov dword [rsp + 0x20], ebp
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x140038997
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x140038997
mov rcx, rdi
call fcn.140038690
mov r14, qword [rsp + 0x50]
mov al, 1
mov byte [rdi + 0x50], 1
jmp 0x1400389ca
mov rcx, qword [rdi + 0x30]
mov qword [rdi + 0x48], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x1400389c8
mov qword [rdi + 0x240], rbp
mov qword [rdi + 0x250], rbp
mov byte [rdi + 0x50], bpl
xor al, al
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14003a9e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ecx, dword [section..data]
cmp ecx, 0xffffffff
jne 0x14003a9fe
xor esi, esi
jmp 0x14003aa07
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x30], rsi
test rsi, rsi
je 0x14003aafd
mov rcx, qword [rsi + 0x30]
mov rax, qword [rsi + 0x18]
mov rbx, rax
mov rdx, rbx
test rcx, rcx
jne 0x14003aa31
test rax, rax
je 0x14003aad6
mov rbx, rax
test rcx, rcx
cmovne rbx, rdx
test rbx, rbx
je 0x14003aa9b
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003aa77
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rbx]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rsi + 0x18]
mov rbx, rax
test rax, rax
jne 0x14003aa40
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x14003aa20
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14003aabc
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x14003aabc
call qword [rbx + 0x28]
mov rdx, rbx
lea rcx, [rsi + 0x28]
call fcn.140039700
cmp qword [rsi + 0x30], 0
jne 0x14003aaa0
xor ecx, ecx
jmp 0x14003aa19
lea rdx, [0x140039f00]
lea rcx, [0x140058258]
call fcn.140039bd0
mov ecx, dword [section..data]
cmp ecx, 0xffffffff
je 0x14003aafd
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x14003ab30
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x14003ab30
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14003ab40
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r9, qword [rcx]
lea r8, [0x14003abd0]
mov rdi, rcx
xor edx, edx
xor ecx, ecx
lea rax, [r9 + 0x20]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rsi, rax
test rax, rax
jne 0x14003ab85
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rdi]
mov qword [rsp + 0x40], rbx
lock inc dword [rax + 8]
mov rbx, qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14003aba8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rsi
mov rcx, qword [rdi]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rsp + 0x40]
mov al, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x6d8caa60
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8eb5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8cabe8
mov rax, qword [0x6d8eb5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8caaac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8cab35
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8caa90
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8cac1d
mov rax, qword [0x6d8eb5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8eb5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8cac00
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8cab2e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8cab90
add dword [0x6d8eb5e4], 1
cmp edi, 8
jae 0x6d8cab63
test dil, 4
jne 0x6d8cabd4
test edi, edi
je 0x6d8cab58
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8cabef
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d8cab58
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d8cab7c
jmp 0x6d8cab58
add rsi, qword [0x6d8eb5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d8cab2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d8cab58
xor esi, esi
jmp 0x6d8caab7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8cab58
mov rax, qword [0x6d8eb5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d8cb370
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8eb8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8eb8a0]
test rbx, rbx
je 0x6d8cb3c4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d8cb3bb
test rsi, rsi
je 0x6d8cb3bb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8cb3a0
lea rcx, [0x6d8eb8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d8cb600
Capabilities:
Parse pe header

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

Function at 0x6d8cb620
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 0x6d8cb661
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d8cb658
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8cb663
add rax, 0x28
cmp rax, r9
jne 0x6d8cb644
xor eax, eax
ret

Function at 0x6d8cb700
Capabilities:
Enumerate pe sections

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

Function at 0x6d8cb870
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8e81f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8cb890
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8cb888
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8cb8ed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8cb8e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8cb8f4
add rax, 0x28
cmp rax, r9
jne 0x6d8cb8d0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8cb910
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8e81f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8cb97e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8cb97e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8cb97e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8cb97e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d8cb975
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8cb985
add rcx, 0x28
cmp rcx, rax
jne 0x6d8cb960
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8cb998
jmp 0x6d8cb97e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8cb9a6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8cb97e
test r9d, r9d
jg 0x6d8cb990
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8cbd10
Capabilities:
Write file on windows

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
mov eax, 0x20020
call sub.ntdll.dll___chkstk
sub rsp, rax
movsxd rdi, ecx
mov rcx, qword [sym.imp.msvcrt.dll__iob]
xor r14d, r14d
add rcx, 0x30
mov rbp, rdx
mov ebx, r14d
call qword [sym.imp.msvcrt.dll__fileno]
mov esi, 0x40000
mov ecx, eax
mov edx, esi
call qword [sym.imp.msvcrt.dll__setmode]
mov rcx, qword [sym.imp.msvcrt.dll__iob]
add rcx, 0x60
mov dword [0x7ff60f220838], eax
call qword [sym.imp.msvcrt.dll__fileno]
mov edx, esi
mov ecx, eax
call qword [sym.imp.msvcrt.dll__setmode]
mov dword [0x7ff60f220840], eax
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ecx, 0xfde9
mov dword [0x7ff60f22083c], eax
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
lea rcx, str.mimikatz_2.2.0_x64__oe.eo_
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea edx, [r14 + 1]
lea rcx, [0x7ff60f1656e0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rcx, str._n__..___mimikatz_2.2.0__x64__19041_Sep_19_2022_17:44:08_n_.__.___A_La_Vie__A_LAmour_____oe.eo__n_________Benjamin_DELPY__gentilkiwi____benjamin_gentilkiwi.com___n______________https:__blog.gentilkiwi.com_mimikatz_n__v________Vincent_LE_TOUX_______________vincent.letoux_gmail.com___n____________https:__pingcastle.com___https:__mysmartlogon.com___n
call fcn.7ff60f0ec030
lea ecx, [r14 + 1]
call fcn.7ff60f1656f4
lea esi, [r14 + 1]
cmp rsi, rdi
jge 0x7ff60f1655be
cmp ebx, 0xc000010a
je 0x7ff60f165655
cmp ebx, 0xc000004b
je 0x7ff60f165649
mov rdx, qword [rbp + rsi*8]
lea rcx, str._nmimikatz_commandline____s_n
call fcn.7ff60f0ec030
mov rcx, qword [rbp + rsi*8]
call fcn.7ff60f1657f4
inc rsi
cmp rsi, rdi
mov ebx, eax
jl 0x7ff60f16557c
jmp 0x7ff60f165649
cmp ebx, 0xc000004b
je 0x7ff60f165655
lea rcx, str._nmimikatz_
call fcn.7ff60f0ec030
mov rcx, qword [sym.imp.msvcrt.dll__iob]
call qword [sym.imp.msvcrt.dll_fflush]
mov r8, qword [sym.imp.msvcrt.dll__iob]
lea rcx, [rsp + 0x20]
mov edx, 0xffff
call qword [sym.imp.msvcrt.dll_fgetws]
cmp rax, r14
je 0x7ff60f165649
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
je 0x7ff60f165649
cmp word [rsp + 0x20], 0xa
je 0x7ff60f165649
cmp word [rsp + rcx*2 + 0x1e], 0xa
jne 0x7ff60f16562c
mov word [rsp + rcx*2 + 0x1e], r14w
lea rdx, [rsp + 0x20]
lea rcx, [0x7ff60f1d7d88]
call fcn.7ff60f0ec178
lea rcx, [rsp + 0x20]
call fcn.7ff60f1657f4
mov ebx, eax
cmp ebx, 0xc000010a
jne 0x7ff60f1655be
mov ecx, ebx
call fcn.7ff60f165660
int3
Function at 0x7ff60f165660
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
xor ecx, ecx
call fcn.7ff60f1656f4
lea rcx, [0x7ff60f1656e0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, qword [sym.imp.msvcrt.dll__iob]
add rcx, 0x30
call qword [sym.imp.msvcrt.dll__fileno]
mov edx, dword [0x7ff60f220838]
mov ecx, eax
call qword [sym.imp.msvcrt.dll__setmode]
mov rcx, qword [sym.imp.msvcrt.dll__iob]
add rcx, 0x60
call qword [sym.imp.msvcrt.dll__fileno]
mov edx, dword [0x7ff60f220840]
mov ecx, eax
call qword [sym.imp.msvcrt.dll__setmode]
mov ecx, dword [0x7ff60f22083c]
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
xor ecx, ecx
cmp ebx, 0xc000004b
jne 0x7ff60f1656d9
call qword [sym.imp.KERNEL32.dll_ExitThread]
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x7ff60f1657f4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov edi, 0xc0000001
test rcx, rcx
je 0x7ff60f16589d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
test eax, eax
je 0x7ff60f16589d
mov rdx, rbp
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x7ff60f16589d
mov r8d, ebp
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp ebp, eax
je 0x7ff60f165862
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, rax
test rbx, rbx
je 0x7ff60f16589d
movzx eax, word [rbx]
cmp eax, 0x21
je 0x7ff60f165889
cmp eax, 0x2a
je 0x7ff60f16587e
mov rcx, rbx
call fcn.7ff60f1658b4
jmp 0x7ff60f165892
lea rcx, [rbx + 2]
call fcn.7ff60f18f6e4
jmp 0x7ff60f165892
lea rcx, [rbx + 2]
call 0x7ff60f17e2b0
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x7ff60f1a90c4
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x7ff60f1a912f
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x7ff60f1a914f
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x7ff60f1b2620]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret
Function at 0x180003748
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1800ea010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, rdx
mov rbp, rcx
mov rcx, r8
mov rax, 0xfffffffffffff000
and rcx, rax
mov rsi, r8
mov qword [rdx], rcx
mov rdx, r8
sub rdx, rcx
lea r9, [rdi + 0x10]
add rdx, 0x1004
mov r8d, 0x40
and rdx, rax
mov qword [rdi + 8], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800037d2
mov r9, qword [rdi + 8]
lea rdx, str.__unprotect_memory__p__size_llu______p__size_llu__n
mov r8, qword [rdi]
mov rcx, rbp
mov qword [rsp + 0x28], 5
mov qword [rsp + 0x20], rsi
call fcn.180002da4
xor eax, eax
jmp 0x18000381f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, [rsp + 0x40]
call fcn.180003454
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rdi + 8]
lea rdx, str.Failed_to_unprotect_memory__p__size_llu______p__size_llu__error_lu__s__
mov r8, qword [rdi]
mov rcx, rbp
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], 5
mov qword [rsp + 0x20], rsi
call fcn.180002dcc
mov eax, 9
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1800a42b0
mov rbx, qword [rsp + 0x108]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret

Function at 0x180008114
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x18000816e
mov r11b, 0x23
lea rdi, [0x1800ae290]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x180008158
cmp rdx, 2
jb 0x180008158
cmp byte [r10], r11b
jne 0x180008158
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rbx
shr r9d, 8
xor r9d, dword [rdi + rcx*4]
test rdx, rdx
jne 0x180008136
jmp 0x1800081af
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x1800081af
mov r11b, 0x23
lea rdi, [0x1800ae290]
cmp dl, r11b
jne 0x180008193
cmp byte [r10], r11b
jne 0x180008193
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rdi + rcx*4]
test dl, dl
jne 0x180008181
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret
Function at 0x1800082e4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
test r8, r8
je 0x180008304
and qword [r8], 0
lea rdx, [0x1800ceac8]
call fcn.1800081c0
mov rbx, rax
test rax, rax
je 0x1800083f5
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x1800083ec
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1800083ec
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1800083ec
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1800083ec
mov rbp, rdi
cmp rdi, 0xffffffffffffffff
je 0x1800083ec
mov rax, qword [0x1800ede70]
test rax, rax
je 0x180008389
inc dword [rax + 0xf4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1800083ec
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x1800083d9
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1800ede70]
test rax, rax
je 0x1800083ce
dec dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1800083f5
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x1800083e7
mov qword [rsi], rbp
mov rax, rdi
jmp 0x1800083f7
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18000adac
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1800ea010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [rcx + 0xf8]
mov r8, rdx
mov qword [rsp + 0x20], rdx
mov r9, rcx
movsxd rdx, dword [rcx + 0xf0]
mov r10d, 8
mov ebx, dword [rax + rdx*4 - 4]
lea rdx, [rsp + 0x20]
not ebx
movzx eax, byte [rdx]
inc rdx
movzx ecx, bl
xor rcx, rax
shr ebx, 8
lea rax, [0x1800ae290]
xor ebx, dword [rax + rcx*4]
sub r10, 1
jne 0x18000adeb
mov rcx, qword [r9]
not ebx
cmp dword [rcx + 0x1210], ebx
jne 0x18000ae22
lea edx, [r10 + 0xc]
mov ecx, ebx
call fcn.18001ba28
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800a42b0
add rsp, 0x30
pop rbx
ret