joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006dc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000f040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140006ded
xor eax, eax
jmp 0x140006f59
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140006e27
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140006e27
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140006f59
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140006f4c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140006e6a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140006e95
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140006f51
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140006f04
sub eax, 1
je 0x140006f04
cmp eax, 2
jne 0x140006f4c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140006f51
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140006f32
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140006f4c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140006f51
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400089d0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140007200
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000f040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400072d3
cmp byte [rcx + 0x71], 0
je 0x1400072d3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400072cf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140007294
sub eax, 1
je 0x140007298
cmp eax, 2
jne 0x1400072cf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400089d0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400072c6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400072cf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000727c
xor al, al
jmp 0x14000727c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400089d0
add rsp, 0x60
pop rbx
ret

Function at 0x140009510
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x448]
sub rsp, 0x520
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14002f6c0]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov esi, edx
mov rdi, rcx
xor r14d, r14d
mov word [rbp + 0x200], r14w
mov ebx, 0x206
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x202]
call fcn.14000f5d0
mov word [rbp - 0x10], r14w
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0xe]
call fcn.14000f5d0
lea rdx, [rbp - 0x10]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rbp + 0x200]
xor r8d, r8d
lea rdx, [0x140027794]
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r14
mov word [rbp - 0x68], r14w
lea r8d, [r14 + 4]
lea rdx, [0x140027788]
lea rcx, [rbp - 0x68]
call fcn.1400020f4
nop
lea rdx, [rbp + 0x200]
lea rcx, [rbp - 0x68]
call fcn.140001e14
mov word [rbp - 0x48], r14w
xor eax, eax
mov qword [rbp - 0x46], rax
mov dword [rbp - 0x3e], eax
mov word [rbp - 0x3a], ax
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x48]
call qword [0x140045050]
xor edx, edx
lea r8d, [r14 + 0x28]
lea rcx, [rsp + 0x68]
call fcn.14000f5d0
mov dword [rsp + 0x60], 0x30
mov qword [rsp + 0x68], r14
mov dword [rsp + 0x78], 0x40
lea rax, [rbp - 0x48]
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x20], r14
xor eax, eax
mov qword [rbp - 0x18], rax
or r15, 0xffffffffffffffff
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 3
lea r9, [rbp - 0x20]
lea r8, [rsp + 0x60]
mov edx, 0xc0110000
lea rcx, [rsp + 0x58]
call qword [0x1400450c8]
test eax, eax
jns 0x140001724
cmp qword [rbp - 0x50], 8
jb 0x1400017c9
mov rcx, qword [rbp - 0x68]
call fcn.140007afc
jmp 0x1400017c9
mov rbx, qword [rsp + 0x58]
cmp qword [rbp - 0x50], 8
jb 0x140001739
mov rcx, qword [rbp - 0x68]
call fcn.140007afc
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r14
mov word [rbp - 0x68], r14w
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400017c9
mov qword [rbp - 0x30], r14
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov byte [rbp - 0x70], 1
mov dword [rsp + 0x20], 0xd
lea r9d, [rcx + 1]
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [0x140045058]
test eax, eax
js 0x1400017c9
mov qword [rbp - 0x38], r14
mov qword [rsp + 0x40], r14
lea rax, [rbp - 0x38]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rdi
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [0x140045070]
test eax, eax
jns 0x1400017c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400017c9
mov rax, rbx
jmp 0x1400017cc
mov rax, r15
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.14000ba80
mov rbx, qword [rsp + 0x560]
add rsp, 0x520
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400017f4
Capabilities:
Get file size
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14002f6c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
and qword [r11 - 0x28], 0
mov qword [r11 - 0x38], rcx
mov rbx, rcx
lea rcx, [r11 - 0x28]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov dword [rsp + 0x28], 0x1000000
mov dword [rsp + 0x20], 2
call qword [0x1400450a8]
test eax, eax
je 0x14000184a
or rax, 0xffffffffffffffff
jmp 0x1400018c7
lea rdx, [rsp + 0x4c]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
lea edi, [rax - 0xc]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x1400018a4
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
lea rdx, [0x14002779c]
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
sub edi, dword [rsp + 0x48]
mov rcx, rbx
cmp edi, 8
ja 0x14000186e
call qword [0x1400450b8]
mov rdx, qword [rsp + 0x40]
or rax, 0xffffffffffffffff
lea rcx, [rdx - 1]
cmp rcx, 0xfffffffffffffffd
cmovbe rax, rdx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000ba80
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1400018e0
Capabilities:
Parse pe header
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x14002f6c0]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov r14, rcx
mov rbx, rdx
lea rcx, [rbp + 2]
xor r15d, r15d
xor edx, edx
mov r8d, 0x206
mov rsi, r9
mov word [rbp], r15w
call fcn.14000f5d0
lea rcx, [rbp]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140001936
sub rax, 2
cmp word [rbp + rax*2], 0x5c
je 0x140001959
cmp word [rbp + rax*2], 0x2f
je 0x140001959
dec rax
jmp 0x140001944
lea rcx, [rbp + 2]
lea rcx, [rcx + rax*2]
test rcx, rcx
je 0x14000196a
mov word [rcx], r15w
lea rcx, [rbp]
mov edx, 0x104
call fcn.14000c044
lea rdi, [rbp]
lea rcx, str.kernel32
test rax, rax
mov qword [rsp + 0x60], r15
cmove rdi, r15
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.CreateProcessInternalW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140045048], rax
test rax, rax
je 0x140001b05
xor edx, edx
lea rcx, [rbp - 0x68]
lea r8d, [rdx + 0x60]
call fcn.14000f5d0
xor eax, eax
lea rdx, str.__k_DcomLaunch__p__s_LSM
mov rcx, r14
mov dword [rbp - 0x70], 0x68
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], r15
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rax, [rbp - 0x80]
xor r9d, r9d
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x60]
mov r8, r14
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x70]
xor edx, edx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], 0x800000c
xor ecx, ecx
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [0x140045048]
test eax, eax
je 0x140001b05
mov rdx, qword [rsp + 0x60]
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], 1
lea rax, [rbp - 0x78]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov rcx, rsi
mov qword [rsp + 0x28], r15
mov qword [rbp - 0x78], r15
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x20], r15
call qword [0x140045080]
test eax, eax
je 0x140001a9e
cmp eax, 0x40000003
jne 0x140001b05
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x140001b05
test rbx, rbx
je 0x140001adc
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140001adc
cmp dword [rbx + 0x3c], 0x400
jg 0x140001adc
movsxd rax, dword [rbx + 0x3c]
add rax, rbx
cmp dword [rax], 0x4550
jne 0x140001adc
mov ecx, 0x20b
cmp word [rax + 0x18], cx
mov al, 1
je 0x140001adf
mov al, r15b
test al, al
lea r8, [rsp + 0x60]
mov rcx, rbx
sete r9b
call fcn.140001450
test al, al
je 0x140001b05
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
jmp 0x140001b07
xor al, al
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14000ba80
mov rbx, qword [rsp + 0x360]
add rsp, 0x320
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003474
Capabilities:
Acquire debug privileges

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14002f6c0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov edi, r8d
mov esi, dword [0x1400453e4]
mov r14, qword [0x1400452d0]
xor r15d, r15d
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], r15
xor eax, eax
mov qword [rbp - 0x38], rax
lea ebx, [rax + 1]
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r15
mov word [rbp - 0x30], r15w
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x48]
lea edx, [rbx + 0x27]
call qword [0x140045210]
test eax, eax
je 0x14000353f
mov dword [rbp - 0x40], ebx
mov dword [rbp - 0x34], 2
lea r8, [rbp - 0x3c]
lea rdx, [0x140027d90]
xor ecx, ecx
call qword [0x140045220]
test eax, eax
je 0x140003535
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8, [rbp - 0x40]
xor edx, edx
mov rcx, qword [rbp - 0x48]
call qword [0x1400451c8]
mov rcx, qword [rbp - 0x48]
call qword [0x1400452b0]
mov r8d, edi
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x14000355c
mov ebx, r15d
jmp 0x14000358a
mov r8d, esi
mov rdx, r14
mov rcx, rax
call fcn.1400037f8
test rax, rax
jne 0x140003574
mov ebx, r15d
jmp 0x140003580
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14000ba80
lea r11, [rsp + 0x80]
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 0x140003714
Capabilities:
Resolve function by parsing pe exports

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 r14
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
mov rbx, rcx
mov ecx, 0x10b
cmp word [rax + rbx + 0x18], cx
je 0x1400037b7
mov ecx, 0x20b
cmp word [rax + rbx + 0x18], cx
jne 0x1400037b7
mov ecx, dword [rax + rbx + 0x88]
mov rdx, rbx
call fcn.1400036a8
mov rdx, rbx
mov r14d, eax
add r14, rbx
mov ecx, dword [r14 + 0x20]
call fcn.1400036a8
mov ecx, dword [r14 + 0x24]
mov rdx, rbx
mov esi, eax
add rsi, rbx
call fcn.1400036a8
mov ebp, dword [r14 + 0x18]
mov edi, eax
add rdi, rbx
jmp 0x1400037b3
mov ecx, dword [rsi]
mov rdx, rbx
dec ebp
call fcn.1400036a8
lea rdx, [0x140027dc0]
mov ecx, eax
add rcx, rbx
call fcn.14000c788
test rax, rax
jne 0x1400037d4
add rsi, 4
add rdi, 2
test ebp, ebp
jne 0x140003789
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov ecx, dword [r14 + 0x1c]
mov rdx, rbx
call fcn.1400036a8
movzx r8d, word [rdi]
mov rdx, rbx
mov ecx, eax
add rcx, rbx
mov ecx, dword [rcx + r8*4]
call fcn.1400036a8
jmp 0x1400037b9
Function at 0x140004de4
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r14
sub rsp, 0x30
and qword [rax - 0x18], 0
mov rbx, r8
xor r9d, r9d
mov r14, rdx
mov rsi, rcx
lea edx, [r9 + 4]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
jne 0x140004e38
mov rcx, rbx
call qword [0x1400452b0]
mov rcx, rsi
call qword [0x1400452b0]
xor eax, eax
jmp 0x140004e85
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov r8d, 0x3000
mov edx, eax
lea r9d, [rcx + 4]
mov qword [r14], rdx
call qword [0x140045198]
mov rsi, rax
test rax, rax
je 0x140004e34
mov r8, qword [r14]
mov rdx, rdi
mov rcx, rax
call fcn.14000bb60
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbx
call qword [0x1400452b0]
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x140005cec
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14002f6c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x31]
lea r8d, [rdx + 0x22]
mov byte [rsp + 0x30], 0
call fcn.14000f5d0
lea rcx, [rsp + 0x30]
call fcn.140005bcc
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [0x140045280]
lea rdx, [0x140028514]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatA]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rdx, [0x140028514]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, str..exe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000ba80
add rsp, 0x60
pop rbx
ret
Function at 0x413100
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41328b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x0060cd50]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x413165
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x413174
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x413193
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x4131a3
cmp rbx, 0x1000
jae 0x41316b
jmp 0x41320d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x4131b5
xor edx, edx
jmp 0x413204
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x0060cd50]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x413199
jmp 0x413188
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x0060cd50]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x004ee9c2]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x004eeeab]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x004f130d]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS
Function at 0x4132c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4134e6
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x0060cd50]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x413333
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x413342
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x413365
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x413375
cmp rbx, 0x1000
jae 0x413339
nop
jmp 0x4133f8
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x41338d
xor esi, esi
jmp 0x4133ea
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x0060cd50]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x41336b
jmp 0x413356
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x0060cd50]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x413480
nop dword [rax + rax]
call sym.runtime.printlock
lea rax, [0x004eeec4]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call sym.runtime.printuint
lea rax, [0x004eeeab]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
call sym.runtime.printuint
nop
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x004eb7c7]
mov ebx, 0xd
call sym.runtime.throw
nop dword [rax + rax]
cmp eax, 0x5af
je 0x413420
call sym.runtime.printlock
lea rax, [0x004eeec4]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x004eeeab]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
nop dword [rax]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x004f0b19]
mov ebx, 0x1f
nop dword [rax + rax]
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp sym.runtime.sysUsedOS