joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140cd5058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140cd51df
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 0x140cd5089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cd506f
add dl, dl
jne 0x140cd5096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cd50f6
xor eax, eax
add dl, dl
jne 0x140cd50a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cd51ad
add dl, dl
jne 0x140cd50b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cd50c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cd50d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cd50dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140cd50ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140cd507e
mov eax, 1
add dl, dl
jne 0x140cd5106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cd5113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cd50fb
sub eax, ebx
mov ebx, 1
jne 0x140cd514c
mov ecx, 1
add dl, dl
jne 0x140cd512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cd513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cd5123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cd507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140cd5168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cd5175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cd515d
cmp eax, 0x7d00
jae 0x140cd519b
cmp eax, 0x500
jb 0x140cd5196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cd507e
cmp eax, 0x7f
ja 0x140cd519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cd507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140cd51d2
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 0x140cd507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002660
Capabilities:
Enumerate process modules

Disassembly:
push rdi
mov eax, 0x2150
call fcn.14003cfc0
sub rsp, rax
mov rax, qword [0x140087080]
xor rax, rsp
mov qword [rsp + 0x2140], rax
mov r8d, ecx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14000272b
mov qword [rsp + 0x2168], rbx
lea r9, [rsp + 0x20]
xor ebx, ebx
lea rdx, [rsp + 0x30]
mov r8d, 0x2000
mov dword [rsp + 0x20], ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x140002718
test dword [rsp + 0x20], 0xfffffff8
jbe 0x140002718
mov rdx, qword [rsp + rbx*8 + 0x30]
lea r8, [rsp + 0x2030]
mov r9d, 0x104
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
test eax, eax
je 0x14000270b
lea rdx, str.ntdb.dll
lea rcx, [rsp + 0x2030]
call fcn.14003e65c
test rax, rax
jne 0x140002744
mov eax, dword [rsp + 0x20]
inc ebx
shr eax, 3
cmp ebx, eax
jb 0x1400026d2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rbx, qword [rsp + 0x2168]
mov rcx, qword [rsp + 0x2140]
xor rcx, rsp
call fcn.14003c6c0
add rsp, 0x2150
pop rdi
ret
mov al, 1
jmp 0x140002723
Function at 0x140003ed0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140003ef4
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140003f82
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003f50
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140003f50
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.14006abc0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140003f6d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140003f75
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140003f11
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x140004060
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140003f99
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003f9b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003fcd
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.14006abc0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000405d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004008
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x14000403e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1400493a4
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x14000405d
cmp rsi, rax
ja 0x140004011
test rsi, rsi
je 0x14000405d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400493a4
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x140009a70
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140009ad1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140009a90
mov ecx, dword [r9]
jmp 0x140009bbb
cmp ecx, 0x4e0
jb 0x140009bbb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140009af0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140009b40
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x14000a5e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x13f0
call fcn.14003cfc0
sub rsp, rax
mov rax, qword [0x140087080]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov r14, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov r8d, 0x3e
lea rdx, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
lea rcx, [rsp + 0x30]
call fcn.140002dc0
nop
call fcn.140018d6c
mov edx, eax
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
mov ecx, 1
nop dword [rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x54], edx
inc rcx
cmp rcx, 0x270
jb 0x14000a670
mov dword [rsp + 0x50], 0x270
mov ebp, dword [rsp + 0x40]
dec ebp
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov dword [rsp + 0x20], 1
mov r13, qword [rsp + 0x48]
mov r15, qword [rsp + 0x30]
test r14, r14
je 0x14000a799
mov r12d, 0x80000000
xor ebp, r12d
nop word [rax + rax]
lea rcx, [rsp + 0x50]
cmp ebp, 0x7fffffff
jne 0x14000a6f6
call fcn.140009a70
mov ecx, eax
jmp 0x14000a738
lea edi, [rbp - 0x7fffffff]
call fcn.140009a70
mov esi, edi
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jae 0x14000a734
mov eax, edi
neg eax
xor edx, edx
div edi
mov edi, edx
cmp ecx, edx
jae 0x14000a734
nop dword [rax + rax]
lea rcx, [rsp + 0x50]
call fcn.140009a70
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jb 0x14000a720
shr rcx, 0x20
lea eax, [rcx + r12]
xor eax, r12d
lea rcx, [rsp + 0x30]
cmp r13, 0xf
cmova rcx, r15
cdqe
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14000a77f
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x14000a774
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14000a78f
xor r8d, r8d
mov edx, 1
mov rcx, rbx
call fcn.140008ab0
sub r14, 1
jne 0x14000a6e0
cmp r13, 0xf
jbe 0x14000a7cc
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x14000a7c4
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a800
mov rcx, r15
call fcn.14003c71c
mov rax, rbx
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.14003c6c0
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.140047984
int3
Function at 0x14000c780
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov rsi, qword [rsp + 0x48]
xor r14d, r14d
mov rbx, qword [rsp + 0x60]
mov r12, r9
mov rcx, qword [rsp + 0x50]
mov r13, r8
mov rbp, qword [rsp + 0x58]
mov r15, rdx
mov qword [rsi], r8
mov qword [rbx], rcx
mov rax, qword [rsi]
cmp rax, r9
je 0x14000c915
cmp rcx, rbp
je 0x14000c915
mov r9d, 1
movzx edx, word [r15]
xor dil, dil
movzx ecx, word [rax]
mov r11d, 0x2800
mov r8d, 0x3ff
mov r10d, 0x2400
cmp r9w, dx
jae 0x14000c81c
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x14000c93c
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x14000c833
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x14000c833
shl eax, 0xa
mov dil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x14000c846
movzx r8d, al
mov r10d, r14d
mov r11d, r14d
jmp 0x14000c893
mov r8d, eax
cmp eax, 0x800
jae 0x14000c860
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x14000c893
cmp eax, 0x10000
jae 0x14000c87a
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x14000c893
shr r8d, 0x12
mov r10d, 3
movzx r11d, dil
or r8b, 0xf0
xor r11d, 1
add r11d, r11d
lea r9d, [r11 + 1]
mov rdx, rbp
sub rdx, qword [rbx]
mov ecx, r9d
cmp rdx, rcx
jl 0x14000c915
add qword [rsi], 2
test dil, dil
jne 0x14000c8b4
cmp r10d, 3
jae 0x14000c8c0
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
mov r8, qword [rbx]
test r9d, r9d
jle 0x14000c8ee
lea ecx, [r10 + r10*2]
add ecx, ecx
nop
sub ecx, 6
mov edx, eax
shr edx, cl
dec r9d
and dl, 0x3f
or dl, 0x80
mov byte [r8], dl
inc qword [rbx]
mov r8, qword [rbx]
test r9d, r9d
jg 0x14000c8d0
shr eax, 0xa
mov r9d, 1
test dil, dil
mov ecx, r9d
cmovne ecx, eax
mov word [r15], cx
mov rax, qword [rsi]
cmp rax, r12
je 0x14000c915
cmp qword [rbx], rbp
jne 0x14000c7dd
cmp r13, qword [rsi]
sete r14b
mov eax, r14d
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
mov eax, 2
jmp 0x14000c91f
Function at 0x140010fc0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x140087080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, r8
test rcx, rcx
je 0x140011151
mov r9, qword [rcx + 0x58]
test r9, r9
je 0x140011151
cmp edx, dword [rcx + 0x10]
jae 0x140011151
cmp dword [rcx + 0x14], 1
jne 0x140011151
mov rax, qword [r9 + 0x20]
mov r8d, edx
mov edi, dword [rax + r8*4]
add rdi, qword [r9]
je 0x140011151
test rsi, rsi
je 0x140011151
mov dword [rsi], edx
mov rax, qword [rcx + 0x58]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0xffffffff
mov rcx, qword [rax + 0x20]
mov eax, dword [rcx + r8*4]
mov dword [rsi + 4], eax
movzx eax, word [rdi + 4]
mov word [rsi + 8], ax
movzx eax, word [rdi + 6]
mov word [rsi + 0xa], ax
movzx eax, word [rdi + 8]
mov word [rsi + 0xc], ax
movzx eax, word [rdi + 0xa]
mov word [rsi + 0xe], ax
movzx ecx, word [rdi + 0xe]
movzx edx, word [rdi + 0xc]
mov eax, ecx
shr eax, 9
add eax, 0x50
mov dword [rsp + 0x34], eax
mov eax, ecx
shr eax, 5
and ecx, 0x1f
and eax, 0xf
mov dword [rsp + 0x2c], ecx
dec eax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x30], eax
mov eax, edx
shr eax, 0xb
mov dword [rsp + 0x28], eax
mov eax, edx
shr eax, 5
and edx, 0x1f
and eax, 0x3f
add edx, edx
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x20], edx
call fcn.14004bcfc
mov qword [rsi + 0x10], rax
lea rdx, [rdi + 0x2e]
mov eax, dword [rdi + 0x10]
mov ecx, 0x103
mov dword [rsi + 0x18], eax
mov eax, dword [rdi + 0x14]
mov qword [rsi + 0x20], rax
mov eax, dword [rdi + 0x18]
mov qword [rsi + 0x28], rax
movzx eax, word [rdi + 0x24]
mov word [rsi + 0x30], ax
mov eax, dword [rdi + 0x26]
mov dword [rsi + 0x34], eax
mov eax, dword [rdi + 0x2a]
mov qword [rsi + 0x38], rax
movzx eax, word [rdi + 0x1c]
cmp eax, ecx
cmovb ecx, eax
mov ebx, ecx
lea rcx, [rsi + 0x44]
mov r8d, ebx
call fcn.14006abc0
mov byte [rbx + rsi + 0x44], 0
mov ecx, 0xff
movzx eax, word [rdi + 0x20]
cmp eax, ecx
cmovb ecx, eax
mov dword [rsi + 0x40], ecx
movzx edx, word [rdi + 0x1e]
mov ebx, ecx
add rdx, rdi
movzx ecx, word [rdi + 0x1c]
mov r8d, ebx
add rcx, 0x2e
add rdx, rcx
lea rcx, [rsi + 0x148]
call fcn.14006abc0
mov byte [rbx + rsi + 0x148], 0
mov eax, 1
mov rbx, qword [rsp + 0x50]
jmp 0x140011153
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14003c6c0
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x1400320ec
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14001ecc6
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14001eca9
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14001ec94

Function at 0x14003bf28
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.14004ceb4
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x14003bf7a
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x14003bf7a
sub ecx, 1
je 0x14003bf73
cmp ecx, 1
je 0x14003bf6c
xor eax, eax
jmp 0x14003bf7f
mov eax, 3
jmp 0x14003bf7f
mov eax, 1
jmp 0x14003bf7f
mov eax, 2
add rsp, 0x28
ret

Function at 0x14003d440
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003d48a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003d48a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003d48a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003d48a
cmp dword [rcx + 0x84], 0xe
jbe 0x14003d48a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003d48c
xor al, al
add rsp, 0x28
ret
Function at 0x14004c014
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.14003cfc0
sub rsp, rax
mov rax, qword [0x140087080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400568f8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14004c063
mov rax, rbp
jmp 0x14004c16b
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x8a580]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14005ca08
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x8a580]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14004c167
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 0x14004c167
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14005ca08
test rax, rax
js 0x14004c167
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14004c167
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14004c159
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14004c159
cmp byte [rcx], 0xd
jne 0x14004c13f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14004c14e
cmp byte [rcx + 1], 0xa
jne 0x14004c14e
inc rcx
jmp 0x14004c14e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x874c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14004c121
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004c16b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14003c6c0
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 0x1400538c0
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 0x14005392f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005392f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005392f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005392f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005392f
cmp dword [rcx + 0x84], 0xe
jbe 0x14005392f
cmp dword [rcx + 0xf8], 0
je 0x14005392f
mov ecx, ebx
call fcn.1400539ec
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.1400537bc
nop
cmp dword [rbp + 0x20], 0
je 0x14005397d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140053988
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400538c0
Function at 0x140053ad0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400538c0
Function at 0x14005a238
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14005a26d
call fcn.14004aac0
mov dword [rax], 0x16
call fcn.140047964
jmp 0x14005a3c9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
mov ebp, 1
test bpl, al
je 0x14005a3c9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test bpl, al
jne 0x14005a3c9
mov eax, dword [rcx + 0x14]
shr eax, 1
test bpl, al
je 0x14005a2a4
lock or dword [rcx + 0x14], 0x10
jmp 0x14005a3c9
lock or dword [rcx + 0x14], ebp
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14005a2b7
call fcn.14005b23c
mov r14d, dword [rbx + 0x10]
cmp r14d, ebp
jne 0x14005a2c8
mov rax, qword [rbx]
mov r15b, byte [rax]
jmp 0x14005a2cb
xor r15b, r15b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.1400568f8
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.14005c230
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14005a3b7
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14005a35e
mov rcx, rbx
call fcn.1400568f8
cmp eax, 0xffffffff
je 0x14005a349
mov rcx, rbx
call fcn.1400568f8
cmp eax, 0xfffffffe
je 0x14005a349
mov rcx, rbx
call fcn.1400568f8
movsxd rdi, eax
lea rsi, [0x14008a580]
mov rcx, rbx
sar rdi, 6
call fcn.1400568f8
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14005a350
lea rdx, [0x140087470]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14005a35e
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14005a384
mov eax, dword [rbx + 0x14]
shr eax, 6
test bpl, al
je 0x14005a384
mov eax, dword [rbx + 0x14]
shr eax, 8
test bpl, al
jne 0x14005a384
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp r14d, ebp
jne 0x14005a39f
movzx ecx, byte [rdx]
shl cx, 8
movzx eax, r15b
or cx, ax
dec dword [rbx + 0x10]
jmp 0x14005a3ab
movzx ecx, word [rdx]
mov ebp, 2
add dword [rbx + 0x10], 0xfffffffe
lea rax, [rdx + rbp]
mov qword [rbx], rax
movzx eax, cx
jmp 0x14005a3ce
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
jmp 0x14005a238
Function at 0x14005a3e8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14005a41a
call fcn.14004aac0
mov dword [rax], 0x16
call fcn.140047964
jmp 0x14005a539
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14005a539
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14005a539
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14005a449
lock or dword [rcx + 0x14], 0x10
jmp 0x14005a539
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14005a45d
call fcn.14005b23c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400568f8
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14005c230
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14005a527
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14005a4f2
mov rcx, rsi
call fcn.1400568f8
cmp eax, edi
je 0x14005a4dd
mov rcx, rsi
call fcn.1400568f8
cmp eax, 0xfffffffe
je 0x14005a4dd
mov rcx, rsi
call fcn.1400568f8
movsxd rbx, eax
lea r14, [0x14008a580]
mov rcx, rsi
sar rbx, 6
call fcn.1400568f8
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14005a4e4
lea rdx, [0x140087470]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14005a4f2
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14005a516
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14005a516
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14005a516
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14005a53c
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret