joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140114aa0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x38
cmp r8d, 8
jge 0x140114b3d
xor eax, eax
cmp r8d, 4
jl 0x140114af1
add r8d, 0xfffffffc
movsx r10, word [rcx + rax*2]
movsx r9, dx
cmp r10d, r9d
je 0x140114b38
nop dword [rax]
movsx r10, word [rcx + rax*2 + 2]
cmp r10d, r9d
je 0x140114b31
movsx r10, word [rcx + rax*2 + 4]
cmp r10d, r9d
je 0x140114b29
movsx r10, word [rcx + rax*2 + 6]
cmp r10d, r9d
je 0x140114b21
add rax, 4
test r8d, r8d
jle 0x140114d1a
movsx r9, dx
nop
dec r8d
movsx rdx, word [rcx + rax*2]
cmp edx, r9d
je 0x140114b38
inc rax
test r8d, r8d
jg 0x140114b00
jmp 0x140114d1a
add eax, 3
jmp 0x140114d15
add eax, 2
jmp 0x140114d15
inc eax
jmp 0x140114d15
jmp 0x140114d15
movsx r9, dx
movd xmm0, r9d
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov rax, rcx
lea edx, [r8 - 8]
movsxd rdx, edx
add rdx, rdx
lea r10, [rax + rdx]
movups xmm1, xmmword [rax]
pcmpeqw xmm1, xmm0
movaps xmmword [rsp + 0x20], xmm1
xorps xmm2, xmm2
pcmpeqw xmm1, xmm2
pmovmskb r9d, xmm1
cmp r9d, 0xffff
jne 0x140114c56
add rax, 0x10
cmp rax, r10
jbe 0x140114b60
mov eax, r8d
test al, 7
je 0x140114d1a
movups xmm1, xmmword [r10]
pcmpeqw xmm0, xmm1
movaps xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
pcmpeqw xmm0, xmm1
pmovmskb ecx, xmm0
cmp ecx, 0xffff
je 0x140114d1a
mov rax, qword [rsp + 0x20]
mov qword [rsp + 8], rax
movzx eax, word [rsp + 8]
shr eax, 0xf
movzx ecx, word [rsp + 0xa]
shr ecx, 0xf
add ecx, ecx
or eax, ecx
movzx ecx, word [rsp + 0xc]
shr ecx, 0xf
shl ecx, 2
or ecx, eax
mov eax, ecx
movzx ecx, word [rsp + 0xe]
shr ecx, 0xf
shl ecx, 3
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov qword [rsp], rcx
movzx ecx, word [rsp]
shr ecx, 0xf
movzx r8d, word [rsp + 2]
shr r8d, 0xf
add r8d, r8d
or ecx, r8d
movzx r8d, word [rsp + 4]
shr r8d, 0xf
shl r8d, 2
or r8d, ecx
mov ecx, r8d
movzx r8d, word [rsp + 6]
shr r8d, 0xf
shl r8d, 3
or r8d, ecx
mov ecx, r8d
shl ecx, 4
or eax, ecx
jne 0x140114d0c
mov ecx, 0x20
jmp 0x140114d0f
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x18], rdx
movzx edx, word [rsp + 0x18]
shr edx, 0xf
movzx r8d, word [rsp + 0x1a]
shr r8d, 0xf
add r8d, r8d
or edx, r8d
movzx r8d, word [rsp + 0x1c]
shr r8d, 0xf
shl r8d, 2
or r8d, edx
mov edx, r8d
movzx r8d, word [rsp + 0x1e]
shr r8d, 0xf
shl r8d, 3
or r8d, edx
mov edx, r8d
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x10], r8
movzx r8d, word [rsp + 0x10]
shr r8d, 0xf
movzx r10d, word [rsp + 0x12]
shr r10d, 0xf
add r10d, r10d
or r8d, r10d
movzx r10d, word [rsp + 0x14]
shr r10d, 0xf
shl r10d, 2
or r10d, r8d
mov r8d, r10d
movzx r10d, word [rsp + 0x16]
shr r10d, 0xf
shl r10d, 3
or r10d, r8d
mov r8d, r10d
shl r8d, 4
or edx, r8d
jne 0x140114cfd
mov r8d, 0x20
jmp 0x140114d01
bsf r8d, edx
sub rax, rcx
shr rax, 1
add eax, r8d
jmp 0x140114d15
bsf ecx, eax
shr rdx, 1
lea eax, [rdx + rcx]
add rsp, 0x38
ret
mov eax, 0xffffffff
add rsp, 0x38
ret
Function at 0x14011b0a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
cmp r9d, 8
jge 0x14011b0f1
movzx r10d, dx
sub r8d, r10d
movzx eax, r8w
xor edx, edx
test r9d, r9d
jle 0x14011b31b
movsxd r8, edx
movzx r8d, word [rcx + r8*2]
sub r8d, r10d
movzx r8d, r8w
cmp r8d, eax
jle 0x14011b0e5
inc edx
cmp edx, r9d
jl 0x14011b0c5
jmp 0x14011b31b
mov eax, edx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
movzx r10d, dx
movd xmm0, r10d
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov eax, r8d
sub eax, r10d
movzx eax, ax
movd xmm1, eax
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
mov rax, rcx
add r9d, 0xfffffff8
mov edx, r9d
add rdx, rdx
lea r8, [rax + rdx]
movups xmm2, xmmword [0x1401bc530]
movaps xmm3, xmm1
psubw xmm3, xmm2
movups xmm4, xmmword [rax]
psubw xmm4, xmm0
movaps xmm5, xmm4
psubw xmm5, xmm2
movaps xmm6, xmm3
pcmpgtw xmm6, xmm5
pcmpeqw xmm4, xmm1
por xmm4, xmm6
movaps xmmword [rsp + 0x20], xmm4
xorps xmm5, xmm5
pcmpeqw xmm4, xmm5
pmovmskb r10d, xmm4
cmp r10d, 0xffff
jne 0x14011b25b
add rax, 0x10
cmp rax, r8
jb 0x14011b138
movups xmm4, xmmword [r8]
psubw xmm4, xmm0
movaps xmm0, xmm4
psubw xmm0, xmm2
pcmpgtw xmm3, xmm0
pcmpeqw xmm1, xmm4
por xmm1, xmm3
movaps xmmword [rsp + 0x20], xmm1
xorps xmm0, xmm0
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
cmp eax, 0xffff
je 0x14011b31b
mov rax, qword [rsp + 0x20]
mov qword [rsp + 8], rax
movzx eax, word [rsp + 8]
shr eax, 0xf
movzx ecx, word [rsp + 0xa]
shr ecx, 0xf
add ecx, ecx
or eax, ecx
movzx ecx, word [rsp + 0xc]
shr ecx, 0xf
shl ecx, 2
or ecx, eax
mov eax, ecx
movzx ecx, word [rsp + 0xe]
shr ecx, 0xf
shl ecx, 3
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov qword [rsp], rcx
movzx ecx, word [rsp]
shr ecx, 0xf
movzx r8d, word [rsp + 2]
shr r8d, 0xf
add r8d, r8d
or ecx, r8d
movzx r8d, word [rsp + 4]
shr r8d, 0xf
shl r8d, 2
or r8d, ecx
mov ecx, r8d
movzx r8d, word [rsp + 6]
shr r8d, 0xf
shl r8d, 3
or r8d, ecx
mov ecx, r8d
shl ecx, 4
or eax, ecx
bsf ecx, eax
mov r8d, 0x20
test eax, eax
cmove ecx, r8d
mov eax, ecx
shr rdx, 1
add eax, edx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x18], rdx
movzx edx, word [rsp + 0x18]
shr edx, 0xf
movzx r8d, word [rsp + 0x1a]
shr r8d, 0xf
add r8d, r8d
or edx, r8d
movzx r8d, word [rsp + 0x1c]
shr r8d, 0xf
shl r8d, 2
or r8d, edx
mov edx, r8d
movzx r8d, word [rsp + 0x1e]
shr r8d, 0xf
shl r8d, 3
or r8d, edx
mov edx, r8d
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x10], r8
movzx r8d, word [rsp + 0x10]
shr r8d, 0xf
movzx r10d, word [rsp + 0x12]
shr r10d, 0xf
add r10d, r10d
or r8d, r10d
movzx r10d, word [rsp + 0x14]
shr r10d, 0xf
shl r10d, 2
or r10d, r8d
mov r8d, r10d
movzx r10d, word [rsp + 0x16]
shr r10d, 0xf
shl r10d, 3
or r10d, r8d
mov r8d, r10d
shl r8d, 4
or edx, r8d
bsf r8d, edx
mov r10d, 0x20
test edx, edx
cmove r8d, r10d
sub rax, rcx
shr rax, 1
add eax, r8d
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
mov eax, 0xffffffff
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x14000b9ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
loop case.0x14000ba02.0
invalid
Function at 0x140001000
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x170
lea rdi, [rsp + 0x20]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140009028]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r8d, 0x114
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x34], 5
jne 0x14000105f
mov byte [0x140009138], 1
movzx eax, byte [0x140009138]
mov edi, eax
mov rcx, rsp
lea rdx, [0x140005d90]
call fcn.140002de8
mov eax, edi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140002ef0
add rsp, 0x170
pop rdi
ret
Function at 0x140001b10
Capabilities:
Get file version info

