joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010e71c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400e7a64
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14010e7a6
cmp byte [rbp - 0x21], r15b
je 0x14010e7a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14010e7dc
call fcn.1400fc540
test eax, eax
jne 0x14010e7c8
cmp byte [rbp - 0x21], r15b
je 0x14010e7c0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14010e7dc
cmp byte [rbp - 0x21], r15b
je 0x14010e7d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400f82f8
test eax, eax
jne 0x14010e87c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400e7a64
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14010e81b
cmp byte [rbp - 0x21], r15b
je 0x14010e850
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14010e850
call fcn.1400fc540
test eax, eax
jne 0x14010e83c
cmp byte [rbp - 0x21], r15b
je 0x14010e835
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14010e850
cmp byte [rbp - 0x21], r15b
je 0x14010e84d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400f82f8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14010e87c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14010e87f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14010e88d
mov rcx, rdi
call fcn.1400fc1e4
cmp byte [rbp + 0x3f], r15b
je 0x14010e89c
mov rcx, qword [rbp + 0x27]
call fcn.1400fc1e4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14010fb70
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140101de4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140101de4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14010fcc0
cmp rax, 0xffffffffffffffff
je 0x14010fcc0
xor edi, edi
test rbp, rbp
jle 0x14010fc6b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400fc16c
mov rbx, rax
test rax, rax
jne 0x14010fbf8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14010fc61
mov edx, 0x8000
mov ecx, r14d
call fcn.1400f9d54
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1401001dc
cmp eax, 0xffffffff
je 0x14010fc41
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14010fc08
mov edx, r15d
mov ecx, r14d
call fcn.1400f9d54
jmp 0x14010fc61
cmp byte [rsi + 0x38], dil
je 0x14010fc58
cmp dword [rsi + 0x34], 5
jne 0x14010fc58
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
cmp byte [rsi + 0x30], dil
je 0x14010fc61
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400fc1e4
jmp 0x14010fcd4
jns 0x14010fcd4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140101de4
cmp rax, 0xffffffffffffffff
jne 0x14010fc8c
cmp byte [rsi + 0x30], dil
je 0x14010fcd4
mov edi, dword [rsi + 0x2c]
jmp 0x14010fcd4
mov ecx, r14d
call fcn.140107d34
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14010fcd4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
jmp 0x14010fcd4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14010fccd
mov eax, dword [rsi + 0x2c]
jmp 0x14010fcd2
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140101de4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140110d10
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1400e0ef0
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x140115150
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x1401151bc
movzx ecx, byte [rcx]
test cl, cl
je 0x1401151bc
mov r11d, 0x100
nop word [rax + rax]
movsx r9d, cl
lea r10, [r10 + 1]
or r9d, r11d
mov r8d, eax
mov edx, r9d
mov ecx, 0x20
shr edx, 2
add r11d, 0x100
xor edx, r9d
imul r9d, r9d
and edx, 0xf
sub ecx, edx
shr r8, cl
mov ecx, edx
mov edx, eax
mov eax, r8d
shl edx, cl
movzx ecx, byte [r10]
or eax, edx
xor eax, r9d
test cl, cl
jne 0x140115170
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret
Function at 0x140115280
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x20
call fcn.1400e0ef0
sub rsp, rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x140115313
movzx eax, byte [rcx]
test al, al
je 0x140115313
mov qword [rsp + 0x30], rsi
mov esi, 0x100
nop
movsx ecx, al
call fcn.14014c060
mov r9d, eax
mov edx, ebx
or r9d, esi
lea rdi, [rdi + 1]
mov eax, ebx
mov r8d, r9d
shr r8d, 2
mov ecx, 0x20
xor r8d, r9d
add esi, 0x100
and r8d, 0xf
imul r9d, r9d
sub ecx, r8d
shr rdx, cl
mov ecx, r8d
shl eax, cl
mov ebx, edx
or ebx, eax
movzx eax, byte [rdi]
xor ebx, r9d
test al, al
jne 0x1401152b0
mov rsi, qword [rsp + 0x30]
mov eax, ebx
shr eax, 0x10
xor eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x1401201a0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1400e0ef0
sub rsp, rax
lea rcx, [0x1402b3710]
add rsp, 0x28
jmp fcn.140110b70

Function at 0x14015b520
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r10d, r10d
movsxd rbx, r8d
mov r11, rdx
mov rdi, rcx
test r8d, r8d
jle 0x14015b55f
mov r9, rdx
mov rdx, rcx
sub rdx, r9
movzx eax, byte [r9]
cmp byte [rdx + r9], al
jne 0x14015b55f
inc r9
inc r10d
mov rax, r9
sub rax, r11
cmp rax, rbx
jl 0x14015b544
lea edx, [r8 - 1]
movsxd rax, edx
test edx, edx
js 0x14015b58a
mov r8, rdi
lea rcx, [rax + r11]
sub r8, r11
cmp byte [rcx + r8], 0
jne 0x14015b58a
cmp byte [rcx], 0xff
jne 0x14015b58a
dec edx
dec rcx
cmp rcx, r11
jns 0x14015b574
cmp r10d, edx
jl case.0x14015b5e3.2
jle 0x14015b5a8
lea eax, [r10*8]
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
movsxd rax, r10d
movzx r8d, byte [rax + r11]
movzx r9d, byte [rax + rdi]
movzx edx, r8b
xor dl, r9b
movzx eax, dl
dec eax
cmp eax, 0x7e
ja case.0x14015b5e3.2
lea r11, [0x140000000]
cdqe
movzx eax, byte [r11 + rax + 0x15b658]
mov ecx, dword [r11 + rax*4 + 0x15b638]
add rcx, r11
jmp rcx
mov eax, 7
jmp 0x14015b614
mov eax, 6
jmp 0x14015b614
mov eax, 5
jmp 0x14015b614
mov eax, 4
jmp 0x14015b614
mov eax, 3
jmp 0x14015b614
mov eax, 2
jmp 0x14015b614
mov eax, 1
test dl, r9b
jne case.0x14015b5e3.2
and r8b, dl
lea eax, [rax + r10*8]
cmp r8b, dl
je 0x14015b62a
mov eax, 0xffffffff
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
Function at 0x14015ffc0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x30
call fcn.1400e0ef0
sub rsp, rax
xor esi, esi
lea edx, [rax - 0x2f]
mov ebx, esi
mov rdi, rcx
call fcn.1401232e0
mov rdx, rax
mov rcx, rdi
mov rbp, rax
call fcn.140123150
mov r14, rax
test rax, rax
je 0x14016006a
lea r9d, [rsi + 1]
mov dword [rsp + 0x20], 0xf0000040
xor r8d, r8d
lea rcx, [rsp + 0x58]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140160043
mov rcx, qword [rsp + 0x58]
mov r8, r14
mov edx, ebp
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x58]
test eax, eax
cmovne rbx, rbp
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r8, [rbx*8]
mov rdx, rbx
mov rcx, rdi
call fcn.1401231e0
mov rcx, rdi
call fcn.1401233e0
mov rbx, rax
test rax, rax
jne 0x140160106
mov edx, 1
mov rcx, rdi
call fcn.1401232e0
mov rdx, rax
mov rcx, rdi
mov rbp, rax
call fcn.140123150
mov r14, rax
test rax, rax
je 0x1401600f4
mov r9d, reloc.WS2_32.dll_shutdown
mov dword [rsp + 0x20], 0xf0000040
lea r8, str.Intel_Hardware_Cryptographic_Service_Provider
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1401600d6
mov rcx, qword [rsp + 0x58]
mov r8, r14
mov edx, ebp
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x58]
test eax, eax
cmovne rsi, rbp
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r8, [rsi*8]
mov rdx, rsi
mov rcx, rdi
call fcn.1401231e0
mov rcx, rdi
call fcn.1401233e0
mov rbx, rax
test rbx, rbx
je 0x1401600fe
mov rax, rbx
jmp 0x140160106
mov rcx, rdi
call fcn.1401233e0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x140164440
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x28
call fcn.1400e0ef0
sub rsp, rax
mov r9d, r8d
mov r8, rdx
mov rdx, rcx
xor ecx, ecx
add rsp, 0x28
jmp fcn.140164820

Function at 0x140188e80
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x38
call fcn.1400e0ef0
sub rsp, rax
cmp dword [rsp + 0x68], 0
je 0x140188ea9
lea rax, [0x1401874f0]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.14017ff90
lea rax, [0x1401866b0]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.14017fcd0
Function at 0x1401f59f4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1402ab7e8]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140282da8]
mov rbp, rcx
call fcn.140108d94
xor edi, edi
test rax, rax
je 0x1401f5ada
mov ebx, edi
call fcn.1400f3f50
mov r14d, dword [rax]
call fcn.1400f3f50
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1401f90dc
mov rsi, rax
test rax, rax
je 0x1401f5a6b
call fcn.1400f3f50
mov dword [rax], r14d
jmp 0x1401f5a95
call fcn.1400f3f50
cmp dword [rax], 0x22
jne 0x1401f5ad2
call fcn.1400f3f50
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1401f90dc
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1401f5ad2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1401f5a99
cmp rax, 3
je 0x1401f5ab4
mov rcx, rsi
call fcn.1401f5950
test al, al
je 0x1401f5ac5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1401f5ac5
mov dil, 1
mov rcx, rbx
call fcn.1400ed7cc
mov al, dil
jmp 0x1401f5adc
mov rcx, rbx
call fcn.1400ed7cc
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400e0300
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1401f9538
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1402ab7e8]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1401f9582
call fcn.1400f3f30
mov dword [rax], recv
call fcn.1400f3f50
mov dword [rax], recv
call fcn.1400e80a8
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400e0300
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1401f958d
lea eax, [rbx + 1]
jmp 0x1401f956f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1401f956d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1401f956f
Function at 0x1800076e0
Capabilities:
Create thread
Set console window title

