joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400025c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140458100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1404580e0]
test rbx, rbx
je 0x140002614
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000260b
test r12, r12
je 0x14000260b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400025f0
lea rcx, [0x140458100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002840
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x140002850
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x140002860
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400028a5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14000289c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1400028a7
add rax, 0x28
cmp rax, r9
jne 0x140002888
xor eax, eax
ret

Function at 0x140002950
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1404558e0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400029c9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400029c9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1400029c6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400029bd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400029c9
add r8, 0x28
cmp r8, r9
jne 0x1400029a8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140002ab0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1404558e0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140002b1f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002b1f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x140002b1d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002b14
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002b28
add rax, 0x28
cmp rax, r9
jne 0x140002b00
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140002b40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x1404558e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140002bb8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002bb8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140002bb8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002bb8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x140002bac
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002bc0
add rdx, 0x28
cmp rdx, r10
jne 0x140002b98
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x140002bd0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x140002bde
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002bb5
test r8d, r8d
jg 0x140002bc8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140001130
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov dword [rsp + 0x38], 0
mov rcx, qword [rcx]
xor r8d, r8d
xor edx, edx
call fcn.14000af60
mov r9, qword [rbx]
lea rcx, [rsp + 0x30]
mov edx, 1
lea r8d, [rdx + 1]
call fcn.14000ac24
cmp byte [rsp + 0x30], 0x4d
jne 0x140001220
cmp byte [rsp + 0x31], 0x5a
jne 0x140001220
mov rcx, qword [rbx]
xor r8d, r8d
lea edx, [r8 + 0x3c]
call fcn.14000af60
mov r9, qword [rbx]
lea rcx, [rsp + 0x38]
mov edx, 4
lea r8d, [rdx - 3]
call fcn.14000ac24
mov edx, dword [rsp + 0x38]
xor r8d, r8d
mov rcx, qword [rbx]
add edx, 0x18
call fcn.14000af60
mov r9, qword [rbx]
lea rcx, [rsp + 0x30]
mov edx, 2
lea r8d, [rdx - 1]
call fcn.14000ac24
cmp byte [rsp + 0x30], 0xb
jne 0x140001220
movzx eax, byte [rsp + 0x31]
cmp al, 1
jne 0x1400011de
mov ecx, 0x98
jmp 0x1400011e7
cmp al, 2
jne 0x140001220
mov ecx, 0xa8
mov edx, dword [rsp + 0x38]
xor r8d, r8d
add edx, ecx
mov rcx, qword [rbx]
call fcn.14000af60
mov r9, qword [rbx]
lea rcx, [rsp + 0x38]
mov edx, 4
lea r8d, [rdx - 3]
call fcn.14000ac24
mov eax, dword [rsp + 0x38]
or ecx, 0xffffffff
test eax, eax
cmove eax, ecx
add rsp, 0x20
pop rbx
ret
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret

Function at 0x140001230
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbp, rdx
mov rdi, rcx
jne 0x140001277
add rcx, 0x78
lea rdx, [0x1400233e0]
call fcn.140002960
mov qword [rdi], rax
test rax, rax
jne 0x140001277
lea rcx, str.Cannot_open_archive_file_n
call fcn.140001a20
xor eax, eax
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, dword [rbp + 4]
mov qword [rsp + 0x38], rsi
call sub.WS2_32.dll_ntohl
add eax, dword [rdi + 8]
xor r8d, r8d
mov rcx, qword [rdi]
mov edx, eax
call fcn.14000af60
mov ecx, dword [rbp + 8]
call sub.WS2_32.dll_ntohl
mov ecx, eax
call fcn.14000a854
mov rsi, rax
test rax, rax
jne 0x1400012c9
lea rcx, str.Could_not_allocate_read_buffer_n
call fcn.140001a20
mov rsi, qword [rsp + 0x38]
xor eax, eax
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, dword [rbp + 8]
call sub.WS2_32.dll_ntohl
mov r9, qword [rdi]
mov r8d, 1
mov edx, eax
mov rcx, rsi
call fcn.14000ac24
cmp rax, 1
jae 0x140001310
lea rcx, str.Could_not_read_from_file_n
call fcn.140001a20
mov rcx, rsi
call fcn.14000a84c
mov rsi, qword [rsp + 0x38]
xor eax, eax
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
cmp byte [rbp + 0x10], 1
jne 0x140001360
mov rdx, rbp
mov qword [rsp + 0x30], rbx
mov rcx, rsi
call fcn.140001040
mov rcx, rsi
mov rbx, rax
call fcn.14000a84c
test rbx, rbx
mov rsi, rbx
mov rbx, qword [rsp + 0x30]
jne 0x140001360
lea rdx, [rbp + 0x12]
lea rcx, str.Error_decompressing__s_n
call fcn.140001a20
mov rsi, qword [rsp + 0x38]
xor eax, eax
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rdi]
test rcx, rcx
je 0x140001374
call fcn.14000a8e0
mov qword [rdi], 0
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140001390
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
call fcn.140001230
mov rcx, rdi
mov rbp, rax
call fcn.140004210
cmp eax, 0xffffffff
jne 0x1400013cc
or eax, eax
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
lea rcx, [rdi + 0x2078]
lea rbx, [rsi + 0x12]
mov rdx, rbx
call fcn.140004560
mov ecx, dword [rsi + 0xc]
mov rdi, rax
call sub.WS2_32.dll_ntohl
mov esi, eax
test rdi, rdi
jne 0x140001411
mov r8, rbx
lea rdx, str._s_could_not_be_extracted__n
lea rcx, str.fopen
call fcn.1400019e0
or eax, 0xffffffff
jmp 0x14000145d
mov r9, rdi
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call fcn.14000b68c
cmp rax, 1
je 0x14000144b
test rsi, rsi
je 0x14000144b
mov r8, rbx
lea rdx, str.Failed_to_write_all_bytes_for__s_n
lea rcx, str.fwrite
call fcn.1400019e0
or eax, 0xffffffff
jmp 0x14000145d
mov rcx, rdi
call fcn.14000a8e0
mov rcx, rbp
call fcn.14000a84c
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140001480
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140033010]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea esi, [rdx - 0x60]
mov rdi, rcx
mov rcx, qword [rcx]
lea rbx, [rsp + 0x28]
mov edx, esi
xor r8d, r8d
call fcn.14000af60
test eax, eax
jne 0x140001506
mov r9, qword [rdi]
lea edx, [rax + 0x60]
lea r8d, [rax + 1]
lea rcx, [rsp + 0x20]
call fcn.14000ac24
cmp rax, 1
jb 0x140001506
nop word [rax + rax]
mov r8d, 8
lea rcx, str.MEI_f_v_n_v
mov rdx, rbx
call fcn.14000a480
test eax, eax
je 0x14000150b
dec rbx
lea rax, [rsp + 0x20]
cmp rbx, rax
jae 0x1400014e0
or eax, 0xffffffff
jmp 0x140001557
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rdi + 0x20], xmm0
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rdi + 0x30], xmm1
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rdi + 0x40], xmm0
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rdi + 0x50], xmm1
movsd xmm1, qword [rbx + 0x50]
movups xmmword [rdi + 0x60], xmm0
movsd qword [rdi + 0x70], xmm1
mov ecx, dword [rdi + 0x28]
call sub.WS2_32.dll_ntohl
lea rcx, [rsp + 0x20]
sub ebx, ecx
add ebx, esi
sub ebx, eax
add ebx, 0x58
mov dword [rdi + 8], ebx
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400086c0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140001670
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
jne 0x14000169b
add rcx, 0x78
lea rdx, [0x1400233e0]
call fcn.140002960
mov qword [rbx], rax
test rax, rax
je 0x140001728
mov rcx, rbx
call fcn.140001130
cmp eax, 1
jge 0x1400016be
mov rcx, qword [rbx]
xor edx, edx
lea r8d, [rdx + 2]
call fcn.14000af60
mov rcx, qword [rbx]
call fcn.14000b444
mov edx, eax
mov rcx, rbx
call fcn.140001480
cmp eax, 0xffffffff
je 0x140001728
mov ecx, dword [rbx + 0x34]
mov dword [rbx + 0x407c], 0
call sub.WS2_32.dll_ntohl
mov dword [0x140033b14], eax
mov ecx, dword [rbx + 0x2c]
call sub.WS2_32.dll_ntohl
add eax, dword [rbx + 8]
xor r8d, r8d
mov rcx, qword [rbx]
mov edx, eax
call fcn.14000af60
mov ecx, dword [rbx + 0x30]
call sub.WS2_32.dll_ntohl
mov ecx, eax
call fcn.14000a854
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x140001731
lea rdx, str.Could_not_allocate_buffer_for_TOC.
lea rcx, str.malloc
call fcn.1400019e0
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov ecx, dword [rbx + 0x30]
call sub.WS2_32.dll_ntohl
mov r9, qword [rbx]
mov r8d, 1
mov rcx, qword [rbx + 0x10]
mov edx, eax
call fcn.14000ac24
cmp rax, 1
jae 0x14000176f
lea rdx, str.Could_not_read_from_file.
lea rcx, str.fread
call fcn.1400019e0
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov ecx, dword [rbx + 0x30]
call sub.WS2_32.dll_ntohl
mov ecx, eax
add rcx, qword [rbx + 0x10]
mov qword [rbx + 0x18], rcx
mov rcx, qword [rbx]
call fcn.14000a978
test eax, eax
je 0x1400017a2
lea rcx, str.Error_on_file_n.
call fcn.140001a20
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400017b6
call fcn.14000a8e0
mov qword [rbx], 0
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400040f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1030
call fcn.140008700
sub rsp, rax
mov rax, qword [0x140033010]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rdx
mov rdi, r8
lea rdx, [0x1400233e0]
call fcn.140002960
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call fcn.140004560
xor edi, edi
mov rbx, rax
test rsi, rsi
je 0x1400041e4
mov rcx, rsi
test rax, rax
je 0x1400041ec
call fcn.14000a94c
test eax, eax
jne 0x1400041d0
nop word [rax + rax]
mov r9, rsi
lea rcx, [rsp + 0x20]
mov edx, 0x1000
mov r8d, 1
call fcn.14000ac24
cmp rax, 0xffffffffffffffff
jne 0x14000418f
mov rcx, rsi
call fcn.14000a978
test eax, eax
je 0x1400041b7
mov rcx, rsi
jmp 0x1400041c8
mov r9, rbx
lea rcx, [rsp + 0x20]
mov edx, 0x1000
mov r8d, 1
call fcn.14000b68c
test eax, eax
jle 0x1400041c5
mov rcx, rbx
call fcn.14000a978
test eax, eax
jne 0x1400041c5
mov rcx, rsi
call fcn.14000a94c
test eax, eax
je 0x140004160
jmp 0x1400041d0
mov rcx, rbx
call fcn.1400117e0
or edi, 0xffffffff
mov rcx, rsi
call fcn.14000a8e0
mov rcx, rbx
call fcn.14000a8e0
mov eax, edi
jmp 0x1400041f4
test rbx, rbx
je 0x1400041f1
mov rcx, rbx
call fcn.14000a8e0
or eax, 0xffffffff
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400086c0
add rsp, 0x1030
pop rdi
pop rsi
pop rbx
ret
Function at 0x140004270
Capabilities:
Create directory
Get common file path
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
mov eax, 0x3070
call fcn.140008700
sub rsp, rax
mov rax, qword [0x140033010]
xor rax, rsp
mov qword [rsp + 0x3060], rax
mov rbp, rdx
mov r14, rcx
test rdx, rdx
je 0x14000430c
lea rcx, [0x140024840]
call fcn.1400044b0
mov r8, rbp
lea rcx, [rsp + 0x50]
mov edx, 0x1000
mov rsi, rax
call fcn.1400029d0
xor r8d, r8d
lea rdx, [0x140024840]
xor ecx, ecx
call fcn.140005560
xor r8d, r8d
lea rdx, [rsp + 0x50]
xor ecx, ecx
mov rdi, rax
call fcn.140005560
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.1400104f4
mov rcx, rdi
call fcn.14000a84c
mov rcx, rbx
call fcn.14000a84c
jmp 0x140004311
mov rsi, qword [rsp + 0x20]
lea rdx, [rsp + 0x1060]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
mov r9d, eax
lea r8, str._MEI_d
mov edx, 0x10
lea rcx, [rsp + 0x28]
call fcn.140004e90
xor ebx, ebx
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x1060]
call fcn.1400117c4
mov rcx, rax
mov rdi, rax
call fcn.14001052c
test eax, eax
je 0x1400043f9
mov rcx, rdi
call fcn.14000a84c
inc ebx
cmp ebx, 5
jl 0x140004350
test rbp, rbp
je 0x1400043f2
xor r8d, r8d
lea rdx, [0x140024840]
xor ecx, ecx
call fcn.140005560
test rsi, rsi
je 0x1400043dc
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.140005560
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.1400104f4
mov rcx, rdi
call fcn.14000a84c
mov rcx, rbx
call fcn.14000a84c
mov rcx, rsi
call fcn.14000a84c
xor eax, eax
jmp 0x14000447b
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.14000a84c
xor eax, eax
jmp 0x14000447b
mov r8d, 0x1000
mov rdx, rdi
mov rcx, r14
call fcn.140005640
mov rcx, rdi
call fcn.14000a84c
test rbp, rbp
je 0x140004476
xor r8d, r8d
lea rdx, [0x140024840]
xor ecx, ecx
call fcn.140005560
test rsi, rsi
je 0x140004460
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.140005560
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.1400104f4
mov rcx, rdi
call fcn.14000a84c
mov rcx, rbx
call fcn.14000a84c
mov rcx, rsi
jmp 0x140004471
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.14000a84c
mov eax, 1
mov rcx, qword [rsp + 0x3060]
xor rcx, rsp
call fcn.1400086c0
lea r11, [rsp + 0x3070]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400044b0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4038
call fcn.140008700
sub rsp, rax
mov rax, qword [0x140033010]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140005560
mov r8d, 0x2000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140004546
mov r8d, 0x2000
lea rdx, [rsp + 0x2020]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r8d, r8d
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.140005640
test rax, rax
je 0x140004546
cmp byte [rax], 0
je 0x140004546
mov rcx, rax
call fcn.14000faa8
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.1400086c0
add rsp, 0x4038
ret
xor eax, eax
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.1400086c0
add rsp, 0x4038
ret

Function at 0x140004560
Capabilities:
Create directory

Disassembly:
push rbx
mov eax, 0x4060
call fcn.140008700
sub rsp, rax
mov rax, qword [0x140033010]
xor rax, rsp
mov qword [rsp + 0x4050], rax
mov rbx, rdx
mov r8d, 0x1000
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.14000eb90
mov r8d, 0x1000
lea rcx, [rsp + 0x1050]
mov rdx, rbx
call fcn.14000eb90
cmp byte [rsp + 0x104f], 0
jne 0x14000474e
cmp byte [rsp + 0x204f], 0
jne 0x14000474e
mov qword [rsp + 0x4080], rdi
lea rax, [rsp + 0x50]
or rdi, 0xffffffffffffffff
nop word [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x1400045e0
lea rdx, [0x14002361c]
lea rcx, [rsp + 0x1050]
call fcn.14000ecf4
mov rbx, rax
test rax, rax
je 0x1400046fc
nop dword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140004614
inc rdi
add rdi, rcx
cmp rdi, 0xfff
jae 0x1400046d9
lea rcx, [rsp + 0x50]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140004640
movzx eax, word [0x14002361c]
mov word [rcx], ax
lea rax, [rsp + 0x50]
dec rax
nop dword [rax]
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x140004660
xor edx, edx
nop dword [rax]
movzx ecx, byte [rbx + rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x140004670
lea rdx, [0x14002361c]
xor ecx, ecx
call fcn.14000ecf4
mov rbx, rax
test rax, rax
je 0x1400046fc
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x2050]
call fcn.140005560
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x2050]
call fcn.14000f524
test eax, eax
jns 0x140004610
lea rcx, [rsp + 0x2050]
call fcn.14001052c
jmp 0x140004610
xor eax, eax
mov rdi, qword [rsp + 0x4080]
mov rcx, qword [rsp + 0x4050]
xor rcx, rsp
call fcn.1400086c0
add rsp, 0x4060
pop rbx
ret
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x2050]
call fcn.140005560
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x2050]
call fcn.14000f524
test eax, eax
jne 0x14000473b
lea rdx, [rsp + 0x50]
lea rcx, str.WARNING:_file_already_exists_but_should_not:__s_n
call fcn.140001a20
lea rdx, [0x1400248ec]
lea rcx, [rsp + 0x50]
call fcn.140002960
jmp 0x1400046db
xor eax, eax
jmp 0x1400046e3
Function at 0x140004b30
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140005560
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rdi
mov ebx, eax
call fcn.14000a84c
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140004b70
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2110
call fcn.140008700
sub rsp, rax
mov rax, qword [0x140033010]
xor rax, rsp
mov qword [rsp + 0x2100], rax
mov rdx, rcx
xor edi, edi
lea rcx, [rsp + 0x100]
mov dword [rsp + 0x50], edi
mov r8d, 0x1000
call fcn.140005560
mov ebx, 1
lea ecx, [rdi + 0x16]
mov edx, ebx
call fcn.1400111dc
mov edx, ebx
lea ecx, [rdi + 2]
call fcn.1400111dc
mov edx, ebx
lea ecx, [rdi + 0xf]
call fcn.1400111dc
mov edx, ebx
lea ecx, [rdi + 0x15]
call fcn.1400111dc
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x58], 0x18
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], ebx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm0, xmm0
mov qword [rsp + 0x98], rdi
xor ecx, ecx
movdqa xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0xcc], 0x101
mov word [rsp + 0xd0], bx
call fcn.14000b830
mov rcx, rax
call fcn.140010158
mov ecx, eax
call fcn.140010d4c
mov ecx, ebx
mov qword [rsp + 0xe0], rax
call fcn.14000b830
mov rcx, rax
call fcn.140010158
mov ecx, eax
call fcn.140010d4c
lea ecx, [rdi + 2]
mov qword [rsp + 0xe8], rax
call fcn.14000b830
mov rcx, rax
call fcn.140010158
mov ecx, eax
call fcn.140010d4c
mov qword [rsp + 0xf0], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, rax
lea rcx, [rsp + 0x100]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140004cef
mov rcx, qword [rsp + 0x70]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x50]
jmp 0x140004d05
lea rdx, str.Error_creating_child_process__n
lea rcx, [0x140024910]
call fcn.140001a80
or eax, 0xffffffff
mov rcx, qword [rsp + 0x2100]
xor rcx, rsp
call fcn.1400086c0
mov rbx, qword [rsp + 0x2128]
add rsp, 0x2110
pop rdi
ret
Function at 0x140010558
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140010578
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140013d74
or eax, 0xffffffff
jmp 0x14001057a
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400108a8
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140033010]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor esi, esi
mov rbx, rdx
test rdx, rdx
jne 0x1400105e7
call fcn.140013de4
mov dword [rax], 0x16
call fcn.140013cc4
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400086c0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
test rcx, rcx
je 0x1400105ae
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140010655
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x140010628
cmp eax, 3
jbe 0x140010645
cmp eax, 8
je 0x140010635
cmp eax, 0x12
je 0x140010645
call fcn.140013de4
mov dword [rax], 0x16
jmp 0x1400105be
call fcn.140013de4
mov dword [rax], ntohl
jmp 0x1400105be
call fcn.140013de4
mov dword [rax], 2
jmp 0x1400105be
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, esi
mov dword [rbx], eax
call fcn.1400107f0
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.1400107f0
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.1400107f0
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.140019190
test eax, eax
jne 0x1400106b3
mov rax, rdi
jmp 0x1400105c2
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140013ce4
int3
jmp 0x140010580
Function at 0x1400108b0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x140033010]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edi, edi
mov rbx, rdx
test rcx, rcx
jne 0x140010725
call fcn.140013de4
mov dword [rax], 0x16
call fcn.140013cc4
or eax, 0xffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400086c0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x290
pop rdi
ret
cmp rcx, 0xffffffffffffffff
je 0x1400106f1
test rdx, rdx
je 0x1400106f1
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140010780
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x140010759
cmp eax, 3
jbe 0x140010773
cmp eax, 8
je 0x140010766
cmp eax, 0x12
je 0x140010773
call fcn.140013de4
mov dword [rax], 0x16
jmp 0x140010701
call fcn.140013de4
mov dword [rax], ntohl
jmp 0x140010701
call fcn.140013de4
mov dword [rax], 2
jmp 0x140010701
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, edi
mov dword [rbx], eax
call fcn.1400107f0
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.1400107f0
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.1400107f0
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.140019190
test eax, eax
je 0x140010704
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140013ce4
int3
jmp 0x1400106c8

Function at 0x1400113c8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400113e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140013d74
or eax, 0xffffffff
jmp 0x1400113ea
xor eax, eax
add rsp, 0x28
ret