joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dcbe0
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x30]
cmp r12, qword [r14 + 0x10]
jbe 0x4dce43
sub rsp, 0xb0
mov qword [rsp + 0xa8], rbp
lea rbp, [rsp + 0xa8]
test rax, rax
je 0x4dce27
mov qword [rsp + 0xb8], rax
mov rbx, qword [rax + 8]
mov rdx, qword [rax]
mov rcx, qword [rax + 0x10]
test rbx, rbx
jne 0x4dcc2d
xor ebx, ebx
xor ecx, ecx
jmp 0x4dcc40
mov rax, rdx
call fcn.004d0e40
mov rcx, rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x48], rbx
cmp qword [rax + 0x28], 0
je 0x4dcd5b
mov rcx, qword [rax + 0x18]
mov rax, rcx
nop
call fcn.004782e0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0xb8]
mov r8, qword [rcx + 0x20]
mov r9, qword [rcx + 0x28]
mov rcx, qword [rsp + 0x48]
lea rdi, [0x00542f51]
mov esi, 1
lea rax, [rsp + 0x68]
mov rbx, qword [rsp + 0x88]
call fcn.0044bf80
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x3a
call fcn.00402ac0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
nop
jl 0x4dcd1e
xor eax, eax
lea rbx, [0x00542f6a]
mov ecx, 1
mov rdi, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x60]
lea r8, [0x00542fde]
mov r9d, 2
mov r10, qword [rsp + 0x98]
mov r11, qword [rsp + 0x58]
call fcn.0044c060
jmp 0x4dcd4b
xor eax, eax
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
lea rdi, [0x00542f5d]
mov esi, 1
mov r8, qword [rsp + 0x98]
mov r9, qword [rsp + 0x58]
call fcn.0044bf80
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
mov rax, qword [rax + 0x18]
nop
call fcn.004782e0
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x50], rbx
mov rcx, qword [rsp + 0x88]
mov qword [rsp], rcx
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 8], rdx
mov byte [rsp + 0x10], 0x3a
call fcn.00402ac0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x4dcdea
xor eax, eax
lea rbx, [0x00542f6a]
mov ecx, 1
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x48]
lea r8, [0x00542fde]
mov r9d, 2
mov r10, qword [rsp + 0x90]
mov r11, qword [rsp + 0x50]
call fcn.0044c060
jmp 0x4dce17
xor eax, eax
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
lea rdi, [0x00542f5d]
mov esi, 1
mov r8, qword [rsp + 0x90]
mov r9, qword [rsp + 0x50]
call fcn.0044bf80
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
lea rax, [0x00543394]
mov ebx, 5
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
mov qword [rsp + 8], rax
call fcn.0045ee80
mov rax, qword [rsp + 8]
jmp fcn.004dcbe0
Function at 0x4e4620
Capabilities:
Encode data using xor

