joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14017f1d0
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
push rsi
push r15
sub rsp, 0x478
mov rax, qword [0x1402f7e80]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov qword [r11 - 0x18], rbx
mov r15, rdx
mov qword [r11 - 0x20], rbp
lea rdx, str._s_s
mov qword [r11 - 0x28], rdi
mov rbx, r8
mov qword [r11 - 0x30], r14
mov rsi, rcx
mov r14, r9
lea r9, str._5_4
call fcn.140178180
mov rcx, rax
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov rdi, rax
test rax, rax
jne 0x14017f242
mov rcx, rbx
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov rdi, rax
test rax, rax
je 0x14017f367
lea r8, str.LUA_NOENV
mov edx, 0xfff0b9d8
mov rcx, rsi
call fcn.1401779b0
mov edx, 0xffffffff
mov rcx, rsi
call fcn.140178ab0
mov edx, 0xfffffffe
mov rcx, rsi
mov ebx, eax
call fcn.1401788f0
test ebx, ebx
jne 0x14017f367
lea rdx, [0x1402a6564]
mov rcx, rdi
call sub.VCRUNTIME140.dll_strstr
mov rbp, rax
test rax, rax
jne 0x14017f299
mov rdx, rdi
jmp 0x14017f36a
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], 0
jne 0x14017f2a0
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140179660
cmp rdi, rbp
jae 0x14017f2fc
mov r8, rbp
lea rcx, [rsp + 0x20]
sub r8, rdi
mov rdx, rdi
call fcn.140179420
mov rcx, qword [rsp + 0x30]
cmp rcx, qword [rsp + 0x28]
jb 0x14017f2ee
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.14017a5b0
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x20]
mov byte [rax + rcx], 0x3b
inc qword [rsp + 0x30]
mov rdx, r14
lea rcx, [rsp + 0x20]
call fcn.140179470
lea rax, [rdi - 2]
add rax, rbx
cmp rbp, rax
jae 0x14017f35b
mov rcx, qword [rsp + 0x30]
cmp rcx, qword [rsp + 0x28]
jb 0x14017f335
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.14017a5b0
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x20]
lea rdx, [rbp + 2]
sub rbx, rbp
mov byte [rax + rcx], 0x3b
lea rcx, [rsp + 0x20]
inc qword [rsp + 0x30]
lea r8, [rbx - 2]
add r8, rdi
call fcn.140179420
lea rcx, [rsp + 0x20]
call fcn.14017a5c0
jmp 0x14017f372
mov rdx, r14
mov rcx, rsi
call fcn.1401782a0
mov r8d, 0x105
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov r14, qword [rsp + 0x458]
mov rdi, qword [rsp + 0x460]
mov rbp, qword [rsp + 0x468]
mov rbx, qword [rsp + 0x470]
test eax, eax
je 0x14017f40d
cmp eax, 0x105
je 0x14017f40d
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x14017f40d
xor r8d, r8d
mov byte [rax], 0
mov rcx, rsi
lea edx, [r8 - 1]
call fcn.140178b90
mov rdx, rax
lea r9, [rsp + 0x20]
lea r8, [0x14029a320]
mov rcx, rsi
call fcn.140179df0
mov edx, 0xfffffffe
mov rcx, rsi
lea r8d, [rdx + 1]
call fcn.140178590
mov edx, 0xfffffffe
mov rcx, rsi
call fcn.1401788f0
jmp 0x14017f41c
lea rdx, str.unable_to_get_ModuleFileName
mov rcx, rsi
call fcn.140179af0
mov r8, r15
mov edx, 0xfffffffd
mov rcx, rsi
call fcn.140178680
mov edx, 0xfffffffe
mov rcx, rsi
call fcn.1401788f0
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140173d40
add rsp, 0x478
pop r15
pop rsi
ret
Function at 0x140187a40
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x450
mov rax, qword [0x1402f7e80]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov r13d, r8d
mov rbp, rdx
mov rbx, rcx
call fcn.140177c40
mov rcx, rbp
mov r15d, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_clearerr
mov rcx, rbx
sub r15d, 1
jne 0x140187abc
mov r8d, 1
mov rdx, rbp
call fcn.140188270
mov esi, eax
lea r14d, [r13 + 1]
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
je 0x140187c45
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140179c40
jmp 0x140187c62
lea edx, [r15 + 0x14]
lea r8, str.too_many_arguments
call fcn.140179920
mov esi, 1
mov r14d, r13d
dec r15d
test esi, esi
je 0x140187a9a
mov edx, r14d
mov rcx, rbx
call fcn.140178d80
mov edx, r14d
mov rcx, rbx
cmp eax, 3
jne 0x140187b80
call fcn.140179700
mov rdi, rax
test rax, rax
jne 0x140187b33
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
mov rdx, rbp
mov ecx, eax
mov edi, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ungetc
lea rdx, [0x1402c17ee]
mov rcx, rbx
call fcn.1401782a0
xor esi, esi
cmp edi, 0xffffffff
setne sil
jmp 0x140187c23
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140179660
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.14017a5b0
mov r9, rbp
mov r8, rdi
mov edx, 1
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
mov rdi, rax
call fcn.14017a5c0
xor esi, esi
test rdi, rdi
setne sil
jmp 0x140187c23
xor r8d, r8d
call fcn.140179790
movzx ecx, byte [rax]
cmp cl, 0x2a
jne 0x140187b94
movzx ecx, byte [rax + 1]
cmp cl, 0x4c
je 0x140187c13
cmp cl, 0x61
je 0x140187bc1
cmp cl, 0x6c
je 0x140187bb9
cmp cl, 0x6e
mov rcx, rbx
jne 0x140187c34
mov rdx, rbp
call fcn.140188390
jmp 0x140187c21
mov r8d, 1
jmp 0x140187c16
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140179660
nop
mov edx, 0x400
lea rcx, [rsp + 0x20]
call fcn.14017a5b0
mov r9, rbp
mov edx, 1
mov r8d, 0x400
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add qword [rsp + 0x30], rax
cmp rax, 0x400
je 0x140187bd0
lea rcx, [rsp + 0x20]
call fcn.14017a5c0
mov esi, 1
jmp 0x140187c23
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
call fcn.140188270
mov esi, eax
inc r14d
test r15d, r15d
jne 0x140187ad4
jmp 0x140187a9a
lea r8, str.invalid_format
mov edx, r14d
call fcn.140179550
jmp 0x140187c62
test esi, esi
jne 0x140187c5c
lea edx, [rsi - 2]
mov rcx, rbx
call fcn.1401788f0
mov rcx, rbx
call fcn.140178270
sub r14d, r13d
mov eax, r14d
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140173d40
add rsp, 0x450
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14018ae40
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x110
mov rax, qword [0x1402f7e80]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov r14, rdx
mov rbx, rcx
lea rdx, [rsp + 0x20]
call fcn.14018a260
mov r9, rax
test rax, rax
je 0x14018ae99
mov r8, qword [rsp + 0x20]
mov al, 3
sub r9, rbx
mov qword [r14], r8
mov byte [r14 + 8], al
lea rax, [r9 + 1]
jmp 0x14018b019
lea rdx, [0x1402a81a0]
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
test rax, rax
je 0x14018aed0
movzx edi, byte [rax]
or edi, 0x20
cmp edi, 0x6e
je 0x14018b017
cmp edi, 0x78
jne 0x14018aed2
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14018b180
jmp 0x14018aedf
xor edi, edi
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtod
mov rax, qword [rsp + 0x20]
lea rbp, [0x1402a8f30]
cmp rax, rbx
je 0x14018af24
movzx ecx, byte [rax]
test byte [rcx + rbp + 1], 8
je 0x14018af12
nop word [rax + rax]
inc rax
mov qword [rsp + 0x20], rax
movzx ecx, byte [rax]
test byte [rcx + rbp + 1], 8
jne 0x14018af00
xor r9d, r9d
test cl, cl
cmove r9, rax
test r9, r9
jne 0x14018b003
mov edx, 0x2e
mov rcx, rbx
call sub.VCRUNTIME140.dll_strchr
mov rsi, rax
test rax, rax
je 0x14018b017
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rbx + rcx], 0
jne 0x14018af44
cmp rcx, 0xc8
ja 0x14018b017
lea rdx, [rsp + 0x30]
mov rcx, rbx
sub rdx, rbx
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14018af70
call sub.api_ms_win_crt_locale_l1_1_0.dll_localeconv
sub rsi, rbx
lea rdx, [rsp + 0x20]
mov rcx, qword [rax]
movzx eax, byte [rcx]
lea rcx, [rsp + 0x30]
mov byte [rsp + rsi + 0x30], al
cmp edi, 0x78
jne 0x14018afa6
call fcn.14018b180
jmp 0x14018afab
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtod
mov rax, qword [rsp + 0x20]
lea rcx, [rsp + 0x30]
cmp rax, rcx
je 0x14018b017
movzx ecx, byte [rax]
test byte [rcx + rbp + 1], 8
je 0x14018afe2
nop dword [rax]
nop dword [rax + rax]
inc rax
mov qword [rsp + 0x20], rax
movzx ecx, byte [rax]
test byte [rcx + rbp + 1], 8
jne 0x14018afd0
xor r9d, r9d
test cl, cl
cmove r9, rax
test r9, r9
je 0x14018b017
lea rcx, [rsp + 0x30]
mov rax, rbx
sub rax, rcx
add r9, rax
test r9, r9
je 0x14018b017
mov al, reloc.WS2_32.dll_send
movsd qword [r14], xmm0
sub r9, rbx
mov byte [r14 + 8], al
lea rax, [r9 + 1]
jmp 0x14018b019
xor eax, eax
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140173d40
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14018b180
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
mov qword [rsp + 0x50], rbx
mov r12, rdx
mov rbx, rcx
call sub.api_ms_win_crt_locale_l1_1_0.dll_localeconv
xor edi, edi
lea r13, [0x1402a8f30]
xorps xmm1, xmm1
mov r10d, edi
mov esi, edi
mov r9d, edi
mov r8, qword [rax]
mov r11d, edi
movsx r14d, byte [r8]
mov qword [r12], rbx
movzx eax, byte [rbx]
test byte [rax + r13 + 1], 8
je 0x14018b1df
nop
movzx eax, byte [rbx + 1]
inc rbx
test byte [rax + r13 + 1], 8
jne 0x14018b1d0
mov qword [rsp + 0x58], r15
lea rdx, [rbx + 1]
mov ebp, 1
cmp al, 0x2d
jne 0x14018b1f6
mov r15d, ebp
jmp 0x14018b1ff
cmp al, 0x2b
mov r15d, edi
cmovne rdx, rbx
cmp byte [rdx], 0x30
mov rbx, qword [rsp + 0x50]
jne 0x14018b337
movzx eax, byte [rdx + 1]
sub al, 0x58
test al, 0xdf
jne 0x14018b337
movsd xmm2, qword [0x1402a72c0]
add rdx, 2
nop word [rax + rax]
movzx r8d, byte [rdx]
movsx rcx, r8b
cmp ecx, r14d
jne 0x14018b24a
test r11d, r11d
jne 0x14018b29f
mov r11d, ebp
inc rdx
jmp 0x14018b230
test byte [r8 + r13 + 1], 0x10
je 0x14018b29f
test r10d, r10d
jne 0x14018b261
cmp r8b, 0x30
jne 0x14018b261
inc esi
jmp 0x14018b292
inc r10d
cmp r10d, 0x1e
jg 0x14018b28f
test byte [rcx + r13 + 1], 2
je 0x14018b277
add ecx, 0xffffffd0
jmp 0x14018b27d
or ecx, 0x20
sub ecx, 0x57
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
jmp 0x14018b292
inc r9d
test r11d, r11d
je 0x14018b29a
dec r9d
inc rdx
jmp 0x14018b230
lea eax, [rsi + r10]
test eax, eax
je 0x14018b337
mov qword [r12], rdx
lea r9d, [r9*4]
movzx eax, byte [rdx]
sub al, 0x50
test al, 0xdf
jne 0x14018b31e
movzx ecx, byte [rdx + 1]
cmp cl, 0x2d
jne 0x14018b2d0
mov eax, 2
jmp 0x14018b2de
cmp cl, 0x2b
mov rax, rdi
mov ebp, edi
sete al
inc rax
lea r8, [rdx + rax]
movzx edx, byte [rdx + rax]
test byte [rdx + r13 + 1], 2
je 0x14018b337
nop
movsx eax, dl
lea edi, [rdi + rdi*4]
inc r8
lea edi, [rdi - 0x18]
lea edi, [rax + rdi*2]
movzx eax, byte [r8]
movzx edx, al
test byte [rax + r13 + 1], 2
jne 0x14018b2f0
mov eax, edi
mov qword [r12], r8
neg eax
test ebp, ebp
cmove eax, edi
add r9d, eax
test r15d, r15d
je 0x14018b32a
xorps xmm1, xmmword [0x140202ca0]
mov edx, r9d
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_ldexp
jmp 0x14018b33a
xorps xmm0, xmm0
mov r15, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14018ecc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp rdx, r8
je 0x14018edcf
push rbx
sub rsp, 0x20
mov qword [rsp + 0x30], rdi
mov r11, r8
lea rdi, [0x140000000]
mov r10, rdx
mov rbx, rcx
movzx edx, byte [r10 + 9]
movzx eax, dl
and al, 7
cmp al, 3
jne case.0x14018ed2a.8
xor dl, 7
mov byte [r10 + 9], dl
test dl, 0x20
je case.0x14018ed2a.8
movzx eax, byte [r10 + 8]
add eax, 0xfffffffc
cmp eax, 0x22
ja case.0x14018ed2a.8
cdqe
movzx eax, byte [rdi + rax + 0x18ede4]
mov ecx, dword [rdi + rax*4 + 0x18edd0]
add rcx, rdi
jmp rcx
and dl, 0xe7
or dl, 0x20
mov byte [r10 + 9], dl
jmp case.0x14018ed2a.8
mov rcx, qword [r10 + 0x10]
lea rax, [r10 + 0x18]
cmp rcx, rax
je 0x14018ed4d
and dl, 0xc7
jmp 0x14018ed53
and dl, 0xe7
or dl, 0x20
mov byte [r10 + 9], dl
test byte [rcx + 8], 0x40
je case.0x14018ed2a.8
mov rdx, qword [rcx]
test byte [rdx + 9], 0x18
je case.0x14018ed2a.8
mov rcx, rbx
call fcn.14018f3f0
jmp case.0x14018ed2a.8
cmp word [r10 + 0xa], 0
jne case.0x14018ed2a.5
mov rdx, qword [r10 + 0x18]
test rdx, rdx
je 0x14018ed8f
test byte [rdx + 9], 0x18
je 0x14018ed8f
mov rcx, rbx
call fcn.14018f3f0
and byte [r10 + 9], 0xe7
or byte [r10 + 9], 0x20
jmp case.0x14018ed2a.8
mov rcx, r10
call fcn.14018e260
mov rcx, qword [rbx + 0x88]
mov qword [rax], rcx
mov qword [rbx + 0x88], r10
and byte [r10 + 9], 0xc7
mov r10, qword [r10]
cmp r10, r11
jne 0x14018ece3
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret

Function at 0x140190830
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov eax, 1
movzx ecx, byte [rdx + 0xb]
mov rdi, rdx
shl eax, cl
mov rcx, rdx
cdqe
lea r8, [rax + rax*2]
mov rax, qword [rdx + 0x18]
lea rsi, [rax + r8*8]
call fcn.140191f20
test eax, eax
je 0x140190898
xor r10d, r10d
mov r11d, eax
mov rax, qword [rdi + 0x10]
test byte [r10 + rax + 8], 0x40
je 0x14019088e
mov rdx, qword [r10 + rax]
test byte [rdx + 9], 0x18
je 0x14019088e
mov rcx, rbx
call fcn.14018f3f0
add r10, 0x10
sub r11, 1
jne 0x140190870
mov r10, qword [rdi + 0x18]
cmp r10, rsi
jae 0x1401908ef
test byte [r10 + 8], 0xf
movzx eax, byte [r10 + 9]
jne 0x1401908b8
test al, 0x40
je 0x1401908e6
mov byte [r10 + 9], listen
jmp 0x1401908e6
test al, 0x40
je 0x1401908ce
mov rdx, qword [r10 + 0x10]
test byte [rdx + 9], 0x18
je 0x1401908ce
mov rcx, rbx
call fcn.14018f3f0
test byte [r10 + 8], 0x40
je 0x1401908e6
mov rdx, qword [r10]
test byte [rdx + 9], 0x18
je 0x1401908e6
mov rcx, rbx
call fcn.14018f3f0
add r10, 0x18
cmp r10, rsi
jb 0x1401908a1
movzx eax, byte [rdi + 9]
movzx ecx, al
and cl, 7
cmp cl, 5
jne 0x14019092b
mov rcx, rdi
call fcn.14018e260
mov rcx, qword [rbx + 0x90]
mov qword [rax], rcx
mov qword [rbx + 0x90], rdi
and byte [rdi + 9], 0xc7
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp cl, 6
jne 0x140190935
xor al, 2
mov byte [rdi + 9], al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140190e10
Capabilities:
Encode data using xor

Disassembly:
mov eax, edx
mov r9, rcx
xor eax, r8d
test rdx, rdx
je 0x140190e3f
nop dword [rax]
movzx r8d, byte [r9 + rdx - 1]
mov ecx, eax
shl ecx, 5
add r8d, ecx
mov ecx, eax
shr ecx, 2
add r8d, ecx
xor eax, r8d
sub rdx, 1
jne 0x140190e20
ret

Function at 0x1401910a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rsi, r8
mov rbp, rdx
cmp r8, 0x28
ja 0x1401910c5
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
jmp fcn.140190b50
movabs rax, 0x7fffffffffffffdf
cmp rsi, rax
jae 0x14019112d
mov rax, qword [rcx + 0x18]
add r8, 0x19
mov qword [rsp + 0x30], rbx
mov edx, reloc.WS2_32.dll_sendto
mov qword [rsp + 0x38], rdi
mov ebx, dword [rax + 0x60]
call fcn.14018e6f0
mov r8, rsi
mov rdx, rbp
mov rdi, rax
mov dword [rax + 0xc], ebx
lea rcx, [rax + 0x18]
mov byte [rax + 0xa], 0
mov byte [rax + rsi + 0x18], 0
mov qword [rax + 0x10], rsi
call sub.VCRUNTIME140.dll_memcpy
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
call fcn.140198840
int3
Function at 0x140011203
Capabilities:
Terminate process

Disassembly:
jmp 0x140014b90
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011294
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015ee0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015f00
xor al, al
jmp 0x140015f81
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015f13
xor al, al
jmp 0x140015f81
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140015f3d
xor al, al
jmp 0x140015f81
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015f51
xor al, al
jmp 0x140015f81
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015f63
xor al, al
jmp 0x140015f81
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140015f7f
xor al, al
jmp 0x140015f81
mov al, 1
add rsp, 0x38
ret
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.140030d40
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.140016a50
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.14001161c
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.14001161c
mov eax, 1
jmp 0x140001397
Function at 0x14000491c
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.140030d40
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.1400116b0
mov ecx, 0x7d2
call fcn.140004694
lea rcx, [0x140034240]
mov edx, eax
mov edi, eax
call fcn.1400116b0
xor r14d, r14d
cmp edi, r14d
jne 0x14000499d
movzx eax, byte [0x14004e000]
cmp bl, r14b
cmovne eax, r14d
mov byte [0x14004e000], al
jmp 0x140004b19
cmp bl, r14b
je 0x1400049a7
call fcn.1400140d8
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.1400045cc
lea rdx, [0x14003423c]
mov r12d, r14d
mov rcx, rax
mov rbp, rax
call fcn.14001759c
cmp edi, r14d
mov rbx, rax
jle 0x140004ae2
cmp rbx, r14
je 0x140004ae2
mov rcx, rbx
call fcn.140016330
cmp rax, r14
je 0x140004ae2
lea r8, [0x14004e000]
lea rdx, [0x140034234]
lea rcx, [rsp + 0x20]
mov r9, rbx
call fcn.140017758
mov edx, 0x5c
mov rcx, rbx
call fcn.140016304
mov r13, rax
cmp rax, r14
je 0x140004a92
lea rcx, [0x14004e000]
call fcn.140016330
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.1400116b0
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, r14d
jne 0x140004a92
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140004a92
lea rdx, [rsp + 0x20]
lea rcx, str.failed_to_create_directory__S
call fcn.14001161c
lea r8, [0x14004e000]
lea rdx, [0x140034234]
lea rcx, [rsp + 0x20]
mov r9, rbx
call fcn.140017758
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140002ccc
mov ebx, eax
cmp eax, r14d
jne 0x140004b4d
lea rdx, [0x14003423c]
xor ecx, ecx
inc r12d
call fcn.14001759c
cmp r12d, edi
mov rbx, rax
jl 0x1400049ef
mov rcx, rbp
call fcn.1400166c0
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.1400116b0
xor eax, eax
mov rcx, qword [rsp + 0x1790]
xor rcx, rsp
call fcn.140016a50
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.14001161c
mov rcx, rbp
call fcn.1400166c0
mov eax, ebx
jmp 0x140004b1b

Function at 0x140004df0
Capabilities:
Delete directory
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x14004f790], 0
mov ebx, ecx
jne 0x140004e2d
lea rcx, [0x14004e000]
call fcn.140016330
test rax, rax
je 0x140004e2d
lea rcx, [0x14004e000]
mov dl, 1
call fcn.140004fa4
lea rcx, [0x14004e000]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140004fa4
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.140030d40
sub rsp, rax
mov rax, qword [0x1400409c0]
xor rax, rsp
mov qword [rsp + 0x3040], rax
mov sil, dl
lea rdx, [0x140034410]
mov r8d, 1
mov rbx, rcx
call fcn.1400176a0
test eax, eax
je 0x140005189
mov rcx, rbx
call fcn.140016330
test rax, rax
je 0x140005189
lea rcx, [0x1400343f8]
mov rdx, rbx
call fcn.1400116b0
mov rcx, rbx
call fcn.140016330
test rax, rax
je 0x140005189
lea rcx, [rsp + 0x18d0]
mov rdx, rbx
call fcn.140016900
lea rcx, [rsp + 0x18d0]
call fcn.140016330
cmp byte [rsp + rax + 0x18d0], 0x5c
je 0x14000505a
lea rdx, [0x1400343f4]
lea rcx, [rsp + 0x18d0]
call fcn.140016860
lea rdx, [0x1400343f0]
lea rcx, [rsp + 0x18d0]
call fcn.140016860
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x18d0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140005189
lea rdx, [0x140034410]
lea rcx, [rsp + 0x4c]
call fcn.1400182d0
test eax, eax
je 0x14000516a
lea rdx, [0x1400343ec]
lea rcx, [rsp + 0x4c]
call fcn.1400182d0
test eax, eax
je 0x14000516a
lea rcx, [rsp + 0x160]
mov rdx, rbx
call fcn.140016900
lea rcx, [rsp + 0x160]
call fcn.140016330
cmp byte [rsp + rax + 0x160], 0x5c
je 0x1400050fb
lea rdx, [0x1400343f4]
lea rcx, [rsp + 0x160]
call fcn.140016860
lea rdx, [rsp + 0x4c]
lea rcx, [rsp + 0x160]
call fcn.140016860
test byte [rsp + 0x20], 0x10
lea rdx, [rsp + 0x160]
jbe 0x140005150
lea rcx, str.attempting_to_remove__S___d_
movzx r8d, sil
call fcn.1400116b0
test sil, sil
je 0x140005140
lea rcx, [rsp + 0x160]
xor edx, edx
call fcn.140004fa4
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x14000516a
lea rcx, str.attempting_to_delete__S
call fcn.1400116b0
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 0x14000508e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x3040]
xor rcx, rsp
call fcn.140016a50
lea r11, [rsp + 0x3050]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

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