joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180003254
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x70
movdqa xmm0, xmmword [0x1800384c0]
movdqa xmm1, xmmword [0x1800384f0]
mov rbx, qword [0x180041e10]
movdqu xmmword [rax - 0x30], xmm0
mov dword [rax - 0x10], 0x29
movdqa xmm0, xmmword [0x1800384d0]
movdqu xmmword [rax - 0x20], xmm1
mov dword [rax - 0xc], 0x23
movdqa xmm1, xmmword [0x1800384e0]
movdqu xmmword [rax - 0x58], xmm0
mov dword [rax - 0x38], 0x37
movdqu xmmword [rax - 0x48], xmm1
mov dword [rax - 0x34], 0x1c
call fcn.180006bac
mov edx, 0xc9
mov r8d, 2
mov rcx, rbx
call rax
mov esi, dword [rax + 4]
mov edi, dword [rax]
mov ecx, esi
add rdi, rbx
mov ebx, esi
call fcn.18000af8c
xor r10d, r10d
mov r11, rax
test rax, rax
je 0x1800032fc
test esi, esi
je 0x1800032fc
mov byte [rax], r10b
inc rax
sub rbx, 1
jne 0x1800032f0
lea rdx, [rdi + 0x67]
mov r8d, esi
mov rcx, r11
call fcn.18000338c
mov r8d, r10d
mov r9, r11
movabs rbx, 0xcccccccccccccccd
mov edi, 0x49200
movsxd rcx, r8d
mov rax, rbx
mul rcx
inc r8d
shr rdx, 3
lea rax, [rdx + rdx*4]
add rax, rax
sub rcx, rax
mov al, byte [rsp + rcx*4 + 0x20]
xor byte [r9], al
inc r9
cmp r8d, edi
jb 0x180003320
mov r8, r11
movsxd rcx, r10d
mov rax, rbx
mul rcx
inc r10d
shr rdx, 3
lea rax, [rdx + rdx*4]
add rax, rax
sub rcx, rax
mov al, byte [rsp + rcx*4 + 0x48]
xor byte [r8], al
inc r8
cmp r10d, edi
jb 0x18000334c
mov rax, r11
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1800045fc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x60
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
movaps xmmword [rax - 0x48], xmm9
mov al, cl
cmp cl, 0x7d
jg 0x180004655
call qword [sym.imp.USER32.dll_GetDialogBaseUnits]
movss xmm1, dword [0x1800383ec]
xorps xmm0, xmm0
mov eax, 0x2c
cvtsi2ss xmm0, rax
divss xmm1, xmm0
addss xmm0, xmm1
cvttss2si rax, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm1
cvttss2si eax, xmm0
cmp al, 0x6b
jle 0x1800047b3
xorps xmm0, xmm0
mov eax, 0x65
xorps xmm6, xmm6
cvtsi2ss xmm0, rax
mulss xmm0, dword [0x180038450]
cvttss2si rax, xmm0
cvtsi2ss xmm6, rax
movaps xmm0, xmm6
call fcn.1800047dc
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm6
cvttss2si eax, xmm0
cmp al, 0x74
jle 0x1800046eb
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
xor ecx, ecx
mov eax, 0x63
cdq
idiv ecx
cmp al, 0x48
jle 0x1800046ce
mov bl, 7
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov cl, bl
call fcn.180004bbc
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
cvttss2si ebx, xmm0
cmp bl, 0x48
jg 0x1800046b0
mov bl, 0x70
call qword [sym.imp.USER32.dll_GetShellWindow]
movsx eax, bl
movd xmm0, eax
cvtdq2ps xmm0, xmm0
call fcn.1800047dc
mov ebx, eax
cmp al, 0x6c
jg 0x1800046d0
movss xmm9, dword [0x180038454]
movsd xmm7, qword [0x180038220]
jmp 0x1800047ab
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
xorps xmm0, xmm0
cvtss2sd xmm0, xmm9
subsd xmm0, xmm7
cvtpd2ps xmm9, xmm0
cvtps2pd xmm6, xmm9
subsd xmm7, xmm6
cvttsd2si ecx, xmm7
call fcn.180004534
movsx ecx, al
addsd xmm6, xmm7
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm6
cvttsd2si eax, xmm0
cmp al, 0xf
je 0x180004763
mov bl, 0x98
call qword [sym.imp.KERNEL32.dll_GetErrorMode]
mov cl, bl
call fcn.180004bbc
movsx ecx, bl
movsx ebx, al
imul ebx, ecx
mov al, bl
cmp bl, 0xf
jne 0x180004746
movsd xmm8, qword [0x180038310]
jmp 0x1800047a7
cvttsd2si ebx, xmm8
mov cl, bl
call fcn.1800045fc
xorps xmm6, xmm6
mov cl, bl
cvtss2sd xmm6, xmm0
call fcn.1800045fc
xorps xmm2, xmm2
cvtss2sd xmm2, xmm0
divsd xmm6, xmm2
movaps xmm1, xmm2
addsd xmm1, xmm8
divsd xmm6, xmm1
movaps xmm8, xmm1
cvttsd2si eax, xmm6
cmp al, 0x5c
jg 0x18000476e
cmp al, 0x3c
jle 0x180004701
movaps xmm6, xmmword [rsp + 0x50]
movaps xmm7, xmmword [rsp + 0x40]
movaps xmm8, xmmword [rsp + 0x30]
movaps xmm9, xmmword [rsp + 0x20]
movsx eax, al
movd xmm0, eax
cvtdq2ps xmm0, xmm0
add rsp, 0x60
pop rbx
ret
Function at 0x180004bbc
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov al, cl
movsd xmm6, qword [0x180038228]
movaps xmmword [rsp + 0x20], xmm7
cmp cl, 0x54
jle 0x180004d69
movsd xmm7, qword [0x180038300]
movaps xmm0, xmm7
addsd xmm0, xmm6
divsd xmm6, xmm0
mulsd xmm7, xmm6
divsd xmm0, xmm6
cvttsd2si eax, xmm7
movsx eax, al
movd xmm7, eax
cvtdq2pd xmm7, xmm7
divsd xmm0, xmm7
cvttsd2si eax, xmm0
cmp al, 0x2e
jge 0x180004d23
call qword [sym.imp.USER32.dll_GetDialogBaseUnits]
call qword [sym.imp.GDI32.dll_GdiFlush]
call qword [sym.imp.USER32.dll_GetOpenClipboardWindow]
mov cl, 0x79
call fcn.180004bbc
mov cl, 0x1f
movsx ebx, al
call fcn.1800045fc
movss xmm2, dword [0x18003840c]
xorps xmm3, xmm3
cvtss2sd xmm3, xmm0
movd xmm0, ebx
cvtdq2ps xmm0, xmm0
movd xmm1, ebx
cvtdq2pd xmm1, xmm1
subss xmm2, xmm0
mulsd xmm3, xmm1
cvtps2pd xmm1, xmm2
mulsd xmm3, xmm1
cvttsd2si eax, xmm3
cmp al, 0x47
je 0x180004c9e
call qword [sym.imp.ole32.dll_CoFreeUnusedLibraries]
mov ecx, 1
call fcn.180004534
movsd xmm1, qword [0x180038358]
movsx ecx, al
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
jmp 0x180004cc0
mov cl, 0x31
call fcn.180004bbc
movsx ecx, al
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
mulsd xmm1, qword [0x180038348]
mulsd xmm1, qword [0x180038108]
movss xmm2, dword [0x180038444]
cvttsd2si eax, xmm1
cmp al, 0x64
jl 0x180004d00
movss xmm1, dword [0x18003847c]
divss xmm2, xmm1
cvttss2si eax, xmm2
xorps xmm2, xmm2
movsx eax, al
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movaps xmm0, xmm1
addss xmm0, dword [0x180038104]
cvttss2si eax, xmm0
cmp al, 0x64
jge 0x180004cd8
cmp al, 0x7c
jle 0x180004d0d
mov cl, 0x46
call fcn.180004bbc
jmp 0x180004d1a
movss xmm0, dword [0x180038428]
call fcn.1800047dc
cmp al, 0x54
jle 0x180004d69
jmp 0x180004beb
mov edi, 0x6a
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
lea ebx, [rdi + rdi]
mov cl, bl
call fcn.180004bbc
mov cl, al
movsx edi, al
call fcn.1800045fc
movd xmm2, ebx
xorps xmm3, xmm3
movd xmm1, edi
cvtdq2pd xmm2, xmm2
cvtdq2pd xmm1, xmm1
cvtss2sd xmm3, xmm0
divsd xmm2, xmm1
mulsd xmm3, xmm2
cvttsd2si eax, xmm3
cmp al, 0x1c
jne 0x180004d28
mov rbx, qword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x20]
movsx rax, al
add rsp, 0x40
pop rdi
ret
Function at 0x180004dd0
Capabilities:
Access peb ldr_data

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x18003f008]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov r11, rdx
mov r10, rcx
rdtscp
shl rdx, 0x20
mov r9d, 0x989680
or rax, rdx
cmp rax, r9
jbe 0x180004e08
mov r8d, 0xa13387d
jmp 0x180004e20
rdtscp
shl rdx, 0x20
or rax, rdx
xor edx, edx
mov rcx, rax
mov rax, r9
div rcx
mov r8, rax
rdtscp
shl rdx, 0x20
or rax, rdx
movd xmm1, r8d
mov ecx, eax
movabs rax, 0x58ed2308158ed231
imul r9, rcx, 0x28ad
cvtdq2pd xmm1, xmm1
mul r9
mov rax, r9
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 6
imul rax, rax, 0x5f
sub r9, rax
add r9d, 3
test r10, r10
je 0x180004f75
mov rax, qword gs:[0x60]
movsxd rdx, r8d
movsxd r8, r9d
mov rcx, qword [rax + 0x18]
add rcx, 0x20
mov rax, qword [rcx]
cmp rax, rcx
je 0x180004f75
cmp rdx, r8
jle 0x180004eae
cmp qword [rax + 0x20], r10
je 0x180004ea0
mov rax, qword [rax]
jmp 0x180004e87
mov qword [rax + 0x20], r11
mov eax, 1
jmp 0x180004f77
movsd xmm0, qword [0x1800382d8]
comisd xmm0, xmm1
jb 0x180004ed4
call qword [sym.imp.USER32.dll_GetCapture]
mov cl, 0x2b
call fcn.180004054
movsx ecx, al
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
movsd xmm0, qword [0x180038328]
comisd xmm0, xmm1
jb 0x180004f0f
call qword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov cl, 0x12
call fcn.180003f38
mov cl, 0x12
mov ebx, eax
call fcn.180003f38
movd xmm1, eax
movsx eax, bl
cvtdq2pd xmm1, xmm1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
ucomisd xmm1, qword [0x180038278]
mov ebx, 0x2a
jmp 0x180004f37
call qword [sym.imp.KERNEL32.dll_GetTickCount]
imul ebx, ebx
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
ucomisd xmm0, qword [0x180038278]
jp 0x180004f3b
je 0x180004f1e
movss xmm1, dword [0x1800383a4]
mov eax, 0x1e
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
subss xmm1, xmm0
imul rax, rax
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
subss xmm1, xmm0
comiss xmm1, dword [0x1800383f4]
jae 0x180004f54
call qword [sym.imp.KERNEL32.dll_GetThreadLocale]
jmp 0x180004f6d
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18000aef0
add rsp, 0x30
pop rbx
ret
Function at 0x180006bac
Capabilities:
Access peb ldr_data
Resolve function by hash
Resolve function by parsing pe exports

Disassembly:
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx + 0x20]
jmp 0x180006bf9
mov r8, qword [rdx + 0x50]
xor ecx, ecx
movzx r9d, word [rdx + 0x48]
ror ecx, 0xd
cmp byte [r8], 0x61
jb 0x180006bde
movzx eax, byte [r8]
sub eax, 0x20
cdqe
jmp 0x180006be2
movzx eax, byte [r8]
add rcx, rax
inc r8
sub r9, 1
jne 0x180006bca
cmp ecx, 0x6a4abc5b
je 0x180006c01
mov rdx, qword [rdx]
test rdx, rdx
jne 0x180006bbf
xor eax, eax
ret
mov r8, qword [rdx + 0x20]
movsxd rax, dword [r8 + 0x3c]
mov r11d, dword [rax + r8 + 0x88]
mov edx, dword [r11 + r8 + 0x20]
mov ecx, dword [r11 + r8 + 0x24]
add rdx, r8
add rcx, r8
mov r9d, dword [rdx]
add r9, r8
xor r10d, r10d
mov al, byte [r9]
inc r9
ror r10d, 0xd
movsx eax, al
add r10d, eax
mov al, byte [r9]
test al, al
jne 0x180006c2d
cmp r10d, 0x3bd09a55
je 0x180006c54
add rdx, 4
add rcx, 2
jmp 0x180006c21
movzx edx, word [rcx]
mov ecx, dword [r11 + r8 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
add rax, r8
ret

Function at 0x180006f68
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x180006ffa
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x180006fd4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180006ff3
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180006ff3
mov rdx, qword [rdi]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
jmp 0x180006fe3
cmp dword [rdi + 8], 0
je 0x180006ff3
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, 1
jmp 0x180006fe3
cmp byte [0x180041f00], 0
jne 0x180007045
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180007031
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x180041ef8], rax
jmp 0x180007038
mov r10, qword [0x180041ef8]
mov eax, 1
mov byte [0x180041f00], al
jmp 0x18000704c
mov r10, qword [0x180041ef8]
mov rcx, qword [rbx]
mov rdx, rsi
test r10, r10
je 0x180006fdd
mov r8d, dword [rbx + 8]
xor r9d, r9d
call r10
jmp 0x180006fe3
Function at 0x180007154
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x18003f008]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r9d, dword [rcx + 8]
xor eax, eax
mov rsi, rdx
mov qword [rsp + 0x48], rax
mov r8, rdx
mov dword [rsp + 0x48], eax
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x50], rax
call fcn.180007064
jmp 0x1800071c3
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.180007154
mov ebx, eax
test eax, eax
jne 0x18000722d
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
xor ebx, ebx
mov dword [rsp + 0x58], 0x100
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1800071b4
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18000721c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbx
mov rdx, rsi
mov dword [rsp + 0x48], ebx
mov rcx, rdi
call fcn.180006f68
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18000723d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.18000aef0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000775c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x18003f008]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rdi
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x70]
call fcn.18000da70
mov qword [rsp + 0x70], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1800077fb
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1800077fb
call fcn.180006c8c
mov ebx, eax
jmp 0x18000790c
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x18000781c
call fcn.180006c8c
jmp 0x1800078fb
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x180007812
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x180007857
mov ebx, 0x8007000e
jmp 0x1800078fd
mov ecx, eax
test eax, eax
je 0x18000788f
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x180007885
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x18000788f
lea rcx, [rsp + 0x70]
call fcn.18000ac40
jmp 0x180007899
mov ecx, 0x80070216
call fcn.180006c70
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x1800078ab
cmp qword [rsp + 0x70], rdi
je 0x18000784d
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x180007812
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.1800085b4
mov ebx, eax
test rsi, rsi
je 0x18000790c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x180007923
lea rcx, [rsp + 0x70]
call fcn.18000aab0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.18000aef0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x180009f50
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x18003f008]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14d, edx
mov rdi, rcx
or ebx, 0xffffffff
xor esi, esi
cmp edx, ebx
jne 0x180009f9f
cmp edx, ebx
cmovne esi, edx
mov eax, esi
jmp 0x18000a169
mov rax, qword [rcx + 0x40]
cmp qword [rax], rsi
je 0x180009fd9
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x180009fd9
lea ecx, [r8 - 1]
mov dword [rdx], ecx
mov rdx, qword [rdi + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], r14b
mov eax, r14d
jmp 0x18000a169
cmp qword [rdi + 0x80], rsi
je 0x18000a167
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x18000a013
mov rdx, qword [rdi + 0x90]
mov rcx, qword [rdi + 0x88]
mov qword [r8], rcx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
cmp qword [rdi + 0x68], rsi
jne 0x18000a034
movsx ecx, r14b
mov rdx, qword [rdi + 0x80]
call fcn.180011668
cmp eax, ebx
cmovne ebx, r14d
jmp 0x18000a167
mov byte [rbp - 1], r14b
mov qword [rbp + 0x1f], 0xf
mov qword [rbp + 0x17], rsi
mov byte [rbp + 7], sil
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp + 7]
call fcn.1800027c8
nop
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rdx, qword [rbp + 7]
lea r8, [rbp + 7]
cmovae r8, qword [rbp + 7]
mov rcx, qword [rdi + 0x68]
mov r10, qword [rcx]
add rdx, qword [rbp + 0x17]
lea rax, [rbp - 0x11]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
lea r9, [rbp]
lea r8, [rbp - 1]
lea rdx, [rdi + 0x74]
call qword [r10 + 0x38]
test eax, eax
js 0x18000a149
cmp eax, 1
jg 0x18000a12e
lea rax, [rbp + 7]
mov r10, qword [rbp + 7]
mov r9, qword [rbp + 0x1f]
cmp r9, 0x10
cmovae rax, r10
mov r15, qword [rbp - 0x11]
sub r15, rax
je 0x18000a0f6
lea rcx, [rbp + 7]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x80]
mov r8, r15
mov edx, 1
call fcn.180012304
cmp r15, rax
jne 0x18000a149
mov byte [rdi + 0x71], 1
lea rax, [rbp - 1]
cmp qword [rbp - 9], rax
jne 0x18000a129
test r15, r15
jne 0x18000a059
cmp qword [rbp + 0x17], 0x20
jae 0x18000a149
xor r8d, r8d
lea edx, [r15 + 8]
lea rcx, [rbp + 7]
call fcn.180002e14
jmp 0x18000a059
mov ebx, r14d
jmp 0x18000a149
cmp eax, 3
jne 0x18000a149
movsx ecx, byte [rbp - 1]
mov rdx, qword [rdi + 0x80]
call fcn.180011668
cmp eax, ebx
cmovne ebx, r14d
mov r9, qword [rbp + 0x1f]
cmp r9, 0x10
jb 0x18000a167
lea rdx, [r9 + 1]
mov r8d, 1
mov rcx, qword [rbp + 7]
call fcn.1800018b8
nop
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.18000aef0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x18000a7bc
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x18003f008]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x68], rbx
je 0x18000a908
cmp byte [rcx + 0x71], bl
je 0x18000a908
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x18000a815
xor al, al
jmp 0x18000a90a
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], rbx
mov byte [rbp - 0x30], bl
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.1800027c8
nop
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
lea r8, [rbp - 0x30]
cmovae r8, qword [rbp - 0x30]
mov rcx, qword [rdi + 0x68]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
call qword [r10 + 0x40]
mov ecx, eax
test eax, eax
je 0x18000a878
sub ecx, 1
jne 0x18000a8df
jmp 0x18000a87b
mov byte [rdi + 0x71], bl
lea rax, [rbp - 0x30]
mov r10, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, r10
mov rsi, qword [rbp - 0x38]
sub rsi, rax
je 0x18000a8bd
lea rcx, [rbp - 0x30]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
call fcn.180012304
cmp rsi, rax
jne 0x18000a8e6
cmp byte [rdi + 0x71], bl
je 0x18000a8e4
test rsi, rsi
jne 0x18000a835
xor r8d, r8d
lea edx, [rsi + 8]
lea rcx, [rbp - 0x30]
call fcn.180002e14
jmp 0x18000a835
cmp ecx, 2
jne 0x18000a8e6
mov bl, 1
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
jb 0x18000a904
lea rdx, [r9 + 1]
mov r8d, 1
mov rcx, qword [rbp - 0x30]
call fcn.1800018b8
nop
mov al, bl
jmp 0x18000a90a
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.18000aef0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140002100
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rbp], rax
xorps xmm0, xmm0
mov dword [rbp - 0x70], 0x68
xor eax, eax
mov r14, rdx
cmp qword [rcx + 0x18], 8
mov rsi, rcx
movups xmmword [rbp - 0x6c], xmm0
mov dword [rbp - 0xc], eax
movups xmmword [rbp - 0x5c], xmm0
mov qword [rsp + 0x60], rax
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x68], xmm0
jb 0x140002167
mov rsi, qword [rcx]
mov rbx, qword [rcx + 0x10]
movabs rdi, 0x7ffffffffffffffe
cmp rbx, rdi
ja 0x14000234c
mov qword [rsp + 0x150], r15
xor r15d, r15d
cmp rbx, 8
jae 0x1400021aa
mov eax, 7
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], rax
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x68], xmm0
jmp 0x14000225b
mov rax, rbx
or rax, 7
cmp rax, rdi
jbe 0x1400021c6
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x1400021f8
mov ecx, 0xa
mov rdi, rax
cmp rax, rcx
movabs rax, 0x7fffffffffffffff
cmovb rdi, rcx
lea rcx, [rdi + 1]
cmp rcx, rax
ja 0x140002352
add rcx, rcx
cmp rcx, 0x1000
jb 0x140002227
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002352
mov rcx, rax
call fcn.140006ac0
mov rcx, rax
test rax, rax
je 0x14000231b
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140002236
test rcx, rcx
je 0x140002233
call fcn.140006ac0
jmp 0x140002236
mov rax, r15
lea r8, [rbx*2 + 2]
mov qword [rsp + 0x68], rax
mov rdx, rsi
mov qword [rsp + 0x78], rbx
mov rcx, rax
mov qword [rbp - 0x80], rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp - 0x80]
cmp rax, 8
lea rdx, [rsp + 0x68]
lea rax, [rsp + 0x50]
cmovae rdx, qword [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x70]
xor ecx, ecx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400022a7
xor bl, bl
jmp 0x1400022e3
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
sete bl
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x140002327
mov rcx, qword [rsp + 0x68]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002322
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002322
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006afc
mov r15, qword [rsp + 0x150]
movzx eax, bl
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140006980
add rsp, 0x110
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400011b0
int3
call fcn.140001110
int3