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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x180291300]
xor rax, rsp
mov qword [rbp - 8], rax
xor eax, eax
mov dword [rbp - 0x30], 0xcb999f82
xor ebx, ebx
mov dword [rbp - 0x2c], 0x98d58fcb
mov edx, ebx
mov word [rbp - 0x28], 0x9291
mov edi, ecx
mov byte [rbp - 0x26], al
nop
movsxd rax, edx
lea rcx, [rbp - 0x30]
add rcx, rax
lea eax, [rdx - 0xb]
inc edx
xor byte [rcx], al
cmp edx, 0xa
jb 0x180014cc0
lea rcx, [rbp - 0x30]
mov byte [rbp - 0x26], bl
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r8, rax
test rax, rax
je 0x180014d4d
movdqa xmm0, xmmword [0x1800df1f0]
xor eax, eax
movdqu xmmword [rbp - 0x20], xmm0
mov byte [rbp - 0xa], al
mov edx, ebx
mov dword [rbp - 0x10], 0x6973557c
mov word [rbp - 0xc], 0x6f7d
nop dword [rax]
movsxd rax, edx
lea rcx, [rbp - 0x20]
add rcx, rax
lea eax, [rdx - 0xb]
inc edx
xor byte [rcx], al
cmp edx, 0x16
jb 0x180014d10
lea rdx, [rbp - 0x20]
mov byte [rbp - 0xa], bl
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802925f0], rax
test rax, rax
jne 0x180014d47
movzx eax, bx
jmp 0x180014d9b
mov ecx, edi
call rax
jmp 0x180014d9b
xor eax, eax
mov dword [rbp - 0x30], 0x8a928580
mov byte [rbp - 0x26], al
mov dword [rbp - 0x2c], 0x98d5c8ca
mov word [rbp - 0x28], 0x9291
nop word [rax + rax]
movsxd rax, ebx
lea rcx, [rbp - 0x30]
add rcx, rax
lea eax, [rbx - 0xb]
inc ebx
xor byte [rcx], al
cmp ebx, 0xa
jb 0x180014d70
lea rcx, [rbp - 0x30]
mov byte [rbp - 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, edi
call fcn.180002034
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18003ec50
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret
Function at 0x18001cd60
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x18001cdb0
lea r11, [0x1800df680]
nop dword [rax]
cmp r9b, 0x23
jne 0x18001cd93
cmp byte [r8], r9b
jne 0x18001cd93
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x18001cd80
mov rcx, qword [0x180296750]
not eax
movsxd rdx, dword [rcx + 0x1a00]
mov r9, qword [rcx + 0x1a08]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x18001ce11
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x18001ce09
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x18001ce0c
mov rdx, r8
test rdx, rdx
jne 0x18001cde0
cmp r9, r10
je 0x18001ce20
cmp dword [r9], eax
jne 0x18001ce20
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret

Function at 0x18001d880
Capabilities:
Hash data with crc32

Disassembly:
movsxd rax, dword [rcx + 0xc0]
mov r9, r8
mov r8, qword [rcx + 0xc8]
mov r10, rdx
xor ecx, ecx
mov rdx, r9
sub rdx, r10
test r9, r9
mov r8d, dword [r8 + rax*4 - 4]
cmove rdx, rcx
mov rcx, r10
jmp fcn.18001e270

Function at 0x18001de30
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
movsxd rbp, r9d
mov r14, r8
test r8, r8
je 0x18001de4b
mov qword [r8], 0
call fcn.18001df90
mov rbx, rax
test rax, rax
jne 0x18001de61
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r15
call fcn.18004bd74
mov esi, eax
cmp eax, 0xffffffff
je 0x18001df62
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.18004b7b8
test eax, eax
jne 0x18001df62
mov rcx, rbx
call fcn.18004bd74
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x18001df62
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.18004b7b8
test eax, eax
jne 0x18001df62
cmp rdi, 0xffffffffffffffff
je 0x18001df62
mov rax, qword [0x180296750]
test rax, rax
je 0x18001dede
inc dword [rax + 0x3bc]
mov rdx, qword [0x180296760]
lea rcx, [rdi + rbp]
call qword [0x180290310]
mov rsi, rax
test rax, rax
je 0x18001df62
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.18004b480
cmp rax, rdi
je 0x18001df3b
mov rcx, rbx
call fcn.18004ad98
mov rax, qword [0x180296750]
test rax, rax
je 0x18001df29
dec dword [rax + 0x3bc]
mov rdx, qword [0x180296760]
mov rcx, rsi
call qword [0x180290318]
jmp 0x18001df6a
test ebp, ebp
jle 0x18001df4d
lea rcx, [rsi + rdi]
mov r8, rbp
xor edx, edx
call fcn.180065a60
mov rcx, rbx
call fcn.18004ad98
test r14, r14
je 0x18001df5d
mov qword [r14], rdi
mov rax, rsi
jmp 0x18001df6c
mov rcx, rbx
call fcn.18004ad98
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
Function at 0x18001e270
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18001e2cd
lea rbx, [0x1800df680]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x18001e2b4
cmp r10, 2
jb 0x18001e2b4
cmp byte [r9], r8b
jne 0x18001e2b4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x18001e290
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18001e30f
lea rbx, [0x1800df680]
cmp r8b, 0x23
jne 0x18001e2f3
cmp byte [r9], r8b
jne 0x18001e2f3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x18001e2e0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x18001ea60
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
xor eax, eax
lea r8, [0x1800dfc25]
mov dword [rsp + 0x2c], eax
lea r11, [0x1800df680]
mov qword [rsp + 0x48], rax
mov r10d, 0xffffffff
lea rax, str.Window
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov edx, r10d
mov r9b, 0x57
nop
cmp r9b, 0x23
jne 0x18001eab3
cmp byte [r8], r9b
jne 0x18001eab3
cmp byte [r8 + 1], r9b
cmove edx, r10d
movzx ecx, dl
movzx eax, r9b
movzx r9d, byte [r8]
xor rcx, rax
shr edx, 8
inc r8
xor edx, dword [r11 + rcx*4]
test r9b, r9b
jne 0x18001eaa0
mov ecx, dword [rbx + 0x2f14]
lea rax, [0x180028080]
mov edi, dword [rbx + 0x2f10]
not edx
mov qword [rsp + 0x30], rax
lea rax, [0x180027fb0]
mov qword [rsp + 0x38], rax
lea rax, [0x180028130]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], edx
cmp edi, ecx
jne 0x18001ebc3
inc edi
test ecx, ecx
je 0x18001eb1f
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x18001eb24
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x18001ebc3
mov rax, qword [0x180296750]
mov qword [rsp + 0x60], rsi
test rax, rax
je 0x18001eb48
inc dword [rax + 0x3bc]
mov rdx, qword [0x180296760]
movsxd rax, edi
lea rcx, [rax + rax*2]
shl rcx, 4
call qword [0x180290310]
mov rdx, qword [rbx + 0x2f18]
mov rsi, rax
test rdx, rdx
je 0x18001ebb1
movsxd rcx, dword [rbx + 0x2f10]
lea r8, [rcx + rcx*2]
mov rcx, rax
shl r8, 4
call fcn.1800653c0
mov rcx, qword [rbx + 0x2f18]
test rcx, rcx
je 0x18001eba4
mov rax, qword [0x180296750]
test rax, rax
je 0x18001eba4
dec dword [rax + 0x3bc]
mov rdx, qword [0x180296760]
call qword [0x180290318]
mov qword [rbx + 0x2f18], rsi
mov rsi, qword [rsp + 0x60]
mov dword [rbx + 0x2f14], edi
movsxd rax, dword [rbx + 0x2f10]
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x2f18]
add rcx, rcx
movups xmmword [rax + rcx*8], xmm0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rax + rcx*8 + 0x10], xmm1
movups xmmword [rax + rcx*8 + 0x20], xmm0
inc dword [rbx + 0x2f10]
mov byte [rbx], 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x18002b820
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x18002b9b1
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 edi, r9d
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x18002b890
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.18002eaa0
mov r8d, dword [rbx + 0x80]
mov r9d, edi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.180029110
mov dword [rbx + 0x80], 0
jmp 0x18002b99d
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.18002efe0
movzx edx, word [rbx + 0x4c]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rsi]
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 [rsi + 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], edi
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], edi
movsd xmm0, qword [rsi]
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], edi
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], edi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x4c], 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 0x1800385b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x180291300]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rdx
mov rbx, rcx
call fcn.18001d8b0
movdqa xmm0, xmmword [str.ZYRCgPWKPbZGqp]
xor r9d, r9d
movdqu xmmword [rsp + 0x38], xmm0
mov r8d, r9d
nop dword [rax + rax]
movsxd rdx, r8d
lea ecx, [r8 + 0x33]
inc r8d
xor byte [rsp + rdx + 0x38], cl
cmp r8d, 0xf
jb 0x1800385f0
lea rcx, [rsp + 0x38]
mov qword [rax + 0xd8], rcx
lea r8, [rsp + 0x20]
mov rax, qword [rbx]
lea rdx, [0x1800e3de0]
mov rcx, rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x30], r9
call qword [rax]
test eax, eax
jne 0x180038687
mov rcx, qword [rsp + 0x20]
lea r8, [rsp + 0x28]
lea rdx, [0x1800e3df0]
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
jne 0x180038687
mov rcx, qword [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rdx, [0x1800e3e00]
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
jne 0x180038687
mov rax, qword [rsp + 0x30]
mov qword [0x1802967c0], rax
mov qword [0x1802967b0], rbx
mov qword [0x1802967b8], rdi
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x180038697
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1800386a7
mov rax, qword [rcx]
call qword [rax + 0x10]
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18003ec50
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x18004bb90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.18003ecb0
sub rsp, rax
mov rax, qword [0x180291300]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180057408
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18004bbdf
mov rax, rbp
jmp 0x18004bce7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x2985c0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18005b424
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x2985c0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18004bce3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18004bce3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18005b424
test rax, rax
js 0x18004bce3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18004bce3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18004bcd5
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18004bcd5
cmp byte [rcx], 0xd
jne 0x18004bcbb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18004bcca
cmp byte [rcx + 1], 0xa
jne 0x18004bcca
inc rcx
jmp 0x18004bcca
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2916a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18004bc9d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18004bce7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18003ec50
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18005a65c
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, [0x1802985c0]
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 0x18005a6b3
cmp word [rdx], r13w
jne 0x18005a6b3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18005a6b8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18005a7dd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18005a7fe
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18005a6f1
mov rdx, r9
mov word [rbx], cx
jmp 0x18005a718
cmp r9, r8
jae 0x18005a728
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 0x18005a6d2
jmp 0x18005a7dd
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 0x18005a7d2
cmp dword [rsp + 0x80], esi
je 0x18005a7d2
lea r8, [0x1802985c0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18005a7aa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18005a77a
mov word [rbx], r13w
jmp 0x18005a7da
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 0x18005a787
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18005a7da
cmp word [rsp + 0x70], r13w
jne 0x18005a7b7
cmp rbx, r14
je 0x18005a774
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18005b42c
cmp word [rsp + 0x70], r13w
je 0x18005a7dd
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, [0x1802985c0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18005a7d7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18005a7dd
Function at 0x18005b5c8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18005b5de
mov al, 1
jmp 0x18005b63e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18005b5ef
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18005b63c
mov ecx, dword [rcx + 0x18]
nop
call fcn.180061010
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18005b63c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18005b63c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18005b63c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18005b63e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18005e12c
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 0x18005e15c
xor eax, eax
jmp 0x18005e21f
mov rbp, rbx
cmp word [rax], si
je 0x18005e181
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18005e168
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18005e164
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.18005e04c
movsxd r14, eax
test eax, eax
jne 0x18005e1bf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18005e155
mov rcx, r14
call fcn.180055eb8
mov rdi, rax
test rax, rax
jne 0x18005e1d8
xor ecx, ecx
call fcn.180055e7c
jmp 0x18005e1b4
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.18005e04c
test eax, eax
jne 0x18005e209
mov rcx, rdi
call fcn.180055e7c
jmp 0x18005e213
xor ecx, ecx
call fcn.180055e7c
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 0x18006442c
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.18005b42c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18005b42c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18006457c
cmp rax, 0xffffffffffffffff
je 0x18006457c
xor edi, edi
test rbp, rbp
jle 0x180064527
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800589d8
mov rbx, rax
test rax, rax
jne 0x1800644b4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18006451d
mov edx, 0x8000
mov ecx, r14d
call fcn.1800642b0
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.18005a354
cmp eax, 0xffffffff
je 0x1800644fd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800644c4
mov edx, r15d
mov ecx, r14d
call fcn.1800642b0
jmp 0x18006451d
cmp byte [rsi + 0x38], dil
je 0x180064514
cmp dword [rsi + 0x34], 5
jne 0x180064514
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18006451d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180055e7c
jmp 0x180064590
jns 0x180064590
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18005b42c
cmp rax, 0xffffffffffffffff
jne 0x180064548
cmp byte [rsi + 0x30], dil
je 0x180064590
mov edi, dword [rsi + 0x2c]
jmp 0x180064590
mov ecx, r14d
call fcn.180061010
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180064590
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 0x180064590
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180064589
mov eax, dword [rsi + 0x2c]
jmp 0x18006458e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18005b42c
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 0x180065010
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180065038
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180065038
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x68cf97f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x68de76c4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x68cf9978
mov rax, qword [0x68de76c8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x68cf983c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x68cf98c5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x68cf9820
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x68cf99ad
mov rax, qword [0x68de76c8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x68de76c8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x68cf9990
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x68cf98be
sub eax, 0x40
and eax, 0xffffffbf
jne 0x68cf9920
add dword [0x68de76c4], 1
cmp edi, 8
jae 0x68cf98f3
test dil, 4
jne 0x68cf9964
test edi, edi
je 0x68cf98e8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x68cf997f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x68cf98e8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x68cf990c
jmp 0x68cf98e8
add rsi, qword [0x68de76c8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x68cf98be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x68cf98e8
xor esi, esi
jmp 0x68cf9847
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x68cf98e8
mov rax, qword [0x68de76c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x68cfa100
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x68de79a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x68de7980]
test rbx, rbx
je 0x68cfa154
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x68cfa14b
test rsi, rsi
je 0x68cfa14b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x68cfa130
lea rcx, [0x68de79a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]