joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18010f0f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.1800fdd80
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x18010f146
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x18010f19d
mov ebp, 0x4b0000
jmp 0x18010f1ab
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.180100360
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x18010f1c1
mov eax, r12d
jmp 0x18010f1ca
mov edx, edi
mov ecx, ebp
call fcn.180100360
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x18010f1e6
shl esi, 0x10
mov ecx, esi
jmp 0x18010f2d5
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x18010f244
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.1800fdd80
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x18010f234
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.180100230
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.1800fdd80
add ebx, eax
jmp 0x18010f2de
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x18010f251
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x18010f290
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.1800fdd80
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x18010f295
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.180100230
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.1800fdd80
add ebx, eax
jmp 0x18010f2de
cmp eax, r12d
jge 0x18010f2ce
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.1800fdd80
sub ebp, eax
sub r15d, esi
je 0x18010f2ce
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.180100230
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.1800fdd80
add ebx, eax
jmp 0x18010f2de
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.1800fdd80
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rbp
pop rbx
jmp fcn.1800fdd80
Function at 0x18015b310
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x180175040]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rsi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x278], rdi
nop dword [rax]
mov r10d, dword [rbx + 0x14]
mov eax, r10d
mov r14d, dword [rbx + 4]
cmp r10d, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x18015b4ac
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x18015b4ac
cmp r10d, r14d
jne 0x18015b3b0
sub rbx, 0x10
jmp 0x18015b4f4
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x18015b422
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x18015b3e4
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x18015b3ec
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x18015b40b
movzx edx, r11b
mov rcx, rsi
call fcn.18015c4c0
test al, al
jne 0x18015b505
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.18015cb30
test al, al
jne 0x18015b505
mov edx, dword [rsi + 0x64]
lea r9, [0x18015ce90]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x18015b44e
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.18015b190
jmp 0x18015b4a2
mov eax, dword [rbx + 4]
neg ecx
movzx edi, byte [rsi + 0x6a]
neg eax
mov dword [rbx + 4], eax
neg edx
mov eax, dword [rbx + 0xc]
neg eax
mov dword [rsp + 0x28], ecx
mov dword [rbx + 0xc], eax
mov rcx, rsi
mov eax, dword [rbx + 0x14]
neg eax
mov dword [rsp + 0x20], edx
mov edx, 2
mov dword [rbx + 0x14], eax
call fcn.18015b190
test dil, dil
je 0x18015b49a
cmp byte [rsi + 0x6a], 0
jne 0x18015b49a
mov rdx, qword [rsi + 0x70]
mov ecx, dword [rdx + 0x20]
neg ecx
mov dword [rdx + 0x20], ecx
mov ecx, dword [rbx + 4]
neg ecx
mov dword [rbx + 4], ecx
test al, al
jne 0x18015b505
sub rbx, 0x10
jmp 0x18015b4f4
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], r10d
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [r10 + r9]
mov dword [rbx + 0x10], eax
mov eax, ecx
sar edx, 1
sar eax, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0x14], eax
mov dword [rbx + 0xc], edx
add rbx, 0x10
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x18015b509
mov ebp, dword [rbx]
jmp 0x18015b370
mov al, 1
jmp 0x18015b512
mov dword [rsi + 0x58], ebp
xor al, al
mov dword [rsi + 0x5c], r14d
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1800fc8c0
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x180161860
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x18016187c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1801618d0
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1801619f5
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1801619f5
test rax, rax
je 0x1801619f5
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1801619f5
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x18016196a
lea rax, [0x180161a50]
jmp 0x1801619c3
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1801619f5
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1801619e3
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x180161990
lea rax, [0x180161a20]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x180161a0a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x180162fe0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x180162feb
xor eax, eax
ret
lea r11, [0x180024ee0]
not ecx
cmp r8d, 8
jb 0x1801630c1
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x180163010
test r8d, r8d
je 0x1801630ed
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1801630d0
not ecx
mov eax, ecx
ret
Function at 0x2fc4c3880
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4c4940
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4c4282
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4e8108]
test eax, eax
je 0x2fc4c431a
lea rax, [0x2fc4e80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4e8110]
mov qword [rbp - 8], rax
jmp 0x2fc4c42fe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4c42f2
cmp qword [rbp - 0x10], 0
je 0x2fc4c42f2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4c42b8
lea rax, [0x2fc4e80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c431b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c4420
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c4448
mov eax, 0
jmp 0x2fc4c4496
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4c4471
mov eax, 0
jmp 0x2fc4c4496
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c4491
mov eax, 0
jmp 0x2fc4c4496
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c449c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4c451a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c4511
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4c4511
mov rax, qword [rbp - 8]
jmp 0x2fc4c452f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4c44e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400012ce
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.140031fcd
sub rsp, rax
mov rax, qword [0x1401279c0]
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 0x1400013cf
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 0x140001418
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x140001418
test bpl, bpl
je 0x14000137e
test ecx, ecx
je 0x14000137e
lea rax, [rsp + 0x40]
mov rdx, rcx
xor byte [rax], 0x88
inc rax
sub rdx, 1
jne 0x14000136e
xor ebx, ebx
test ecx, ecx
je 0x1400013c1
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 0x1400013f3
add ebx, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
cmp ebx, ecx
jb 0x140001388
mov eax, ecx
add rdi, rax
cmp rdi, rsi
jl 0x140001315
xor eax, eax
mov rcx, qword [rsp + 0x17b0]
xor rcx, rsp
call fcn.140015ae6
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.1400110fa
mov eax, 2
jmp 0x1400013d1
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.1400110fa
mov eax, 1
jmp 0x1400013d1
Function at 0x140004d10
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.140031fcd
sub rsp, rax
mov rax, qword [0x1401279c0]
xor rax, rsp
mov qword [rsp + 0x1790], rax
mov bl, cl
lea rcx, str.extracting_files
call fcn.140011192
mov ecx, 0x7d2
call fcn.140004a59
lea rcx, [0x14003d200]
mov edx, eax
mov edi, eax
call fcn.140011192
xor r14d, r14d
cmp edi, r14d
jne 0x140004d95
movzx eax, byte [0x140136720]
cmp bl, r14b
cmovne eax, r14d
mov byte [0x140136720], al
jmp 0x140004f21
cmp bl, r14b
je 0x140004da3
call fcn.14001381a
call fcn.140001058
mov edx, dword [0x1401292a4]
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 0x7d3
call fcn.140004983
lea rdx, [0x14003d1fc]
mov r12d, r14d
mov rcx, rax
mov rbp, rax
call fcn.140016755
cmp edi, r14d
mov rbx, rax
jle 0x140004eea
cmp rbx, r14
je 0x140004eea
mov rcx, rbx
call fcn.140015251
cmp rax, r14
je 0x140004eea
lea r8, [0x140136720]
lea rdx, [0x14003d1f4]
lea rcx, [rsp + 0x20]
mov r9, rbx
call fcn.14001697d
mov edx, 0x5c
mov rcx, rbx
call fcn.14001520e
mov r13, rax
cmp rax, r14
je 0x140004e9a
lea rcx, [0x140136720]
call fcn.140015251
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.140011192
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, r14d
jne 0x140004e9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140004e9a
lea rdx, [rsp + 0x20]
lea rcx, str.failed_to_create_directory__S
call fcn.1400110fa
lea r8, [0x140136720]
lea rdx, [0x14003d1f4]
lea rcx, [rsp + 0x20]
mov r9, rbx
call fcn.14001697d
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140002cfd
mov ebx, eax
cmp eax, r14d
jne 0x140004f55
lea rdx, [0x14003d1fc]
xor ecx, ecx
inc r12d
call fcn.140016755
cmp r12d, edi
mov rbx, rax
jl 0x140004deb
mov rcx, rbp
call fcn.140015678
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rsi
mov dword [0x1401292a0], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.extracting_files_done
call fcn.140011192
xor eax, eax
mov rcx, qword [rsp + 0x1790]
xor rcx, rsp
call fcn.140015ae6
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.1400110fa
mov rcx, rbp
call fcn.140015678
mov eax, ebx
jmp 0x140004f23

Function at 0x1400051c5
Capabilities:
Delete directory
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x140137eb0], 0
mov ebx, ecx
jne 0x14000520a
lea rcx, [0x140136720]
call fcn.140015251
test rax, rax
je 0x14000520a
lea rcx, [0x140136720]
mov dl, 1
call fcn.140005398
lea rcx, [0x140136720]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140005398
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.140031fcd
sub rsp, rax
mov rax, qword [0x1401279c0]
xor rax, rsp
mov qword [rsp + 0x3040], rax
mov sil, dl
lea rdx, [0x14003d3d0]
mov r8d, 1
mov rbx, rcx
call fcn.14001687a
test eax, eax
je 0x140005590
mov rcx, rbx
call fcn.140015251
test rax, rax
je 0x140005590
lea rcx, [0x14003d3b8]
mov rdx, rbx
call fcn.140011192
mov rcx, rbx
call fcn.140015251
test rax, rax
je 0x140005590
lea rcx, [rsp + 0x18d0]
mov rdx, rbx
call fcn.14001595b
lea rcx, [rsp + 0x18d0]
call fcn.140015251
cmp byte [rsp + rax + 0x18d0], 0x5c
je 0x140005452
lea rdx, [0x14003d3b4]
lea rcx, [rsp + 0x18d0]
call fcn.14001588c
lea rdx, [0x14003d3b0]
lea rcx, [rsp + 0x18d0]
call fcn.14001588c
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x18d0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140005590
lea rdx, [0x14003d3d0]
lea rcx, [rsp + 0x4c]
call fcn.14001769e
test eax, eax
je 0x140005571
lea rdx, [0x14003d3ac]
lea rcx, [rsp + 0x4c]
call fcn.14001769e
test eax, eax
je 0x140005571
lea rcx, [rsp + 0x160]
mov rdx, rbx
call fcn.14001595b
lea rcx, [rsp + 0x160]
call fcn.140015251
cmp byte [rsp + rax + 0x160], 0x5c
je 0x1400054f7
lea rdx, [0x14003d3b4]
lea rcx, [rsp + 0x160]
call fcn.14001588c
lea rdx, [rsp + 0x4c]
lea rcx, [rsp + 0x160]
call fcn.14001588c
test byte [rsp + 0x20], 0x10
lea rdx, [rsp + 0x160]
jbe 0x140005557
lea rcx, str.attempting_to_remove__S___d_
movzx r8d, sil
call fcn.140011192
test sil, sil
je 0x140005544
lea rcx, [rsp + 0x160]
xor edx, edx
call fcn.140005398
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x140005571
lea rcx, str.attempting_to_delete__S
call fcn.140011192
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 0x140005486
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x3040]
xor rcx, rsp
call fcn.140015ae6
lea r11, [rsp + 0x3050]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400056b7
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 0x1400056ea
cmp dword [rsp + 0x48], 8
jae 0x14000570a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.error__d_n
mov edx, eax
call fcn.140011192
lea rcx, [0x14003d3d8]
call fcn.14000535c
mov rax, qword [rsp + 0x50]
add rsp, 0x38
ret
Function at 0x140005717
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 0x14000574a
cmp dword [rsp + 0x48], 4
jae 0x14000576f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, dword [rsp + 0x48]
lea rcx, str.error__d__d_n
mov edx, eax
call fcn.140011192
lea rcx, str.Internal_Error:_readInt
call fcn.14000535c
mov eax, dword [rsp + 0x50]
add rsp, 0x38
ret

Function at 0x14000577b
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 0x1400057ae
cmp dword [rsp + 0x50], 2
jae 0x1400057ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.error__d_n
mov edx, eax
call fcn.140011192
lea rcx, str.Internal_Error:_readShort
call fcn.14000535c
mov ax, word [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x1400057db
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.140005717
movsxd rdi, eax
lea edx, [rdi + 1]
movsxd rcx, edx
call fcn.140015112
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 0x140005833
cmp dword [rsp + 0x48], edi
jae 0x14000583f
lea rcx, str.Internal_Error:_readString
call fcn.14000535c
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140005853
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.140005717
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.140015112
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 0x1400058d1
cmp dword [rsp + 0x48], ebp
jae 0x1400058dd
lea rcx, str.Internal_Error:_readWString
call fcn.14000535c
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret