joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400216e8
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 0x14002171a
call fcn.140016164
mov dword [rax], 0x16
call fcn.140010214
jmp 0x140021839
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140021839
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140021839
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140021749
lock or dword [rcx + 0x14], 0x10
jmp 0x140021839
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14002175d
call fcn.140022d4c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14001f0f4
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400224c8
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140021827
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400217f2
mov rcx, rsi
call fcn.14001f0f4
cmp eax, edi
je 0x1400217dd
mov rcx, rsi
call fcn.14001f0f4
cmp eax, 0xfffffffe
je 0x1400217dd
mov rcx, rsi
call fcn.14001f0f4
movsxd rbx, eax
lea r14, [0x14004a5b0]
mov rcx, rsi
sar rbx, 6
call fcn.14001f0f4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400217e4
lea rdx, [0x1400483e0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400217f2
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140021816
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140021816
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140021816
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 0x14002183c
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
Function at 0x140021b64
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.140009f50
sub rsp, rax
mov rax, qword [0x140048030]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001f0f4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140021bb3
mov rax, rbp
jmp 0x140021cbb
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 + 0x4a5b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140022ca0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4a5b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140021cb7
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 0x140021cb7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140022ca0
test rax, rax
js 0x140021cb7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140021cb7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140021ca9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140021ca9
cmp byte [rcx], 0xd
jne 0x140021c8f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140021c9e
cmp byte [rcx + 1], 0xa
jne 0x140021c9e
inc rcx
jmp 0x140021c9e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x48430]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140021c71
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140021cbb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140009aa0
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 0x14002201c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14004a5b0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14002207a
cmp word [rdx], r12w
jne 0x14002207a
or byte [rax + r8*8 + 0x38], cl
jmp 0x140022080
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400221db
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400221b6
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400220b9
mov rcx, r9
jmp 0x1400220dc
cmp r9, rdx
jae 0x1400220f3
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14002209d
jmp 0x1400221db
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400221b0
cmp dword [rsp + 0x80], edi
je 0x1400221b0
mov rdx, r14
lea r11, [0x14004a5b0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140022189
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14002215c
mov word [rbx], r12w
jmp 0x1400221d7
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140022165
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400221d7
cmp word [rsp + 0x70], r12w
jne 0x140022196
cmp rbx, rsi
je 0x140022156
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140022ca8
cmp word [rsp + 0x70], r12w
je 0x1400221db
mov word [rbx], r13w
jmp 0x1400221d7
lea r11, [0x14004a5b0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400221d3
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400221db
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140024514
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 0x14002459b
mov rsi, rbx
cmp word [rax], bp
je 0x14002455a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140024544
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140024540
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001cd58
mov rdi, rax
test rax, rax
je 0x140024588
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000b9c0
mov rbp, rdi
xor ecx, ecx
call fcn.14001cd1c
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 0x14002ee30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rbx, qword [0x14004aba8]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x20012
mov dword [rbp - 0x1c], 0x2f000f
mov dword [rbp - 0x18], 0x5c0015
mov dword [rbp - 0x14], 0x68004b
mov dword [rbp - 0x10], 0x10003
mov dword [rbp - 0xc], 0x6d002f
call fcn.14000690c
mov rcx, qword [rax]
call rbx
mov rbx, qword [0x14004aba8]
lea rcx, [rbp - 0x20]
mov qword [0x14004ab88], rax
mov dword [rbp - 0x20], 0x30016
mov dword [rbp - 0x1c], 0x2a0004
mov dword [rbp - 0x18], 0xa0017
mov dword [rbp - 0x14], 0x68000d
mov dword [rbp - 0x10], 0x10003
mov dword [rbp - 0xc], 0x6d002f
call fcn.14000690c
mov rcx, qword [rax]
call rbx
movdqa xmm0, xmmword [0x140042820]
lea rcx, [rbp - 0x20]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x14004ab98], rax
mov word [rbp - 0x10], 0x2733
mov byte [rbp - 0xe], 0x59
call fcn.140006ee4
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x2f0f0212
mov dword [rbp - 0x1c], 0x23012a15
mov dword [rbp - 0x18], 0x8371804
mov word [rbp - 0x14], 0x4532
call fcn.140006a30
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x261e0408
mov dword [rbp - 0x1c], 0x321c010b
mov dword [rbp - 0x18], 0x3261d28
mov word [rbp - 0x14], 0x4524
call fcn.140006a30
mov rcx, qword [0x14004ab98]
mov rdx, qword [rax]
call fcn.14002f854
movdqa xmm0, xmmword [0x140042880]
lea rcx, [rbp - 0x20]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x14004ab40], rax
mov byte [rbp - 0x10], 0x45
call fcn.140006e38
mov rcx, qword [0x14004ab98]
mov rdx, qword [rax]
call fcn.14002f854
movdqa xmm0, xmmword [0x1400427c0]
lea rcx, [rbp - 0x20]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x14004ab48], rax
mov dword [rbp - 0x10], 0x6a3c1c21
call fcn.140006604
mov rcx, qword [0x14004ab98]
mov rdx, qword [rax]
call fcn.14002f854
movdqa xmm0, xmmword [0x140042800]
lea rcx, [rbp - 0x20]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x14004ab38], rax
mov byte [rbp - 0x10], 0x45
call fcn.140006e38
mov rcx, qword [0x14004ab98]
mov rdx, qword [rax]
call fcn.14002f854
movdqa xmm0, xmmword [0x140042760]
lea rcx, [rbp - 0x20]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x14004ab30], rax
mov dword [rbp - 0x10], 0x2b371f2c
mov byte [rbp - 0xc], 0x48
call fcn.140006adc
movdqa xmm0, xmmword [0x1400427d0]
movdqu xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov word [rbp - 0x10], 0x312b
mov byte [rbp - 0xe], 0x59
call fcn.140006ee4
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14002f760
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
jmp 0x14002f79c
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
call fcn.14000a95c
test rax, rax
jne 0x14002f7b3
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x14002f788
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
jmp 0x14002f7a3
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov eax, 0x43
mov dword [rbp - 0x20], 0x2f000a
lea rcx, [rbp - 0x20]
mov word [rbp - 0xc], ax
mov dword [rbp - 0x1c], 0xd0038
mov dword [rbp - 0x18], 0x23003c
mov dword [rbp - 0x14], 0x7003b
mov dword [rbp - 0x10], 0x280034
call fcn.1400071e8
mov rcx, qword [rax]
call 0x14002f760
mov qword [0x14004aba0], rax
lea rcx, [rbp - 0x20]
mov eax, 0x67
mov dword [rbp - 0x20], 0x2f000a
mov word [rbp - 0x10], ax
mov dword [rbp - 0x1c], 0xd0038
mov dword [rbp - 0x18], 0x23003c
mov dword [rbp - 0x14], 0x74004a
call fcn.14000716c
mov rcx, qword [rax]
call 0x14002f760
lea rcx, [rbp - 0x20]
mov qword [0x14004ab90], rax
mov dword [rbp - 0x20], 0x1e002f
mov dword [rbp - 0x1c], 0x2f000e
mov dword [rbp - 0x18], 0x6f0015
call fcn.1400070f0
mov rcx, qword [rax]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
jmp 0x14002f760

Function at 0x14002f7bc
Capabilities:
Resolve function by parsing pe exports

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, 0x20
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov r13, rdx
mov rsi, rcx
mov edi, dword [rax + rcx + 0x88]
add rdi, rcx
mov r14d, dword [rdi + 0x1c]
mov r15d, dword [rdi + 0x20]
add r14, rcx
mov r12d, dword [rdi + 0x24]
add r15, rcx
add r12, rcx
cmp dword [rdi + 0x18], ebx
jbe 0x14002f82f
movzx eax, word [r12 + rbx*2]
mov rdx, r13
mov ecx, dword [r15 + rbx*4]
add rcx, rsi
mov ebp, dword [r14 + rax*4]
add rbp, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x14002f84e
inc ebx
cmp ebx, dword [rdi + 0x18]
jb 0x14002f808
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, rbp
jmp 0x14002f831
Function at 0x14002f854
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r10, rdx
mov r9, rcx
test rcx, rcx
je 0x14002f8d5
test rdx, rdx
je 0x14002f8d5
movsxd rax, dword [rcx + 0x3c]
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov edi, dword [r8 + 0x1c]
mov edx, dword [r8 + 0x20]
add rdi, rcx
mov esi, dword [r8 + 0x24]
add rdx, rcx
mov ebp, dword [r8 + 0x18]
add rsi, rcx
xor ecx, ecx
test ebp, ebp
je 0x14002f8d5
mov eax, dword [rdx]
mov rbx, r10
add rax, r9
sub rbx, rax
movzx r8d, byte [rax]
movzx r11d, byte [rax + rbx]
sub r8d, r11d
jne 0x14002f8c6
inc rax
test r11d, r11d
jne 0x14002f8b0
test r8d, r8d
je 0x14002f8ec
inc ecx
add rdx, 4
cmp ecx, ebp
jb 0x14002f8a5
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
movzx ecx, word [rsi + rcx*2]
mov eax, dword [rdi + rcx*4]
add rax, r9
jmp 0x14002f8d7
Function at 0x140032080
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
jmp 0x14002f79c
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
call fcn.14000a95c
test rax, rax
jne 0x14002f7b3
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x14002f788
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
jmp 0x14002f7a3
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov eax, 0x43
mov dword [rbp - 0x20], 0x2f000a
lea rcx, [rbp - 0x20]
mov word [rbp - 0xc], ax
mov dword [rbp - 0x1c], 0xd0038
mov dword [rbp - 0x18], 0x23003c
mov dword [rbp - 0x14], 0x7003b
mov dword [rbp - 0x10], 0x280034
call fcn.1400071e8
mov rcx, qword [rax]
call 0x14002f760
mov qword [0x14004aba0], rax
lea rcx, [rbp - 0x20]
mov eax, 0x67
mov dword [rbp - 0x20], 0x2f000a
mov word [rbp - 0x10], ax
mov dword [rbp - 0x1c], 0xd0038
mov dword [rbp - 0x18], 0x23003c
mov dword [rbp - 0x14], 0x74004a
call fcn.14000716c
mov rcx, qword [rax]
call 0x14002f760
lea rcx, [rbp - 0x20]
mov qword [0x14004ab90], rax
mov dword [rbp - 0x20], 0x1e002f
mov dword [rbp - 0x1c], 0x2f000e
mov dword [rbp - 0x18], 0x6f0015
call fcn.1400070f0
mov rcx, qword [rax]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
jmp 0x14002f760
Function at 0x140001820
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.1400026f0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400026f0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140001fb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140007100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140002004
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140001ffb
test r12, r12
je 0x140001ffb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001fe0
lea rcx, [0x140007100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002340
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140004880]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400023b9
mov rcx, r10
call fcn.140002210
test eax, eax
je 0x1400023b9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1400023b6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400023ad
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400023b9
add r8, 0x28
cmp r8, r9
jne 0x140002398
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140002810
Capabilities:
Create thread
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
xor esi, esi
mov qword [rsp + 0xb0], rcx
lea rcx, str.KERNEL32.DLL
mov rbx, rdx
mov qword [rsp + 0xc0], r8
call fcn.1400029f0
mov rdi, rax
movsxd rax, dword [rax + 0x3c]
mov eax, dword [rdi + rax + 0x88]
add rax, rdi
mov edx, dword [rax + 0x20]
mov ebp, dword [rax + 0x24]
mov r15d, dword [rax + 0x1c]
mov eax, dword [rax + 0x18]
add rbp, rdi
mov dword [rsp + 0x3c], eax
lea rax, [rdi + rdx]
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x3c], esi
jbe 0x1400028cd
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + rsi*4]
add rcx, rdi
mov qword [rsp + 0x48], rcx
call sub.msvcrt.dll_strlen
movzx edx, word [rbp + rsi*2]
mov rcx, qword [rsp + 0x48]
lea rdx, [rdi + rdx*4]
mov r11d, dword [rdx + r15]
movsxd rdx, eax
add r11, rdi
call fcn.140002980
cmp eax, 0x7747db76
jne 0x1400028b3
mov r14, r11
jmp 0x1400028c8
cmp eax, 0x279a8040
je 0x1400028c5
cmp eax, 0xebd0498e
cmove r12, r11
jmp 0x1400028c8
mov r13, r11
inc rsi
jmp 0x14000286f
mov dword [rsp + 0x58], 4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbx
xor edx, edx
mov r9d, 0x3000
mov r15, rax
mov eax, dword [rsp + 0x58]
mov rcx, r15
mov dword [rsp + 0x20], eax
call r14
mov r8, qword [rsp + 0xb0]
mov r9, rbx
mov rcx, r15
mov qword [rsp + 0x20], 0
mov rbp, rax
mov rdx, rax
call r13
mov rdx, rbx
mov rcx, rbp
mov r9d, 0x40
mov r8, qword [rsp + 0xc0]
call fcn.1400029c0
lea rax, [rsp + 0x58]
mov r8, rbx
mov rdx, rbp
mov rcx, r15
mov qword [rsp + 0x20], rax
mov r9d, 0x20
call r12
lea rax, [rsp + 0x5c]
xor r9d, r9d
mov r8, rbp
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x180003c10
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x70
lea rbx, [rcx + 0xc0]
lea r9, [rsp + 0x88]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1800658a0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x180003d26
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x20], rcx
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x180003c53
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.180017570
lea rax, [rsp + 0x30]
cmp rbx, rax
je 0x180003cd3
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x180003cb6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x180003cb1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180003d0c
mov rcx, r8
call fcn.18005db54
xor ecx, ecx
lea eax, [rcx + 7]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbx + 0x10], xmm1
mov word [rsp + 0x30], cx
jmp 0x180003cd8
mov rax, qword [rsp + 0x48]
cmp rax, 8
jb 0x180003d18
lea rdx, [rax*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003d13
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180003d13
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005db54
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
call fcn.18005d3f0
lea rcx, str.RSkinP
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 6
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.180002b60
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.180002db0
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x180003da4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003d9e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180003d9e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005db54
nop
add rsp, 0x70
pop rbx
ret
Function at 0x18001c0b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rdx]
mov rbx, rcx
cmp dword [rax + 0x38], 0xf
lea r8, [rax + 0x28]
jle 0x18001c0c9
mov r8, qword [r8]
movabs rdx, 0xcbf29ce484222325
movabs r9, 0x100000001b3
nop dword [rax]
movsx rcx, byte [r8]
lea r8, [r8 + 1]
xor rdx, rcx
imul rdx, r9
test cl, cl
jne 0x18001c0e0
mov rcx, qword [0x180078cc8]
mov r8, qword [0x180078cd0]
mov qword [rsp + 0x58], rdx
cmp rcx, r8
je 0x18001c13a
nop dword [rax + rax]
cmp qword [rcx], rdx
jne 0x18001c11b
cmp qword [rcx + 8], rbx
je 0x18001c126
add rcx, 0x18
cmp rcx, r8
jne 0x18001c110
jmp 0x18001c13a
lea rdx, [rcx + 0x18]
sub r8, rdx
call sub.VCRUNTIME140.dll_memmove
sub qword [0x180078cd0], 0x18
lea rdx, [rsp + 0x58]
lea rcx, [0x180078ce0]
call fcn.18001cbb0
mov rcx, qword [rax + 8]
cmp qword [rax], rcx
je 0x18001c1bb
mov rax, qword [rsp + 0x58]
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [0x180078cd0]
cmp rdx, qword [0x180078cd8]
movss xmm0, dword [rax + 0x220d6e8]
movss dword [rsp + 0x30], xmm0
je 0x18001c1aa
movups xmm0, xmmword [rsp + 0x20]
movsd xmm1, qword [rsp + 0x30]
movups xmmword [rdx], xmm0
movsd qword [rdx + 0x10], xmm1
add qword [0x180078cd0], 0x18
add rsp, 0x40
pop rbx
ret
lea r8, [rsp + 0x20]
lea rcx, [0x180078cc8]
call fcn.180021fc0
add rsp, 0x40
pop rbx
ret

Function at 0x18001c660
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rdx + 8]
mov rsi, rdx
sub rbx, qword [rdx]
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, [rsp + 0x48]
mov r9d, 0x40
mov qword [rsp + 0x20], rcx
mov r8, rbx
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rdx, qword [rsi]
mov rcx, rdi
mov r8, qword [rsi + 8]
sub r8, rdx
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsi]
test rcx, rcx
je 0x18001c6f5
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x18001c6e3
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001c705
mov rcx, r8
call fcn.18005db54
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3