joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801f3fe0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x18067e41c]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x1801f4027
mov rax, qword [0x18067e410]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1801f4034
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x1801f4010
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x1801f4027
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.1801f3d70
mov edi, eax
test eax, eax
jne 0x1801f411d
mov r9d, dword [0x18067e41c]
cmp ebx, r9d
jae 0x1801f40ac
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x18067e410]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x1801f40a5
mov edx, esi
mov ecx, ebx
call fcn.1801f3ed0
mov edi, eax
test eax, eax
jne 0x1801f40ac
mov r9d, dword [0x18067e41c]
inc ebx
cmp ebx, r9d
jb 0x1801f4070
cmp qword [rsp + 0x20], 0
je 0x1801f411b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1801f4107
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1801f40f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x1801f40d0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18067b9b8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x1801f4d50
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x1801f4d90
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18067e408]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1801f4dce
cmp rsi, r14
jb 0x1801f4dc6
cmp rsi, r15
jae 0x1801f4dc6
cmp qword [rsi + 8], 0
jne 0x1801f4f97
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1801f4db1
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x1801f4e62
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1801f4e59
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1801f4e59
cmp dword [rsp + 0x70], 0x10000
je 0x1801f4edb
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x1801f4e59
sub rbx, rbp
cmp rbx, r14
jae 0x1801f4e20
test rsi, rsi
jne 0x1801f4f40
cmp rdi, r15
ja 0x1801f4f7f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1801f4f7f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1801f4f7f
cmp dword [rsp + 0x70], 0x10000
je 0x1801f4f11
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x1801f4e92
jmp 0x1801f4f7f
test rbx, rbx
je 0x1801f4e59
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1801f4f40
cmp rbx, r14
jae 0x1801f4e00
jmp 0x1801f4e62
test rdi, rdi
je 0x1801f4f7f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1801f4f40
cmp rdi, r15
jbe 0x1801f4e70
jmp 0x1801f4f7f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x1801f4f50
mov rax, qword [0x18067e408]
mov qword [rsi], rax
mov qword [0x18067e408], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x1801f58f0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rax, r8
mov ecx, 0x5a4d
cmp word [r8], cx
jne 0x1801f59c6
movsxd rcx, dword [r8 + 0x3c]
cmp dword [rcx + r8], 0x4550
jne 0x1801f59c6
mov r8d, dword [rcx + r8 + 0x50]
test r8, r8
je 0x1801f59c6
add r8, rax
cmp byte [0x18067a7da], 0
je 0x1801f598d
cmp byte [0x18067a7d8], 0
je 0x1801f5962
movaps xmm0, xmmword [rdx]
lea r9, [rsp + 0x20]
mov rdx, rax
movdqa xmmword [rsp + 0x20], xmm0
mov rcx, rbx
call fcn.1801f6530
mov rax, rbx
add rsp, 0x30
pop rbx
ret
cmp byte [0x18067a7d7], 0
je 0x1801f598d
movaps xmm0, xmmword [rdx]
lea r9, [rsp + 0x20]
mov rdx, rax
movdqa xmmword [rsp + 0x20], xmm0
mov rcx, rbx
call fcn.1801f6060
mov rax, rbx
add rsp, 0x30
pop rbx
ret
cmp byte [0x18067a7d4], 0
lea r9, [rsp + 0x20]
movaps xmm0, xmmword [rdx]
mov rcx, rbx
movdqa xmmword [rsp + 0x20], xmm0
mov rdx, rax
je 0x1801f59b8
call fcn.1801f5b50
mov rax, rbx
add rsp, 0x30
pop rbx
ret
call fcn.1801f5830
mov rax, rbx
add rsp, 0x30
pop rbx
ret
mov qword [rbx], 0
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x1801f59e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movaps xmm0, xmmword [r8]
mov eax, 0x5a4d
xor r13d, r13d
movdqa xmmword [rsp + 0x20], xmm0
mov rbp, r9
mov r15, rdx
mov r14, rcx
cmp word [r9], ax
jne 0x1801f5a73
movsxd rsi, dword [r9 + 0x3c]
add rsi, r9
cmp dword [rsi], 0x4550
jne 0x1801f5a73
movzx ebx, word [rsi + 0x14]
mov edi, r13d
add rbx, 0x18
add rbx, rsi
cmp r13w, word [rsi + 6]
jae 0x1801f5a73
mov r12, qword [rsp + 0x20]
nop word [rax + rax]
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call fcn.180216490
test eax, eax
je 0x1801f5a96
movzx eax, word [rsi + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jl 0x1801f5a50
mov qword [r14], r13
mov rbx, qword [rsp + 0x60]
mov rax, r14
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov edx, dword [rbx + 0xc]
mov eax, dword [rbx + 8]
add rdx, rbp
test rax, rax
je 0x1801f5a73
cmp byte [0x18067a7da], r13b
lea r8, [rax + rdx]
je 0x1801f5af5
cmp byte [0x18067a7d8], r13b
je 0x1801f5ad3
movaps xmm0, xmmword [r15]
lea r9, [rsp + 0x20]
mov rcx, r14
movdqa xmmword [rsp + 0x20], xmm0
call fcn.1801f6530
jmp 0x1801f5a76
cmp byte [0x18067a7d7], r13b
je 0x1801f5af5
movaps xmm0, xmmword [r15]
lea r9, [rsp + 0x20]
mov rcx, r14
movdqa xmmword [rsp + 0x20], xmm0
call fcn.1801f6060
jmp 0x1801f5a76
cmp byte [0x18067a7d4], r13b
lea r9, [rsp + 0x20]
movaps xmm0, xmmword [r15]
mov rcx, r14
movdqa xmmword [rsp + 0x20], xmm0
je 0x1801f5b1a
call fcn.1801f5b50
jmp 0x1801f5a76
call fcn.1801f5830
jmp 0x1801f5a76
Function at 0x1801f866c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1801f86a6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1801f86ab
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1801f86f4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.d2d1.dll_Ordinal_1
cmp byte [rcx + rax], 0
je 0x1801f86f4
dec r8
sub rdx, 1
jne 0x1801f86da
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x18020b708
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x18020b73f
call fcn.180212420
mov dword [rax], 0x16
call fcn.18020b13c
xor eax, eax
jmp 0x18020b7cd
mov rdx, r9
mov rcx, r8
call fcn.18020b6a4
mov rbx, rax
test rax, rax
je 0x18020b7ca
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x18020b5d0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x18020b7b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180212394
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18020b79e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18020b7ad
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1802216b8
jmp 0x18020b7ca
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18020b7c7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18022a068
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 0x18022a098
xor eax, eax
jmp 0x18022a15b
mov rbp, rbx
cmp word [rax], si
je 0x18022a0bd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18022a0a4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18022a0a0
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.180227cc4
movsxd r14, eax
test eax, eax
jne 0x18022a0fb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18022a091
mov rcx, r14
call fcn.180221764
mov rdi, rax
test rax, rax
jne 0x18022a114
xor ecx, ecx
call fcn.1802216b8
jmp 0x18022a0f0
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.180227cc4
test eax, eax
jne 0x18022a145
mov rcx, rdi
call fcn.1802216b8
jmp 0x18022a14f
xor ecx, ecx
call fcn.1802216b8
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 0x18022a178
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x18022a1ff
mov rsi, rbx
cmp word [rax], bp
je 0x18022a1be
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18022a1a8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18022a1a4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.180221764
mov rdi, rax
test rax, rax
je 0x18022a1ec
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.18023b0c0
mov rbp, rdi
xor ecx, ecx
call fcn.1802216b8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18022d2ec
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18021e8bc
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18022d38d
cmp ebx, dword [rsp + 0x30]
je 0x18022d386
test esi, esi
je 0x18022d386
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18022d361
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18022d36e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18022d34b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18022d372
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18022d38f
mov eax, 1
jmp 0x18022d38f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1802314fc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.18020b1d4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x180231586
cmp byte [rbp - 0x21], r15b
je 0x180231581
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1802315bc
call fcn.180220c60
test eax, eax
jne 0x1802315a8
cmp byte [rbp - 0x21], r15b
je 0x1802315a0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1802315bc
cmp byte [rbp - 0x21], r15b
je 0x1802315b9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.180216858
test eax, eax
jne 0x18023165c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.18020b1d4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1802315fb
cmp byte [rbp - 0x21], r15b
je 0x180231630
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x180231630
call fcn.180220c60
test eax, eax
jne 0x18023161c
cmp byte [rbp - 0x21], r15b
je 0x180231615
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x180231630
cmp byte [rbp - 0x21], r15b
je 0x18023162d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.180216858
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18023165c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18023165f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18023166d
mov rcx, rdi
call fcn.1802216b8
cmp byte [rbp + 0x3f], r15b
je 0x18023167c
mov rcx, qword [rbp + 0x27]
call fcn.1802216b8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180232310
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.1802241fc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1802241fc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180232460
cmp rax, 0xffffffffffffffff
je 0x180232460
xor edi, edi
test rbp, rbp
jle 0x18023240b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180221640
mov rbx, rax
test rax, rax
jne 0x180232398
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180232401
mov edx, 0x8000
mov ecx, r14d
call fcn.180232194
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.180223c40
cmp eax, 0xffffffff
je 0x1802323e1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1802323a8
mov edx, r15d
mov ecx, r14d
call fcn.180232194
jmp 0x180232401
cmp byte [rsi + 0x38], dil
je 0x1802323f8
cmp dword [rsi + 0x34], 5
jne 0x1802323f8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180232401
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1802216b8
jmp 0x180232474
jns 0x180232474
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1802241fc
cmp rax, 0xffffffffffffffff
jne 0x18023242c
cmp byte [rsi + 0x30], dil
je 0x180232474
mov edi, dword [rsi + 0x2c]
jmp 0x180232474
mov ecx, r14d
call fcn.18022f254
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180232474
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 0x180232474
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18023246d
mov eax, dword [rsi + 0x2c]
jmp 0x180232472
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1802241fc
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 0x180232ec0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180232ee8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180232ee8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x69aec058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.69aec1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x69aec089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x69aec06f
add dl, dl
jne 0x69aec096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x69aec0f6
xor eax, eax
add dl, dl
jne 0x69aec0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x69aec1ad
add dl, dl
jne 0x69aec0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x69aec0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x69aec0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x69aec0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x69aec0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x69aec07e
mov eax, 1
add dl, dl
jne 0x69aec106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x69aec113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x69aec0fb
sub eax, ebx
mov ebx, 1
jne 0x69aec14c
mov ecx, 1
add dl, dl
jne 0x69aec12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x69aec13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x69aec123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x69aec07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x69aec168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x69aec175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x69aec15d
cmp eax, 0x7d00
jae 0x69aec19b
cmp eax, 0x500
jb 0x69aec196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x69aec07e
cmp eax, 0x7f
ja 0x69aec19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x69aec07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x69aec1d2
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 0x69aec07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1406b5058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406b51df
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 0x1406b5089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406b506f
add dl, dl
jne 0x1406b5096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406b50f6
xor eax, eax
add dl, dl
jne 0x1406b50a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406b51ad
add dl, dl
jne 0x1406b50b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406b50c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406b50d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406b50dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406b50ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406b507e
mov eax, 1
add dl, dl
jne 0x1406b5106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406b5113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406b50fb
sub eax, ebx
mov ebx, 1
jne 0x1406b514c
mov ecx, 1
add dl, dl
jne 0x1406b512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406b513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406b5123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406b507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406b5168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406b5175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406b515d
cmp eax, 0x7d00
jae 0x1406b519b
cmp eax, 0x500
jb 0x1406b5196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406b507e
cmp eax, 0x7f
ja 0x1406b519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406b507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406b51d2
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 0x1406b507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2fc4caed0
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 0x2fc4cb8d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f0108]
test eax, eax
je 0x2fc4cb96a
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f0110]
mov qword [rbp - 8], rax
jmp 0x2fc4cb94e
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 0x2fc4cb942
cmp qword [rbp - 0x10], 0
je 0x2fc4cb942
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 0x2fc4cb908
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cb96b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cba70
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 0x2fc4cba98
mov eax, 0
jmp 0x2fc4cbae6
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 0x2fc4cbac1
mov eax, 0
jmp 0x2fc4cbae6
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 0x2fc4cbae1
mov eax, 0
jmp 0x2fc4cbae6
mov eax, 1
add rsp, 0x20
pop rbp
ret