joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140104910
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 [0x140893d68]
mov r8d, 0x1000
xor edi, edi
mov r13d, 0x800
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x140104b08
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 0x140104982
test rbp, rbp
je 0x140104a48
dec rbp
cmp qword [r14 + 8], 0
lea rsi, [r14 + 8]
lea rdx, [rsp + 0x30]
je 0x1401049a6
mov r8d, 2
mov rcx, r14
call fcn.1401045c0
mov dword [rsp + 0x34], eax
jmp 0x1401049c3
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 0x140104a4c
test dx, dx
je 0x1401049de
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 0x140104a24
mov rcx, qword [0x140893d68]
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 0x140104a4c
mov edi, 0
test r12d, r12d
jne 0x140104970
cmp dx, 0xd
je 0x140104a51
cmp dx, 0xa
je 0x140104a57
jmp 0x140104970
lea rsi, [r14 + 8]
test r12d, r12d
jne 0x140104a5b
cmp dx, 0xa
jne 0x140104a86
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 0x140104b0b
cmp dx, 0xd
jne 0x140104a5b
sub rbx, 2
lea rdx, [rsp + 0x30]
cmp qword [rsi], 0
je 0x140104ab1
mov r8d, 2
mov rcx, r14
call fcn.1401045c0
mov dword [rsp + 0x34], eax
xor edi, edi
jmp 0x140104aca
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 0x140104a5d
cmp qword [rsi], 0
je 0x140104ae2
add dword [r14 + 0x14], 2
jmp 0x140104a5d
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 0x140104a5d
mov rax, rdi
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140104b30
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 [0x140893d68]
mov r8d, r14d
xor edx, edx
mov r12, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140104cca
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x60], rbx
mov rbx, rax
cmp rdi, 0xffffffffffffffff
je 0x140104b99
test rdi, rdi
je 0x140104c27
dec rdi
mov rdx, rbx
mov rcx, rsi
call fcn.140142680
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x140104bb1
xor r8b, r8b
jmp 0x140104bb5
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 0x140104c01
mov rcx, qword [0x140893d68]
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 0x140104c27
test r15d, r15d
jne 0x140104b87
cmp r8b, 0xd
je 0x140104c30
cmp r8b, 0xa
jne 0x140104b87
dec rbx
jmp 0x140104cb5
test r15d, r15d
jne 0x140104cb5
cmp r8b, 0xa
jne 0x140104c3b
dec rbx
jmp 0x140104cb5
cmp r8b, 0xd
jne 0x140104cb5
dec rbx
lea rdx, [rsp + 0x30]
cmp qword [rsi + 8], 0
je 0x140104c64
mov r8d, 1
mov rcx, rsi
call fcn.1401045c0
mov dword [rsp + 0x34], eax
jmp 0x140104c81
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 0x140104cb5
cmp qword [rsi + 8], 0
je 0x140104c94
inc dword [rsi + 0x14]
jmp 0x140104cb5
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 0x140104cf0
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 0x140104dea
cmp dword [rcx + 0x1c], 1
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x30], r15
jne 0x140104d4b
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 0x140104dac
mov eax, dword [rsi + 0x10]
mov edx, ebx
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rsi + 8]
sub edx, 1
je 0x140104da4
sub edx, 1
je 0x140104d9b
cmp edx, 2
je 0x140104d94
mov r8, rbx
mov rdx, r14
call fcn.1400b4c80
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 0x140104d7a
movzx eax, word [r14]
mov word [rcx], ax
jmp 0x140104d7a
movzx eax, byte [r14]
mov byte [rcx], al
jmp 0x140104d7a
mov rcx, rsi
call fcn.1400848b0
mov eax, dword [rsi + 0x10]
mov rdx, r14
cmp ebx, eax
jl 0x140104ddb
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 0x140104d80
sub eax, dword [rsi + 0x14]
mov r8, rbx
movsxd rcx, eax
add rcx, qword [rsi + 8]
jmp 0x140104d75
movsxd rax, ebp
add rsp, 0x38
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x140109924
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r9, rcx
test rcx, rcx
jne 0x140109936
mov eax, r8d
jmp 0x1401099a0
lea rbx, [0x140197d20]
not r8d
cmp edx, 8
jb 0x140109979
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 0x140109952
add edx, 0xfffffff8
sub r10, 1
jne 0x14010994c
test edx, edx
je 0x14010999a
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 0x14010997d
not r8d
movsxd rax, r8d
mov rbx, qword [rsp + 8]
ret

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

Disassembly:
bt r8d, 0x10
jae 0x140109c4f
mov rax, rsp
push r12
push r14
sub rsp, 0xc8
mov r12, rdx
mov r14, rcx
test rcx, rcx
je 0x140109c44
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, [0x1401a0330]
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 0x140109aeb
mov rcx, rdi
call fcn.1400b5b80
mov rdi, rax
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x140109ae0
jmp 0x140109b2a
cmp ebp, 0x19
jne 0x140109b0f
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140109b00
add rbx, rbx
jmp 0x140109b2a
mov rcx, rdi
call fcn.1400994e0
mov rdi, rax
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140109b21
mov rdx, rdi
cmp rbx, r15
jle 0x140109b7d
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.1400b4c80
mov eax, r15d
lea rcx, [rsp + 0x20]
sub eax, r13d
add rcx, r13
movsxd r8, eax
xor edx, edx
call fcn.140076610
mov edx, 1
mov rcx, r14
call qword [r12 + SafeArrayGetElemsize]
jmp 0x140109ba1
mov r8, rbx
lea rcx, [rsp + 0x20]
call fcn.1400b4c80
mov eax, r15d
lea rcx, [rsp + 0x20]
sub eax, ebx
add rcx, rbx
movsxd r8, eax
xor edx, edx
call fcn.140076610
lea rcx, [r14 + 0x48]
mov r8, r15
lea rdx, [rsp + 0x20]
call fcn.1400b4c80
mov r13, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xe0]
test r15d, r15d
jle 0x140109bf8
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 0x140109be0
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 0x140109c27
mov rcx, rdi
call fcn.1400995c0
jmp 0x140109c34
cmp ebp, 0x19
je 0x140109c34
mov rcx, rdi
call fcn.1400995c0
mov rbp, qword [rsp + 0xe8]
mov rdi, qword [rsp + 0xc0]
add rsp, 0xc8
pop r14
pop r12
ret
Function at 0x14010be00
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.140122e00
sub rsp, rax
mov rax, qword [0x1408934f0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401249e8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14010be4f
mov rax, rbp
jmp 0x14010bf57
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 + 0x897a80]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14014319c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x897a80]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14010bf53
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 0x14010bf53
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14014319c
test rax, rax
js 0x14010bf53
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14010bf53
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14010bf45
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14010bf45
cmp byte [rcx], 0xd
jne 0x14010bf2b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14010bf3a
cmp byte [rcx + 1], 0xa
jne 0x14010bf3a
inc rcx
jmp 0x14010bf3a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x893530]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14010bf0d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14010bf57
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140124ab0
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 0x14010d150
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x140892448]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rbx, qword [rax]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x14010d2a4
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 [0x1408975e8], 0
lea rbx, [0x1408975f8]
mov r14, rdx
mov r15, rcx
jne 0x14010d2f1
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x1408975ec], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1408975e8], 1
mov ecx, dword [0x1408975ec]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x14010d3c6
mov rcx, qword [0x140893d68]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14010d3f1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1408975f0]
test rax, rax
je 0x14010d341
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x1408975f0], 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, [0x14010d4c0]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x1408975ec]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x140893d68]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14010d3f1
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 0x14010d4e0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x140896208]
xor edx, edx
mov r8d, 0x340
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [0x140896208]
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 [0x140892448]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x140132520
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140897a80]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140132577
cmp word [rdx], r13w
jne 0x140132577
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14013257c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401326a1
mov r11d, SafeArrayGetElemsize
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401326c2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401325b5
mov rdx, r9
mov word [rbx], cx
jmp 0x1401325dc
cmp r9, r8
jae 0x1401325ec
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140132596
jmp 0x1401326a1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140132696
cmp dword [rsp + 0x80], esi
je 0x140132696
lea r8, [0x140897a80]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14013266e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14013263e
mov word [rbx], r13w
jmp 0x14013269e
mov ecx, SafeArrayGetElemsize
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14013264b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14013269e
cmp word [rsp + 0x70], r13w
jne 0x14013267b
cmp rbx, r14
je 0x140132638
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401430f8
cmp word [rsp + 0x70], r13w
je 0x1401326a1
mov ecx, SafeArrayGetElemsize
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140897a80]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14013269b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401326a1
Function at 0x14013f534
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 0x14013f5f3
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 0x14013f5d9
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 0x14013f5bc
mov eax, dword [rbx + 0x174]
inc r8d
neg eax
sbb ecx, ecx
and ecx, 2
dec ecx
add ecx, ebp
sub r11d, 1
jne 0x14013f588
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 0x140140294
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 0x140140354
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 0x140140339
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 0x14014031c
mov eax, dword [r11 + 0x174]
inc r8d
neg eax
sbb ecx, ecx
and ecx, 2
dec ecx
add ecx, ebp
sub r10d, 1
jne 0x1401402e7
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 0x140142680
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 0x1401426b6
mov r8d, ebx
call fcn.1401045c0
mov dword [rsp + 0x70], eax
jmp 0x1401426d0
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 0x140142798
movzx ecx, byte [rsp + 0x60]
test cl, cl
js 0x1401426f6
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 0x140142712
mov ebp, 2
mov edi, ebp
jmp 0x140142739
movzx eax, cl
and al, 0xf0
cmp al, 0xe0
jne 0x140142725
mov edi, 3
lea ebx, [rdi - 1]
jmp 0x140142736
movzx eax, cl
and al, 0xf8
cmp al, 0xf0
jne 0x14014278e
mov edi, 4
lea ebx, [rdi - 1]
mov rbp, rdi
mov byte [rsi], cl
lea rdx, [rsi + 1]
cmp qword [r14 + 8], r15
je 0x140142753
lea r8, [rdi - 1]
mov rcx, r14
call fcn.1401045c0
jmp 0x140142770
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 0x140142779
xor eax, eax
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret

Function at 0x140142df0
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 0x140142e3d
lea r11, [r8 + r9]
cmp r8, r11
jae 0x140142e5a
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 0x140142e12
ret
add r9, r10
jmp 0x140142e55
mov al, byte [r8]
xor r10, 3
inc r8
inc edx
mov byte [r10 + rcx], al
movsxd r10, edx
cmp r10, r9
jb 0x140142e42
ret

Function at 0x140142e5c
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 0x140142ee3
add r9, r8
cmp r8, r9
jae 0x140142f00
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 0x140142e83
ret
add r9, r10
jmp 0x140142efb
mov al, byte [r11]
xor r10, 7
inc r11
inc edx
mov byte [r10 + rcx], al
movsxd r10, edx
cmp r10, r9
jb 0x140142ee8
ret
Function at 0x1401495bc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14010f5f8
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14014965d
cmp ebx, dword [rsp + 0x30]
je 0x140149656
test esi, esi
je 0x140149656
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140149631
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14014963e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14014961b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140149642
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14014965f
mov eax, 1
jmp 0x14014965f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140149f9c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14014a0e4

Function at 0x14014c6b8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14014c6ce
mov al, 1
jmp 0x14014c72e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14014c6df
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14014c72c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14014a9c8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14014c72c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14014c72c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14014c72c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14014c72e
xor al, al
add rsp, 0x20
pop rbx
ret