joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010590
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14002b260]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400105b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400105b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400105b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140010605
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400105fc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400105b0
add rax, 0x28
cmp rax, r9
jne 0x1400105e8
xor eax, eax
ret

Function at 0x140010610
Capabilities:
Parse pe header

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

Function at 0x1400106c0
Capabilities:
Parse pe header

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

Function at 0x140010890
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400108b0
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x1400108f8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400108a4
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400108e5
Function at 0x140010a10
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x140032430]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x140010a33
lea rax, [0x140032438]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x15]
jmp 0x140010a7b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140010a78
lea rax, [0x140032460]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x14]
jmp 0x140010aab
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140010aa8
xor ecx, ecx
mov byte [0x140032474], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x14003247d], rdx
lea r8, [0x140032430]
lea rbx, [0x140032475]
mov qword [0x14003248d], rdx
mov qword [0x14003249d], rdx
mov qword [0x1400324ad], rdx
xor edx, edx
mov qword [0x140032475], rax
mov qword [0x140032485], rax
mov qword [0x140032495], rax
mov qword [0x1400324a5], rax
mov byte [0x1400324b5], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140010c86
lea rcx, [0x140032460]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140010bd1
lea rsi, [0x1400323a0]
lea r8, [0x1400324b5]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140010b7d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140010b70
lea rcx, [0x140032460]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140010c73
lea rcx, [0x140010920]
mov qword [0x1400323a0], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1400323a0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x56
lea rdx, [0x140032460]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1400324b5]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140010ca6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140010c23
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140010c10
mov rax, rdx
mov qword [0x1400323a0], rax
lea rsi, [0x1400323a0]
jmp 0x140010c49
cmp rdx, rsi
je 0x140010baf
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140010c40
cmp rdx, rsi
je 0x140010baf
mov qword [rdx + 8], rsi
lea rcx, [0x140010920]
call sub.msvcrt.dll__onexit
jmp 0x140010baf
lea rcx, [0x14002aac0]
call fcn.140010890
xor eax, eax
jmp 0x140010bc8
lea rcx, [0x14002aa98]
call fcn.140010890
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, [0x14002aae8]
call fcn.140010890
xor eax, eax
jmp 0x140010c2f
Function at 0x140013330
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14002b310]
mov rax, qword [rsi]
test rax, rax
je 0x1400133c0
cmp qword [rax + 0x30], 0
jne 0x1400133e0
lea rbx, [0x140024468]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140013390
cmp qword [rax + 0x30], 0
jne 0x1400133b0
lea rdx, [0x140024468]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x140023770
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140018230
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140013372
test rax, rax
jne 0x1400133b0
call fcn.140018230
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140013380
call fcn.140018230
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140013350
test rax, rax
jne 0x1400133e0
call fcn.140018230
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x14001335b
call sub.msvcrt.dll_abort
nop

Function at 0x1400133f0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140013502
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400134da
add rax, 1
cmp rax, 0x6b
je 0x1400134f7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x1400134d0
cmp edx, 0x6a
je 0x1400134f7
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1400134eb
Function at 0x140018230
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x140032620]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x140018253
lea rax, [0x140032628]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x14001829b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140018298
lea rax, [0x140032660]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x1400182cb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1400182c8
xor ecx, ecx
mov byte [0x140032679], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x140032682], rdx
lea r8, [0x140032620]
lea rbx, [0x14003267a]
mov qword [0x140032692], rdx
mov qword [0x1400326a2], rdx
mov qword [0x1400326b2], rdx
xor edx, edx
mov qword [0x14003267a], rax
mov qword [0x14003268a], rax
mov qword [0x14003269a], rax
mov qword [0x1400326aa], rax
mov byte [0x1400326ba], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400184a6
lea rcx, [0x140032660]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x1400183f1
lea rsi, [0x140032560]
lea r8, [0x1400326ba]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x14001839d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140018390
lea rcx, [0x140032660]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140018493
lea rcx, [0x140018140]
mov qword [0x140032560], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x140032560]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x140032660]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1400326ba]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x1400184c6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140018443
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140018430
mov rax, rdx
mov qword [0x140032560], rax
lea rsi, [0x140032560]
jmp 0x140018469
cmp rdx, rsi
je 0x1400183cf
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140018460
cmp rdx, rsi
je 0x1400183cf
mov qword [rdx + 8], rsi
lea rcx, [0x140018140]
call sub.msvcrt.dll__onexit
jmp 0x1400183cf
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.1400180b0
xor eax, eax
jmp 0x1400183e8
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.1400180b0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.1400180b0
xor eax, eax
jmp 0x14001844f
Function at 0x1400cd7e9
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov rsi, rcx
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400924f0
xor ebx, ebx
lea r14, str.PROGRAMFILES
mov r15, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r14]
mov word [rsp + 0x20], 0
and al, 0x20
add byte [rax], al
mov rdx, rdi
mov r8d, 0x104
call r15
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x1400cd864
mov edx, eax
mov rcx, rdi
mov r8, rsi
call fcn.1400cd896
test al, al
jne 0x1400cd891
add rbx, 8
cmp rbx, 0x18
jne 0x1400cd831
xor esi, esi
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14008fec0
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov sil, 1
jmp 0x1400cd870

Function at 0x1400cdada
Capabilities:
Get common file path
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x258
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0x250], rax
movabs rbx, 0x7fffffffffffffef
lea rsi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.1400924f0
mov word [rsi], 0
mov rcx, rsi
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
movaps xmm0, xmmword [0x14015c320]
movaps xmmword [rsp + 0x20], xmm0
mov rcx, rsi
call fcn.14008d7c8
cmp rax, rbx
ja 0x1400cdc0d
mov rsi, rax
cmp rax, 0xb
jae 0x1400cdb6f
lea rdi, [rsp + 0x20]
mov byte [rdi + 0x17], sil
test rsi, rsi
jne 0x1400cdb99
jmp 0x1400cdbac
lea r14, [rsi + 8]
and r14, 0xfffffffffffffff8
lea rcx, [r14 + r14]
call fcn.14008d2b8
mov rdi, rax
mov qword [rsp + 0x20], rax
add rbx, 0x11
or rbx, r14
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rsi
mov r8, rsi
add r8, rsi
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140091e40
mov word [rdi + rsi*2], 0
lea rdx, str.usp10.dll
lea rcx, [rsp + 0x20]
call fcn.140058ef4
cmp byte [rax + 0x17], 0
jns 0x1400cdbcc
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp byte [rsp + 0x37], 0
jns 0x1400cdbe8
mov rcx, qword [rsp + 0x20]
call fcn.14008d2a8
cmp esi, 0xffffffff
setne bl
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14008fec0
mov eax, ebx
add rsp, 0x258
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [rsp + 0x20]
call fcn.1400bd3f0
int3
Function at 0x140010320
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x1400103c0
jmp 0x1400103af
jae 0x140010480
cmp r8, 0x201
jae 0x1400103c0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140010418
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x1400103ef
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140031cc0
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140010441
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400104e8
mov r8d, r14d
cmp r15, r8
jne 0x1400103a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140010515
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400103af
jmp 0x1400103c0
cmp rsi, r8
jb 0x14001052f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140012c60
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x1400104d1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140006ef0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x1400104b9
jmp 0x1400104d1
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140032790
jmp 0x140010544
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140032be0
ud2
Function at 0x140015f90
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.1400311e0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x14001bfc0]
lea r15, [rbp + 0xfb0]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1010], r12
mov r9d, 0x1000
mov rdx, r12
mov r8, r13
call fcn.14001bd60
cmp qword [rbp + 0xfe8], 0
jne 0x140016167
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x140016133
cmp r12, 0x1000
ja 0x140016189
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rbp + 0x1008]
mov r9, r15
call r14
test eax, eax
je 0x140016107
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x1400160b0
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x14001610d
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x1400160f0
jbe 0x140016060
jmp 0x140016175
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x140016015
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfd8], 1
lea rcx, [rbp + 0xfe0]
call fcn.140008350
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xff0]
call fcn.140008350
jmp 0x140016133
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.140032c60
jmp 0x14001619d
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.140032be0
ud2
Function at 0x140019830
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140036218]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140019874
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400198da
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140019911
test eax, eax
js 0x1400198eb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140019904
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140012890
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400088d0
mov ecx, 7
int 0x29
ud2
Function at 0x140021cc0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x140021d03
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140011000]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.1400326c0
ud2

Function at 0x140022370
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
invalid
Function at 0x140030050
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400300ca
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1400300c0
cmp r11, r10
ja 0x140030161
cmp r10, rdx
ja 0x140030173
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400300c2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400300a0
jmp 0x140030137
ja 0x1400300ca
mov r11, r10
cmp rax, r8
jne 0x140030072
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14003013b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140030110
mov r8, r10
sub ecx, r9d
jns 0x14003012e
jmp 0x14003013d
cmp r10, rdx
je 0x140030149
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14003013d
xor al, 1
cmp r8, rdx
jne 0x1400300f0
jmp 0x14003013d
xor eax, eax
jmp 0x14003013d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140038ddb]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140032790
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140032c60
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140032be0
int3

Function at 0x140031728
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x18075bb26
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x18075bb4f
pop rbp
sub rbp, 0x33
sub rbp, 0x75bb1c
cmp edx, 1
je 0x18075bb92
ldmxcsr dword [rsp]
add rsp, 8
popfq
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rdi
pop rsi
pop rbp
pop rbx
pop rdx
pop rcx
pop rax
xor rax, rax
ret
sub rsp, 0x20
jmp 0x18075bba2
mov rax, 0x75bb1c
add rax, rbp
add rax, 0xb8
mov rcx, 0x647
mov rdx, 0x3f912b3
rcr byte [rbx + rdi*4], 0x75
add byte [rax + 1], cl
call 0x139363cf8
add byte [rax], al
add byte [rax - 0x39], cl
rol dword [rdi + 6], 0
add byte [rax - 0x39], cl
ret 0x12b3
xor byte [rax], dl
inc rax
dec rcx
jne 0x18075bbc1
jmp 0x18075bbd8
sti
cmp bl, byte [rdx + 0x38]
cmp cl, byte [rdi - 0x44c4c4d]
xor dh, byte [rdx - 0x45]
mov dl, 0xb3
mov bl, 0xfb
mov dl, 0x5a
sti
je 0x18075bc61
jae 0x18075bba4
mov ch, 0xb3
mov bl, 0xb3
sti
mov bl, 0xb3
mov bl, 0xfb
je 0x18075bc66
wait
mov bl, 0xb3
mov bl, 0xfb
push rcx
sti
mov dl, WSAStartup
cmp byte [rdx], dh
mov edi, 0xfbb3b3b3
mov dl, 0x5b
jrcxz 0x18075bbed
sti
or edx, dword [rdi - 0x4c4c5a03]
mov bl, 0xb3
mov bl, 0xfb
or al, byte [rdi + rbx*8 - 0x14]
mov bl, 0xb3
mov bl, 0xb3
mov bl, 0xfb
mov dl, 0x5a
sti
or dword [0x1337a7a0a], ecx
mov bl, 0xb3
mov bl, 0x5b
mov dh, 0xb3
mov bl, 0xb3
pop rdx
movsd dword [rdi], dword [rsi]
mov bl, 0xb3
mov bl, WSAStartup
pop rbx
mov cl, 0x82
movabs byte [0xfbb3b3b3b77232fb], al
jnp 0x18075bc01
pop rbp
jo 0x18075bc37
jmp 0x18c71a032
mov bl, 0xb3
sti
mov dl, 0x5a
pop rbx
mov dh, 0xb3
mov bl, 0xb3
pop rdx
mov cl, 0xb3
mov bl, 0xe1
pop rbx
invalid