joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004740
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 0x140004852
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14000482a
add rax, 1
cmp rax, 0x6b
je 0x140004847
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140004820
cmp edx, 0x6a
je 0x140004847
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 0x14000483b
Function at 0x140005260
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [0x14000efa0]
mov rax, qword [rsi]
test rax, rax
je 0x140005450
cmp qword [rax + 0x28], 0
jne 0x140005438
lea rcx, [0x140014778]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x140005445
call fcn.140004870
mov rax, qword [rsi]
test rax, rax
je 0x1400052e0
cmp qword [rax + 0x30], 0
jne 0x140005300
lea rdx, [0x14000d288]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x140005314
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140009580
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1400052b0
test rax, rax
jne 0x140005300
call fcn.140009580
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x1400052ce
call fcn.1400043b0
cmp qword [0x140016050], 0
mov rbx, rax
je 0x1400052ce
test rax, rax
je 0x1400052ce
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14000b420
cmp eax, 1
je 0x1400054bd
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14000cf66
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [rsi]
test rax, rax
je 0x140005498
cmp qword [rax + 0x30], 0
je 0x140005480
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000cf66
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14000529c
mov rax, qword [rsi]
jmp 0x1400052a9
call fcn.140009580
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x140005288
test rax, rax
jne 0x140005438
call fcn.140009580
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14000529c
jmp 0x1400052a1
lea rdx, [0x14000d288]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x14000540e
call fcn.140009580
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140005480
test rax, rax
jne 0x14000540a
call fcn.140009580
jmp 0x14000540a
call fcn.140004740
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x14000efa0]
mov rdx, qword [rax]
lea rax, [0x140014788]
mov qword [rdx + 0x10], rax
ret
Function at 0x140009400
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 0x140009420
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 0x140009468
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140009414
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 0x140009455
Function at 0x140009580
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x140014860]
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 0x1400095a3
lea rax, [0x140014868]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x1400095eb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1400095e8
lea rax, [0x1400148a0]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x14000961b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140009618
xor ecx, ecx
mov byte [0x1400148b9], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x1400148c2], rdx
lea r8, [0x140014860]
lea rbx, [0x1400148ba]
mov qword [0x1400148d2], rdx
mov qword [0x1400148e2], rdx
mov qword [0x1400148f2], rdx
xor edx, edx
mov qword [0x1400148ba], rax
mov qword [0x1400148ca], rax
mov qword [0x1400148da], rax
mov qword [0x1400148ea], rax
mov byte [0x1400148fa], 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 0x1400097f6
lea rcx, [0x1400148a0]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140009741
lea rsi, [0x1400147a0]
lea r8, [0x1400148fa]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x1400096ed
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x1400096e0
lea rcx, [0x1400148a0]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x1400097e3
lea rcx, [0x140009490]
mov qword [0x1400147a0], 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 [0x1400147a0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x1400148a0]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1400148fa]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140009816
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140009793
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140009780
mov rax, rdx
mov qword [0x1400147a0], rax
lea rsi, [0x1400147a0]
jmp 0x1400097b9
cmp rdx, rsi
je 0x14000971f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x1400097b0
cmp rdx, rsi
je 0x14000971f
mov qword [rdx + 8], rsi
lea rcx, [0x140009490]
call sub.msvcrt.dll__onexit
jmp 0x14000971f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140009400
xor eax, eax
jmp 0x140009738
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140009400
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.140009400
xor eax, eax
jmp 0x14000979f
Function at 0x140006c90
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140006cd2
mov r10d, 8
sub r10, r11
cmp r10, r8
mov rdi, r8
cmovb rdi, r10
cmp rdi, 4
jb 0x140006cda
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x140006ceb
jmp 0x140006d02
xor r10d, r10d
jmp 0x140006d8d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140006d02
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140006d19
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140006d39
add r11, r8
jmp 0x140006e69
mov rcx, qword [rax + 0x18]
xor rcx, rsi
mov rdi, qword [rax + 0x10]
mov r9, qword [rax]
add r9, rdi
mov r11, qword [rax + 8]
add r11, rcx
rol rdi, 0xd
xor rdi, r9
rol rcx, 0x10
rol r9, 0x20
xor rcx, r11
add r11, rdi
rol rdi, 0x11
add r9, rcx
xor rdi, r11
rol rcx, 0x15
mov qword [rax + 0x10], rdi
xor rcx, r9
rol r11, 0x20
mov qword [rax + 0x18], rcx
mov qword [rax + 8], r11
xor r9, rsi
mov qword [rax], r9
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140006e02
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
mov rbx, qword [rdx + r10]
xor rdi, rbx
add rcx, rsi
rol rsi, 0xd
add r9, rdi
xor rsi, rcx
rol rdi, 0x10
xor rdi, r9
rol rcx, 0x20
add r9, rsi
add rcx, rdi
rol rsi, 0x11
xor rsi, r9
rol rdi, 0x15
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140006db0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x140006e1f
mov r9d, dword [rdx + r10]
mov r8d, 4
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jb 0x140006e30
jmp 0x140006e4b
xor r9d, r9d
xor r8d, r8d
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jae 0x140006e4b
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8d, r11d
jae 0x140006e65
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x140007330
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rbx, qword [rdx + 0x30]
cmp rbx, 0xc
jb 0x1400074c6
mov rsi, rdx
mov rdi, rcx
mov r14, qword [rdx + 0x28]
shr r8d, 0x18
mov byte [r14 + 0xb], r8b
mov ecx, dword [rdx + 0x40]
mov eax, dword [rdx + 0x38]
mov edx, dword [rdx + 0x3c]
xor r8d, r8d
lea r9, [0x140029314]
nop word cs:[rax + rax]
movzx r10d, byte [r14 + r8]
mov ebp, ecx
or ebp, 3
mov r11d, ebp
and r11d, 0xfffffffe
imul r11d, ebp
mov ebp, eax
xor bpl, r10b
shr eax, 8
movzx r15d, bpl
xor eax, dword [r9 + r15*4]
movzx ebp, al
add ebp, edx
imul edx, ebp, 0x8088405
inc edx
mov ebp, edx
shr ebp, 0x18
movzx r15d, cl
xor r15d, ebp
shr r11d, 8
shr ecx, 8
xor ecx, dword [r9 + r15*4]
xor r11b, r10b
mov byte [r14 + r8], r11b
inc r8
cmp rbx, r8
jne 0x140007380
mov dword [rsi + 0x40], ecx
mov dword [rsi + 0x38], eax
mov dword [rsi + 0x3c], edx
mov rbp, qword [rsi + 0x18]
mov r13, rbp
add r13, rbx
mov r8, 0xffffffffffffffff
cmovae r8, r13
mov rax, qword [rsi]
mov r15, qword [rsi + 0x10]
cmp r8, rax
jbe 0x140007411
sub r8, r15
sub rax, r15
cmp r8, rax
ja 0x1400074a2
mov r8, rbp
mov r12, qword [rsi + 8]
sub r8, r15
jbe 0x140007431
add r15, r12
mov rcx, r15
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov qword [rsi + 0x10], rbp
mov r15, rbp
add r12, rbp
mov rcx, r12
mov rdx, r14
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
cmp r13, r15
jbe 0x14000744b
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], r13
movups xmm0, xmmword [rsi]
movups xmmword [rdi], xmm0
mov rax, qword [rsi + 0x10]
mov qword [rdi + 0x10], rax
mov rax, qword [rsi + 0x18]
mov qword [rdi + 0x18], rax
cmp qword [rsi + 0x20], 0
je 0x140007490
mov r8, qword [rsi + 0x28]
mov rcx, qword [0x14002d0f0]
xor edx, edx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rsi
mov rdx, r15
call fcn.1400226c0
mov r15, qword [rsi + 0x10]
mov r8, rbp
mov r12, qword [rsi + 8]
sub r8, r15
ja 0x14000741d
jmp 0x140007431
ud2
Function at 0x14000eb60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x48
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
cmp r8, 0x80
jb 0x14000ed7e
movdqu xmm4, xmmword [rdx]
movdqu xmm3, xmmword [rdx + 0x10]
movdqu xmm2, xmmword [rdx + 0x20]
movdqu xmm1, xmmword [rdx + 0x30]
not ecx
movd xmm0, ecx
pxor xmm0, xmm4
add rdx, 0x40
add r8, 0xffffffffffffffc0
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x1400234b0]
nop word cs:[rax + rax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm7, xmm0
pclmulqdq xmm7, xmm5, 0x11
movdqu xmm0, xmmword [rdx]
pxor xmm0, xmm6
pxor xmm0, xmm7
movdqu xmm6, xmmword [rdx + 0x10]
movdqu xmm7, xmmword [rdx + 0x20]
movdqu xmm8, xmmword [rdx + 0x30]
movdqa xmm9, xmm3
pclmulqdq xmm9, xmm4, 0
pxor xmm9, xmm6
pclmulqdq xmm3, xmm5, 0x11
pxor xmm3, xmm9
movdqa xmm6, xmm2
pclmulqdq xmm6, xmm4, 0
pxor xmm6, xmm7
pclmulqdq xmm2, xmm5, 0x11
pxor xmm2, xmm6
movdqa xmm6, xmm1
pclmulqdq xmm6, xmm4, 0
pxor xmm6, xmm8
pclmulqdq xmm1, xmm5, 0x11
pxor xmm1, xmm6
add rdx, 0x40
add r8, 0xffffffffffffffc0
cmp r8, 0x3f
ja 0x14000ebd0
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
pmovzxdq xmm5, qword [0x1400234d0]
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm6
pxor xmm0, xmm3
movdqa xmm3, xmm0
pclmulqdq xmm3, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm3
pxor xmm0, xmm2
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm2
pxor xmm0, xmm1
cmp r8, 0x10
jb 0x14000ecfa
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rdx]
add r8, 0xfffffffffffffff0
add rdx, 0x10
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm2
cmp r8, 0xf
ja 0x14000ecd0
pmovzxdq xmm1, qword [0x1400234d0]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
movabs rax, 0x163cd6124
movq xmm3, rax
pclmulqdq xmm3, xmm2, 0
psrldq xmm0, 4
pxor xmm0, xmm3
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
pclmulqdq xmm2, xmmword [0x1400234c0], 0x10
pblendw xmm2, xmm1, 0xfc
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm2, 0
pxor xmm1, xmm0
pextrd ecx, xmm1, 1
not ecx
test r8, r8
je 0x14000ed9c
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
add rsp, 0x48
jmp fcn.14000e6e0
mov eax, ecx
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x140013fb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
movzx r9d, byte [rdx + 0x38]
cmp r9b, 1
jbe 0x140013fc5
xor eax, eax
xor r8d, r8d
jmp 0x140014020
movzx eax, byte [rdx + 0x3a]
test al, 1
jne 0x140014014
movzx r8d, byte [rdx + 0x10]
lea r10d, [r8 - 5]
cmp r10b, 1
ja 0x140014014
cmp r8b, 6
sete r11b
ret
mov r10, qword [rdx]
mov r8, qword [rdx + 8]
or byte [rbp - 0x7c], al
leave
Function at 0x140019100
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x24]
mov rcx, rax
call qword [sym.imp.shell32.dll_CommandLineToArgvW]
test rax, rax
je 0x1400191f9
mov rdi, rax
mov qword [rsp + 0x40], rsi
movsxd r12, dword [rsp + 0x24]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], 0
test r12, r12
je 0x1400191d8
shl r12, 3
mov ebp, 8
xor r13d, r13d
lea rbx, [rsp + 0x48]
lea r14, [rsp + 0x28]
xor esi, esi
jmp 0x1400191a8
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rbp + r13 + 0x10], xmm1
movups xmmword [rbp + r13], xmm0
inc rsi
mov qword [rsp + 0x38], rsi
add r13, 0x20
add r12, 0xfffffffffffffff8
je 0x1400191d8
mov r15, qword [rdi + rsi*8]
mov rcx, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rcx, rbx
mov rdx, r15
mov r8, rax
call fcn.1400169e0
cmp rsi, qword [rsp + 0x28]
jne 0x140019180
mov rcx, r14
call fcn.14001a4c0
mov rbp, qword [rsp + 0x30]
jmp 0x140019180
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
movups xmm0, xmmword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
movups xmmword [rcx], xmm0
mov rax, qword [rsp + 0x38]
mov qword [rcx + 0x10], rax
jmp 0x140019210
mov qword [rsi], 0
mov qword [rsi + 8], 8
mov qword [rsi + 0x10], 0
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140006620
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0xa0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rcx
xor ebp, ebp
mov ebx, ebp
mov rsi, qword [rcx + 0x60]
mov qword [rcx + 0x60], rbp
test rsi, rsi
je 0x1400066b7
mov r14d, 0x100000
mov rax, rsi
sub rax, rbx
mov r8d, esi
sub r8d, ebx
cmp rax, r14
cmova r8d, r14d
mov dword [rsp + 0x88], r8d
mov rax, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140006689
mov rax, qword [rdi]
lea rdx, [rax + rbx]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x88]
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400066df
mov eax, dword [rsp + 0x88]
add rbx, rax
cmp rbx, rsi
jne 0x140006661
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140008180
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.1400073c0
nop
mov r8, rax
lea rdx, str.WriteFile_error
lea rcx, [rsp + 0x68]
call fcn.1400057a0
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400065b0
lea rdx, [0x14002dc40]
lea rcx, [rsp + 0x30]
call fcn.140009dc8
int3

Function at 0x1400076d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov r8d, edx
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x88], edi
cmp qword [rcx + 0x18], 0xf
jbe 0x140007708
mov rcx, qword [rcx]
mov rdx, qword [rbx + 0x58]
add rdx, rcx
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x88]
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140007735
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14000777c
mov ecx, dword [rsp + 0x88]
add qword [rbx + 0x58], rcx
test ecx, ecx
jne 0x14000775b
mov rcx, qword [rbx + 0x40]
mov qword [rbx + 0x40], rdi
test rcx, rcx
je 0x140007757
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x48], rdi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140008180
mov rbx, qword [rsp + 0xc0]
add rsp, 0xa0
pop rdi
ret
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.1400073c0
nop
mov r8, rax
lea rdx, str.ReadFile_error
lea rcx, [rsp + 0x68]
call fcn.1400057a0
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400065b0
lea rdx, [0x14002dc40]
lea rcx, [rsp + 0x30]
call fcn.140009dc8
int3
Function at 0x140008ad8
Capabilities:
Parse pe header

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

Function at 0x140013e3c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140013eab
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140013eab
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140013eab
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140013eab
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140013eab
cmp dword [rcx + 0x84], 0xe
jbe 0x140013eab
cmp dword [rcx + 0xf8], 0
je 0x140013eab
mov ecx, ebx
call fcn.140013f5c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140013d38
nop
cmp dword [rbp + 0x20], 0
je 0x140013ef9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140013f04
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140013e3c

Function at 0x140014040
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013e3c
Function at 0x140018848
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
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400188cf
mov rsi, rbx
cmp word [rax], bp
je 0x14001888e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018878
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140018874
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016060
mov rdi, rax
test rax, rax
je 0x1400188bc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001ff70
mov rbp, rdi
xor ecx, ecx
call fcn.1400156a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001ab40
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001ab56
mov al, 1
jmp 0x14001abb6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001ab67
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001abb4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019050
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001abb4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001abb4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001abb4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001abb6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001f720
Capabilities:
Parse pe header

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