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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000274d
xor eax, eax
jmp 0x1400028b9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002787
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002787
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 0x1400028b9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400028ac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400027ca
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 0x1400027f5
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 0x1400028b1
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 0x140002864
sub eax, 1
je 0x140002864
cmp eax, 2
jne 0x1400028ac
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 0x1400028b1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002892
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 0x1400028ac
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400028b1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003590
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002ba0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002c73
cmp byte [rcx + 0x71], 0
je 0x140002c73
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002c6f
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 0x140002c34
sub eax, 1
je 0x140002c38
cmp eax, 2
jne 0x140002c6f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003590
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002c66
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 0x140002c6f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002c1c
xor al, al
jmp 0x140002c1c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003590
add rsp, 0x60
pop rbx
ret

Function at 0x140003fc4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x18001e010]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor esi, esi
mov word [rsp + 0x50], si
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
test eax, eax
je 0x1800026e1
mov eax, 2
mul rbx
mov rbp, 0xffffffffffffffff
cmovo rax, rbp
mov rcx, rax
call fcn.180004280
mov rdi, rax
mov qword [rsp + 0x40], rax
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1800026d4
mov rbx, rdi
cmp si, word [rdi]
je 0x1800026d4
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
mov r8, rbp
nop dword [rax + rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x180002650
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1800029f0
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x180002681
lea rcx, [rsp + 0x20]
call fcn.180002d40
mov rax, qword [rsp + 0x30]
lea rbx, [rbx + rax*2]
add rbx, 2
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1800026cc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800026c7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000270a
call fcn.180004278
cmp si, word [rbx]
jmp 0x180002633
mov edx, 2
mov rcx, rdi
call fcn.180004278
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180003b30
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1800089ec
nop
mov rcx, qword [rcx]
test rcx, rcx
je 0x180002722
mov edx, 2
jmp fcn.180004278
ret
Function at 0x180011540
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180011568
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180011568
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140010f80
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140010f8d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140010f9d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140010f85
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140010fb5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140010fa2
sub eax, 3
jb 0x140010fcf
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140011006
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140010ff6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140010ff4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140010fe3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140010f42
jmp 0x140010f8d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x5400
mov dl, 3
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140011052
cmp rsi, rcx
jae 0x14001105a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140011039
cmp al, 0x8f
ja 0x140011039
cmp byte [rsi - 2], 0xf
je 0x14001103f
sub al, 0xe8
cmp al, 1
ja 0x140011023
cmp rsi, rcx
jae 0x14001105a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140011029
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14001105a
lodsb al, byte [rsi]
jmp 0x140011039
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xe000]
mov eax, dword [rdi]
or eax, eax
je 0x1400110b7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x111e4]
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 0x140011067
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 0x1400110b1
mov qword [rbx], rax
add rbx, 8
jmp 0x140011087
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400110f1
cmp al, 0xef
ja 0x1400110e3
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400110c3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400110d2
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 + 0x22f]
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
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140011145
sub rsp, 0xffffffffffffff80
jmp 0x140005600
Function at 0x1400021d0
Capabilities:
Parse pe header

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

Function at 0x140007744
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007570

Function at 0x140015ff0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140016018
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140016018
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003ea8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003ef2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003ef2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003ef2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003ef2
cmp dword [rcx + 0x84], 0xe
jbe 0x140003ef2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003ef4
xor al, al
add rsp, 0x28
ret
Function at 0x1400026f0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r14, rcx
mov rax, qword [0x140098028]
xor rax, rsp
mov qword [rsp + 0x38], rax
call fcn.140005da0
mov rbx, rax
call fcn.140005db0
mov r15, rax
call fcn.140005de0
mov rsi, rax
call fcn.140005df0
mov rdi, rax
mov rcx, rbx
mov rdx, r15
call fcn.1400043d0
mov rbx, rax
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.140002570
test eax, eax
je 0x14000276f
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140015300
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, r14
call fcn.14004092c
mov rdx, qword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0
xor ecx, ecx
mov r8d, 3
mov r9d, 1
call fcn.140005ae0
cmp rax, 0xffffffffffffffff
je 0x1400027e4
mov r14, rax
xor ecx, ecx
call fcn.140005e30
cdqe
sub rbx, rsi
add rbx, r14
add rax, rbx
add rax, 0x58
mov qword [0x1400fe3e0], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140015300
mov rcx, rsi
mov rdx, rdi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp 0x140004150
call fcn.14003fe08
mov ecx, dword [rax]
call fcn.140049344
mov rsi, rax
mov ecx, 2
call fcn.140018548
lea rdx, str.LLVM_Profile_Error:_Unable_to_mmap_profile:__s_n
mov rcx, rax
mov r8, rsi
call fcn.140001540
jmp 0x140002755
push rsi
push rdi
sub rsp, 0x58
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140098028]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edx, dword [rsp + 0x24]
lea rcx, [rdi + rdx]
dec rcx
neg rdx
and rcx, rdx
and rdx, rsi
xor esi, esi
sub rdx, rcx
jbe 0x14000419e
mov r8d, 4
call fcn.140005c20
mov esi, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140015300
mov eax, esi
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x140003dc0
Capabilities:
Get hostname

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov edi, edx
mov rsi, rcx
mov rax, qword [0x140098028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x4c], 0x80
lea rdx, [rsp + 0x50]
lea r8, [rsp + 0x4c]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x140003e33
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
xor esi, esi
lea r8, [rsp + 0x50]
mov ecx, 0xfde9
xor edx, edx
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, 1
sbb esi, esi
jmp 0x140003e38
mov esi, 0xffffffff
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140015300
mov eax, esi
add rsp, 0x158
pop rdi
pop rsi
ret

Function at 0x140004150
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r14, rcx
mov rax, qword [0x140098028]
xor rax, rsp
mov qword [rsp + 0x38], rax
call fcn.140005da0
mov rbx, rax
call fcn.140005db0
mov r15, rax
call fcn.140005de0
mov rsi, rax
call fcn.140005df0
mov rdi, rax
mov rcx, rbx
mov rdx, r15
call fcn.1400043d0
mov rbx, rax
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.140002570
test eax, eax
je 0x14000276f
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140015300
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, r14
call fcn.14004092c
mov rdx, qword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0
xor ecx, ecx
mov r8d, 3
mov r9d, 1
call fcn.140005ae0
cmp rax, 0xffffffffffffffff
je 0x1400027e4
mov r14, rax
xor ecx, ecx
call fcn.140005e30
cdqe
sub rbx, rsi
add rbx, r14
add rax, rbx
add rax, 0x58
mov qword [0x1400fe3e0], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140015300
mov rcx, rsi
mov rdx, rdi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp 0x140004150
call fcn.14003fe08
mov ecx, dword [rax]
call fcn.140049344
mov rsi, rax
mov ecx, 2
call fcn.140018548
lea rdx, str.LLVM_Profile_Error:_Unable_to_mmap_profile:__s_n
mov rcx, rax
mov r8, rsi
call fcn.140001540
jmp 0x140002755
push rsi
push rdi
sub rsp, 0x58
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140098028]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edx, dword [rsp + 0x24]
lea rcx, [rdi + rdx]
dec rcx
neg rdx
and rcx, rdx
and rdx, rsi
xor esi, esi
sub rdx, rcx
jbe 0x14000419e
mov r8d, 4
call fcn.140005c20
mov esi, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140015300
mov eax, esi
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x140014ef0
Capabilities:
Parse pe header

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

Function at 0x14003bd00
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003bf68
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 0x14003bfd7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003bfd7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003bfd7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003bfd7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003bfd7
cmp dword [rcx + 0x84], 0xe
jbe 0x14003bfd7
cmp dword [rcx + 0xf8], 0
je 0x14003bfd7
mov ecx, ebx
call fcn.14003be0c
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.14003c174
nop
cmp dword [rbp + 0x20], 0
je 0x14003c025
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003bf00
int3
Function at 0x14003c4e8
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.14005f62c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14005f62c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14003c638
cmp rax, 0xffffffffffffffff
je 0x14003c638
xor edi, edi
test rbp, rbp
jle 0x14003c5e3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14005b500
mov rbx, rax
test rax, rax
jne 0x14003c570
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14003c5d9
mov edx, 0x8000
mov ecx, r14d
call fcn.14004354c
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.14005e68c
cmp eax, 0xffffffff
je 0x14003c5b9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14003c580
mov edx, r15d
mov ecx, r14d
call fcn.14004354c
jmp 0x14003c5d9
cmp byte [rsi + 0x38], dil
je 0x14003c5d0
cmp dword [rsi + 0x34], 5
jne 0x14003c5d0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14003c5d9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14005ab3c
jmp 0x14003c64c
jns 0x14003c64c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14005f62c
cmp rax, 0xffffffffffffffff
jne 0x14003c604
cmp byte [rsi + 0x30], dil
je 0x14003c64c
mov edi, dword [rsi + 0x2c]
jmp 0x14003c64c
mov ecx, r14d
call fcn.140041484
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14003c64c
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 0x14003c64c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14003c645
mov eax, dword [rsi + 0x2c]
jmp 0x14003c64a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14005f62c
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 0x140042298
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x1400422b7
call fcn.140066b18
jmp 0x14004236c
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.1400421e0
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x140042302
cmp byte [rbp - 0x38], 0
je 0x140042337
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140042337
call fcn.140057018
test eax, eax
jne 0x140042323
cmp byte [rbp - 0x38], al
je 0x14004231b
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140042337
cmp byte [rbp - 0x38], 0
je 0x140042334
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.14004254c
test eax, eax
je 0x140042350
or ebx, 0xffffffff
jmp 0x14004235b
mov rcx, qword [rbp - 0x20]
call fcn.140066b18
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x14004236a
mov rcx, qword [rbp - 0x20]
call fcn.14005ab3c
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret

Function at 0x140047af4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140015330
sub rsp, rax
mov rax, qword [0x140098028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14004092c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140047b43
mov rax, rbp
jmp 0x140047c4b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1022c0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14005f6d8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1022c0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140047c47
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140047c47
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14005f6d8
test rax, rax
js 0x140047c47
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140047c47
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140047c39
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140047c39
cmp byte [rcx], 0xd
jne 0x140047c1f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140047c2e
cmp byte [rcx + 1], 0xa
jne 0x140047c2e
inc rcx
jmp 0x140047c2e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x989c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140047c01
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140047c4b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140015300
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret