joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003d00
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x140319010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r8, rcx
movsxd r10, edx
xor eax, eax
mov r9d, edx
mov ecx, 0x40
lea rdi, [rsp]
rep stosb byte [rdi], al
mov rdi, r10
lea rcx, [rsp]
shr rdi, 3
test rdi, rdi
je 0x140003d54
nop dword [rax + rax]
mov rax, qword [r8]
add r8, 8
mov qword [rcx], rax
add rcx, 8
sub rdi, 1
jne 0x140003d40
mov rdx, r10
and edx, 7
je 0x140003d72
sub rcx, r8
nop
movzx eax, byte [r8]
mov byte [rcx + r8], al
lea r8, [r8 + 1]
sub rdx, 1
jne 0x140003d60
xor r8d, r8d
test r9d, r9d
jle 0x140003d99
mov edx, r8d
nop dword [rax]
movzx ecx, byte [rsp + rdx]
lea eax, [rcx - 0x41]
cmp al, 0x19
ja 0x140003d91
add cl, 0x20
mov byte [rsp + rdx], cl
inc rdx
cmp rdx, r10
jl 0x140003d80
lea rdx, [rsp]
mov r11d, r9d
mov r10d, 0xb801fcda
cmp r9d, 4
jl 0x140003de7
mov rdi, r9
shr rdi, 2
mov eax, edi
neg eax
lea r9d, [r9 + rax*4]
nop dword [rax + rax]
imul eax, dword [rdx], 0x5bd1e995
add rdx, 4
imul r10d, r10d, 0x5bd1e995
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
xor r10d, ecx
sub rdi, 1
jne 0x140003dc0
sub r9d, 1
je 0x140003e0c
sub r9d, 1
je 0x140003e02
cmp r9d, 1
jne 0x140003e12
movzx r8d, byte [rdx + 2]
shl r8d, 0x10
movzx eax, byte [rdx + 1]
shl eax, 8
xor r8d, eax
movzx eax, byte [rdx]
xor r8d, eax
imul ecx, r8d, 0x5bd1e995
imul edi, r11d, 0x5bd1e995
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
imul eax, r10d, 0x5bd1e995
xor ecx, eax
mov eax, edi
shr eax, 0x18
xor eax, edi
imul edx, ecx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor edx, eax
mov eax, edx
shr eax, 0xd
xor eax, edx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401db5b0
add rsp, 0x50
pop rdi
ret
Function at 0x1400eee40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor eax, eax
mov r13, rcx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
xor ebx, ebx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov r15, r8
mov rsi, rdx
call fcn.1401db210
mov r10, qword [rsp + 0x20]
mov eax, ebx
mov rcx, r10
mov r11d, 0x100
nop word [rax + rax]
mov byte [rcx], al
lea rcx, [rcx + 1]
inc eax
cmp eax, r11d
jl 0x1400eee90
mov r12, qword [r13 + 8]
mov ecx, ebx
sub r12, qword [r13]
mov r9d, ebx
mov rdi, r10
mov rbp, rbx
movzx r14d, byte [rdi]
xor edx, edx
mov rax, rbp
div r12
mov rax, qword [r13]
movzx edx, byte [rdx + rax]
add edx, ebx
add edx, r14d
and edx, 0x800000ff
jge 0x1400eeedb
dec edx
or edx, 0xffffff00
inc edx
movsxd rbx, edx
inc rbp
movzx eax, byte [rbx + r10]
mov byte [rdi], al
inc rdi
mov byte [rbx + r10], r14b
sub r11, 1
jne 0x1400eeeb0
test r15, r15
je 0x1400eef61
nop word [rax + rax]
inc ecx
and ecx, 0x800000ff
jge 0x1400eef14
dec ecx
or ecx, 0xffffff00
inc ecx
movsxd r11, ecx
movzx r8d, byte [r11 + r10]
add r9d, r8d
and r9d, 0x800000ff
jge 0x1400eef35
dec r9d
or r9d, 0xffffff00
inc r9d
movsxd rdx, r9d
movzx eax, byte [rdx + r10]
mov byte [r11 + r10], al
mov byte [rdx + r10], r8b
movzx eax, byte [r11 + r10]
add r8, rax
movzx eax, r8b
movzx edx, byte [rax + r10]
xor byte [rsi], dl
inc rsi
sub r15, 1
jne 0x1400eef00
test r10, r10
je 0x1400eef97
mov rdx, qword [rsp + 0x30]
mov rax, r10
sub rdx, r10
cmp rdx, 0x1000
jb 0x1400eef8f
mov r10, qword [r10 - 8]
add rdx, 0x27
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400eefaf
mov rcx, r10
call fcn.1401db870
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1401e00fc
int3
Function at 0x1401df4cc
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1401df337
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401df337
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401df337
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401df337
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401df337
cmp dword [rcx + 0x84], 0xe
jbe 0x1401df337
cmp dword [rcx + 0xf8], 0
je 0x1401df337
mov ecx, ebx
call fcn.1401df3e8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1401df1c4
nop
cmp dword [rbp + 0x20], 0
je 0x1401df385
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401df390
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401df2c8
Function at 0x1401e3a04
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401e3a1a
mov al, 1
jmp 0x1401e3a7a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401e3a2b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401e3a78
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401e6904
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401e3a78
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401e3a78
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401e3a78
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401e3a7a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1401e5788
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 0x1401e57b8
xor eax, eax
jmp 0x1401e587b
mov rbp, rbx
cmp word [rax], si
je 0x1401e57dd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401e57c4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401e57c0
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.1401e56a8
movsxd r14, eax
test eax, eax
jne 0x1401e581b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401e57b1
mov rcx, r14
call fcn.1401e15c0
mov rdi, rax
test rax, rax
jne 0x1401e5834
xor ecx, ecx
call fcn.1401e1620
jmp 0x1401e5810
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.1401e56a8
test eax, eax
jne 0x1401e5865
mov rcx, rdi
call fcn.1401e1620
jmp 0x1401e586f
xor ecx, ecx
call fcn.1401e1620
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 0x1401e8990
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14034c160]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1401e89e7
cmp word [rdx], r13w
jne 0x1401e89e7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401e89ec
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401e8b11
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401e8b32
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401e8a25
mov rdx, r9
mov word [rbx], cx
jmp 0x1401e8a4c
cmp r9, r8
jae 0x1401e8a5c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1401e8a06
jmp 0x1401e8b11
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401e8b06
cmp dword [rsp + 0x80], esi
je 0x1401e8b06
lea r8, [0x14034c160]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401e8ade
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1401e8aae
mov word [rbx], r13w
jmp 0x1401e8b0e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1401e8abb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401e8b0e
cmp word [rsp + 0x70], r13w
jne 0x1401e8aeb
cmp rbx, r14
je 0x1401e8aa8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401e86c8
cmp word [rsp + 0x70], r13w
je 0x1401e8b11
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14034c160]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401e8b0b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401e8b11
Function at 0x1401ea3b0
Capabilities:
Clear file content

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 r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1401e86c8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401e86c8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401ea500
cmp rax, 0xffffffffffffffff
je 0x1401ea500
xor edi, edi
test rbp, rbp
jle 0x1401ea4ab
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401e3ca0
mov rbx, rax
test rax, rax
jne 0x1401ea438
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401ea4a1
mov edx, 0x8000
mov ecx, r14d
call fcn.1401e1158
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1401e3604
cmp eax, 0xffffffff
je 0x1401ea481
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401ea448
mov edx, r15d
mov ecx, r14d
call fcn.1401e1158
jmp 0x1401ea4a1
cmp byte [rsi + 0x38], dil
je 0x1401ea498
cmp dword [rsi + 0x34], 5
jne 0x1401ea498
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1401ea4a1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401e1620
jmp 0x1401ea514
jns 0x1401ea514
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401e86c8
cmp rax, 0xffffffffffffffff
jne 0x1401ea4cc
cmp byte [rsi + 0x30], dil
je 0x1401ea514
mov edi, dword [rsi + 0x2c]
jmp 0x1401ea514
mov ecx, r14d
call fcn.1401e6904
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401ea514
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1401ea514
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401ea50d
mov eax, dword [rsi + 0x2c]
jmp 0x1401ea512
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401e86c8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005460]
mov dword [rax], 1
mov rax, qword [0x140005470]
mov dword [rax], 1
mov rax, qword [0x140005480]
mov dword [rax], 1
mov rax, qword [0x140005420]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001b90
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002862
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x1400028fa
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x1400028de
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 0x1400028d2
cmp qword [rbp - 0x10], 0
je 0x1400028d2
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 0x140002898
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400028fb
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140002a00
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 0x140002a28
mov eax, 0
jmp 0x140002a76
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 0x140002a51
mov eax, 0
jmp 0x140002a76
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 0x140002a71
mov eax, 0
jmp 0x140002a76
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140002a7c
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 0x140002afa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002af1
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 0x140002af1
mov rax, qword [rbp - 8]
jmp 0x140002b0f
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 0x140002ac4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d6c50
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.2fc4d7d30
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d7652
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fa108]
test eax, eax
je 0x2fc4d76ea
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fa110]
mov qword [rbp - 8], rax
jmp 0x2fc4d76ce
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 0x2fc4d76c2
cmp qword [rbp - 0x10], 0
je 0x2fc4d76c2
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 0x2fc4d7688
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d76eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d77f0
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 0x2fc4d7818
mov eax, 0
jmp 0x2fc4d7866
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 0x2fc4d7841
mov eax, 0
jmp 0x2fc4d7866
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 0x2fc4d7861
mov eax, 0
jmp 0x2fc4d7866
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d786c
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 0x2fc4d78ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d78e1
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 0x2fc4d78e1
mov rax, qword [rbp - 8]
jmp 0x2fc4d78ff
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 0x2fc4d78b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1406a5318
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406a549f
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 0x1406a5349
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406a532f
add dl, dl
jne 0x1406a5356
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406a53b6
xor eax, eax
add dl, dl
jne 0x1406a5365
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406a546d
add dl, dl
jne 0x1406a5376
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406a5383
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406a5390
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406a539d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406a53aa
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406a533e
mov eax, 1
add dl, dl
jne 0x1406a53c6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406a53d3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406a53bb
sub eax, ebx
mov ebx, 1
jne 0x1406a540c
mov ecx, 1
add dl, dl
jne 0x1406a53ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406a53fb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406a53e3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406a533e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406a5428
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406a5435
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406a541d
cmp eax, 0x7d00
jae 0x1406a545b
cmp eax, 0x500
jb 0x1406a5456
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406a533e
cmp eax, 0x7f
ja 0x1406a545e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406a533e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406a5492
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 0x1406a533e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20