Disassembly:
push rdi
sub rsp, 0x3f0
lea rdi, [rsp + 0x30]
mov ecx, 0xf0
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140009028]
xor rax, rsp
mov qword [rsp + 0x3e8], rax
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140001b64
lea rcx, str.Unable_to_get_executable_file_name._n
call fcn.140002a60
jmp 0x140001ce0
lea rdx, [rsp + 0x264]
lea rcx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [rsp + 0x274], eax
cmp dword [rsp + 0x274], 0
jne 0x140001b98
lea rcx, str.Unable_to_get_version_info_size._n
call fcn.140002a60
jmp 0x140001ce0
mov eax, dword [rsp + 0x274]
mov ecx, eax
call fcn.140002b44
mov qword [rsp + 0x3e0], rax
mov rax, qword [rsp + 0x3e0]
mov qword [rsp + 0x278], rax
mov r9, qword [rsp + 0x278]
mov r8d, dword [rsp + 0x274]
xor edx, edx
lea rcx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x140001bef
lea rcx, str.Unable_to_get_version_info._n
call fcn.140002a60
jmp 0x140001ce0
lea r9, [rsp + 0x2a4]
lea r8, [rsp + 0x288]
lea rdx, [0x140005714]
mov rcx, qword [rsp + 0x278]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x140001c28
lea rcx, str.Unable_to_query_version_value._n
call fcn.140002a60
jmp 0x140001ce0
mov rax, qword [rsp + 0x288]
mov qword [rsp + 0x2b8], rax
mov rax, qword [rsp + 0x2b8]
mov eax, dword [rax + 0x14]
and eax, 0xffff
mov rcx, qword [rsp + 0x2b8]
mov ecx, dword [rcx + 0x14]
shr ecx, 0x10
mov rdx, qword [rsp + 0x2b8]
mov edx, dword [rdx + 0x10]
and edx, 0xffff
mov r8, qword [rsp + 0x2b8]
mov r8d, dword [r8 + 0x10]
shr r8d, 0x10
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov r9d, edx
lea rdx, str.version__i._i._i._i
lea rcx, [rsp + 0x2d0]
call fcn.140002740
lea rdx, [0x140005c28]
lea rcx, [rsp + 0x360]
call fcn.140002870
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x360]
call fcn.140002810
lea rdx, str._njabswitch_enables_or_disables_the_Java_Access_Bridge._n
lea rcx, [rsp + 0x360]
call fcn.140002810
lea rcx, [rsp + 0x360]
call fcn.140002a60
mov rcx, rsp
lea rdx, [0x140006490]
call fcn.140002de8
mov rcx, qword [rsp + 0x3e8]
xor rcx, rsp
call fcn.140002ef0
add rsp, 0x3f0
pop rdi
ret
Function at 0x140003a18
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1430230c2
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1430230eb
pop rbp
sub rbp, 0x33
sub rbp, 0x30230b8
sub rsp, 0x20
jmp 0x14302310a
mov rax, 0x30230b8
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xfffffffff507fc11
xor byte [rax], dl
inc rax
dec rcx
jne 0x143023129
jmp 0x143023140
pop rcx
cwde
clc
invalid

Function at 0x140702058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1407021df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140702089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14070206f
add dl, dl
jne 0x140702096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407020f6
xor eax, eax
add dl, dl
jne 0x1407020a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407021ad
add dl, dl
jne 0x1407020b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407020c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407020d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407020dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407020ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14070207e
mov eax, 1
add dl, dl
jne 0x140702106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140702113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407020fb
sub eax, ebx
mov ebx, 1
jne 0x14070214c
mov ecx, 1
add dl, dl
jne 0x14070212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14070213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140702123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14070207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140702168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140702175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14070215d
cmp eax, 0x7d00
jae 0x14070219b
cmp eax, 0x500
jb 0x140702196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14070207e
cmp eax, 0x7f
ja 0x14070219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14070207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407021d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14070207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400047e4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
jrcxz 0x14001acfd
in eax, dx
adc al, byte [rcx]
mov ecx, esp
mov esi, dword [rsi - 0x54]
or dword [rcx - 0x56], 0xffffffba
test bh, bh
invalid
Function at 0x1400012b0
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.140030b10
sub rsp, rax
mov rax, qword [0x14003f9c0]
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 0x140001399
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 0x1400013df
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x1400013df
test bpl, bpl
je 0x140001354
test ecx, ecx
je 0x140001354
lea rax, [rsp + 0x40]
mov rdx, rcx
xor byte [rax], 0x88
inc rax
sub rdx, 1
jne 0x140001348
xor ebx, ebx
test ecx, ecx
je 0x14000138b
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 0x1400013bd
add ebx, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
cmp ebx, ecx
jb 0x14000135a
mov eax, ecx
add rdi, rax
cmp rdi, rsi
jl 0x1400012f7
xor eax, eax
mov rcx, qword [rsp + 0x17b0]
xor rcx, rsp
call fcn.140016820
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.140011658
mov eax, 2
jmp 0x14000139b
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.140011658
mov eax, 1
jmp 0x14000139b
Function at 0x1400048e0
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.140030b10
sub rsp, rax
mov rax, qword [0x14003f9c0]
xor rax, rsp
mov qword [rsp + 0x1790], rax
mov bl, cl
lea rcx, str.extracting_files
call fcn.1400116ec
mov ecx, 0x7d2
call fcn.140004658
lea rcx, [0x140033210]
mov edx, eax
mov edi, eax
call fcn.1400116ec
xor r14d, r14d
cmp edi, r14d
jne 0x140004961
movzx eax, byte [0x14004d000]
cmp bl, r14b
cmovne eax, r14d
mov byte [0x14004d000], al
jmp 0x140004add
cmp bl, r14b
je 0x14000496b
call fcn.140014114
call fcn.140001058
mov edx, dword [0x1400412a4]
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 0x7d3
call fcn.140004590
lea rdx, [0x14003320c]
mov r12d, r14d
mov rcx, rax
mov rbp, rax
call fcn.14001736c
cmp edi, r14d
mov rbx, rax
jle 0x140004aa6
cmp rbx, r14
je 0x140004aa6
mov rcx, rbx
call fcn.140016100
cmp rax, r14
je 0x140004aa6
lea r8, [0x14004d000]
lea rdx, [0x140033204]
lea rcx, [rsp + 0x20]
mov r9, rbx
call fcn.140017528
mov edx, 0x5c
mov rcx, rbx
call fcn.1400160d0
mov r13, rax
cmp rax, r14
je 0x140004a56
lea rcx, [0x14004d000]
call fcn.140016100
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.1400116ec
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, r14d
jne 0x140004a56
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140004a56
lea rdx, [rsp + 0x20]
lea rcx, str.failed_to_create_directory__S
call fcn.140011658
lea r8, [0x14004d000]
lea rdx, [0x140033204]
lea rcx, [rsp + 0x20]
mov r9, rbx
call fcn.140017528
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140002c90
mov ebx, eax
cmp eax, r14d
jne 0x140004b11
lea rdx, [0x14003320c]
xor ecx, ecx
inc r12d
call fcn.14001736c
cmp r12d, edi
mov rbx, rax
jl 0x1400049b3
mov rcx, rbp
call fcn.140016490
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rsi
mov dword [0x1400412a0], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.extracting_files_done
call fcn.1400116ec
xor eax, eax
mov rcx, qword [rsp + 0x1790]
xor rcx, rsp
call fcn.140016820
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.140011658
mov rcx, rbp
call fcn.140016490
mov eax, ebx
jmp 0x140004adf

Function at 0x140004db4
Capabilities:
Delete directory
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x14004e790], 0
mov ebx, ecx
jne 0x140004df1
lea rcx, [0x14004d000]
call fcn.140016100
test rax, rax
je 0x140004df1
lea rcx, [0x14004d000]
mov dl, 1
call fcn.140004f68
lea rcx, [0x14004d000]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140004f68
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.140030b10
sub rsp, rax
mov rax, qword [0x14003f9c0]
xor rax, rsp
mov qword [rsp + 0x3040], rax
mov sil, dl
lea rdx, [0x1400333e0]
mov r8d, 1
mov rbx, rcx
call fcn.140017470
test eax, eax
je 0x14000514d
mov rcx, rbx
call fcn.140016100
test rax, rax
je 0x14000514d
lea rcx, [0x1400333c8]
mov rdx, rbx
call fcn.1400116ec
mov rcx, rbx
call fcn.140016100
test rax, rax
je 0x14000514d
lea rcx, [rsp + 0x18d0]
mov rdx, rbx
call fcn.1400166d0
lea rcx, [rsp + 0x18d0]
call fcn.140016100
cmp byte [rsp + rax + 0x18d0], 0x5c
je 0x14000501e
lea rdx, [0x1400333c4]
lea rcx, [rsp + 0x18d0]
call fcn.140016630
lea rdx, [0x1400333c0]
lea rcx, [rsp + 0x18d0]
call fcn.140016630
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x18d0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000514d
lea rdx, [0x1400333e0]
lea rcx, [rsp + 0x4c]
call fcn.1400180a0
test eax, eax
je 0x14000512e
lea rdx, [0x1400333bc]
lea rcx, [rsp + 0x4c]
call fcn.1400180a0
test eax, eax
je 0x14000512e
lea rcx, [rsp + 0x160]
mov rdx, rbx
call fcn.1400166d0
lea rcx, [rsp + 0x160]
call fcn.140016100
cmp byte [rsp + rax + 0x160], 0x5c
je 0x1400050bf
lea rdx, [0x1400333c4]
lea rcx, [rsp + 0x160]
call fcn.140016630
lea rdx, [rsp + 0x4c]
lea rcx, [rsp + 0x160]
call fcn.140016630
test byte [rsp + 0x20], 0x10
lea rdx, [rsp + 0x160]
jbe 0x140005114
lea rcx, str.attempting_to_remove__S___d_
movzx r8d, sil
call fcn.1400116ec
test sil, sil
je 0x140005104
lea rcx, [rsp + 0x160]
xor edx, edx
call fcn.140004f68
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x14000512e
lea rcx, str.attempting_to_delete__S
call fcn.1400116ec
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 0x140005052
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x3040]
xor rcx, rsp
call fcn.140016820
lea r11, [rsp + 0x3050]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140005230
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 0x14000525b
cmp dword [rsp + 0x48], 8
jae 0x14000527b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.error__d_n
mov edx, eax
call fcn.1400116ec
lea rcx, str.Internal_Error:_readLong
call fcn.140004f2c
mov rax, qword [rsp + 0x50]
add rsp, 0x38
ret