Disassembly:
sub rsp, 0x38
test edx, edx
je 0x180007799
sub edx, 1
je 0x18000770d
sub edx, 1
je 0x180007799
cmp edx, 1
je 0x180007799
mov eax, 1
add rsp, 0x38
ret
xor eax, eax
lea r8, [0x180007620]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rax
lea rdx, [0x180009c10]
lea rcx, str.CONOUT_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rax
lea rdx, str.rgba
lea rcx, str.CONIN_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen]
lea rcx, str.Gizeh
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180007820
cmp dword [0x18000c708], 0
je 0x1800077a8
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov eax, 1
add rsp, 0x38
ret
Function at 0x140001d60
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140026008]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, [0x140022970]
mov edx, 0x66
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
mov rbx, rax
call fcn.1400042a0
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [0x140022978]
lea rcx, str.C:windows_temp_
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rdx, [rsp + 0x40]
lea rcx, str.___MSI_file:__ls_n
call fcn.140001430
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x40]
mov edx, 0x40040000
mov dword [rsp + 0x20], 2
mov rdi, rax
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, esi
mov rdx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.msi.dll_MsiSetPropertyW]
lea rdx, str.ACTIONINSTALL
lea rcx, [rsp + 0x40]
call qword [sym.imp.msi.dll_MsiOpenDatabaseW]
mov edx, eax
lea rcx, [0x140022628]
call fcn.140001430
lea rdx, str.REMOVEALL
lea rcx, [rsp + 0x40]
call qword [sym.imp.msi.dll_MsiOpenDatabaseW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140002790
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140003248
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003292
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003292
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003292
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003292
cmp dword [rcx + 0x84], 0xe
jbe 0x140003292
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003294
xor al, al
add rsp, 0x28
ret
Function at 0x140006bd0
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 0x140006a3b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006a3b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006a3b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006a3b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006a3b
cmp dword [rcx + 0x84], 0xe
jbe 0x140006a3b
cmp dword [rcx + 0xf8], 0
je 0x140006a3b
mov ecx, ebx
call fcn.140006aec
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.1400068c8
nop
cmp dword [rbp + 0x20], 0
je 0x140006a89
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140006a94
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400069cc
Function at 0x140011828
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 0x1400118af
mov rsi, rbx
cmp word [rax], bp
je 0x14001186e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140011858
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140011854
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000e45c
mov rdi, rax
test rax, rax
je 0x14001189c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140006250
mov rbp, rdi
xor ecx, ecx
call fcn.14000d828
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 0x140015b78
Capabilities:
Get file size

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

Function at 0x140018860
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140018888
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140018888
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140015cb0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x48
cmp qword [0x14004d268], 0
je 0x140015d40
mov eax, dword [0x14004d260]
test eax, eax
je 0x140015d20
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], 0
mov rcx, qword [0x14004d268]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x140015d38
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140015d38
lea rdx, [rsp + 0x37]
mov r8d, 1
xor ecx, ecx
call sub.msvcrt.dll__read
movzx eax, byte [rsp + 0x37]
add rsp, 0x48
ret
call sub.msvcrt.dll__kbhit
test eax, eax
je 0x140015d38
call sub.msvcrt.dll__getch
add rsp, 0x48
ret
mov eax, 0xffffffff
jmp 0x140015d17
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [rsp + 0x3c]
mov qword [0x14004d268], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
sete al
movzx eax, al
mov dword [0x14004d260], eax
jmp 0x140015cc8
Function at 0x14001f840
Capabilities:
Create thread

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [0x140048a70]
mov rax, qword [rax]
movsxd rcx, ecx
mov rbx, qword [rax + rcx*8]
mov edx, dword [rbx + 0xa0]
test edx, edx
js 0x14001f8f8
je 0x14001f8e8
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x14001f927
mov eax, dword [rax + 0x88]
test eax, eax
jne 0x14001f88e
mov dword [rbx + 0x98], 1
lea r12, [rbx + 0x70]
mov r8d, 8
mov rcx, r12
call sub.avutil_56.dll_av_thread_message_queue_alloc
test eax, eax
js 0x14001f8ea
lea rax, [0x14001f590]
lea r9, [rbx + 0x78]
xor edx, edx
xor ecx, ecx
mov qword [rbx + 0x80], rax
lea r8, [0x140011bc0]
mov qword [rbx + 0x88], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov qword [rbx + 0x78], rax
test rax, rax
je 0x14001f950
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r12
ret
mov rax, qword [0x140048b30]
cmp dword [rax], 1
jle 0x14001f988
mov rcx, qword [rbx]
mov edx, 8
mov dword [rbx + 0xa0], 8
mov rax, qword [rcx + 0x20]
test rax, rax
jne 0x14001f87a
mov rax, qword [rcx + 8]
lea rdi, str.lavfi
mov ecx, 6
mov rsi, qword [rax]
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
je 0x14001f88e
jmp 0x14001f884
mov ecx, 1
call sub.msvcrt.dll_strerror
lea r8, str.pthread_create_failed:__s._Try_to_increase__ulimit__v__or_decrease__ulimit__s_._n
mov edx, 0x10
xor ecx, ecx
mov r9, rax
call sub.avutil_56.dll_av_log
mov rcx, r12
call sub.avutil_56.dll_av_thread_message_queue_free
mov eax, 0xffffffff
jmp 0x14001f8ea
mov dword [rbx + 0xa0], 0
jmp 0x14001f8e8
Function at 0x14002b990
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140038cc0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140038cc0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]