joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e0844
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 0x1400e0874
xor eax, eax
jmp 0x1400e0937
mov rbp, rbx
cmp word [rax], si
je 0x1400e0899
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400e0880
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400e087c
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.1400e0764
movsxd r14, eax
test eax, eax
jne 0x1400e08d7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400e086d
mov rcx, r14
call fcn.1400e12d8
mov rdi, rax
test rax, rax
jne 0x1400e08f0
xor ecx, ecx
call fcn.1400ded9c
jmp 0x1400e08cc
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.1400e0764
test eax, eax
jne 0x1400e0921
mov rcx, rdi
call fcn.1400ded9c
jmp 0x1400e092b
xor ecx, ecx
call fcn.1400ded9c
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 0x1400e60a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400e60c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400e60c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14001a540
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
push r13
push r14
sub rsp, 0xb8
mov r13, rcx
movsxd rax, r9d
xor ecx, ecx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0xe8], ecx
mov r14, rdx
test r9d, r9d
jle 0x14001a7a2
mov qword [r11 + 8], rbx
lea rbx, [r8 + 0x20]
mov qword [r11 + 0x10], rbp
movzx ebp, byte [r13 + 0x24]
mov qword [r11 + 0x18], rsi
mov qword [r11 - 0x18], rdi
mov edi, 0x100
mov qword [r11 - 0x20], r12
xor r12d, r12d
mov qword [r11 - 0x28], r15
movaps xmmword [r11 - 0x38], xmm6
movaps xmmword [r11 - 0x48], xmm7
xorps xmm7, xmm7
movaps xmmword [r11 - 0x58], xmm8
movzx r11d, byte [r13 + 0x20]
movss xmm8, dword [0x1400401b0]
nop word [rax + rax]
movss xmm6, dword [rbx - 0x20]
comiss xmm6, xmm7
jbe 0x14001a60a
movsxd r10, dword [r14 + 0x24]
mov r9, qword [r14 + 8]
movsx ecx, di
movzx eax, byte [r10 + r9 + 7]
movzx edx, byte [r10 + r9 + 6]
imul edx, ecx
movsx ecx, di
add dx, ax
movzx eax, byte [r10 + r9 + 5]
movsx r8d, dx
movzx edx, byte [r10 + r9 + 4]
imul edx, ecx
add ax, dx
cwde
sub eax, r8d
movd xmm0, eax
jmp 0x14001a629
movsxd rdx, dword [r14 + 0x1c]
xorps xmm6, xmm8
mov rax, qword [r14 + 8]
movzx ecx, byte [rdx + rax + 0x12]
movzx eax, byte [rdx + rax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
xor edi, edi
mov byte [rbx], r11b
mov byte [rbx + 1], bpl
divss xmm6, xmm0
cmp dword [rbx - 0x10], edi
jle 0x14001a740
mov r15, qword [rsp + 0xf0]
mov rax, r12
shl rax, 4
add r15, 6
xor esi, esi
add r15, rax
nop word [rax + rax]
mov rax, qword [rbx - 0x18]
test rax, rax
jne 0x14001a670
mov edx, dword [rbx - 0x1c]
add edx, edi
jmp 0x14001a673
mov edx, dword [rax + rsi]
mov eax, dword [r13 + 0x24]
xorps xmm3, xmm3
xorps xmm2, xmm2
mov rcx, r14
cvtsi2ss xmm3, rax
mov eax, dword [r13 + 0x20]
cvtsi2ss xmm2, rax
mulss xmm3, xmm6
mulss xmm2, xmm6
call fcn.140015870
mov edx, eax
mov rcx, r14
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
movss dword [rsp + 0x28], xmm7
movss dword [rsp + 0x20], xmm7
call fcn.1400181a0
movzx ecx, word [r13 + 0x1c]
inc r12
movzx r11d, word [r13 + 0x20]
movzx eax, cx
sub ax, word [rsp + 0x50]
dec cx
movzx ebp, word [r13 + 0x24]
dec ax
add ax, r11w
inc edi
add ax, word [rsp + 0x54]
add rsi, 4
mov word [r15 - 2], ax
movzx eax, bp
sub ax, word [rsp + 0x58]
add ax, cx
mov ecx, dword [rsp + 0xe8]
add ax, word [rsp + 0x5c]
inc ecx
mov word [r15], ax
add r15, 0x10
mov dword [rsp + 0xe8], ecx
cmp edi, dword [rbx - 0x10]
jl 0x14001a660
jmp 0x14001a747
mov ecx, dword [rsp + 0xe8]
add rbx, 0x28
mov edi, 0x100
sub qword [rsp + 0x60], 1
jne 0x14001a5c0
movaps xmm8, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x90]
mov r15, qword [rsp + 0xa0]
mov r12, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xe0]
mov rbp, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xd0]
mov eax, ecx
add rsp, 0xb8
pop r14
pop r13
ret
Function at 0x14001e4a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x14001e659
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov esi, r9d
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x14001e536
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.14001de10
mov r8d, dword [rbx + 0x80]
mov r9d, esi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.14001d420
mov ecx, dword [rbx + 0x84]
test ecx, ecx
jns 0x14001e527
mov eax, ecx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x80]
test eax, eax
cmovg edx, eax
call fcn.1400131c0
mov dword [rbx + 0x80], 0
jmp 0x14001e645
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
mov r8d, 4
call fcn.14001c300
movzx edx, word [rbx + 0x48]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rdi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rdi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], esi
movsd xmm0, qword [rdi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], esi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x48], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140032320
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140047040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov ebx, r8d
mov rdi, rdx
xor edx, edx
cmp ecx, 0x7b
ja 0x140032354
movsxd rax, ecx
lea rdx, [0x140047210]
mov rdx, qword [rdx + rax*8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x14003fcb0]
movdqu xmmword [rsp + 0x48], xmm1
mov byte [rsp + 0x38], 0
test rdx, rdx
jne 0x140032383
mov r8d, 0xa
lea rdx, str.Select_Key
jmp 0x14003239a
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140032390
lea rcx, [rsp + 0x38]
call fcn.140037d60
cmp ebx, 1
jne 0x1400323c0
mov r8d, 9
lea rdx, str.Press_Key
lea rcx, [rsp + 0x38]
call fcn.140037d60
mov dword [rsp + 0x30], 0x42fa0000
mov dword [rsp + 0x34], 0x41c80000
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0xf
cmova rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x30]
call fcn.140024790
test al, al
je 0x140032411
test ebx, ebx
jne 0x140032411
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x140032451
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003244c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003244c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140039374
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140038f60
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140039c90
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140039cda
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140039cda
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140039cda
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140039cda
cmp dword [rcx + 0x84], 0xe
jbe 0x140039cda
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140039cdc
xor al, al
add rsp, 0x28
ret
Function at 0x1400017f1
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbp
sub rsp, 0x2c0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x250], rcx
mov qword [rbp + 0x258], rdx
lea rax, [rbp - 0x40]
lea rdx, str.C:WindowsSystem32_
mov rcx, rax
call sub.msvcrt.dll_wcscpy
mov rdx, qword [rbp + 0x250]
lea rax, [rbp - 0x40]
mov rcx, rax
call sub.msvcrt.dll_wcscat
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
call rax
mov qword [rbp + 0x228], rax
mov rax, qword [rbp + 0x228]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileSize]
call rax
mov dword [rbp + 0x224], eax
mov rax, qword [rbp + 0x228]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0x1000002
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
call rax
mov qword [rbp + 0x218], rax
mov rax, qword [rbp + 0x218]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 4
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_MapViewOfFile]
call rax
mov qword [rbp + 0x210], rax
mov rax, qword [rbp + 0x228]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x208], rax
mov rax, qword [rbp + 0x208]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x210]
add rax, rdx
mov qword [rbp + 0x200], rax
mov rax, qword [rbp + 0x200]
add rax, 0x18
mov qword [rbp + 0x1f8], rax
mov rax, qword [rbp + 0x1f8]
mov eax, dword [rax + 0x70]
mov edx, eax
mov rax, qword [rbp + 0x210]
add rax, rdx
mov qword [rbp + 0x1f0], rax
mov rax, qword [rbp + 0x1f0]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp + 0x210]
add rax, rdx
mov qword [rbp + 0x1e8], rax
mov rax, qword [rbp + 0x1f0]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp + 0x210]
add rax, rdx
mov qword [rbp + 0x1e0], rax
mov rax, qword [rbp + 0x1f0]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp + 0x210]
add rax, rdx
mov qword [rbp + 0x1d8], rax
mov qword [rbp + 0x238], 0
mov dword [rbp + 0x234], 0
jmp 0x140001a78
mov eax, dword [rbp + 0x234]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x1e0]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x210]
add rax, rdx
mov qword [rbp + 0x1d0], rax
mov rdx, qword [rbp + 0x258]
mov rax, qword [rbp + 0x1d0]
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140001a71
mov eax, dword [rbp + 0x234]
cdqe
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x1d8]
add rax, rdx
movzx eax, word [rax]
movzx eax, ax
lea rdx, [rax*4]
mov rax, qword [rbp + 0x1e8]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x210]
add rax, rdx
mov qword [rbp + 0x238], rax
jmp 0x140001a90
add dword [rbp + 0x234], 1
mov rax, qword [rbp + 0x1f0]
mov eax, dword [rax + 0x18]
mov edx, dword [rbp + 0x234]
cmp edx, eax
jb 0x1400019e3
mov rax, qword [rbp + 0x238]
add rsp, 0x2c0
pop rbp
ret
Function at 0x140001dce
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov rax, qword [rbp + 0xf0]
mov qword [rbp + 0xd8], rax
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0xd0], rax
cmp qword [rbp + 0xd0], 0xffffffffffffffff
jne 0x140001e2c
lea rax, str.exit_n
mov rcx, rax
call fcn.140001450
mov eax, 0
jmp 0x140001eb5
mov dword [rbp - 0x60], 0x130
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x140001e64
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x140001eb5
lea rax, [rbp - 0x60]
lea rdx, [rax + 0x2c]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x140001e86
mov eax, 1
jmp 0x140001eb5
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140001e64
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
add rsp, 0x160
pop rbp
ret

Function at 0x140002b40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14000b040
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14000b040
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140002bb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400110a4]
mov rbx, rcx
test esi, esi
jle 0x140002ce0
mov rax, qword [0x1400110a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002bfb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002c85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002be0
mov rcx, rbx
call fcn.140003620
mov rdi, rax
test rax, rax
je 0x140002d02
mov rax, qword [0x1400110a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003760
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400110a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002ce7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140002c7e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140002c90
add dword [0x1400110a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400110a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002c7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002b40
nop dword [rax]
xor esi, esi
jmp 0x140002c08
mov rax, qword [0x1400110a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002b40
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002b40
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003290
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140011100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400110e0]
test rbx, rbx
je 0x1400032ec
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400032e3
test eax, eax
jne 0x1400032e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400032c8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003620
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000db90]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003640
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003648
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003640
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000369d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003694
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003640
add rax, 0x28
cmp rax, r9
jne 0x140003680
xor eax, eax
ret

Function at 0x1400036a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000db90]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400036bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400036c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400036bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003760
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000db90]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000377f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003788
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x180001408
Capabilities:
Hash data with crc32

Disassembly:
lea r8, [0x1800395e0]
sub rax, rax
test rcx, rcx
je 0x180001523
dec rax
test rdx, rdx
je 0x180001521
test rcx, 3
je 0x18000144d
xor al, byte [rcx]
add rcx, 1
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
add rdx, 0xffffffffffffffff
jne 0x180001427
mov r10, rdx
and r10, 7
shr rdx, 3
je 0x1800014fc
xor eax, dword [rcx]
add rcx, 4
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
xor eax, dword [rcx]
add rcx, 4
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
add rdx, 0xffffffffffffffff
jne 0x18000145e
mov rdx, r10
test rdx, rdx
je 0x180001521
xor al, byte [rcx]
add rcx, 1
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
add rdx, 0xffffffffffffffff
jne 0x180001504
not eax
ret
Function at 0x1800068f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rdx
lea rdx, [0x1800490fc]
call fcn.18001e6b8
mov rdi, rax
test rax, rax
jne 0x180006924
lea rcx, str._nERR:_unable_to_open_input_file_n
call fcn.1800056e0
lea eax, [rdi + 1]
add rsp, 0x38
pop rdi
pop rsi
ret
xor edx, edx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x68], r12
mov rcx, rdi
mov qword [rsp + 0x28], r14
lea r8d, [rdx + 2]
call fcn.18001f0b0
mov rcx, rdi
call fcn.180019ee4
xor r8d, r8d
mov r12d, eax
xor edx, edx
mov rcx, rdi
call fcn.18001f0b0
mov ecx, r12d
mov ebx, r12d
call fcn.180018f20
mov r14, rax
test rax, rax
jne 0x180006981
lea rcx, str._nERR:_not_enough_memory_n
call fcn.1800056e0
lea eax, [r14 + 1]
jmp 0x180006aed
mov r9, rdi
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.180020118
cmp rax, rbx
je 0x1800069af
lea rcx, str._nERR:_error_reading_from_input_file_n
call fcn.1800056e0
mov eax, 1
jmp 0x180006aed
mov rcx, r14
mov qword [rsp + 0x58], rbp
call fcn.1800010a0
mov ebp, eax
cmp eax, 0xffffffff
jne 0x1800069d9
lea rcx, str._nERR:_compressed_data_error_n
call fcn.1800056e0
mov eax, 1
jmp 0x180006ae8
mov rcx, rbp
mov qword [rsp + 0x20], r15
call fcn.180018f20
mov r15, rax
test rax, rax
jne 0x180006a03
lea rcx, str._nERR:_not_enough_memory_n
call fcn.1800056e0
lea eax, [r15 + 1]
jmp 0x180006ae3
mov qword [rsp + 0x30], r13
call fcn.18001e4b8
mov r9d, ebp
mov r8, r15
mov edx, r12d
mov rcx, r14
mov ebx, eax
call section..text
mov dword [rsp + 0x60], eax
call fcn.18001e4b8
mov r13d, eax
sub r13d, ebx
cmp dword [rsp + 0x60], ebp
je 0x180006a4b
lea rcx, str._nERR:_an_error_occured_while_decompressing_n
call fcn.1800056e0
mov eax, 1
jmp 0x180006ade
cmp qword [rsi + 0x18], 8
jb 0x180006a55
mov rsi, qword [rsi]
lea rdx, [0x1800491bc]
mov rcx, rsi
call fcn.18001e6a4
mov rbx, rax
test rax, rax
jne 0x180006a7d
lea rcx, str._nERR:_unable_to_create_output_file_n
call fcn.1800056e0
lea eax, [rbx + 1]
jmp 0x180006ade
mov esi, dword [rsp + 0x60]
mov r9, rbx
mov r8d, esi
mov edx, 1
mov rcx, r15
call fcn.18001f908
movd xmm3, r13d
lea rcx, str.Decompressed__u_____u_bytes_in__.2f_seconds_n
cvtdq2pd xmm3, xmm3
mov r8d, esi
mov edx, r12d
divsd xmm3, qword [0x18004a168]
movq r9, xmm3
call fcn.1800056e0
mov rcx, rdi
call fcn.18001ee3c
mov rcx, rbx
call fcn.18001ee3c
mov rcx, r14
call fcn.180018f0c
mov rcx, r15
call fcn.180018f0c
xor eax, eax
mov r13, qword [rsp + 0x30]
mov r15, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
mov r12, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x28]
add rsp, 0x38
pop rdi
pop rsi
ret