joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006de8
Capabilities:
Check for time delay via gettickcount
Get socket status
Receive data
Receive data on socket

Disassembly:
jmp 0x1400fd270
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x14023c868]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor r15d, r15d
mov edi, r8d
mov ebx, r15d
mov r14, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor r9d, r9d
mov dword [rsp + 0x40], 1
mov ebp, eax
mov dword [rsp + 0x34], 0x5f5e100
mov rax, qword [rsi]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], r15d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
je 0x1400fd367
nop word [rax + rax]
test eax, eax
je 0x1400fd316
mov rcx, qword [rsi]
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
add rdx, r14
xor r9d, r9d
call sub.WS2_32.dll_recv
mov ecx, eax
inc eax
cmp eax, 1
jbe 0x1400fd367
add ebx, ecx
cmp ebx, edi
jge 0x1400fd393
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebp
cmp eax, 0x2710
jae 0x1400fd367
mov rax, qword [rsi]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x30]
mov dword [rsp + 0x40], 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov dword [rsp + 0x34], 0x5f5e100
mov dword [rsp + 0x30], r15d
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x1400fd2f0
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140004de0
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov eax, ebx
jmp 0x1400fd36c
Function at 0x140007266
Capabilities:
Read file on windows

Disassembly:
jmp 0x14007fac0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0xb8], 0
je 0x14007fbc7
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0xc0]
cmp dword [rax + 0xc4], ecx
jb 0x14007fb05
xor eax, eax
jmp 0x14007fc6a
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0xc4]
mov eax, dword [rax + 0xc0]
sub eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
jbe 0x14007fb33
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0xc4]
mov rdx, qword [rsp + 0x50]
add rcx, qword [rdx + 0xb8]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
call fcn.140004e21
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc4]
add eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0xc4], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x9c]
add eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x9c], eax
mov eax, dword [rsp + 0x30]
mov r8d, eax
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax + 0xa0]
call fcn.140009db3
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0xa0], eax
mov eax, dword [rsp + 0x30]
jmp 0x14007fc6a
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0xa8], 0
je 0x14007fc5c
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0xa8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x14007fc13
xor eax, eax
jmp 0x14007fc6a
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x9c]
add eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x9c], eax
mov eax, dword [rsp + 0x34]
mov r8d, eax
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax + 0xa0]
call fcn.140009db3
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0xa0], eax
mov eax, dword [rsp + 0x34]
jmp 0x14007fc6a
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x24], 0x1000000
xor eax, eax
add rsp, 0x48
ret

Function at 0x1400074be
Capabilities:
Terminate process

Disassembly:
jmp 0x14013c0f0
sub rsp, 0x28
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14013c10a
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.1400087c9
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140007b3f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x14007c720
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp dword [rsp + 0x48], 1
jl 0x14007c747
cmp dword [rsp + 0x48], 8
jg 0x14007c747
mov byte [rsp + 0x20], 1
jmp 0x14007c74c
mov byte [rsp + 0x20], 0
lea r8, str.bad_pack_level
movzx edx, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call fcn.140006901
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afc0], 0
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x6afb8], 0
jne 0x14007c79d
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afc0], 1
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afb8], 0x10000
mov eax, 4
imul rax, rax, 0x7fff
mov rcx, qword [rsp + 0x40]
mov dword [rcx + rax + 0x4afb8], 0
mov rax, qword [rsp + 0x40]
add rax, 0x4afb8
mov r8d, 0x1fffc
xor edx, edx
mov rcx, rax
call fcn.140006ff5
movsxd rax, dword [rsp + 0x48]
lea rcx, [0x1401db470]
movzx eax, word [rcx + rax*8 + 2]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x6afe0], eax
movsxd rax, dword [rsp + 0x48]
lea rcx, [0x1401db470]
movzx eax, word [rcx + rax*8]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x6afe4], eax
movsxd rax, dword [rsp + 0x48]
lea rcx, [0x1401db470]
movzx eax, word [rcx + rax*8 + 4]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x6afe8], eax
movsxd rax, dword [rsp + 0x48]
lea rcx, [0x1401db470]
movzx eax, word [rcx + rax*8 + 6]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x6afdc], eax
cmp dword [rsp + 0x48], 2
jg 0x14007c85f
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
or eax, 4
mov rcx, qword [rsp + 0x50]
mov word [rcx], ax
jmp 0x14007c879
cmp dword [rsp + 0x48], 8
jl 0x14007c879
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
or eax, 2
mov rcx, qword [rsp + 0x50]
mov word [rcx], ax
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afcc], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afbc], 0
mov dword [rsp + 0x24], 0x8000
mov eax, dword [rsp + 0x24]
shl eax, 1
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
add rax, 0x1afb8
mov r8d, dword [rsp + 0x24]
mov rdx, rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x6afd8], eax
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x6afd8], 0
je 0x14007c8f0
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x6afd8], 0xffffffff
jne 0x14007c913
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afd4], 1
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afd8], 0
jmp 0x14007c99a
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afd4], 0
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x6afd8], 0x106
jae 0x14007c93d
mov rcx, qword [rsp + 0x40]
call fcn.140003774
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afc4], 0
mov dword [rsp + 0x24], 0
jmp 0x14007c960
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 2
jae 0x14007c99a
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x6afc4]
shl eax, 5
mov ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx + 0x1afb8]
xor eax, ecx
and eax, 0x7fff
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x6afc4], eax
jmp 0x14007c956
add rsp, 0x38
ret
Function at 0x140008a8f
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14013b500
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1401fc828]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1401fc820]
call fcn.14013af78
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x14013b540
call qword [0x14026d020]
jmp 0x14013b546
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140008f30
Capabilities:
Parse pe header

Disassembly:
jmp 0x14017d1c0
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 0x14017cf9b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14017cf9b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14017cf9b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14017cf9b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14017cf9b
cmp dword [rcx + 0x84], 0xe
jbe 0x14017cf9b
cmp dword [rcx + 0xf8], 0
je 0x14017cf9b
mov ecx, ebx
call fcn.14017d104
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.14017cc8c
nop
cmp dword [rbp + 0x20], 0
je 0x14017cfe9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14017d024
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14017cf2c

Function at 0x14000902f
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
jmp 0x1400cca64
jmp 0x1400eab2c
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x1400cca96
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1400cca79
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140006163

Function at 0x14000923c
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
jmp 0x14007e470
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
mov eax, 4
imul rax, rax, 0
movsx ecx, byte [rsp + 0x10]
mov rdx, qword [rsp + 8]
mov eax, dword [rdx + rax]
xor eax, ecx
and eax, 0xff
cdqe
lea rcx, [0x1401db800]
mov edx, 4
imul rdx, rdx, 0
mov r8, qword [rsp + 8]
mov edx, dword [r8 + rdx]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 8]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 8]
mov ecx, dword [rdx + rcx]
and ecx, 0xff
mov rdx, qword [rsp + 8]
add ecx, dword [rdx + rax]
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 8]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
imul eax, dword [rcx + rax], 0x8088405
inc eax
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 8]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 2
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 8]
mov ecx, dword [rdx + rcx]
shr ecx, 0x18
mov rdx, qword [rsp + 8]
mov eax, dword [rdx + rax]
xor eax, ecx
and eax, 0xff
mov eax, eax
lea rcx, [0x1401db800]
mov edx, 4
imul rdx, rdx, 2
mov r8, qword [rsp + 8]
mov edx, dword [r8 + rdx]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rsp + 8]
mov dword [rdx + rcx], eax
ret
Function at 0x140009584
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400fc32c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.140006ff5
and qword [rdi + 0x50], 0
lea rax, [0x140000000]
and dword [rdi + 0x58], 0
lea rcx, [rdi + 0x28]
and dword [rdi + 0x5c], 0
xor r8d, r8d
mov qword [rdi + 0x10], rax
xor edx, edx
mov qword [rdi + 8], rax
lea rax, [0x1401f9578]
mov qword [rdi + 0x20], rax
mov dword [rdi], 0x60
mov dword [rdi + 0x18], 0xe00
call fcn.140004c87
test eax, eax
jne 0x1400fc3c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x1400fc3c3
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400fc3bc
lea rcx, str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x14023ff58], 1
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x140009624
Capabilities:
Get socket status

Disassembly:
jmp 0x1400fd020
sub rsp, 0x268
mov rax, qword [0x14023c868]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
imul eax, edx, 0x3e8
xor ecx, ecx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.WS2_32.dll_select
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140004de0
add rsp, 0x268
ret
Function at 0x140009dae
Capabilities:
Write file on windows

Disassembly:
jmp 0x14007ef80
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax + 0x41]
test eax, eax
je 0x14007f0ba
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x50], 0
je 0x14007eff0
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x80]
cmp dword [rax + 0x58], ecx
jae 0x14007eff0
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.140004d95
mov rax, qword [rsp + 0x70]
mov qword [rax + 0x50], 0
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x50], 0
jne 0x14007f030
mov eax, dword [rsp + 0x80]
shl eax, 1
mov eax, eax
mov ecx, eax
call fcn.1400047b9
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 0x50], rcx
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x80]
mov dword [rax + 0x58], ecx
mov eax, dword [rsp + 0x80]
mov r8d, eax
mov rdx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x50]
call fcn.140004e21
mov dword [rsp + 0x30], 0
jmp 0x14007f061
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x30], eax
jae 0x14007f0ac
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x50]
mov rdx, qword [rsp + 0x70]
add rdx, 0x44
mov qword [rsp + 0x50], rdx
movzx edx, byte [rcx + rax]
mov rax, qword [rsp + 0x50]
mov rcx, rax
call fcn.1400028f6
mov ecx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x70]
mov rdx, qword [rdx + 0x50]
mov byte [rdx + rcx], al
jmp 0x14007f057
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x30], 0
je 0x14007f139
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x38]
add eax, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
cmp eax, dword [rcx + 0x3c]
jb 0x14007f0f2
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x24], 0x30000
xor eax, eax
jmp 0x14007f183
mov eax, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 0x38]
mov rdx, qword [rsp + 0x70]
add rcx, qword [rdx + 0x30]
mov r8d, eax
mov rdx, qword [rsp + 0x38]
call fcn.140004e21
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x38]
add eax, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x38], eax
mov eax, dword [rsp + 0x80]
jmp 0x14007f183
mov rax, qword [rsp + 0x70]
cmp qword [rax + 8], 0
je 0x14007f175
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x34]
jmp 0x14007f183
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x24], 0x1000000
xor eax, eax
add rsp, 0x68
ret
Function at 0x140071240
Capabilities:
Read file on windows

Disassembly:
jmp 0x140071240
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x58]
imul rax, qword [rsp + 0x60]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax]
test eax, eax
je 0x1400712bb
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x1400712ae
mov rax, qword [rsp + 0x68]
mov byte [rax + 0x10], 1
mov eax, dword [rsp + 0x3c]
xor edx, edx
div qword [rsp + 0x58]
jmp 0x140071333
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x2c]
add eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
cmp eax, dword [rcx + 0x28]
jbe 0x1400712e7
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x68]
mov ecx, dword [rcx + 0x2c]
mov eax, dword [rax + 0x28]
sub eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
mov ecx, dword [rcx + 0x2c]
mov rdx, qword [rsp + 0x68]
add rcx, qword [rdx + 0x20]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x50]
call fcn.140004e21
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x2c]
add eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x68]
mov dword [rcx + 0x2c], eax
mov eax, dword [rsp + 0x34]
xor edx, edx
div qword [rsp + 0x58]
add rsp, 0x48
ret
Function at 0x140073720
Capabilities:
Get common file path

Disassembly:
jmp 0x140073720
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
jne 0x14007374e
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0xffffffff
je 0x140073758
mov eax, 0x1000000
jmp 0x140073868
mov rax, qword [rsp + 0x50]
add rax, 0x250
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rax, qword [rsp + 0x50]
add rax, 0x250
mov rcx, rax
call fcn.140001839
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2 + 0x24e]
mov word [rsp + 0x24], ax
movzx eax, word [rsp + 0x24]
cmp eax, 0x5c
je 0x1400737c4
movzx eax, word [rsp + 0x24]
cmp eax, 0x2f
je 0x1400737c4
mov rax, qword [rsp + 0x50]
add rax, 0x250
lea rdx, [0x1401d89b0]
mov rcx, rax
call fcn.140003d0a
cmp dword [rsp + 0x68], 1
jne 0x140073817
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0xffffffff
je 0x1400737f6
mov dword [rsp + 0x28], 1
jmp 0x1400737fe
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140073817
mov eax, 0x2000000
jmp 0x140073868
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x68]
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call fcn.14000408e
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140073842
mov eax, dword [rsp + 0x30]
jmp 0x140073868
mov rcx, qword [rsp + 0x38]
call fcn.140005114
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
jne 0x140073866
mov eax, 0x200
jmp 0x140073868
xor eax, eax
add rsp, 0x48
ret
Function at 0x140074ec0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
jmp 0x140074ec0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x488
mov rax, qword [0x14023c868]
xor rax, rsp
mov qword [rsp + 0x470], rax
cmp qword [rsp + 0x490], 0
je 0x140074f11
mov rcx, qword [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140074f11
xor edx, edx
mov rcx, qword [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rax, qword [rsp + 0x498]
movzx eax, word [rax]
test eax, eax
jne 0x140074f25
jmp 0x1400750a4
mov rax, qword [rsp + 0x498]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
test eax, eax
je 0x140074f7c
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x2f
je 0x140074f62
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x140074f6c
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
add rax, 2
mov qword [rsp + 0x20], rax
jmp 0x140074f3c
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x498]
cmp qword [rsp + 0x28], rax
je 0x14007502c
mov rax, qword [rsp + 0x498]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
sar rax, 1
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x498]
lea rcx, [rsp + 0x260]
call fcn.140004e21
mov rax, qword [rsp + 0x498]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
sar rax, 1
shl rax, 1
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0x208
jae 0x140074ff5
jmp 0x140074ffa
call fcn.140006c94
xor eax, eax
mov rcx, qword [rsp + 0x30]
mov word [rsp + rcx + 0x260], ax
lea rdx, [rsp + 0x260]
mov rcx, qword [rsp + 0x490]
call fcn.140004f66
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0x208
jae 0x140075047
jmp 0x14007504c
call fcn.140006c94
xor eax, eax
mov rcx, qword [rsp + 0x40]
mov word [rsp + rcx + 0x50], ax
cmp qword [rsp + 0x490], 0
je 0x140075075
mov rdx, qword [rsp + 0x490]
lea rcx, [rsp + 0x50]
call fcn.140003a99
mov rdx, qword [rsp + 0x498]
lea rcx, [rsp + 0x50]
call fcn.140003d0a
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400750a4
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140004de0
add rsp, 0x488
ret