joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff6c5d92cb0
Capabilities:
Read http header

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov dword [rax - 0x18], esi
mov qword [rcx], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
mov dword [rax - 0x18], 1
mov dword [rax + 0x18], esi
mov qword [rax - 0x20], rsi
lea rax, [rax + 0x18]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x14]
mov rcx, rdi
call qword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
mov edx, dword [rsp + 0x60]
mov rax, qword [rbx + 0x10]
cmp rdx, rax
ja 0x7ff6c5d92d2e
mov qword [rbx + 0x10], rdx
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x7ff6c5d92d28
mov rax, qword [rbx]
mov word [rax + rdx*2], si
jmp 0x7ff6c5d92d3c
xor r8d, r8d
sub rdx, rax
mov rcx, rbx
call fcn.7ff6c5d5fd20
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x7ff6c5d92d49
mov r9, qword [rbx]
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r8 + 0x14]
mov rcx, rdi
call qword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
mov r8, qword [rbx + 0x10]
test r8, r8
je 0x7ff6c5d92e7f
mov r9, qword [rbx + 0x18]
cmp r9, 8
jb 0x7ff6c5d92d87
mov rax, qword [rbx]
mov rcx, rax
jmp 0x7ff6c5d92d8d
mov rax, rbx
mov rcx, rbx
lea rdx, [r8 + r8]
add rax, rdx
cmp word [rcx], 0
jne 0x7ff6c5d92e0f
lea rdx, [rcx + 2]
cmp rdx, rax
je 0x7ff6c5d92db2
cmp word [rdx], 0
jne 0x7ff6c5d92de0
add rdx, 2
cmp rdx, rax
jne 0x7ff6c5d92da3
mov qword [rbx + 0x10], rsi
mov rax, rbx
cmp r9, 8
jb 0x7ff6c5d92dc2
mov rax, qword [rbx]
mov word [rax], si
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
sub rax, 2
cmp word [rax], 0
je 0x7ff6c5d92de0
sub rax, rdx
lea r8, [rax + 2]
sar r8, 1
mov rcx, rbx
call fcn.7ff6c5cd5750
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
sub rax, 2
cmp word [rax], 0
jne 0x7ff6c5d92e7f
nop dword [rax]
mov rcx, rax
sub rax, 2
cmp word [rax], 0
je 0x7ff6c5d92e20
sub rdx, rcx
mov rax, r8
cmp r9, 8
mov r9, rcx
jb 0x7ff6c5d92e47
sub r9, qword [rbx]
add rdx, qword [rbx]
mov rcx, qword [rbx]
jmp 0x7ff6c5d92e50
sub r9, rbx
add rdx, rbx
mov rcx, rbx
sar r9, 1
sar rdx, 1
sub rax, r9
cmp rax, rdx
cmovb rdx, rax
lea rcx, [rcx + r9*2]
sub r8, rdx
mov qword [rbx + 0x10], r8
sub r8, r9
lea r8, [r8*2 + 2]
lea rdx, [rcx + rdx*2]
call sub.VCRUNTIME140.dll_memcpy_1
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x7ff6c5d92ea0
Capabilities:
Read http header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x7ff6c5e036d8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, r8
mov r12, rdx
mov r14, rcx
mov rdi, qword [r8]
mov rbx, qword [rdi + 0x58]
mov r8, qword [rbx + 8]
lea rdx, [rdi + 0x58]
lea rcx, [rdi + 0x58]
call fcn.7ff6c5d29630
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
xor r15d, r15d
mov qword [rdi + 0x60], r15
mov dword [rbp - 0x40], r15d
mov qword [rsp + 0x28], r15
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 0x13]
mov rcx, r14
call qword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r15w
mov edx, dword [rbp - 0x40]
test rdx, rdx
jne 0x7ff6c5d92f41
mov qword [rbp - 0x20], rdx
mov word [rbp + rdx*2 - 0x30], r15w
jmp 0x7ff6c5d92f4d
xor r8d, r8d
lea rcx, [rbp - 0x30]
call fcn.7ff6c5d5fd20
lea r9, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae r9, qword [rbp - 0x30]
mov qword [rsp + 0x28], r15
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r8 + 0x13]
mov rcx, r14
call qword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
call qword [sym.imp.ucrtbase.dll__errno]
mov rdi, rax
lea rbx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rbx, qword [rbp - 0x30]
mov dword [rax], r15d
mov r8d, 0xa
lea rdx, [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_wcstol]
mov r15d, eax
cmp rbx, qword [rbp - 0x38]
je 0x7ff6c5d930aa
cmp dword [rdi], 0x22
je 0x7ff6c5d930b7
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x7ff6c5d92fff
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff6c5d92ffa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff6c5d92ffa
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff6c5d5e4b0
mov rax, qword [rsi]
mov word [rax + 0x88], r15w
mov rdx, r14
lea rcx, [rbp - 0x30]
call fcn.7ff6c5d92cb0
nop
mov rcx, qword [rsi]
add rcx, 0x90
cmp rcx, rax
je 0x7ff6c5d9303d
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x7ff6c5d93033
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
call fcn.7ff6c5cd5750
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x7ff6c5d93080
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff6c5d9307b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff6c5d9307b
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff6c5d5e4b0
mov rdx, qword [rsi]
add rdx, 0x58
mov rcx, r12
call fcn.7ff6c5d73a20
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.7ff6c5d967d0
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [0x7ff6c5da85d0]
call sub.msvcp140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_
int3
lea rcx, [0x7ff6c5da85e8]
call sub.msvcp140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_
int3
Function at 0x140024040
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
mov r8, rdx
mov eax, dword [0x1400903d0]
mov edx, dword [0x1400903d4]
shrd edx, eax, 0x1c
xor edx, 0xb38add05
cmp dword [0x140099bd4], edx
je 0x1400240ff
lea r10, [r8 + 0x13]
xor eax, eax
nop dword [rax]
movsxd r11, eax
mov eax, dword [0x1400903d8]
mov edx, dword [0x1400903dc]
shrd edx, eax, 0x10
movzx ebx, byte [r10 + r11]
mov esi, edx
xor esi, 0x8c2701f4
mov r9d, r11d
mov eax, r11d
xor edx, edx
div esi
movsxd rax, edx
xor bl, byte [r8 + rax]
mov byte [rcx + r11], bl
mov eax, dword [0x1400903e0]
mov edx, dword [0x1400903e4]
shrd edx, eax, 6
xor edx, 0x3eedad32
add edx, r11d
mov eax, dword [0x1400903e8]
mov r9d, dword [0x1400903ec]
shrd r9d, eax, 0x1b
xor r9d, 0xf2bcddfa
mov eax, edx
cmp edx, r9d
jne 0x140024070
imul eax, dword [0x1400903f0], 0xf0059ca0
imul ecx, dword [0x1400903f4], 0xfd3a265
add eax, ecx
add eax, 0x68ad0079
mov dword [0x140099bd4], eax
mov eax, dword [0x1400903f8]
mov ecx, dword [0x1400903fc]
shrd ecx, eax, 0x16
mov eax, ecx
xor eax, 0xbfaf9400
pop rbx
pop rsi
ret

Function at 0x140024120
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
mov r8, rdx
mov eax, dword [0x140090400]
mov edx, dword [0x140090404]
shrd edx, eax, 5
xor edx, 0x853a718c
cmp dword [0x140099bfc], edx
je 0x1400241df
lea r10, [r8 + 0x1d]
xor eax, eax
nop dword [rax]
movsxd r11, eax
mov eax, dword [0x140090408]
mov edx, dword [0x14009040c]
shrd edx, eax, 0x1b
movzx ebx, byte [r10 + r11]
mov esi, edx
xor esi, 0x238ceca2
mov r9d, r11d
mov eax, r11d
xor edx, edx
div esi
movsxd rax, edx
xor bl, byte [r8 + rax]
mov byte [rcx + r11], bl
mov eax, dword [0x140090410]
mov edx, dword [0x140090414]
shrd edx, eax, 1
xor edx, 0xa2f8a2c9
add edx, r11d
mov eax, dword [0x140090418]
mov r9d, dword [0x14009041c]
shrd r9d, eax, 0x1e
xor r9d, 0xb1048167
mov eax, edx
cmp edx, r9d
jne 0x140024150
imul eax, dword [0x140090420], 0xf76e3b5d
imul ecx, dword [0x140090424], 0x12952367
add eax, ecx
add eax, 0xbbd77bd8
mov dword [0x140099bfc], eax
mov eax, dword [0x140090428]
mov ecx, dword [0x14009042c]
shrd ecx, eax, 9
mov eax, ecx
xor eax, 0xb9cbd29c
pop rbx
pop rsi
ret
Function at 0x140024200
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
mov r8, rdx
imul eax, dword [0x140090430], 0x5f7ceb22
imul edx, dword [0x140090434], 0x389ea901
add eax, edx
add eax, 0x3aa65ce7
cmp dword [0x140099c08], eax
je 0x1400242d5
lea r10, [r8 + 0x1f]
xor eax, eax
nop word cs:[rax + rax]
movsxd r11, eax
mov eax, dword [0x140090438]
mov edx, dword [0x14009043c]
shrd edx, eax, 0x13
movzx ebx, byte [r10 + r11]
mov esi, edx
xor esi, 0x1edadc5c
mov r9d, r11d
mov eax, r11d
xor edx, edx
div esi
movsxd rax, edx
xor bl, byte [r8 + rax]
mov byte [rcx + r11], bl
mov eax, dword [0x140090440]
mov edx, dword [0x140090444]
shrd edx, eax, 6
xor edx, 0x74085316
imul eax, dword [0x140090448], 0xf70503f9
add edx, r11d
imul r9d, dword [0x14009044c], 0x2a03fd2
add r9d, eax
add r9d, 0x1a7b2d85
mov eax, edx
cmp edx, r9d
jne 0x140024240
imul eax, dword [0x140090450], 0x7f71029d
imul ecx, dword [0x140090454], 0xa1a018
add eax, ecx
add eax, 0x2aa9ea8d
mov dword [0x140099c08], eax
mov eax, dword [0x140090458]
mov ecx, dword [0x14009045c]
shrd ecx, eax, 9
mov eax, ecx
xor eax, 0x87a89ff9
pop rbx
pop rsi
ret
Function at 0x180001250
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x460
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor r12d, r12d
lea r8, str.ntdll.dll
mov rdi, 0xffffffffffffffff
mov dword [rsp + 0x28], r12d
mov r9d, edi
mov qword [rsp + 0x20], r12
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
mov eax, 2
mul rbx
cmovo rax, rdi
mov rcx, rax
call fcn.18000204c
mov r9d, edi
mov dword [rsp + 0x28], ebx
lea r8, str.ntdll.dll
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
mov r14, rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword gs:[0x60]
mov rdx, qword [rcx + 0x18]
mov rsi, qword [rdx + 0x20]
test rsi, rsi
je 0x1800013dc
cmp word [rsi + 0x48], r12w
je 0x1800013dc
mov rbp, qword [rsi + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, r14
movsxd rdi, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r15, eax
cmp edi, 0x104
jge 0x1800013d0
cmp r15d, 0x104
jge 0x1800013d0
mov rbx, r12
test rdi, rdi
jle 0x18000136a
nop word [rax + rax]
movzx ecx, word [rbp + rbx*2]
call fcn.18000af4c
mov word [rsp + rbx*2 + 0x240], ax
inc rbx
cmp rbx, rdi
jl 0x180001350
add rbx, rbx
cmp rbx, 0x208
jae 0x180001422
mov word [rsp + rbx + 0x240], r12w
mov rbx, r12
test r15d, r15d
jle 0x1800013a7
nop dword [rax + rax]
movzx ecx, word [r14 + rbx*2]
call fcn.18000af4c
mov word [rsp + rbx*2 + 0x30], ax
inc rbx
cmp rbx, r15
jl 0x180001390
add rbx, rbx
cmp rbx, 0x208
jae 0x180001422
lea rdx, [rsp + 0x30]
mov word [rsp + rbx + 0x30], r12w
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18000141c
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180001302
lea rcx, str.___Module_not_found_in_PEB
call fcn.180001010
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.180001d20
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
mov rax, qword [rsi + 0x20]
jmp 0x1800013ea
call fcn.180001eb8
int3
Function at 0x180001430
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x110
mov edi, edx
mov r8, rcx
test rcx, rcx
je 0x1800015aa
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800015aa
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x1800015aa
movups xmm0, xmmword [rax + 0x18]
lea rcx, [rsp + 0x20]
mov qword [r11 + 0x10], rbp
movups xmm1, xmmword [rax + 0x28]
mov qword [r11 + 0x18], rsi
xor r9d, r9d
movups xmmword [rcx], xmm0
mov qword [r11 + 8], rbx
movups xmm0, xmmword [rax + 0x38]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x48]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x58]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x68]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x78]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax + 0x88]
sub rax, 0xffffffffffffff68
movups xmmword [rcx - 0x10], xmm0
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rcx], xmm1
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm0
movups xmm0, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm1
movups xmm1, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm0
movups xmm0, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm1
movups xmm1, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x60], xmm1
mov eax, dword [r11 - 0x88]
add rax, r8
mov r10d, dword [rax + 0x20]
mov ebp, dword [rax + 0x1c]
add r10, r8
mov r11d, dword [rax + 0x24]
add rbp, r8
mov esi, dword [rax + 0x14]
add r11, r8
test esi, esi
je 0x180001574
nop dword [rax + rax]
movzx eax, word [r11]
mov ecx, dword [r10]
add rcx, r8
mov ebx, dword [rbp + rax*4]
mov eax, 0x10
add rbx, r8
movsx edx, byte [rcx]
test edx, edx
je 0x180001560
nop dword [rax]
imul eax, eax, 0x21
lea rcx, [rcx + 1]
add eax, edx
movsx edx, byte [rcx]
test edx, edx
jne 0x180001550
cmp edi, eax
je 0x1800015a5
inc r9d
add r11, 2
add r10, 4
cmp r9d, esi
jb 0x180001530
mov edx, edi
lea rcx, str._n_t____Function_with_hash__lu_not_found_n
call fcn.180001070
xor eax, eax
mov rbx, qword [rsp + 0x120]
mov rbp, qword [rsp + 0x128]
mov rsi, qword [rsp + 0x130]
add rsp, 0x110
pop rdi
ret
mov rax, rbx
jmp 0x180001584
xor eax, eax
add rsp, 0x110
pop rdi
ret
Function at 0x180001850
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov r9d, 0x18
mov dword [rsp + 0x30], 0x4b840
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x180001953
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x180001953
mov rcx, qword [rsp + 0x60]
lea rdx, [0x180071300]
xor r9d, r9d
lea r8d, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x180001953
mov r8, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov edx, 0x6610
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x180001953
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [0x180025ac0]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x180001953
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor eax, eax
add rsp, 0x48
ret
mov eax, 0xffffffff
add rsp, 0x48
ret
Function at 0x180010c50
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180010c80
xor eax, eax
jmp 0x180010d43
mov rbp, rbx
cmp word [rax], si
je 0x180010ca5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180010c8c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180010c88
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180010b70
movsxd r14, eax
test eax, eax
jne 0x180010ce3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180010c79
mov rcx, r14
call fcn.18000c14c
mov rdi, rax
test rax, rax
jne 0x180010cfc
xor ecx, ecx
call fcn.18000c110
jmp 0x180010cd8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180010b70
test eax, eax
jne 0x180010d2d
mov rcx, rdi
call fcn.18000c110
jmp 0x180010d37
xor ecx, ecx
call fcn.18000c110
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1800134b8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800134ce
mov al, 1
jmp 0x18001352e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800134df
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18001352c
mov ecx, dword [rcx + 0x18]
nop
call fcn.180013e1c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18001352c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18001352c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18001352c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18001352e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800178f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180017918
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180017918
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400162a0]
xor edi, edi
mov rax, qword gs:[0x30]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x1400162b0]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140019008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140016210]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.14000ce80
mov rcx, qword [0x140016330]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140016290]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14000cc90
mov ebx, dword [0x140019028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test ebx, ebx
mov r12, qword [0x140019020]
mov rbp, rax
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea rsi, [rax + rax + 2]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140019020], rbp
call fcn.14000ca90
mov rax, qword [0x140016220]
mov r8, qword [0x140019018]
mov ecx, dword [0x140019028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140019020]
call fcn.140001450
mov ecx, dword [0x14001900c]
mov dword [0x140019010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140019008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x1400162b0]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.14000e5a0
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x1400162d0]
mov rcx, qword [0x1400162c0]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
test edi, edi
mov dword [rsi], 2
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x140019010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1400162f0]
mov dword [rsi], 1
mov rcx, qword [0x1400162e0]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b6
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
sub rsp, 0x28
mov rax, qword [0x140016240]
mov dword [rax], 1
call fcn.140001180
nop
nop
add rsp, 0x28
ret
Function at 0x140001770
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
lea rcx, [rcx + 0x70]
lea rdx, [0x140010129]
call fcn.1400034d0
test rax, rax
mov rbp, rax
je 0x1400018a0
mov edx, dword [r12 + 4]
xor r8d, r8d
mov rcx, rax
add edx, dword [rbx]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140001880
mov esi, dword [r12 + 0xc]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test rax, rax
mov r13, rax
je 0x1400018b6
cmp byte [r12 + 0x10], 1
je 0x140001860
test rsi, rsi
mov rdi, rax
jne 0x1400017f8
jmp 0x140001840
add rdi, rbx
sub rsi, rbx
je 0x140001840
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
cmp rsi, rbx
mov rcx, rdi
cmovbe rbx, rsi
mov rdx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test rax, rax
jne 0x1400017f0
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002290
mov rcx, r13
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r13d, r13d
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r8d, r8d
mov r9, rax
mov rdx, r12
mov rcx, rbp
call fcn.140001490
test eax, eax
je 0x140001840
jmp 0x140001835
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140002290
jmp 0x14000183d
lea rdx, [r12 + 0x12]
xor r13d, r13d
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140002230
jmp 0x140001848
lea r8, [r12 + 0x12]
mov r9d, esi
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.140002290
jmp 0x14000183d