Disassembly:
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x20]
test rdx, 0xf
jne 0x4e468b
mov rax, 0
movdqu xmm0, xmmword [rsi + rax]
movdqu xmm1, xmmword [rcx + rax]
pxor xmm0, xmm1
movdqu xmmword [rbx + rax], xmm0
add rax, 0x10
cmp rdx, rax
jne 0x4e4644
ret
sub rdx, 1
mov dil, byte [rsi + rdx]
mov al, byte [rcx + rdx]
xor dil, al
mov byte [rbx + rdx], dil
test rdx, 7
jne 0x4e4661
cmp rdx, 0
je 0x4e46ad
test rdx, 0xf
je 0x4e463d
test rdx, 7
jne 0x4e4661
sub rdx, 8
mov rdi, qword [rsi + rdx]
mov rax, qword [rcx + rdx]
xor rdi, rax
mov qword [rbx + rdx], rdi
cmp rdx, 0x10
jge 0x4e463d
ret
Function at 0x4e6700
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rbx]
add rax, 0x10
pxor xmm0, xmm1
sub rcx, 0xc
je 0x4e673f
jb 0x4e6754
movups xmm1, xmmword [rax]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesenc xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesenc xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x20]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x30]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x40]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x50]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x60]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x70]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x80]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x90]
aesenclast xmm0, xmm1
movups xmmword [rdx], xmm0
ret
Function at 0x4e67c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x20]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
add rbx, 0x10
pxor xmm4, xmm4
cmp ecx, 0xc
je 0x4e6890
jb 0x4e68ef
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call fcn.004e66a0
aeskeygenassist xmm1, xmm0, 1
call fcn.004e66c0
aeskeygenassist xmm1, xmm2, 2
call fcn.004e66a0
aeskeygenassist xmm1, xmm0, 2
call fcn.004e66c0
aeskeygenassist xmm1, xmm2, 4
call fcn.004e66a0
aeskeygenassist xmm1, xmm0, 4
call fcn.004e66c0
aeskeygenassist xmm1, xmm2, 8
call fcn.004e66a0
aeskeygenassist xmm1, xmm0, 8
call fcn.004e66c0
aeskeygenassist xmm1, xmm2, 0x10
call fcn.004e66a0
aeskeygenassist xmm1, xmm0, 0x10
call fcn.004e66c0
aeskeygenassist xmm1, xmm2, 0x20
call fcn.004e66a0
aeskeygenassist xmm1, xmm0, 0x20
call fcn.004e66c0
aeskeygenassist xmm1, xmm2, 0x40
call fcn.004e66a0
jmp 0x4e695d
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call fcn.004e6600
aeskeygenassist xmm1, xmm2, 2
call fcn.004e6660
aeskeygenassist xmm1, xmm2, 4
call fcn.004e6600
aeskeygenassist xmm1, xmm2, 8
call fcn.004e6660
aeskeygenassist xmm1, xmm2, 0x10
call fcn.004e6600
aeskeygenassist xmm1, xmm2, 0x20
call fcn.004e6660
aeskeygenassist xmm1, xmm2, 0x40
call fcn.004e6600
aeskeygenassist xmm1, xmm2, 0x80
call fcn.004e6660
jmp 0x4e695d
aeskeygenassist xmm1, xmm0, 1
call fcn.004e65c0
aeskeygenassist xmm1, xmm0, 2
call fcn.004e65c0
aeskeygenassist xmm1, xmm0, 4
call fcn.004e65c0
aeskeygenassist xmm1, xmm0, 8
call fcn.004e65c0
aeskeygenassist xmm1, xmm0, 0x10
call fcn.004e65c0
aeskeygenassist xmm1, xmm0, 0x20
call fcn.004e65c0
aeskeygenassist xmm1, xmm0, 0x40
call fcn.004e65c0
aeskeygenassist xmm1, xmm0, 0x80
call fcn.004e65c0
aeskeygenassist xmm1, xmm0, 0x1b
call fcn.004e65c0
aeskeygenassist xmm1, xmm0, 0x36
call fcn.004e65c0
sub rbx, 0x10
movups xmm1, xmmword [rbx]
movups xmmword [rdx], xmm1
dec rcx
movups xmm1, xmmword [rbx - 0x10]
aesimc xmm0, xmm1
movups xmmword [rdx + 0x10], xmm0
sub rbx, 0x10
add rdx, 0x10
dec rcx
jne 0x4e696a
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
ret
Function at 0x4fafc0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov rdx, qword [rax]
xor esi, esi
jmp 0x4fafe4
movzx edi, byte [rbx + rsi]
inc rsi
movabs r8, 0x100000001b3
imul rdx, r8
xor rdx, rdi
cmp rcx, rsi
jg 0x4fafcc
mov qword [rax], rdx
mov rax, rcx
xor ebx, ebx
xor ecx, ecx
ret

Function at 0x4fb000
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov rdx, qword [rax]
xor esi, esi
jmp 0x4fb024
movzx edi, byte [rbx + rsi]
inc rsi
xor rdx, rdi
movabs rdi, 0x100000001b3
imul rdx, rdi
cmp rcx, rsi
jg 0x4fb00c
mov qword [rax], rdx
mov rax, rcx
xor ebx, ebx
xor ecx, ecx
ret
Function at 0xb6b1c0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xb6b1cd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xb6b1dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xb6b1c5
lea eax, [rcx + 1]
jmp 0xb6b1eb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xb6b1fe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xb6b1e4
sub eax, 3
jb 0xb6b21e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xb6b26d
sar eax, 1
movsxd rbp, eax
jb 0xb6b254
jmp 0xb6b22c
add ebx, ebx
jne 0xb6b22a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xb6b254
inc ecx
add ebx, ebx
jne 0xb6b23a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xb6b254
call r11
adc ecx, ecx
add ebx, ebx
jne 0xb6b24d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xb6b23c
add ecx, 2
jmp 0xb6b259
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00b6b182
jmp 0xb6b1cd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x23ca00
mov dl, 0x39
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xb6b2b9
cmp rsi, rcx
jae 0xb6b2c1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xb6b2a0
cmp al, 0x8f
ja 0xb6b2a0
cmp byte [rsi - 2], 0xf
je 0xb6b2a6
sub al, 0xe8
cmp al, 1
ja 0xb6b28a
cmp rsi, rcx
jae 0xb6b2c1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xb6b290
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xb6b2c1
lodsb al, byte [rsi]
jmp 0xb6b2a0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x764000]
mov eax, dword [rdi]
or eax, eax
je 0xb6b31e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x76b000]
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 0xb6b2ce
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 0xb6b318
mov qword [rbx], rax
add rbx, 8
jmp 0xb6b2ee
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 0xb6b362
cmp al, 0xef
ja 0xb6b34a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xb6b32a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xb6b339
mov eax, dword [rdi]
add rdi, 4
jmp 0xb6b339
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 + 0x1af]
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 0xb6b3b6
sub rsp, 0xffffffffffffff80
jmp 0x468120
Function at 0x140001dc8
Capabilities:
Parse pe header

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

Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
push rsi
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
push rax
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
xor r9, r9
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
pop r8
add rax, rdx
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x1400012ac
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x17c0
call fcn.140031150
sub rsp, rax
mov rax, qword [0x1400409c0]
xor rax, rsp
mov qword [rsp + 0x17b0], rax
xor edi, edi
mov bpl, r9b
mov rsi, r8
mov r13, rdx
mov r12, rcx
test r8, r8
jle 0x140001395
mov r14d, 0x1770
mov r8d, esi
mov rax, rsi
lea r9, [rsp + 0x30]
sub r8d, edi
sub rax, rdi
lea rdx, [rsp + 0x40]
cmp rax, r14
mov rcx, r12
cmovg r8d, r14d
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400013db
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x1400013db
test bpl, bpl
je 0x140001350
test ecx, ecx
je 0x140001350
lea rax, [rsp + 0x40]
mov rdx, rcx
xor byte [rax], 0x88
inc rax
sub rdx, 1
jne 0x140001344
xor ebx, ebx
test ecx, ecx
je 0x140001387
and qword [rsp + 0x20], 0
sub ecx, ebx
movsxd rax, ebx
mov r8d, ecx
lea rdx, [rsp + rax + 0x40]
lea r9, [rsp + 0x34]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400013b9
add ebx, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
cmp ebx, ecx
jb 0x140001356
mov eax, ecx
add rdi, rax
cmp rdi, rsi
jl 0x1400012f3
xor eax, eax
mov rcx, qword [rsp + 0x17b0]
xor rcx, rsp
call fcn.140016e60
add rsp, 0x17c0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [rsp + 0x30]
lea rcx, str.WriteFile_failed__d__d
sub edx, ebx
mov r8d, eax
call fcn.1400119d8
mov eax, 2
jmp 0x140001397
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [rsp + 0x30]
lea rcx, str.ReadFile_failed__d__d__I64d
mov r8d, eax
mov r9, rdi
call fcn.1400119d8
mov eax, 1
jmp 0x140001397
Function at 0x140004924
Capabilities:
Create directory

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 r13
push r14
mov eax, 0x17a0
call fcn.140031150
sub rsp, rax
mov rax, qword [0x1400409c0]
xor rax, rsp
mov qword [rsp + 0x1790], rax
mov bl, cl
lea rcx, str.extracting_files
call fcn.140011a6c
mov ecx, 0x7d2
call fcn.14000469c
lea rcx, [0x140034250]
mov edx, eax
mov edi, eax
call fcn.140011a6c
xor r14d, r14d
cmp edi, r14d
jne 0x1400049a5
movzx eax, byte [0x14004e000]
cmp bl, r14b
cmovne eax, r14d
mov byte [0x14004e000], al
jmp 0x140004b21
cmp bl, r14b
je 0x1400049af
call fcn.1400144e4
call fcn.140001054
mov edx, dword [0x1400422a4]
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 0x7d3
call fcn.1400045d4
lea rdx, [0x14003424c]
mov r12d, r14d
mov rcx, rax
mov rbp, rax
call fcn.1400179ac
cmp edi, r14d
mov rbx, rax
jle 0x140004aea
cmp rbx, r14
je 0x140004aea
mov rcx, rbx
call fcn.140016740
cmp rax, r14
je 0x140004aea
lea r8, [0x14004e000]
lea rdx, [0x140034244]
lea rcx, [rsp + 0x20]
mov r9, rbx
call fcn.140017b68
mov edx, 0x5c
mov rcx, rbx
call fcn.14001670c
mov r13, rax
cmp rax, r14
je 0x140004a9a
lea rcx, [0x14004e000]
call fcn.140016740
sub r13, rbx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + r13 + 0x21]
mov byte [rcx + rax], r14b
lea rcx, str.creating_directory__S
call fcn.140011a6c
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, r14d
jne 0x140004a9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140004a9a
lea rdx, [rsp + 0x20]
lea rcx, str.failed_to_create_directory__S
call fcn.1400119d8
lea r8, [0x14004e000]
lea rdx, [0x140034244]
lea rcx, [rsp + 0x20]
mov r9, rbx
call fcn.140017b68
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140002ccc
mov ebx, eax
cmp eax, r14d
jne 0x140004b55
lea rdx, [0x14003424c]
xor ecx, ecx
inc r12d
call fcn.1400179ac
cmp r12d, edi
mov rbx, rax
jl 0x1400049f7
mov rcx, rbp
call fcn.140016ad0
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rsi
mov dword [0x1400422a0], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.extracting_files_done
call fcn.140011a6c
xor eax, eax
mov rcx, qword [rsp + 0x1790]
xor rcx, rsp
call fcn.140016e60
lea r11, [rsp + 0x17a0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
lea rdx, [rsp + 0x20]
lea rcx, str.Failed_to_extract__S
call fcn.1400119d8
mov rcx, rbp
call fcn.140016ad0
mov eax, ebx
jmp 0x140004b23

Function at 0x140004df8
Capabilities:
Delete directory
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x14004f790], 0
mov ebx, ecx
jne 0x140004e35
lea rcx, [0x14004e000]
call fcn.140016740
test rax, rax
je 0x140004e35
lea rcx, [0x14004e000]
mov dl, 1
call fcn.140004fac
lea rcx, [0x14004e000]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140004fac
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x3050
call fcn.140031150
sub rsp, rax
mov rax, qword [0x1400409c0]
xor rax, rsp
mov qword [rsp + 0x3040], rax
mov sil, dl
lea rdx, [0x140034420]
mov r8d, 1
mov rbx, rcx
call fcn.140017ab0
test eax, eax
je 0x140005191
mov rcx, rbx
call fcn.140016740
test rax, rax
je 0x140005191
lea rcx, [0x140034408]
mov rdx, rbx
call fcn.140011a6c
mov rcx, rbx
call fcn.140016740
test rax, rax
je 0x140005191
lea rcx, [rsp + 0x18d0]
mov rdx, rbx
call fcn.140016d10
lea rcx, [rsp + 0x18d0]
call fcn.140016740
cmp byte [rsp + rax + 0x18d0], 0x5c
je 0x140005062
lea rdx, [0x140034404]
lea rcx, [rsp + 0x18d0]
call fcn.140016c70
lea rdx, [0x140034400]
lea rcx, [rsp + 0x18d0]
call fcn.140016c70
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x18d0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140005191
lea rdx, [0x140034420]
lea rcx, [rsp + 0x4c]
call fcn.1400186e0
test eax, eax
je 0x140005172
lea rdx, [0x1400343fc]
lea rcx, [rsp + 0x4c]
call fcn.1400186e0
test eax, eax
je 0x140005172
lea rcx, [rsp + 0x160]
mov rdx, rbx
call fcn.140016d10
lea rcx, [rsp + 0x160]
call fcn.140016740
cmp byte [rsp + rax + 0x160], 0x5c
je 0x140005103
lea rdx, [0x140034404]
lea rcx, [rsp + 0x160]
call fcn.140016c70
lea rdx, [rsp + 0x4c]
lea rcx, [rsp + 0x160]
call fcn.140016c70
test byte [rsp + 0x20], 0x10
lea rdx, [rsp + 0x160]
jbe 0x140005158
lea rcx, str.attempting_to_remove__S___d_
movzx r8d, sil
call fcn.140011a6c
test sil, sil
je 0x140005148
lea rcx, [rsp + 0x160]
xor edx, edx
call fcn.140004fac
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x140005172
lea rcx, str.attempting_to_delete__S
call fcn.140011a6c
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140005096
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x3040]
xor rcx, rsp
call fcn.140016e60
lea r11, [rsp + 0x3050]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140005274
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000529f
cmp dword [rsp + 0x48], 8
jae 0x1400052bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.error__d_n
mov edx, eax
call fcn.140011a6c
lea rcx, str.Internal_Error:_readLong
call fcn.140004f70
mov rax, qword [rsp + 0x50]
add rsp, 0x38
ret
Function at 0x1400052cc
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400052f7
cmp dword [rsp + 0x48], 4
jae 0x14000531c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, dword [rsp + 0x48]
lea rcx, str.error__d__d_n
mov edx, eax
call fcn.140011a6c
lea rcx, str.Internal_Error:_readInt
call fcn.140004f70
mov eax, dword [rsp + 0x50]
add rsp, 0x38
ret

