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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r14, r8
mov rsi, rdx
mov rbp, rcx
mov rdx, qword [r8 + 0x10]
mov rcx, r8
cmp qword [r8 + 0x18], 8
jb 0x140013eb8
mov rcx, qword [r8]
movabs rbx, 0xcbf29ce484222325
xor r8d, r8d
add rdx, rdx
je 0x140013ef4
movabs r9, 0x100000001b3
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
xor rbx, rax
imul rbx, r9
inc r8
cmp r8, rdx
jb 0x140013ee0
mov r9, rbx
mov r8, r14
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.140013980
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x140013f1d
mov qword [rsi], rax
mov byte [rsi + 8], 0
jmp 0x140014048
movabs rax, 0x555555555555555
cmp qword [rbp + 0x10], rax
je 0x14001406a
lea r12, [rbp + 8]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 0
mov ecx, 0x30
call fcn.140024c18
mov rdi, rax
mov qword [rsp + 0x38], rax
mov rdx, r14
lea rcx, [rax + 0x10]
call fcn.140003b30
nop
mov r9, qword [rbp + 0x10]
lea rcx, [r9 + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x140013f79
cvtsi2ss xmm0, rcx
jmp 0x140013f8e
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [rbp + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x140013fa1
cvtsi2ss xmm1, rcx
jmp 0x140013fb6
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [rbp]
seta al
test al, al
je 0x140013fed
mov rcx, rbp
call fcn.14001fde0
mov r9, rbx
lea r8, [rdi + 0x10]
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.140013980
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x20], xmm0
mov r9, qword [rbp + 0x10]
mov rdx, qword [rsp + 0x20]
mov r8, qword [rdx + 8]
lea rax, [r9 + 1]
mov qword [rbp + 0x10], rax
mov qword [rdi], rdx
mov qword [rdi + 8], r8
mov qword [r8], rdi
mov qword [rdx + 8], rdi
mov rcx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x30]
and rax, rbx
add rax, rax
mov r9, qword [rcx + rax*8]
cmp r9, qword [r12]
jne 0x14001402a
mov qword [rcx + rax*8], rdi
jmp 0x14001403c
cmp r9, rdx
jne 0x140014035
mov qword [rcx + rax*8], rdi
jmp 0x140014041
cmp qword [rcx + rax*8 + 8], r8
jne 0x140014041
mov qword [rcx + rax*8 + 8], rdi
mov qword [rsi], rdi
mov byte [rsi + 8], 1
mov rax, rsi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
lea rcx, str.unordered_map_set_too_long
call fcn.1400229f4
int3
Function at 0x140014080
Capabilities:
Encode data using xor
Hash data using fnv

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, 0x40
mov r14, r8
mov rsi, rdx
mov rbp, rcx
mov r8, qword [r8 + 0x10]
mov rdx, r14
cmp qword [r14 + 0x18], 8
jb 0x1400140b6
mov rdx, qword [r14]
movabs rbx, 0xcbf29ce484222325
xor r13d, r13d
mov ecx, r13d
add r8, r8
je 0x1400140f3
movabs r9, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
xor rbx, rax
imul rbx, r9
inc rcx
cmp rcx, r8
jb 0x1400140e0
mov r9, rbx
mov r8, r14
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.140013980
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x14001411c
mov qword [rsi], rax
mov byte [rsi + 8], r13b
jmp 0x140014263
movabs rax, 0x555555555555555
cmp qword [rbp + 0x10], rax
je 0x140014286
lea r12, [rbp + 8]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r13
mov ecx, 0x30
call fcn.140024c18
mov rdi, rax
mov qword [rsp + 0x38], rax
mov qword [rax + 0x10], r13
mov qword [rax + 0x20], r13
mov qword [rax + 0x28], r13
movups xmm0, xmmword [r14]
movups xmmword [rax + 0x10], xmm0
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rax + 0x20], xmm1
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], 7
mov word [r14], r13w
mov r9, qword [rbp + 0x10]
lea rcx, [r9 + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x140014194
cvtsi2ss xmm0, rcx
jmp 0x1400141a9
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [rbp + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x1400141bc
cvtsi2ss xmm1, rcx
jmp 0x1400141d1
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [rbp]
seta al
test al, al
je 0x140014208
mov rcx, rbp
call fcn.14001fde0
mov r9, rbx
lea r8, [rdi + 0x10]
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.140013980
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x20], xmm0
mov r9, qword [rbp + 0x10]
mov rdx, qword [rsp + 0x20]
mov r8, qword [rdx + 8]
lea rax, [r9 + 1]
mov qword [rbp + 0x10], rax
mov qword [rdi], rdx
mov qword [rdi + 8], r8
mov qword [r8], rdi
mov qword [rdx + 8], rdi
mov rcx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x30]
and rax, rbx
add rax, rax
mov r9, qword [rcx + rax*8]
cmp r9, qword [r12]
jne 0x140014245
mov qword [rcx + rax*8], rdi
jmp 0x140014257
cmp r9, rdx
jne 0x140014250
mov qword [rcx + rax*8], rdi
jmp 0x14001425c
cmp qword [rcx + rax*8 + 8], r8
jne 0x14001425c
mov qword [rcx + rax*8 + 8], rdi
mov qword [rsi], rdi
mov byte [rsi + 8], 1
mov rax, rsi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, str.unordered_map_set_too_long
call fcn.1400229f4
int3
Function at 0x140016e10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140069798]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rdx
mov rdi, rcx
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 8
jb 0x140016e42
mov rdx, qword [rdx]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
add r8, r8
je 0x140016e73
movabs r10, 0x100000001b3
nop dword [rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, r8
jb 0x140016e60
mov r8, rbx
lea rdx, [rsp + 0x30]
lea rcx, [0x14006b630]
call fcn.140013980
mov rdx, qword [rax + 8]
mov rax, qword [0x14006b638]
test rdx, rdx
cmovne rax, rdx
cmp rax, qword [0x14006b638]
jne 0x140016fc5
mov r8, rbx
lea rdx, [rsp + 0x30]
lea rcx, [0x14006b630]
call fcn.140013e80
lea rcx, [rdi + 0x158]
lea rsi, [0x14004d750]
mov qword [rsp + 0x20], rsi
mov r9, qword [str.antiThreadReasonList]
mov r8, qword [str.dingtalk]
lea rdx, [rsp + 0x40]
call fcn.14001b210
nop
cmp qword [rsp + 0x50], 0x100
jbe 0x140016f01
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.1400022a0
cmp qword [rbx + 0x18], 8
jb 0x140016f0b
mov rbx, qword [rbx]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x140016f12
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140002120
mov r8d, 1
lea rdx, [0x140050af0]
lea rcx, [rsp + 0x40]
call fcn.140002120
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
cmovae r8, rcx
cmp qword [rdi + 0x170], 0
je 0x140016f91
lea r9, [rdi + 0x160]
cmp qword [r9 + 0x18], 8
jb 0x140016f73
mov r9, qword [r9]
mov rdx, qword [str.antiThreadReasonList]
mov rcx, qword [str.dingtalk]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140016fc5
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016fc0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016fe4
call fcn.140024eac
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140024fc0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14002b74c
int3
Function at 0x140018690
Capabilities:
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x480]
sub rsp, 0x580
mov rax, qword [0x140069798]
xor rax, rsp
mov qword [rbp + 0x470], rax
mov rsi, r8
movzx r14d, r9b
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x104
call fcn.1400267c0
cmp qword [rbx + 0x18], 0
jne 0x1400186e4
xor al, al
jmp 0x140018880
mov r9d, r14d
lea r8, [0x14004f4c0]
mov edx, 0x82
lea rcx, [rsp + 0x50]
call fcn.140021b70
xor edx, edx
lea rcx, [rbp + 0x60]
mov r8d, 0x410
call fcn.1400267c0
cmp qword [rbx + 0x18], 0
jne 0x14001873b
xor ebx, ebx
lea r10, [rsp + 0x30]
mov r9d, 7
mov qword [rsp + 0x30], rbx
mov r11d, ebx
mov qword [rsp + 0x40], rbx
mov edi, ebx
mov qword [rsp + 0x48], r9
jmp 0x1400187d9
cmp qword [rbx + 0x20], 8
lea rax, [rbx + 8]
jb 0x140018749
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x60]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x20], 0x208
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ebx, ebx
mov r9d, 7
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], r9
lea r8, [rbx - 1]
test eax, eax
jne 0x1400187a1
lea rax, [rsp + 0x50]
nop
inc r8
cmp word [rax + r8*2], bx
jne 0x140018790
lea rdx, [rsp + 0x50]
jmp 0x1400187b3
lea rax, [rbp + 0x60]
inc r8
cmp word [rax + r8*2], bx
jne 0x1400187a5
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.1400022a0
mov r9, qword [rsp + 0x48]
lea r10, [rsp + 0x30]
mov r11, qword [rsp + 0x30]
cmp r9, 8
mov rdi, qword [rsp + 0x40]
cmovae r10, r11
mov esi, 1
lea rax, [0x14004f4c8]
cmp rdi, rsi
mov rcx, rdi
cmova rcx, rsi
test rcx, rcx
je 0x140018830
movzx edx, word [r10]
mov r8d, 0x31
cmp dx, r8w
jb 0x140018829
sub r10, rax
cmp dx, r8w
ja 0x140018841
cmp rcx, rsi
je 0x140018830
movzx edx, word [r10 + rax + 2]
add rax, 2
dec rcx
movzx r8d, word [rax]
cmp dx, r8w
jae 0x14001880b
mov esi, 0xffffffff
jmp 0x140018841
cmp rdi, rsi
jae 0x14001883c
mov esi, 0xffffffff
jmp 0x140018841
seta bl
mov esi, ebx
test esi, esi
sete bl
cmp r9, 8
jb 0x14001887d
lea rdx, [r9*2 + 2]
mov rax, r11
cmp rdx, 0x1000
jb 0x140018875
mov r11, qword [r11 - 8]
add rdx, 0x27
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001889d
mov rcx, r11
call fcn.140024eac
movzx eax, bl
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.140024fc0
add rsp, 0x580
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14002b74c
int3
Function at 0x1400188e0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140069798]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], cx
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], cx
jne 0x140018920
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400022a0
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14001a820
mov ebx, eax
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140018985
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018980
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001899a
call fcn.140024eac
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140024fc0
add rsp, 0x50
pop rbx
ret
call fcn.14002b74c
int3
Function at 0x14001be10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov r9, rcx
mov rcx, qword [rcx]
movsxd rax, dword [rcx - 0x10]
lea r8d, [rax - 1]
test r8d, r8d
js 0x14001be57
cmp r8d, eax
jg 0x14001bebb
movzx edx, word [rcx + rax*2 - 2]
cmp dx, 0x5c
je 0x14001be43
cmp dx, 0x2f
jne 0x14001be57
lea rdx, [rsp + 0x30]
mov rcx, r9
call fcn.140008d60
mov rbx, qword [rsp + 0x30]
jmp 0x14001be69
add rcx, 0xffffffffffffffe8
call fcn.140004ed0
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14001be8f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x14001be8f
mov edi, 1
jmp 0x14001be91
xor edi, edi
lea rdx, [rbx - 0x18]
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14001beae
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rVariantCopy + 8]
mov eax, edi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
mov ecx, 0x80070057
call fcn.140002530
int3
Function at 0x14001d3e0
Capabilities:
Terminate thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x140069798]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rbx, rdx
mov r15, rcx
mov rdx, qword [r8 + 0x20]
mov r12, qword [r8 + 0x10]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x68], rdi
mov esi, 7
mov qword [rsp + 0x70], rsi
mov word [rsp + 0x58], di
lea r9d, [rdi + 0x30]
lea r8, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
jne 0x14001d480
lea rdx, [0x140069378]
cmp qword [0x140069390], 8
cmovae rdx, qword [0x140069378]
mov r8, qword [0x140069388]
jmp 0x14001d5f1
movzx ecx, byte [rsp + 0x4c]
lea eax, [rcx - 0x10]
cmp eax, 0x30
ja 0x14001d49d
movabs rdx, 0x1000000010001
bt rdx, rax
jb 0x14001d4c8
cmp ecx, 0x80
je 0x14001d4c8
lea rdx, [0x140069398]
cmp qword [0x1400693b0], 8
cmovae rdx, qword [0x140069398]
mov r8, qword [0x1400693a8]
jmp 0x14001d5f1
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call fcn.1400267c0
mov r9d, 0x104
lea r8, [rbp - 0x60]
mov rdx, qword [rsp + 0x30]
mov rcx, rbx
call sub.KERNEL32.dll_K32GetModuleBaseNameW
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], rsi
lea rax, [rbp - 0x60]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14001d510
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x78]
call fcn.1400022a0
cmp qword [rbp - 0x78], 0
sete r14b
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x14001d573
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001d56e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001d67b
call fcn.140024eac
test r14b, r14b
je 0x14001d598
lea rdx, [0x1400693b8]
cmp qword [0x1400693d0], 8
cmovae rdx, qword [0x1400693b8]
mov r8, qword [0x1400693c8]
jmp 0x14001d5f1
mov rcx, qword [0x14006b5e8]
test rcx, rcx
jne 0x14001d5cd
mov ecx, 0x1d0
call fcn.140024c18
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14001d5c3
mov rcx, rax
call fcn.1400149f0
mov rdi, rax
mov qword [0x14006b5e8], rdi
mov rcx, rdi
lea rdx, [rbp - 0x60]
call fcn.1400194c0
cmp eax, 2
jne 0x14001d61b
lea rax, [rbp - 0x60]
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14001d5e0
mov r8, rbx
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x58]
call fcn.1400022a0
lea rdx, [rsp + 0x58]
mov rcx, r15
call fcn.140017200
mov edx, 1
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rsi, qword [rsp + 0x70]
cmp rsi, 8
jb 0x14001d654
lea rdx, [rsi*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001d64f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001d675
call fcn.140024eac
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140024fc0
add rsp, 0x2c0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14002b74c
nop
call fcn.14002b74c
nop
int3
Function at 0x14001d9e0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x858
mov rax, qword [0x140069798]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x800
call fcn.1400267c0
lea rdi, [rsp + 0x878]
call fcn.14000c7e0
mov qword [rsp + 0x30], rdi
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], 0
mov r9, 0xffffffffffffffff
mov r8d, 0x400
mov qword [rsp + 0x20], rbx
mov rcx, qword [rax]
call fcn.14002f840
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140024fc0
add rsp, 0x858
pop rdi
pop rbx
ret
Function at 0x14001e5d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x140069798]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbp, r9
mov rbx, r8
mov rsi, rdx
mov r14, rcx
test r9, r9
je 0x14001e7a8
mov rcx, qword [rdx]
mov eax, dword [rcx]
mov dword [rsp + 0x38], eax
mov eax, dword [rcx + 4]
mov dword [rsp + 0x3c], eax
xor r15d, r15d
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x40], r15
mov edi, dword [rcx + 8]
add rdi, r9
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 0x40]
lea r8d, [r15 + 8]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14001e7a8
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 8]
lea r8, [rsp + 0x38]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14001e7a8
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
lea r8d, [r15 + 8]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14001e7a8
cmp byte [rsp + 0xd0], r15b
je 0x14001e727
mov rax, qword [rsi]
mov edi, dword [rax]
add rdi, rbp
mov r8d, dword [rax + 4]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 0x40]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14001e7a8
mov r8, qword [rsi]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 8]
mov r8, qword [r8 + 0x10]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14001e7a8
mov rax, qword [rsi]
mov r8d, dword [rax + 4]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14001e7a8
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r15w
mov r8d, 9
lea rdx, str.repairIAT
lea rcx, [rsp + 0x48]
call fcn.1400022a0
nop
lea rdx, [rsp + 0x48]
mov rcx, r14
call fcn.140017200
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14001e7a4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e79f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e7c4
call fcn.140024eac
mov al, 1
jmp 0x14001e7aa
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140024fc0
add rsp, 0x78
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14002b74c
int3
Function at 0x140021c70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 0x18]
mov rdx, rcx
test rax, rax
jne 0x140021cd4
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x140021cac
mov rcx, qword [rdx]
test rcx, rcx
je 0x140021cd2
cmp dword [rdx + 8], 0x40
mov qword [rdx + 0x10], rcx
jb 0x140021ca1
mov eax, 0x5a4d
cmp word [rcx], ax
je 0x140021ca7
xor ecx, ecx
mov qword [rdx + 0x10], rcx
test rcx, rcx
je 0x140021cd2
movsxd rax, dword [rcx + 0x3c]
lea r8, [rax + rcx]
mov ecx, dword [rdx + 8]
add rax, 0x18
cmp rax, rcx
ja 0x140021cd2
cmp dword [r8], 0x4550
jne 0x140021cd2
lea rax, [r8 + 4]
mov qword [rdx + 0x18], rax
ret
xor eax, eax
ret

Function at 0x140021d00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 0x20]
mov rdx, rcx
test rax, rax
jne 0x140021dfe
mov rax, qword [rcx + 0x18]
xor r11d, r11d
test rax, rax
jne 0x140021d87
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x140021d55
mov rcx, qword [rdx]
test rcx, rcx
je 0x140021dfc
cmp dword [rdx + 8], 0x40
mov qword [rdx + 0x10], rcx
jb 0x140021d45
mov eax, 0x5a4d
cmp word [rcx], ax
je 0x140021d4c
mov qword [rdx + 0x10], r11
mov rcx, r11
test rcx, rcx
je 0x140021dfc
movsxd rax, dword [rcx + 0x3c]
lea r8, [rax + rcx]
mov ecx, dword [rdx + 8]
add rax, 0x18
cmp rax, rcx
ja 0x140021dfc
cmp dword [r8], 0x4550
jne 0x140021dfc
lea rax, [r8 + 4]
mov qword [rdx + 0x18], rax
test rax, rax
je 0x140021dfc
mov r9d, dword [rdx + 8]
lea r8, [rax + 0x14]
mov rcx, r8
sub rcx, qword [rdx + 0x10]
lea rax, [rcx + 2]
cmp rax, r9
ja 0x140021dfc
movzx eax, word [r8]
mov r10d, 0x20b
cmp ax, r10w
jne 0x140021dc4
lea rax, [rcx + 0xf0]
mov dword [rdx + 0xc], 2
cmp rax, r9
ja 0x140021dfc
jmp 0x140021dd7
mov r10d, 0x10b
cmp ax, r10w
jne 0x140021df8
mov dword [rdx + 0xc], 1
add rcx, 0xe0
cmp rcx, r9
ja 0x140021dfc
cmp r9d, 0xffffffff
jne 0x140021df0
mov ecx, dword [r8 + 0x38]
mov dword [rdx + 8], ecx
mov qword [rdx + 0x20], r8
mov rax, r8
ret
mov dword [rdx + 0xc], r11d
xor eax, eax
ret

Function at 0x140036394
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400361c0
Function at 0x14003a8f4
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14003a61a
call fcn.14002b87c
mov dword [rax], 0x16
call fcn.14002b72c
jmp 0x14003a765
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14003a765
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14003a765
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14003a649
lock or dword [rcx + 0x14], 0x10
jmp 0x14003a765
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14003a65d
call fcn.14003b0e0
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x14003a66d
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x14003a670
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.14003a5bc
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.14003fdb4
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14003a753
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14003a701
mov rcx, rbx
call fcn.14003a5bc
cmp eax, 0xffffffff
je 0x14003a6ec
mov rcx, rbx
call fcn.14003a5bc
cmp eax, 0xfffffffe
je 0x14003a6ec
mov rcx, rbx
call fcn.14003a5bc
movsxd rdi, eax
lea r14, [0x14006cc20]
mov rcx, rbx
sar rdi, 6
call fcn.14003a5bc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14003a6f3
lea rdx, [0x140069b50]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14003a701
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14003a725
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14003a725
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14003a725
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x14003a743
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x14003a74e
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x14003a76a
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 + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x14003a5e4
Function at 0x140138ab2
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1403b1680
mov rax, rcx
neg rcx
test rax, 7
je 0x1403b169d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1403b16f8
test al, 7
jne 0x1403b1690
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1403b16b1
mov rdx, qword [rax - 8]
test dl, dl
je 0x1403b1722
test dh, dh
je 0x1403b171c
shr rdx, 0x10
test dl, dl
je 0x1403b1716
test dh, dh
je 0x1403b1710
shr rdx, 0x10
test dl, dl
je 0x1403b170a
test dh, dh
je 0x1403b1704
shr edx, 0x10
test dl, dl
je 0x1403b16fe
test dh, dh
jne 0x1403b16b1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret
Function at 0x1401390cf
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1402b3400
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1402b2d80
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1402b343f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1404b0020]
jmp 0x1402b3449
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret