joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180062c98
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.180057dc4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180057dc4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180062de8
cmp rax, 0xffffffffffffffff
je 0x180062de8
xor edi, edi
test rbp, rbp
jle 0x180062d93
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180058ad4
mov rbx, rax
test rax, rax
jne 0x180062d20
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180062d89
mov edx, 0x8000
mov ecx, r14d
call fcn.180062b1c
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.180059cb4
cmp eax, 0xffffffff
je 0x180062d69
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180062d30
mov edx, r15d
mov ecx, r14d
call fcn.180062b1c
jmp 0x180062d89
cmp byte [rsi + 0x38], dil
je 0x180062d80
cmp dword [rsi + 0x34], 5
jne 0x180062d80
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180062d89
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180058b4c
jmp 0x180062dfc
jns 0x180062dfc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180057dc4
cmp rax, 0xffffffffffffffff
jne 0x180062db4
cmp byte [rsi + 0x30], dil
je 0x180062dfc
mov edi, dword [rsi + 0x2c]
jmp 0x180062dfc
mov ecx, r14d
call fcn.18005f488
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180062dfc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180062dfc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180062df5
mov eax, dword [rsi + 0x2c]
jmp 0x180062dfa
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180057dc4
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 0x14001ce70
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call sym.atmdotdotatsdotdotatsdotnim_runtimeatslibatsstdatsexitprocsdotnim_Init000
call sym.atmdotdotatsdotdotatsdotnim_runtimeatslibatsstdatssynciodotnim_Init000
nop
add rsp, 0x28
jmp sym.atmdotdotatsdotdotatsdotnim_runtimeatslibatswindowsatswinleandotnim_Init000

Function at 0x14001ce90
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call sym.atmdotdotatsdotdotatsdotnim_runtimeatslibatsstdatssynciodotnim_DatInit000
call sym.atmdotdotatsdotdotatsdotnim_runtimeatslibatssystemdotnim_Init000
call sym.atmdotdotatsdotdotatsdotnim_runtimeatslibatswindowsatswinleandotnim_DatInit000
call sym.atmdotdotatsdotdotatsdotnim_runtimeatslibatsstdatsexitprocsdotnim_Init000
call sym.atmdotdotatsdotdotatsdotnim_runtimeatslibatsstdatssynciodotnim_Init000
nop
add rsp, 0x28
jmp sym.atmdotdotatsdotdotatsdotnim_runtimeatslibatswindowsatswinleandotnim_Init000
Function at 0x140c31bd0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140c31bf8
mov eax, 0
jmp 0x140c31c46
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140c31c21
mov eax, 0
jmp 0x140c31c46
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140c31c41
mov eax, 0
jmp 0x140c31c46
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140c31c4c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140c31cca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140c31cc1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140c31cc1
mov rax, qword [rbp - 8]
jmp 0x140c31cdf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140c31c94
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x100f541e0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x100f541ed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x100f541fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x100f541e5
lea eax, [rcx + 1]
jmp 0x100f5420b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x100f5421e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x100f54204
sub eax, 3
jb 0x100f5423e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x100f5428d
sar eax, 1
movsxd rbp, eax
jb 0x100f54274
jmp 0x100f5424c
add ebx, ebx
jne 0x100f5424a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x100f54274
inc ecx
add ebx, ebx
jne 0x100f5425a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x100f54274
call r11
adc ecx, ecx
add ebx, ebx
jne 0x100f5426d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x100f5425c
add ecx, 2
jmp 0x100f54279
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.100f541a2
jmp 0x100f541ed
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xf50000]
mov eax, dword [rdi]
or eax, eax
je 0x100f542e9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xf6af74]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x100f54299
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x100f542e3
mov qword [rbx], rax
add rbx, 8
jmp 0x100f542b9
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.100f5436c], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.100f5436c
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x100f5435c
sub rsp, 0xffffffffffffff80
jmp 0x1000031c0
Function at 0x1400036d0
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140013920
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x1400112e4
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014c70
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014c90
xor al, al
jmp 0x140014d11
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014ca3
xor al, al
jmp 0x140014d11
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014ccd
xor al, al
jmp 0x140014d11
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014ce1
xor al, al
jmp 0x140014d11
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014cf3
xor al, al
jmp 0x140014d11
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014d0f
xor al, al
jmp 0x140014d11
mov al, 1
add rsp, 0x38
ret
Function at 0x1400129c0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14001141a
movzx eax, al
test eax, eax
jne 0x1400129e0
mov ecx, 7
call fcn.14001138e
nop
mov byte [rsp + 0x20], 0
call fcn.1400113a2
mov byte [rsp + 0x21], al
cmp dword [0x14001d868], 1
jne 0x140012a04
mov ecx, 7
call fcn.14001138e
nop
jmp 0x140012a5c
cmp dword [0x14001d868], 0
jne 0x140012a57
mov dword [0x14001d868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111ef
test eax, eax
je 0x140012a38
mov eax, 0xff
jmp 0x140012b61
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011398
mov dword [0x14001d868], 2
jmp 0x140012a5c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001137a
call fcn.14001130c
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012ab9
mov rcx, qword [rsp + 0x30]
call fcn.14001119f
movzx eax, al
test eax, eax
je 0x140012ab9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140024020]
nop
call fcn.14001133e
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140012aed
mov rcx, qword [rsp + 0x38]
call fcn.14001119f
movzx eax, al
test eax, eax
je 0x140012aed
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400113d9
nop
call fcn.140012c10
mov dword [rsp + 0x28], eax
call fcn.1400112e4
movzx eax, al
test eax, eax
jne 0x140012b0c
mov ecx, dword [rsp + 0x28]
call fcn.140011069
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140012b1b
call fcn.1400113e3
nop
xor edx, edx
mov cl, 1
call fcn.14001118b
mov eax, dword [rsp + 0x28]
jmp 0x140012b61
add rsp, 0x68
ret
Function at 0x140001870
Capabilities:
Set console window title

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0xd8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x50], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x38], r8
call fcn.140003c50
test al, al
je 0x140001992
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rdi
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x20], 0
lea rax, [rbp - 0x50]
mov qword [rbp + 8], rax
lea rdi, [rbp + 8]
mov qword [rbp + 0x30], rdi
lea rax, [0x140001170]
mov qword [rbp + 0x38], rax
lea rax, [0x140025590]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], 2
mov qword [rbp - 8], 0
lea rbx, [rbp + 0x30]
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], 1
mov byte [rbp + 0x4e], 1
lea rdx, [0x1400254d0]
lea rcx, [rbp + 0x18]
lea r8, [rbp - 0x28]
call fcn.14001df40
mov rcx, qword [rbp + 0x20]
test al, al
je 0x1400019a9
test rcx, rcx
jne 0x1400019b4
lea rax, [0x1400255f8]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 0x23
mov qword [rbp + 8], rbx
lea rax, [0x140001190]
mov qword [rbp + 0x10], rax
lea rax, [0x1400255d8]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], 2
mov qword [rbp - 8], 0
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], 1
mov byte [rbp + 0x4e], 0
lea rdx, [0x140025680]
lea rcx, [rbp - 0x28]
call fcn.140024180
jmp 0x140001b02
mov rcx, rsi
call fcn.14000abe0
test rax, rax
je 0x1400019c3
mov dl, 1
mov rsi, rax
jmp 0x140001aaa
mov byte [rbp + 0x4e], 0
call fcn.1400013f0
xor ecx, ecx
test rcx, rcx
setne dl
cmovne rsi, rcx
jmp 0x140001aaa
lea rax, [rbp - 0x40]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 2
mov qword [rbp + 0x40], 0
lea rax, [rbp + 0x18]
mov qword [rbp + 8], rax
lea rax, [0x140001170]
mov qword [rbp + 0x10], rax
lea rax, [0x1400256d8]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], 1
mov qword [rbp - 8], 0
lea rax, [rbp + 8]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], 1
mov byte [rbp + 0x4f], 1
lea rdx, [0x1400254a0]
lea rcx, [rbp + 0x30]
lea r8, [rbp - 0x28]
call fcn.14001df40
test al, al
jne 0x140001ad6
mov rdx, qword [rbp + 0x40]
cmp rdx, qword [rbp + 0x30]
jne 0x140001a5c
mov byte [rbp + 0x4f], 1
lea rcx, [rbp + 0x30]
call fcn.140001d70
mov rdx, qword [rbp + 0x40]
mov rax, qword [rbp + 0x38]
mov word [rax + rdx*2], 0
inc qword [rbp + 0x40]
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x38]
mov qword [rbp - 0x30], rcx
call sub.KERNEL32.dll_SetConsoleTitleW
test eax, eax
je 0x140001abc
xor edi, edi
mov rdx, qword [rbp + 0x28]
test rdx, rdx
je 0x140001aa0
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp - 0x30]
call fcn.140002cc0
test rdi, rdi
setne dl
cmovne rsi, rdi
movzx eax, dl
mov rdx, rsi
add rsp, 0xd8
pop rbx
pop rdi
pop rsi
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rdx, qword [rbp + 0x28]
test rdx, rdx
jne 0x140001a8e
jmp 0x140001aa0
mov byte [rbp + 0x4f], 1
lea rax, [0x140025770]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400256e8]
lea r9, [0x140025470]
lea r8, [rbp - 0x28]
mov edx, 0x11
call fcn.140024580
ud2
Function at 0x140004400
Capabilities:
Manipulate console buffer

Disassembly:
push rsi
sub rsp, 0xa0
mov word [rsp + 0x2c], dx
mov word [rsp + 0x2e], r8w
test dx, dx
js 0x140004444
test r8w, r8w
js 0x140004492
mov rcx, qword [rcx + 0x10]
shl r8d, 0x10
movzx edx, dx
or edx, r8d
call sub.KERNEL32.dll_SetConsoleCursorPosition
test eax, eax
je 0x140004502
xor eax, eax
add rsp, 0xa0
pop rsi
ret
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x30], rax
lea rax, [0x140021370]
mov qword [rsp + 0x38], rax
lea rax, [0x1432c00c8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
lea rsi, [rsp + 0x70]
jmp 0x1400044e1
lea rax, [rsp + 0x2e]
mov qword [rsp + 0x30], rax
lea rax, [0x140021370]
mov qword [rsp + 0x38], rax
lea rax, [0x1432c0070]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
lea rsi, [rsp + 0x88]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14001c9c0
mov cl, 0x27
mov rdx, rsi
call fcn.140003cb0
nop
add rsp, 0xa0
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
lea rcx, [rax + 2]
call fcn.1400013f0
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0xa0
pop rsi
ret
Function at 0x140008ea0
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 0x140008f40
jmp 0x140008f2f
jae 0x140009000
cmp r8, 0x201
jae 0x140008f40
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140008f98
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x140008f6f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140023780
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 0x140008fc1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140009068
mov r8d, r14d
cmp r15, r8
jne 0x140008f20
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140009095
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140008f2f
jmp 0x140008f40
cmp rsi, r8
jb 0x1400090af
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14000bf80
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 0x140009051
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140002cc0
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 0x140009039
jmp 0x140009051
lea rcx, [0x1432c0c80]
lea r8, [0x1432c2f18]
mov edx, 0x28
call fcn.140024250
jmp 0x1400090c4
lea rax, [0x1432c2f00]
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400246a0
ud2
Function at 0x140009250
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x58]
call fcn.140013c90
mov rax, qword [rbp - 0x58]
movabs rdi, 0x8000000000000000
cmp rax, rdi
jne 0x1400092a6
lea rcx, [rbp - 0x50]
call fcn.140006ef0
mov qword [rsi], rdi
jmp 0x140009491
mov qword [rbp + 0x3c8], rsi
mov qword [rbp + 0x418], rax
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x408], rax
mov qword [rbp + 0x3f0], 0
mov qword [rbp + 0x3f8], 2
mov qword [rbp + 0x400], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor ebx, ebx
xor edi, edi
xor r13d, r13d
cmp r8, 0x201
jae 0x140009330
jmp 0x14000931f
jae 0x1400093f6
cmp r8, 0x201
jae 0x140009330
mov r15d, 0x200
lea r14, [rbp - 0x58]
mov r12, r8
jmp 0x140009388
sub r8, r13
sub rdi, r13
cmp rdi, r8
jae 0x14000935f
lea rcx, [rbp + 0x3f0]
mov rdx, r13
call fcn.140023780
mov rbx, qword [rbp + 0x3f0]
mov rax, qword [rbp + 0x3f8]
mov qword [rbp + 0x410], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rbp + 0x400], r13
mov rdi, rbx
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x1400093b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400094cb
mov r8d, esi
cmp r12, r8
jne 0x140009310
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140009506
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000931f
jmp 0x140009330
cmp r15, r8
jb 0x140009520
lea rcx, [rbp + 0x3a8]
mov rdx, r14
call fcn.14000bf80
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3d0], xmm0
movabs rdi, 0x8000000000000000
test rbx, rbx
mov rsi, qword [rbp + 0x3c8]
je 0x140009458
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rbx
call fcn.140002cc0
cmp qword [rbp + 0x3d0], rdi
jne 0x1400094a8
mov qword [rsi], rdi
lea rcx, [rbp + 0x3d8]
call fcn.140006ef0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x140009491
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.140002cc0
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3d0]
movaps xmm1, xmmword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x14000947c
jmp 0x140009491
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3d8], rax
movabs rdi, 0x8000000000000000
mov qword [rbp + 0x3d0], rdi
test rbx, rbx
mov rsi, qword [rbp + 0x3c8]
jne 0x140009440
jmp 0x140009458
lea rcx, [0x1432c0c80]
lea r8, [0x1432c2f18]
mov edx, 0x28
call fcn.140024250
jmp 0x140009535
lea rax, [0x1432c2f00]
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.1400246a0
ud2
Function at 0x1400097a0
Capabilities:
Create directory

Disassembly:
cmp byte [rcx], 0
je 0x1400097b0
mov rcx, rdx
mov rdx, r8
jmp fcn.1400097c0
mov rcx, rdx
mov rdx, r8
jmp fcn.1400116f0

Function at 0x1400116f0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140013c90
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x1400117b1
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.140012890
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
cmp rdi, rbx
je 0x1400117b1
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140011785
test rdi, rdi
je 0x140011781
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140002cc0
xor esi, esi
jmp 0x1400117b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x1400117ae
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140002cc0
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x140011b90
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 [0x1432c2820]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140011bd4
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 0x140011c3a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140011c71
test eax, eax
js 0x140011c4b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140011c64
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, [0x1432c2880]
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.14000bc40
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140007080
mov ecx, 7
int 0x29
ud2