joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401054f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, r8
mov r12d, edx
mov r14, rcx
mov r15d, 0x1000
mov rcx, qword [0x140895788]
mov r8d, r15d
xor edx, edx
mov r13, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x1401056cb
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
mov qword [rsp + 0x78], rdi
cmp rsi, 0xffffffffffffffff
je 0x140105557
test rsi, rsi
je 0x140105620
dec rsi
cmp qword [r14 + 8], 0
lea rdi, [r14 + 8]
lea rdx, [rsp + 0x30]
je 0x14010557b
mov r8d, 1
mov rcx, r14
call fcn.1401053a0
mov dword [rsp + 0x34], eax
jmp 0x14010559c
mov rcx, qword [r14]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
movzx r8d, byte [rsp + 0x30]
cmp eax, 1
jne 0x140105624
test r8b, r8b
je 0x1401055b8
mov byte [rbx], r8b
inc rbx
movzx r8d, byte [rsp + 0x30]
mov rdx, rbx
lea eax, [r15 - 1]
sub rdx, rbp
movsxd rcx, eax
cmp rdx, rcx
jle 0x1401055fa
mov rcx, qword [0x140895788]
add r15d, 0x1000
movsxd r9, r15d
mov r8, rbp
mov edx, 8
sub ebx, ebp
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx r8d, byte [rsp + 0x30]
mov rbp, rax
movsxd rbx, ebx
add rbx, rax
test r8b, r8b
je 0x140105624
test r12d, r12d
jne 0x140105545
cmp r8b, 0xd
je 0x14010562d
cmp r8b, 0xa
jne 0x140105545
dec rbx
jmp 0x1401056b1
lea rdi, [r14 + 8]
test r12d, r12d
jne 0x1401056b1
cmp r8b, 0xa
jne 0x140105638
dec rbx
jmp 0x1401056b1
cmp r8b, 0xd
jne 0x1401056b1
dec rbx
lea rdx, [rsp + 0x30]
cmp qword [rdi], 0
je 0x140105660
mov r8d, 1
mov rcx, r14
call fcn.1401053a0
mov dword [rsp + 0x34], eax
jmp 0x14010567d
mov rcx, qword [r14]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [rsp + 0x30], 0xa
je 0x1401056b1
cmp qword [rdi], 0
je 0x140105690
inc dword [r14 + 0x14]
jmp 0x1401056b1
mov rcx, qword [r14]
lea r8, [rsp + 0x3c]
mov r9d, 1
mov qword [rsp + 0x38], 0xffffffffffffffff
lea edx, [r9 - 2]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdi, qword [rsp + 0x78]
mov rax, rbx
sub rax, rbp
mov qword [r13], rax
mov rax, rbp
mov byte [rbx], 0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x1401056f0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], r9
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbp, r8
mov r12d, edx
mov r14, rcx
xor edx, edx
mov rcx, qword [0x140895788]
mov r8d, 0x1000
xor edi, edi
mov r13d, 0x800
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x1401058e8
movzx edx, word [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
mov qword [rsp + 0x78], rsi
nop dword [rax + rax]
cmp rbp, 0xffffffffffffffff
je 0x140105762
test rbp, rbp
je 0x140105828
dec rbp
cmp qword [r14 + 8], 0
lea rsi, [r14 + 8]
lea rdx, [rsp + 0x30]
je 0x140105786
mov r8d, 2
mov rcx, r14
call fcn.1401053a0
mov dword [rsp + 0x34], eax
jmp 0x1401057a3
mov rcx, qword [r14]
lea r9, [rsp + 0x34]
mov r8d, 2
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
movzx edx, word [rsp + 0x30]
cmp eax, 2
jne 0x14010582c
test dx, dx
je 0x1401057be
mov word [rbx], dx
add rbx, 2
movzx edx, word [rsp + 0x30]
mov rdi, rbx
lea eax, [r13 - 1]
sub rdi, r15
movsxd rcx, eax
sar rdi, 1
cmp rdi, rcx
jle 0x140105804
mov rcx, qword [0x140895788]
add r13d, 0x800
movsxd r9, r13d
mov r8, r15
add r9, r9
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx edx, word [rsp + 0x30]
mov r15, rax
movsxd rax, edi
lea rbx, [r15 + rax*2]
test dx, dx
je 0x14010582c
mov edi, 0
test r12d, r12d
jne 0x140105750
cmp dx, 0xd
je 0x140105831
cmp dx, 0xa
je 0x140105837
jmp 0x140105750
lea rsi, [r14 + 8]
test r12d, r12d
jne 0x14010583b
cmp dx, 0xa
jne 0x140105866
sub rbx, 2
xor edi, edi
mov rcx, qword [rsp + 0x88]
mov rax, rbx
mov rsi, qword [rsp + 0x78]
sub rax, r15
sar rax, 1
mov qword [rcx], rax
mov rax, r15
mov word [rbx], di
mov rbx, qword [rsp + 0x70]
jmp 0x1401058eb
cmp dx, 0xd
jne 0x14010583b
sub rbx, 2
lea rdx, [rsp + 0x30]
cmp qword [rsi], 0
je 0x140105891
mov r8d, 2
mov rcx, r14
call fcn.1401053a0
mov dword [rsp + 0x34], eax
xor edi, edi
jmp 0x1401058aa
mov rcx, qword [r14]
lea r9, [rsp + 0x34]
xor edi, edi
mov qword [rsp + 0x20], rdi
lea r8d, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [rsp + 0x30], 0xa
je 0x14010583d
cmp qword [rsi], 0
je 0x1401058c2
add dword [r14 + 0x14], 2
jmp 0x14010583d
mov rcx, qword [r14]
lea r8, [rsp + 0x3c]
mov r9d, 1
mov qword [rsp + 0x38], 0xfffffffffffffffe
lea edx, [r9 - 3]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x14010583d
mov rax, rdi
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140105910
Capabilities:
Read file on windows

Disassembly:
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 rdi, r8
mov r15d, edx
mov rsi, rcx
mov r14d, 0x1000
mov rcx, qword [0x140895788]
mov r8d, r14d
xor edx, edx
mov r12, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140105aaa
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x60], rbx
mov rbx, rax
cmp rdi, 0xffffffffffffffff
je 0x140105979
test rdi, rdi
je 0x140105a07
dec rdi
mov rdx, rbx
mov rcx, rsi
call fcn.1401433b0
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x140105991
xor r8b, r8b
jmp 0x140105995
movzx r8d, byte [rbx]
cdqe
add rbx, rax
mov byte [rsp + 0x30], r8b
mov rdx, rbx
lea eax, [r14 - 5]
sub rdx, rbp
movsxd rcx, eax
cmp rdx, rcx
jle 0x1401059e1
mov rcx, qword [0x140895788]
add r14d, 0x1000
movsxd r9, r14d
mov r8, rbp
mov edx, 8
sub ebx, ebp
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx r8d, byte [rsp + 0x30]
mov rbp, rax
movsxd rbx, ebx
add rbx, rax
test r8b, r8b
je 0x140105a07
test r15d, r15d
jne 0x140105967
cmp r8b, 0xd
je 0x140105a10
cmp r8b, 0xa
jne 0x140105967
dec rbx
jmp 0x140105a95
test r15d, r15d
jne 0x140105a95
cmp r8b, 0xa
jne 0x140105a1b
dec rbx
jmp 0x140105a95
cmp r8b, 0xd
jne 0x140105a95
dec rbx
lea rdx, [rsp + 0x30]
cmp qword [rsi + 8], 0
je 0x140105a44
mov r8d, 1
mov rcx, rsi
call fcn.1401053a0
mov dword [rsp + 0x34], eax
jmp 0x140105a61
mov rcx, qword [rsi]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [rsp + 0x30], 0xa
je 0x140105a95
cmp qword [rsi + 8], 0
je 0x140105a74
inc dword [rsi + 0x14]
jmp 0x140105a95
mov rcx, qword [rsi]
lea r8, [rsp + 0x3c]
mov r9d, 1
mov qword [rsp + 0x38], 0xffffffffffffffff
lea edx, [r9 - 2]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, rbx
sub rax, rbp
mov qword [r12], rax
mov rax, rbp
mov byte [rbx], 0
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
Function at 0x140105ad0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push r14
sub rsp, 0x38
xor ebp, ebp
movsxd rbx, r8d
mov r14, rdx
mov rsi, rcx
mov dword [rsp + 0x60], ebp
cmp dword [rcx + 0x24], ebp
jne 0x140105bca
cmp dword [rcx + 0x1c], 1
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x30], r15
jne 0x140105b2b
mov eax, dword [rcx + 0x14]
lea r9d, [rbp + 1]
mov rcx, qword [rcx]
lea r8, [rsp + 0x7c]
neg eax
cdqe
mov edx, eax
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rsi + 0x10]
mov dword [rsi + 0x14], eax
mov dword [rsi + 0x1c], ebp
mov ecx, dword [rsi + 0x14]
cmp ecx, ebx
jle 0x140105b8c
mov eax, dword [rsi + 0x10]
mov edx, ebx
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rsi + 8]
sub edx, 1
je 0x140105b84
sub edx, 1
je 0x140105b7b
cmp edx, 2
je 0x140105b74
mov r8, rbx
mov rdx, r14
call fcn.1400b5a60
sub dword [rsi + 0x14], ebx
mov rax, rbx
mov rdi, qword [rsp + 0x68]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [r14]
mov dword [rcx], eax
jmp 0x140105b5a
movzx eax, word [r14]
mov word [rcx], ax
jmp 0x140105b5a
movzx eax, byte [r14]
mov byte [rcx], al
jmp 0x140105b5a
mov rcx, rsi
call fcn.140085720
mov eax, dword [rsi + 0x10]
mov rdx, r14
cmp ebx, eax
jl 0x140105bbb
mov rcx, qword [rsi]
lea r9, [rsp + 0x60]
mov r8d, ebx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x60]
jmp 0x140105b60
sub eax, dword [rsi + 0x14]
mov r8, rbx
movsxd rcx, eax
add rcx, qword [rsi + 8]
jmp 0x140105b55
movsxd rax, ebp
add rsp, 0x38
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x14010a704
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r9, rcx
test rcx, rcx
jne 0x14010a716
mov eax, r8d
jmp 0x14010a780
lea rbx, [0x140198d20]
not r8d
cmp edx, 8
jb 0x14010a759
mov r10d, edx
shr r10, 3
mov r11d, 8
movzx ecx, byte [r9]
mov eax, r8d
xor rcx, rax
shr r8d, 8
movzx eax, cl
inc r9
xor r8d, dword [rbx + rax*4]
sub r11, 1
jne 0x14010a732
add edx, 0xfffffff8
sub r10, 1
jne 0x14010a72c
test edx, edx
je 0x14010a77a
movzx ecx, byte [r9]
mov eax, r8d
xor rcx, rax
shr r8d, 8
movzx eax, cl
inc r9
xor r8d, dword [rbx + rax*4]
add edx, 0xffffffff
jne 0x14010a75d
not r8d
movsxd rax, r8d
mov rbx, qword [rsp + 8]
ret

Function at 0x14010a840
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
bt r8d, 0x10
jae 0x14010aa2f
mov rax, rsp
push r12
push r14
sub rsp, 0xc8
mov r12, rdx
mov r14, rcx
test rcx, rcx
je 0x14010aa24
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov ebp, dword [rsp + 0x100]
mov qword [rax + 0x18], rsi
mov qword [rax - 0x18], rdi
lea rdi, [0x1401a1330]
mov qword [rax - 0x20], r13
mov qword [rax - 0x28], r15
mov eax, dword [rcx]
movsxd r15, dword [rcx + 4]
cdq
and edx, 7
add eax, edx
sar eax, 3
test r9, r9
movsxd r13, eax
cmovne rdi, r9
cmp ebp, 0x18
jne 0x14010a8cb
mov rcx, rdi
call fcn.1400b6960
mov rdi, rax
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x14010a8c0
jmp 0x14010a90a
cmp ebp, 0x19
jne 0x14010a8ef
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14010a8e0
add rbx, rbx
jmp 0x14010a90a
mov rcx, rdi
call fcn.14009a2c0
mov rdi, rax
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14010a901
mov rdx, rdi
cmp rbx, r15
jle 0x14010a95d
mov r8d, ebx
mov rcx, r14
call qword [r12 + SafeArrayPutElement]
mov rcx, r14
call qword [r12 + 0x20]
lea rdx, [r14 + 8]
mov r8, r13
lea rcx, [rsp + 0x20]
call fcn.1400b5a60
mov eax, r15d
lea rcx, [rsp + 0x20]
sub eax, r13d
add rcx, r13
movsxd r8, eax
xor edx, edx
call fcn.140077480
mov edx, 1
mov rcx, r14
call qword [r12 + SafeArrayGetElemsize]
jmp 0x14010a981
mov r8, rbx
lea rcx, [rsp + 0x20]
call fcn.1400b5a60
mov eax, r15d
lea rcx, [rsp + 0x20]
sub eax, ebx
add rcx, rbx
movsxd r8, eax
xor edx, edx
call fcn.140077480
lea rcx, [r14 + 0x48]
mov r8, r15
lea rdx, [rsp + 0x20]
call fcn.1400b5a60
mov r13, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xe0]
test r15d, r15d
jle 0x14010a9d8
xor edx, edx
lea rcx, [rsp + 0x20]
mov rax, r14
sub rax, rcx
nop dword [rax]
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
add rcx, rdx
inc rdx
xor byte [rcx], 0x36
xor byte [rax + rcx + 0x48], 0x5c
cmp rdx, r15
jl 0x14010a9c0
mov r8d, r15d
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [r12 + SafeArrayPutElement]
mov r15, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xf0]
cmp ebp, 0x18
jne 0x14010aa07
mov rcx, rdi
call fcn.14009a3a0
jmp 0x14010aa14
cmp ebp, 0x19
je 0x14010aa14
mov rcx, rdi
call fcn.14009a3a0
mov rbp, qword [rsp + 0xe8]
mov rdi, qword [rsp + 0xc0]
add rsp, 0xc8
pop r14
pop r12
ret
Function at 0x14010cbe0
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.140123b30
sub rsp, rax
mov rax, qword [0x140894f10]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140125718
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14010cc2f
mov rax, rbp
jmp 0x14010cd37
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 + 0x8994c0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140143ecc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x8994c0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14010cd33
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 0x14010cd33
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140143ecc
test rax, rax
js 0x14010cd33
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14010cd33
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14010cd25
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14010cd25
cmp byte [rcx], 0xd
jne 0x14010cd0b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14010cd1a
cmp byte [rcx + 1], 0xa
jne 0x14010cd1a
inc rcx
jmp 0x14010cd1a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x894f50]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14010cced
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14010cd37
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401257e0
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 0x14010de80
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x140893e68]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rbx, qword [rax]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x14010dfd4
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x140899028], 0
lea rbx, [0x140899038]
mov r14, rdx
mov r15, rcx
jne 0x14010e021
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x14089902c], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x140899028], 1
mov ecx, dword [0x14089902c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x14010e0f6
mov rcx, qword [0x140895788]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14010e121
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140899030]
test rax, rax
je 0x14010e071
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x140899030], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
lea r9, [rbp + 0x20]
and dword [rsp + 0x28], 0
mov rcx, rax
mov r8, rdi
mov dword [rsp + 0x20], 0x100000
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
lea r8, [0x14010e1f0]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x14089902c]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x140895788]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14010e121
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x14010e210
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x140897c48]
xor edx, edx
mov r8d, 0x340
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [0x140897c48]
xor edx, edx
mov rbx, rax
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 8], SafeArrayGetElemsize
mov rdx, rbx
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x338], rax
mov ecx, dword [0x140893e68]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x140140264
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
mov r11d, dword [rsp + 0x60]
mov r14d, r8d
movsxd rdi, dword [rcx + 0x160]
mov r15, rdx
mov rbx, rcx
test r11d, r11d
je 0x140140323
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
lea r10d, [rax + rax*2]
mov eax, edi
imul eax, r9d
movsxd r12, r10d
movsxd r13, eax
mov ebp, ecx
mov eax, r14d
imul eax, ecx
movsxd rdx, eax
mov eax, r8d
imul eax, dword [rbx + 0x158]
add rdx, r12
add rdx, r15
movsxd rcx, eax
add rcx, qword [rbx + 0x150]
add rcx, r13
cmp dword [rsp + 0x58], 0
jle 0x140140309
mov r9d, dword [rsp + 0x58]
mov al, byte [rdx + 2]
xor byte [rcx + 2], al
mov al, byte [rdx + 1]
xor byte [rcx + 1], al
mov al, byte [rdx]
lea rdx, [rdx + 3]
xor byte [rcx], al
add rcx, rdi
sub r9, 1
jne 0x1401402ec
mov eax, dword [rbx + 0x174]
inc r8d
neg eax
sbb ecx, ecx
and ecx, 2
dec ecx
add ecx, ebp
sub r11d, 1
jne 0x1401402b8
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
pop r15
pop r14
pop r13
ret

Function at 0x140140fc4
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
mov r10d, dword [rsp + 0x60]
mov r14d, r8d
movsxd rbx, dword [rcx + 0x160]
mov r15, rdx
mov r11, rcx
test r10d, r10d
je 0x140141084
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
shl eax, 2
movsxd r12, eax
mov eax, ebx
imul eax, r9d
movsxd r13, eax
mov ebp, ecx
mov eax, r14d
imul eax, ecx
movsxd rdx, eax
mov eax, r8d
imul eax, dword [r11 + 0x158]
add rdx, r12
add rdx, r15
movsxd rcx, eax
add rcx, qword [r11 + 0x150]
add rcx, r13
cmp dword [rsp + 0x58], 0
jle 0x140141069
mov r9d, dword [rsp + 0x58]
mov al, byte [rdx + 2]
xor byte [rcx + 2], al
mov al, byte [rdx + 1]
xor byte [rcx + 1], al
mov al, byte [rdx]
lea rdx, [rdx + 4]
xor byte [rcx], al
add rcx, rbx
sub r9, 1
jne 0x14014104c
mov eax, dword [r11 + 0x174]
inc r8d
neg eax
sbb ecx, ecx
and ecx, 2
dec ecx
add ecx, ebp
sub r10d, 1
jne 0x140141017
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
pop r15
pop r14
pop r13
ret
Function at 0x1401433b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
push r15
sub rsp, 0x38
xor r15d, r15d
mov rsi, rdx
lea rdx, [rsp + 0x60]
mov r14, rcx
mov dword [rsp + 0x70], r15d
lea ebx, [r15 + 1]
cmp qword [rcx + 8], r15
je 0x1401433e6
mov r8d, ebx
call fcn.1401053a0
mov dword [rsp + 0x70], eax
jmp 0x140143400
mov rcx, qword [rcx]
lea r9, [rsp + 0x70]
mov r8d, ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
cmp eax, 1
jne 0x1401434c8
movzx ecx, byte [rsp + 0x60]
test cl, cl
js 0x140143426
mov byte [rsi], cl
mov rax, rbx
mov byte [rsi + 1], r15b
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
movzx eax, cl
mov qword [rsp + 0x68], rbp
and al, 0xe0
mov qword [rsp + 0x30], rdi
cmp al, 0xc0
jne 0x140143442
mov ebp, 2
mov edi, ebp
jmp 0x140143469
movzx eax, cl
and al, 0xf0
cmp al, 0xe0
jne 0x140143455
mov edi, 3
lea ebx, [rdi - 1]
jmp 0x140143466
movzx eax, cl
and al, 0xf8
cmp al, 0xf0
jne 0x1401434be
mov edi, 4
lea ebx, [rdi - 1]
mov rbp, rdi
mov byte [rsi], cl
lea rdx, [rsi + 1]
cmp qword [r14 + 8], r15
je 0x140143483
lea r8, [rdi - 1]
mov rcx, r14
call fcn.1401053a0
jmp 0x1401434a0
mov rcx, qword [r14]
lea r9, [rsp + 0x70]
mov r8d, ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
mov rdi, rbp
cmp eax, ebx
cmovne rdi, r15
mov rax, rdi
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
mov word [rsi], 0x3f
mov rax, rbx
jmp 0x1401434a9
xor eax, eax
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret

Function at 0x140143b20
Capabilities:
Encode data using xor

Disassembly:
movsxd r10, edx
mov al, cl
or al, r10b
or al, r8b
or al, r9b
test al, 3
jne 0x140143b6d
lea r11, [r8 + r9]
cmp r8, r11
jae 0x140143b8a
sub r10, r8
lea r9, [r10 + rcx]
mov ecx, dword [r8]
mov edx, ecx
shr edx, 8
mov eax, ecx
shl eax, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
rol edx, 0x10
mov dword [r9 + r8], edx
add r8, 4
cmp r8, r11
jb 0x140143b42
ret
add r9, r10
jmp 0x140143b85
mov al, byte [r8]
xor r10, 3
inc r8
inc edx
mov byte [r10 + rcx], al
movsxd r10, edx
cmp r10, r9
jb 0x140143b72
ret

Function at 0x140143b8c
Capabilities:
Encode data using xor

Disassembly:
movsxd r10, edx
mov al, cl
or al, r10b
mov r11, r8
or al, r8b
or al, r9b
test al, 7
jne 0x140143c13
add r9, r8
cmp r8, r9
jae 0x140143c30
sub r10, r8
add r10, rcx
mov rax, qword [r11]
mov rdx, rax
shr rdx, 0x20
mov r8d, edx
mov ecx, edx
shl edx, 8
shr r8d, 8
shl ecx, 8
xor r8d, ecx
mov ecx, eax
and r8d, 0xff00ff
shl ecx, 8
xor r8d, edx
mov edx, eax
shr edx, 8
xor edx, ecx
shl eax, 8
and edx, 0xff00ff
rol r8d, 0x10
xor edx, eax
mov dword [rsp + 8], r8d
rol edx, 0x10
mov dword [rsp + 0xc], edx
mov rax, qword [rsp + 8]
mov qword [r10 + r11], rax
add r11, 8
cmp r11, r9
jb 0x140143bb3
ret
add r9, r10
jmp 0x140143c2b
mov al, byte [r11]
xor r10, 7
inc r11
inc edx
mov byte [r10 + rcx], al
movsxd r10, edx
cmp r10, r9
jb 0x140143c18
ret