joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002210
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
mov eax, 0x1048
call fcn.14000cc30
sub rsp, rax
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov dword [rsi], 0
mov qword [rbx], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
lea rcx, [0x1400231e0]
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp r12, 0xffffffffffffffff
je 0x1400023e8
mov qword [rsp + 0x20], 0
mov rcx, r12
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400023ec
cmp word [rsp + 0x40], 0x5a4d
jne 0x1400023f9
mov eax, dword [rsp + 0x7c]
movsxd rdx, eax
cmp rdx, 0xef8
jae 0x1400023f9
movsxd rax, eax
lea rax, [rsp + rax + 0x40]
cmp dword [rax], 0x4550
jne 0x1400023f9
lea rdx, [rax + 0x108]
lea rcx, [rsp + 0x1040]
cmp rdx, rcx
jae 0x1400023f9
cmp word [rax + 6], 0
jbe 0x14000232c
xor ecx, ecx
xor r8d, r8d
cmp dword [rdx + 0x14], ecx
ja 0x140002306
mov r9d, ecx
jmp 0x140002317
mov r10d, dword [rdx + 0x14]
mov r11d, r10d
add r11d, dword [rdx + 0x10]
mov dword [rsi], r11d
mov r9d, r10d
mov ecx, r9d
add rdx, 0x28
add r8d, 1
movzx r9d, word [rax + 6]
cmp r8d, r9d
jl 0x1400022fc
mov eax, dword [rsi]
lea edx, [eax + 2]
mov rcx, r12
xor r8, r8
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1400023f9
mov qword [rsp + 0x1040], 0
mov qword [rsp + 0x20], 0
mov rcx, r12
lea rdx, [rsp + 0x1040]
mov r8d, 8
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400023ec
mov rax, qword [rsp + 0x1040]
mov qword [rbx], rax
cmp dword [rsp + 0x3c], 8
jb 0x1400023ec
mov qword [rsp + 0x1040], 0
mov qword [rsp + 0x20], 0
mov rcx, r12
lea rdx, [rsp + 0x1040]
mov r8d, 8
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400023ec
mov rax, qword [rsp + 0x1040]
mov qword [rdi], rax
cmp dword [rsp + 0x3c], 8
jb 0x1400023ec
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140002404
xor eax, eax
jmp 0x140002404
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140002404
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x1048
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140002f60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
lea rax, [0x140023f20]
xor edx, edx
nop dword [rax]
mov ecx, edx
shr ecx, 1
mov r8d, edx
and r8d, 1
neg r8d
and r8d, 0xedb88320
xor ecx, r8d
mov r8d, ecx
shr r8d, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor r8d, ecx
mov ecx, r8d
shr ecx, 1
and r8d, 1
neg r8d
and r8d, 0xedb88320
xor ecx, r8d
mov r8d, ecx
shr r8d, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor r8d, ecx
mov ecx, r8d
shr ecx, 1
and r8d, 1
neg r8d
and r8d, 0xedb88320
xor ecx, r8d
mov r8d, ecx
shr r8d, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor r8d, ecx
mov ecx, r8d
shr ecx, 1
and r8d, 1
neg r8d
and r8d, 0xedb88320
xor ecx, r8d
mov r8d, ecx
shr r8d, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor r8d, ecx
mov dword [rax], r8d
add rax, 4
add edx, 1
cmp edx, 0x100
jb 0x140002f70
lea rax, [0x140024320]
lea rdx, [0x140024320]
nop
mov ecx, dword [rdx - 0x400]
lea r8, [0x140023f20]
mov r9d, ecx
and r9d, 0xff
mov r8d, dword [r8 + r9*4]
shr ecx, 8
xor r8d, ecx
mov dword [rax], r8d
add rax, 4
add rdx, 4
lea rcx, [0x140025f20]
cmp rdx, rcx
jb 0x140003040
lea rax, [0x140006da0]
mov qword [0x140025f40], rax
lea rax, [0x140006da0]
mov qword [0x140025f20], rax
lea rax, [0x140006e80]
mov qword [0x140025f60], rax
call fcn.1400070a0
test eax, eax
jne 0x1400030b9
lea rax, [0x140006e80]
mov qword [0x140025f20], rax
add rsp, 0x28
ret

Function at 0x140003230
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov r12, qword [rdi]
test r12, r12
je 0x1400032a6
mov qword [rdi], 0
cmp r12, 0x400000
jbe 0x140003262
mov r8d, 0x400000
jmp 0x140003265
mov r8d, r12d
mov dword [rsp + 0x2c], 0
mov qword [rsp + 0x20], 0
mov rcx, qword [rbx]
mov rdx, rsi
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x2c]
mov edx, edx
add rsi, rdx
sub r12, rdx
add qword [rdi], rdx
test eax, eax
je 0x1400032aa
cmp dword [rsp + 0x2c], 0
je 0x1400032a6
test r12, r12
jne 0x140003251
xor eax, eax
jmp 0x1400032b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400032c0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov r12, qword [rdi]
test r12, r12
je 0x140003336
mov qword [rdi], 0
cmp r12, 0x400000
jbe 0x1400032f2
mov r8d, 0x400000
jmp 0x1400032f5
mov r8d, r12d
mov dword [rsp + 0x2c], 0
mov qword [rsp + 0x20], 0
mov rcx, qword [rbx]
mov rdx, rsi
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [rsp + 0x2c]
mov edx, edx
add rsi, rdx
sub r12, rdx
add qword [rdi], rdx
test eax, eax
je 0x14000333a
cmp dword [rsp + 0x2c], 0
je 0x140003336
test r12, r12
jne 0x1400032e1
xor eax, eax
jmp 0x140003340
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400033e0
Capabilities:
Get file size

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov rbx, rdx
mov rcx, qword [rcx]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x140003408
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000341a
mov eax, dword [rsp + 0x24]
shl rax, 0x20
mov edx, esi
add rax, rdx
mov qword [rbx], rax
xor eax, eax
add rsp, 0x28
pop rsi
pop rbx
ret

Function at 0x140003520
Capabilities:
Timestomp file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rsi, r8
mov rdi, qword [rcx]
cmp rdi, 0xffffffffffffffff
je 0x140003576
mov rcx, rdi
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x28]
lea r9, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x140003576
mov eax, dword [rbx]
mov dword [rsp + 0x24], eax
mov eax, dword [rsi]
mov dword [rsp + 0x20], eax
mov rcx, rdi
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x28]
lea r9, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x140006c60
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0xa60
mov rbx, rcx
lea rcx, [rsp + 0x648]
mov edx, 0x208
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x208
ja 0x140006cb7
lea rcx, [rsp + 0x648]
call fcn.140016570
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x2c]
mov edx, 0x30e
lea r8, str._ls_ls
lea r9, [rsp + 0x648]
call fcn.14000e520
jmp 0x140006cca
lea rcx, [rsp + 0x2c]
mov rdx, rbx
mov r8d, 0x30e
call fcn.14000e770
lea rcx, [rsp + 0x2c]
xor edx, edx
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
add rsp, 0xa60
pop rbx
ret
Function at 0x14000cb20
Capabilities:
Terminate process

Disassembly:
push rbx
push rsi
sub rsp, 0x88
mov ecx, 0x2000000
call fcn.14000fe90
mov qword [0x140025f80], rax
call fcn.14000e900
test eax, eax
je 0x14000cbf7
call fcn.14000eb90
call fcn.14000ec90
call fcn.14000ed40
call fcn.14000f110
call fcn.14000f1d0
lea rbx, [0x14001c4c8]
jmp 0x14000cb6f
call qword [rbx]
add rbx, 8
lea rax, [0x14001c4c8]
cmp rbx, rax
jb 0x14000cb69
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
call fcn.14000f2d0
mov r8, rax
movzx eax, word [rsp + 0x60]
mov edx, 0xa
test dword [rsp + 0x5c], 1
cmove r9d, edx
cmovne r9d, eax
mov rcx, rbx
xor edx, edx
call fcn.140001550
mov ebx, eax
lea rsi, [0x14001c4c8]
jmp 0x14000cbd6
call qword [rsi]
add rsi, 8
lea rax, [0x14001c4c8]
cmp rsi, rax
jb 0x14000cbd0
mov ecx, ebx
jmp 0x14000f320
mov ecx, 0xfffffffe
call fcn.14000f390
jmp 0x14000cb47
push rbx
sub rsp, 0x20
mov ebx, ecx
jmp 0x14000f345
mov rax, qword [0x14001d060]
lea rdx, [rax + 1]
mov qword [0x14001d060], rdx
lea rdx, [0x1400266c0]
call qword [rdx + rax*8]
cmp qword [0x14001d060], 0x50
jb 0x14000f329
cmp qword [0x140026940], 0
je 0x14000f37f
mov rax, qword [0x140026940]
sub rax, 1
mov qword [0x140026940], rax
lea rdx, [0x1400266c0]
call qword [rdx + rax*8]
cmp qword [0x140026940], 0
jne 0x14000f359
mov ecx, ebx
jmp fcn.140010090

Function at 0x14000f110
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x140
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rbx, rax
cmp byte [rbx], 0
jne 0x14000f140
xor ecx, ecx
lea rdx, [rsp + 0x3c]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rbx, [rsp + 0x3c]
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov rcx, rbx
xor edx, edx
xor r8, r8
lea r9, [rsp + 0x30]
call fcn.14000ef60
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
lea rcx, [rdx + rax*8]
call fcn.14000d540
mov rsi, rax
test rsi, rsi
je 0x14000f1af
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov rdi, qword [rsp + 0x30]
lea r8, [rsi + rdi*8]
mov rcx, rbx
mov rdx, rsi
lea r9, [rsp + 0x30]
call fcn.14000ef60
sub rdi, 1
mov eax, edi
mov dword [0x1400260a0], eax
mov qword [0x1400260c0], rsi
jmp 0x14000f1b9
mov ecx, 0xfffffffc
call fcn.14000f390
add rsp, 0x140
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000f1d0
Capabilities:
Query environment variable

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
cmovne rbx, rax
cmove rbx, qword [0x14001d050]
mov rsi, rbx
xor eax, eax
cmp byte [rsi], 0
je 0x14000f22e
nop
nop word [rax + rax]
or rdx, 0xffffffffffffffff
nop dword [rax]
nop word [rax + rax]
add rdx, 1
cmp byte [rsi + rdx], 0
jne 0x14000f210
lea rdi, [rdx + 1]
cmp byte [rsi], 0x3d
je 0x14000f226
add rax, rdi
add rsi, rdi
cmp byte [rsi], 0
jne 0x14000f200
lea rcx, [rax + 1]
call fcn.14000d540
mov rdx, rax
mov qword [0x1400260e0], rax
test rax, rax
je 0x14000f2b0
mov rsi, rbx
cmp byte [rsi], 0
je 0x14000f299
nop
or rax, 0xffffffffffffffff
nop dword [rax]
nop word [rax + rax]
add rax, 1
cmp byte [rsi + rax], 0
jne 0x14000f260
lea rdi, [rax + 1]
cmp byte [rsi], 0x3d
je 0x14000f291
xor ecx, ecx
nop
nop word [rax + rax]
mov al, byte [rsi + rcx]
mov byte [rdx + rcx], al
add rcx, 1
test al, al
jne 0x14000f280
add rdx, rdi
add rsi, rdi
cmp byte [rsi], 0
jne 0x14000f250
mov byte [rdx], 0
cmp rbx, qword [0x14001d050]
je 0x14000f2ba
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x14000f2ba
mov ecx, 0xfffffffc
call fcn.14000f390
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x14000f2d0
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp byte [rax], 0x22
jne 0x14000f2f9
nop
add rax, 1
cmp byte [rax], 0x22
je 0x14000f2f3
cmp byte [rax], 0
jne 0x14000f2e0
cmp byte [rax], 0x22
jne 0x14000f304
add rax, 1
jmp 0x14000f304
cmp byte [rax], 0x20
jbe 0x14000f304
add rax, 1
jmp 0x14000f2f9
mov dl, byte [rax]
test dl, dl
je 0x14000f30f
cmp dl, 0x20
jbe 0x14000f2f3
add rsp, 0x28
ret
Function at 0x14000f320
Capabilities:
Terminate process

Disassembly:
push rbx
push rsi
sub rsp, 0x88
mov ecx, 0x2000000
call fcn.14000fe90
mov qword [0x140025f80], rax
call fcn.14000e900
test eax, eax
je 0x14000cbf7
call fcn.14000eb90
call fcn.14000ec90
call fcn.14000ed40
call fcn.14000f110
call fcn.14000f1d0
lea rbx, [0x14001c4c8]
jmp 0x14000cb6f
call qword [rbx]
add rbx, 8
lea rax, [0x14001c4c8]
cmp rbx, rax
jb 0x14000cb69
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
call fcn.14000f2d0
mov r8, rax
movzx eax, word [rsp + 0x60]
mov edx, 0xa
test dword [rsp + 0x5c], 1
cmove r9d, edx
cmovne r9d, eax
mov rcx, rbx
xor edx, edx
call fcn.140001550
mov ebx, eax
lea rsi, [0x14001c4c8]
jmp 0x14000cbd6
call qword [rsi]
add rsi, 8
lea rax, [0x14001c4c8]
cmp rsi, rax
jb 0x14000cbd0
mov ecx, ebx
jmp 0x14000f320
mov ecx, 0xfffffffe
call fcn.14000f390
jmp 0x14000cb47
push rbx
sub rsp, 0x20
mov ebx, ecx
jmp 0x14000f345
mov rax, qword [0x14001d060]
lea rdx, [rax + 1]
mov qword [0x14001d060], rdx
lea rdx, [0x1400266c0]
call qword [rdx + rax*8]
cmp qword [0x14001d060], 0x50
jb 0x14000f329
cmp qword [0x140026940], 0
je 0x14000f37f
mov rax, qword [0x140026940]
sub rax, 1
mov qword [0x140026940], rax
lea rdx, [0x1400266c0]
call qword [rdx + rax*8]
cmp qword [0x140026940], 0
jne 0x14000f359
mov ecx, ebx
jmp fcn.140010090

Function at 0x14000f390
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
lea eax, [ecx + 0x11]
cmp eax, 0xf
ja 0x14000f448
lea rax, [0x14001ab80]
sub ecx, 0xffffffef
movsxd rdx, ecx
jmp qword [rax + rdx*8]
lea rbx, str.unexpected_error
lea rcx, str.CRT:
lea rdx, [0x14001d190]
call fcn.1400100e0
mov rcx, rbx
lea rdx, [0x14001d190]
call fcn.1400100e0
lea rcx, [0x14001ac12]
lea rdx, [0x14001d190]
call fcn.1400100e0
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14000f4b2
int3
mov ecx, 0xff
jmp fcn.140010090
Function at 0x140011b70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0x30
mov rbx, rcx
mov esi, edx
mov qword [rsp + 0x20], rbx
mov rdi, rbx
mov ax, word [rdi + 6]
and ax, 0x7ff0
shr ax, 4
mov r12w, ax
cmp r12w, 0x7ff
je 0x140011cb6
test r12w, r12w
je 0x140011ce3
movsx eax, r12w
add esi, eax
cmp esi, 0x7ff
jge 0x140011cfd
test esi, esi
jg 0x140011d29
mov ax, word [rdi + 6]
mov r14w, ax
and r14w, 0x8000
and ax, 0xf
or ax, 0x10
mov word [rdi + 6], ax
lea eax, [esi - 1]
cmp eax, 0xffffffcc
jl 0x140011d44
cmp ax, 0xfff0
jg 0x140011c27
nop
nop word [rax + rax]
mov dx, word [rdi + 2]
mov word [rdi], dx
mov dx, word [rdi + 4]
mov word [rdi + 2], dx
mov dx, word [rdi + 6]
mov word [rdi + 4], dx
mov word [rdi + 6], 0
add ax, 0x10
cmp ax, 0xfff0
jle 0x140011c00
mov dx, ax
neg dx
mov ax, dx
test dx, dx
je 0x140011ca9
movsx eax, ax
mov edx, eax
neg edx
add edx, 0x10
movzx r8d, word [rdi]
mov ecx, eax
sar r8d, cl
movzx r9d, word [rdi + 2]
mov ecx, edx
shl r9d, cl
or r8d, r9d
mov cx, r8w
mov word [rdi], cx
movzx r8d, word [rdi + 2]
mov ecx, eax
sar r8d, cl
movzx r9d, word [rdi + 4]
mov ecx, edx
shl r9d, cl
or r8d, r9d
mov cx, r8w
mov word [rdi + 2], cx
movzx r8d, word [rdi + 4]
mov ecx, eax
sar r8d, cl
movzx r9d, word [rdi + 6]
mov ecx, edx
shl r9d, cl
or r8d, r9d
mov dx, r8w
mov word [rdi + 4], dx
movzx edx, word [rdi + 6]
mov ecx, eax
sar edx, cl
mov ax, dx
mov word [rdi + 6], ax
or word [rdi + 6], r14w
or eax, 0xffffffff
jmp 0x140011d5c
test word [rdi + 6], 0xf
jne 0x140011cd2
cmp word [rdi + 4], 0
jne 0x140011cd2
cmp word [rdi + 2], 0
jne 0x140011cd2
cmp word [rdi], 0
je 0x140011cdc
mov eax, 2
jmp 0x140011d5c
mov eax, 1
jmp 0x140011d5c
mov rcx, rdi
call fcn.1400133c0
test ax, ax
jg 0x140011cf9
mov r12w, ax
jmp 0x140011bae
xor eax, eax
jmp 0x140011d5c
cmp word [rdi + 6], 0
jge 0x140011d16
movsd xmm0, qword [0x14001b910]
xorpd xmm0, xmmword [0x14001b950]
jmp 0x140011d1e
movsd xmm0, qword [0x14001b910]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x140011d5c
mov ax, word [rdi + 6]
and ax, 0x800f
mov dx, si
shl dx, 4
or ax, dx
mov word [rdi + 6], ax
or eax, 0xffffffff
jmp 0x140011d5c
mov word [rdi + 6], r14w
mov word [rdi + 4], 0
mov word [rdi + 2], 0
mov word [rdi], 0
xor eax, eax
add rsp, 0x30
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400135e0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x1400227c0], 0
jne 0x1400135ff
mov dword [0x1400227c0], 1
lea rcx, [0x1400135a0]
jmp 0x140013fe0
ret
mov rax, qword [0x140026940]
cmp qword [0x14001d060], rax
ja 0x140013ff5
jmp 0x1400147d0
lea rdx, [rax + 1]
mov qword [0x140026940], rdx
lea rdx, [0x1400266c0]
mov qword [rdx + rax*8], rcx
ret
sub rsp, 0x28
mov ecx, 6
call fcn.140014820
mov ecx, 1
jmp 0x14000f320
Function at 0x140013740
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0x850
mov rbx, rcx
mov esi, edx
lea rdi, [r8 + r9]
mov qword [rsp + 0x830], 0
mov qword [rsp + 0x838], 0
mov dword [rsp + 0x840], 0
mov r12, r8
cmp r12, rdi
jae 0x14001385b
lea rax, [rsp + 0x82f]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x30]
cmp rax, rcx
jbe 0x1400137d1
nop dword [rax]
cmp r12, rdi
jae 0x1400137d1
cmp byte [r12], 0xa
jne 0x1400137bc
add qword [rsp + 0x838], 1
mov byte [rdx], 0xd
add rdx, 1
add rdx, 1
add r12, 1
mov cl, byte [r12 - 1]
mov byte [rdx - 1], cl
cmp rdx, rax
jb 0x1400137a0
lea rax, [rsp + 0x30]
sub rdx, rax
mov r14d, edx
mov ecx, esi
call fcn.140014370
test eax, eax
je 0x140013802
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ecx, eax
mov r9d, r14d
mov edx, dword [0x140026960]
lea r8, [rsp + 0x30]
call fcn.140014530
mov ecx, esi
call fcn.140014310
mov rcx, rax
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
mov r8d, r14d
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001384e
mov eax, dword [rsp + 0x2c]
add qword [rsp + 0x830], rax
cmp dword [rsp + 0x2c], r14d
jb 0x14001385b
add r12, 1
cmp r12, rdi
jb 0x140013786
jmp 0x14001385b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x840], eax
movups xmm0, xmmword [rsp + 0x830]
movups xmmword [rbx], xmm0
mov rax, qword [rsp + 0x840]
mov qword [rbx + 0x10], rax
mov rax, rbx
add rsp, 0x850
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140013890
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0x850
mov rbx, rcx
mov esi, edx
lea rdi, [r8 + r9]
mov qword [rsp + 0x830], 0
mov qword [rsp + 0x838], 0
mov dword [rsp + 0x840], 0
mov r12, r8
cmp r12, rdi
jae 0x1400139df
lea rax, [rsp + 0x82e]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x30]
cmp rax, rcx
jbe 0x140013926
nop dword [rax]
cmp r12, rdi
jae 0x140013926
cmp word [r12], 0xa
jne 0x14001390f
add qword [rsp + 0x838], 2
mov word [rdx], InitCommonControls
add rdx, 2
add rdx, 2
add r12, 2
mov cx, word [r12 - 2]
mov word [rdx - 2], cx
cmp rdx, rax
jb 0x1400138f0
lea rax, [rsp + 0x30]
sub rdx, rax
mov r14d, edx
mov ecx, esi
call fcn.140014370
test eax, eax
je 0x140013999
mov ecx, esi
call fcn.140014310
mov rcx, rax
mov qword [rsp + 0x20], 0
mov eax, r14d
shr rax, 1
mov r8d, eax
lea rdx, [rsp + 0x30]
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x1400139d2
mov eax, dword [rsp + 0x2c]
add rax, rax
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
add qword [rsp + 0x830], rax
cmp dword [rsp + 0x2c], r14d
jb 0x1400139df
add r12, 2
cmp r12, rdi
jb 0x1400138d6
jmp 0x1400139df
mov ecx, esi
call fcn.140014310
mov rcx, rax
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
mov r8d, r14d
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140013977
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x840], eax
jmp 0x1400139df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x840], eax
movups xmm0, xmmword [rsp + 0x830]
movups xmmword [rbx], xmm0
mov rax, qword [rsp + 0x840]
mov qword [rbx + 0x10], rax
mov rax, rbx
add rsp, 0x850
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140013a10
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
push r13
sub rsp, 0xc50
mov qword [rsp + 0xc90], rcx
mov ebx, edx
mov rsi, r8
lea rdi, [rsi + r9]
mov r12, rsi
xor r14, r14
cmp r12, rdi
jae 0x140013af9
lea rax, [rsp + 0xc46]
lea rdx, [rsp + 0x848]
lea rcx, [rsp + 0x848]
cmp rax, rcx
jbe 0x140013a8d
nop
cmp r12, rdi
jae 0x140013a8d
cmp word [r12], 0xa
jne 0x140013a76
mov word [rdx], InitCommonControls
add rdx, 2
add rdx, 2
add r12, 2
mov cx, word [r12 - 2]
mov word [rdx - 2], cx
cmp rdx, rax
jb 0x140013a60
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x800
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x848]
sub rdx, rax
sar rdx, 1
mov eax, edx
mov r9d, eax
mov ecx, 0xfde9
xor edx, edx
lea r8, [rsp + 0x848]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x140013b03
mov eax, eax
lea r15, [rsp + rax + 0x48]
lea rax, [rsp + 0x48]
cmp r15, rax
jbe 0x140013b7e
lea r13, [rsp + 0x48]
jmp 0x140013b44
mov dword [rsp + 0x40], 0
jmp 0x140013b0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0xc90]
mov qword [rax], r14
mov rax, qword [rsp + 0xc90]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0xc90]
mov edx, dword [rsp + 0x40]
mov dword [rax + 0x10], edx
mov rax, qword [rsp + 0xc90]
jmp 0x140013bca
mov ecx, ebx
call fcn.140014310
mov rcx, rax
mov qword [rsp + 0x20], 0
mov rax, r15
sub rax, r13
mov r8d, eax
mov rdx, r13
lea r9, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140013b96
mov eax, dword [rsp + 0x44]
add r13, rax
cmp r13, r15
jb 0x140013b44
mov r14, r12
sub r14, rsi
add r12, 2
cmp r12, rdi
jb 0x140013a42
jmp 0x140013af9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rsp + 0xc90]
mov qword [rdx], r14
mov rdx, qword [rsp + 0xc90]
mov qword [rdx + 8], 0
mov rdx, qword [rsp + 0xc90]
mov dword [rdx + 0x10], eax
mov rax, qword [rsp + 0xc90]
add rsp, 0xc50
pop r13
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x140013be0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov ecx, edx
mov rsi, r8
mov rdi, r9
call fcn.140014310
mov rcx, rax
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140013c22
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
jmp 0x140013c28
mov edx, dword [rsp + 0x2c]
xor eax, eax
mov qword [rbx], rdx
mov qword [rbx + 8], 0
mov dword [rbx + 0x10], eax
mov rax, rbx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400140f0
Capabilities:
Delete file

Disassembly:
jmp 0x1400147f0
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140014810
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400146f0
or eax, 0xffffffff
jmp 0x140014812
xor eax, eax
add rsp, 0x28
ret