Function at 0x140005328
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x48]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140005353
cmp dword [rsp + 0x50], 2
jae 0x140005373
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.error__d_n
mov edx, eax
call fcn.140011a6c
lea rcx, str.Internal_Error:_readShort
call fcn.140004f70
mov ax, word [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x140005380
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
call fcn.1400052cc
movsxd rdi, eax
lea edx, [rdi + 1]
movsxd rcx, edx
call fcn.140016610
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rdx, rax
mov r8d, edi
mov rcx, rbx
mov rsi, rax
mov byte [rdi + rax], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400053d0
cmp dword [rsp + 0x48], edi
jae 0x1400053dc
lea rcx, str.Internal_Error:_readString
call fcn.140004f70
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400053f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
call fcn.1400052cc
mov rcx, 0xffffffffffffffff
mov ebp, eax
cdq
sub eax, edx
sar eax, 1
movsxd rbx, eax
mov eax, 2
lea edx, [rbx + 1]
movsxd r8, edx
mul r8
cmovo rax, rcx
mov rcx, rax
call fcn.140016610
mov rcx, rbx
xor ebx, ebx
mov word [rax + rcx*2], bx
lea r9, [rsp + 0x48]
mov r8d, ebp
mov rcx, rdi
mov rdx, rax
mov rsi, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x140005466
cmp dword [rsp + 0x48], ebp
jae 0x140005472
lea rcx, str.Internal_Error:_readWString
call fcn.140004f70
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140006e84
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x17a0
call fcn.140031150
sub rsp, rax
mov rax, qword [0x1400409c0]
xor rax, rsp
mov qword [rsp + 0x1790], rax
mov rdi, rcx
lea rcx, [rsp + 0x20]
call fcn.140006db4
lea rdx, [rsp + 0x20]
lea rcx, str.tempPath_is__S
call fcn.140011a6c
lea rdx, [0x140034a90]
lea rcx, [rsp + 0x20]
mov r9, rdi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x140006f5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetTempFileName_failed__last_error__d_
mov edx, eax
call fcn.140011a6c
lea rcx, [rsp + 0x20]
call fcn.140016740
test eax, eax
jle 0x140006f26
cdqe
cmp byte [rsp + rax + 0x1f], 0x5c
je 0x140006f26
cmp byte [rsp + rax + 0x1f], 0x2f
je 0x140006f26
lea rdx, [0x140034404]
lea rcx, [rsp + 0x20]
call fcn.140016c70
xor ecx, ecx
call fcn.140018644
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
imul eax, ebx
mov ecx, eax
call fcn.140018c40
call fcn.140018c58
lea r8, [rsp + 0x20]
lea rdx, str._se4j_d
mov r9d, eax
mov rcx, rdi
call fcn.140017b68
lea rcx, str.tempFile_is__S
mov rdx, rdi
call fcn.140011a6c
mov rcx, qword [rsp + 0x1790]
xor rcx, rsp
call fcn.140016e60
mov rbx, qword [rsp + 0x17b8]
add rsp, 0x17a0
pop rdi
ret