joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14016f130
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, qword [0x1402a2970]
cmp rsi, 1
jbe 0x14016f177
mov ecx, dword [0x140288f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14016f171
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1402a2970]
call fcn.140007880
test al, al
je 0x14016f1b7
mov qword [0x1402a2980], 0
lea rsi, [0x1402a2978]
mov qword [0x1402a2978], 0xffffffffffffffff
mov rcx, rsi
xor edx, edx
call fcn.140002400
mov qword [0x1402a2970], rsi
jmp 0x14016f142
mov rsi, qword [0x1402a2970]
jmp 0x14016f142

Function at 0x14016ff80
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x1402a3998]
mov ecx, dword [0x140296f94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14016fff1
mov ecx, dword [0x140288f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, 0xffffffff
and rax, 0xfffffffffffffffc
je 0x14016ffe2
mov rdx, qword [0x1402a3988]
shl rdx, 4
mov r8d, dword [rax + rdx + 8]
cmp r8d, dword [0x1402a3990]
jne 0x14016ffe2
mov rax, qword [rax + rdx]
test rax, rax
jne 0x14016ffed
mov dword [rsi], ecx
mov rax, rsi
add rsp, 0x20
pop rsi
ret
mov ecx, dword [rax]
jmp 0x14016ffe2
lea rcx, [0x1402a3998]
call fcn.140172b08
cmp dword [0x1402a3998], 0xffffffff
jne 0x14016ffa9
mov qword [0x1402a3990], 0
lea rcx, [0x1402a3988]
mov qword [0x1402a3988], 0xffffffffffffffff
xor edx, edx
call fcn.140002400
lea rcx, [0x1402a3998]
call fcn.140172aa8
jmp 0x14016ffa9
Function at 0x140170040
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov eax, dword [rdx]
mov dword [rcx], eax
mov eax, 1
lock xadd dword [0x1402a399c], eax
mov dword [rcx + 4], eax
mov eax, dword [0x1402a3998]
mov ecx, dword [0x140296f94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140170129
mov ecx, dword [0x140288f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1401701c5
mov rcx, qword [0x1402a3988]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x1402a3990]
mov rdx, qword [0x1402a3988]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov eax, dword [0x1402a39b0]
mov ecx, dword [0x140296f94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140170177
lea rdi, [rsi + 4]
mov ecx, dword [0x140288f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1401701d8
mov rcx, qword [0x1402a39a0]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [0x1402a39a8]
mov rdx, qword [0x1402a39a0]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1402a3998]
call fcn.140172b08
cmp dword [0x1402a3998], 0xffffffff
jne 0x140170082
mov qword [0x1402a3990], 0
lea rcx, [0x1402a3988]
mov qword [0x1402a3988], 0xffffffffffffffff
xor edx, edx
call fcn.140002400
lea rcx, [0x1402a3998]
call fcn.140172aa8
jmp 0x140170082
lea rcx, [0x1402a39b0]
call fcn.140172b08
cmp dword [0x1402a39b0], 0xffffffff
jne 0x1401700e1
mov qword [0x1402a39a8], 0
lea rcx, [0x1402a39a0]
mov qword [0x1402a39a0], 0xffffffffffffffff
xor edx, edx
call fcn.140002400
lea rcx, [0x1402a39b0]
call fcn.140172aa8
jmp 0x1401700e1
test rsi, rsi
je 0x1401700bc
call fcn.14003bc30
jmp 0x140170098
test rdi, rdi
je 0x14017011f
call fcn.14003bc30
jmp 0x1401700fb
Function at 0x1401701f0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1402a3998]
mov ecx, dword [0x140296f94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401702b7
mov ecx, dword [0x140288f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140170253
mov rcx, qword [0x1402a3988]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x1402a3990]
mov rdx, qword [0x1402a3988]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov eax, dword [0x1402a39b0]
mov ecx, dword [0x140296f94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140170305
mov ecx, dword [0x140288f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1401702b2
mov rcx, qword [0x1402a39a0]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x1402a39a8]
mov rdx, qword [0x1402a39a0]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
ret
lea rcx, [0x1402a3998]
call fcn.140172b08
cmp dword [0x1402a3998], 0xffffffff
jne 0x140170219
mov qword [0x1402a3990], 0
lea rcx, [0x1402a3988]
mov qword [0x1402a3988], 0xffffffffffffffff
xor edx, edx
call fcn.140002400
lea rcx, [0x1402a3998]
call fcn.140172aa8
jmp 0x140170219
lea rcx, [0x1402a39b0]
call fcn.140172b08
cmp dword [0x1402a39b0], 0xffffffff
jne 0x140170278
mov qword [0x1402a39a8], 0
lea rcx, [0x1402a39a0]
mov qword [0x1402a39a0], 0xffffffffffffffff
xor edx, edx
call fcn.140002400
lea rcx, [0x1402a39b0]
call fcn.140172aa8
jmp 0x140170278

Function at 0x140171630
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140288f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140171664
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x140171664
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x14017165e

Function at 0x140186ff4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140187148
Function at 0x14018a1b8
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x140287028]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x14024e408]
mov rbp, rcx
call fcn.1401a3384
xor edi, edi
test rax, rax
je 0x14018a29e
mov ebx, edi
call fcn.140172a88
mov r14d, dword [rax]
call fcn.140172a88
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.140174114
mov rsi, rax
test rax, rax
je 0x14018a22f
call fcn.140172a88
mov dword [rax], r14d
jmp 0x14018a259
call fcn.140172a88
cmp dword [rax], 0x22
jne 0x14018a296
call fcn.140172a88
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140174114
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14018a296
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14018a25d
cmp rax, 3
je 0x14018a278
mov rcx, rsi
call fcn.14018a114
test al, al
je 0x14018a289
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14018a289
mov dil, 1
mov rcx, rbx
call fcn.1401718a0
mov al, dil
jmp 0x14018a2a0
mov rcx, rbx
call fcn.1401718a0
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1401756e0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14018c0fc
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, [0x140297e90]
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 0x14018c15a
cmp word [rdx], r12w
jne 0x14018c15a
or byte [rax + r8*8 + 0x38], cl
jmp 0x14018c160
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14018c2bb
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14018c296
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14018c199
mov rcx, r9
jmp 0x14018c1bc
cmp r9, rdx
jae 0x14018c1d3
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 0x14018c17d
jmp 0x14018c2bb
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 0x14018c290
cmp dword [rsp + 0x80], edi
je 0x14018c290
mov rdx, r14
lea r11, [0x140297e90]
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 0x14018c269
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14018c23c
mov word [rbx], r12w
jmp 0x14018c2b7
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 0x14018c245
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14018c2b7
cmp word [rsp + 0x70], r12w
jne 0x14018c276
cmp rbx, rsi
je 0x14018c236
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14018b4d0
cmp word [rsp + 0x70], r12w
je 0x14018c2bb
mov word [rbx], r13w
jmp 0x14018c2b7
lea r11, [0x140297e90]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14018c2b3
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14018c2bb
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 0x1401a6094
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1401a60c4
xor eax, eax
jmp 0x1401a6187
mov rbp, rbx
cmp word [rax], si
je 0x1401a60e9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401a60d0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401a60cc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1401a5fe4
movsxd r14, eax
test eax, eax
jne 0x1401a6127
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401a60bd
mov rcx, r14
call fcn.1400b9470
mov rdi, rax
test rax, rax
jne 0x1401a6140
xor ecx, ecx
call fcn.1401718a0
jmp 0x1401a611c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1401a5fe4
test eax, eax
jne 0x1401a6171
mov rcx, rdi
call fcn.1401718a0
jmp 0x1401a617b
xor ecx, ecx
call fcn.1401718a0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1401a61a4
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 0x1401a622b
mov rsi, rbx
cmp word [rax], bp
je 0x1401a61ea
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401a61d4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401a61d0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400b9470
mov rdi, rax
test rax, rax
je 0x1401a6218
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140177150
mov rbp, rdi
xor ecx, ecx
call fcn.1401718a0
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 0x1401a87d4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14018179c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401a885e
cmp byte [rbp - 0x21], r15b
je 0x1401a8859
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401a8894
call fcn.14019ee44
test eax, eax
jne 0x1401a8880
cmp byte [rbp - 0x21], r15b
je 0x1401a8878
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401a8894
cmp byte [rbp - 0x21], r15b
je 0x1401a8891
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140186c58
test eax, eax
jne 0x1401a8934
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14018179c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401a88d3
cmp byte [rbp - 0x21], r15b
je 0x1401a8908
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401a8908
call fcn.14019ee44
test eax, eax
jne 0x1401a88f4
cmp byte [rbp - 0x21], r15b
je 0x1401a88ed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1401a8908
cmp byte [rbp - 0x21], r15b
je 0x1401a8905
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140186c58
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1401a8934
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1401a8937
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1401a8945
mov rcx, rdi
call fcn.1401718a0
cmp byte [rbp + 0x3f], r15b
je 0x1401a8954
mov rcx, qword [rbp + 0x27]
call fcn.1401718a0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1401b8d40
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x140287028]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rdi, [rsp + 0x30]
mov qword [rdi], 0
mov rdx, rdi
call fcn.14015dbc0
lea rdx, [rsi + 0xb0]
mov r8d, dword [rdi]
mov rcx, qword [rsi + 0x78]
mov qword [rsp + 0x20], rdx
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1401b8d9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1401b8dbe
mov byte [rsi + 0xd1], 1
lock inc dword [rsi + 8]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401756e0
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
mov rsi, qword [rsi + 0x10]
test rsi, rsi
je 0x1401b8da8
mov rax, qword [rsi]
mov rdi, qword [rax + 0x18]
mov rbx, qword [case.0x1401d7990.0]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401756e0
mov rcx, rsi
xor edx, edx
mov rax, rdi
mov r8, rbx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
jmp r8

Function at 0x1401ba580
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x1401ba5b7
movabs rcx, 0xf000000000000000
shl rax, 4
movsx r9, byte [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
inc rdx
cmp rdx, r8
jne 0x1401ba591
ret

Function at 0x1401ba620
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x1401ba658
movabs rcx, 0xf000000000000000
shl rax, 4
movzx r9d, word [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
add rdx, 2
cmp rdx, r8
jne 0x1401ba631
ret
Function at 0x1401c0a10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rdx
mov r15b, byte [rbp + 0x68]
test byte [r9 + 8], 1
jne 0x1401c0a6f
movzx edx, word [rbp + 0x60]
movzx r8d, r15b
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
mov dword [rsp + 0x28], r8d
mov word [rsp + 0x20], dx
mov rdx, rsi
mov r8, rdi
call qword [case.0x1401d7990.0]
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rax, qword [r9 + 0x30]
lea rbx, [rbp - 0x20]
mov qword [rbx], rax
mov qword [rbp - 8], rax
lock inc dword [rax + 8]
lea rdx, [0x140298db0]
mov rcx, rbx
call fcn.140157260
mov r14, rax
mov eax, 0xffffffff
mov rcx, qword [rbp - 8]
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x1401c0ab3
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1401d7990.0]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rbp - 0x10], rax
movaps xmm0, xmmword [0x140261350]
movaps xmmword [rbp - 0x20], xmm0
mov rax, qword [r14]
xor r15b, 1
movzx ecx, r15b
mov rax, qword [rax + rcx*8 + 0x28]
mov rcx, r14
mov rdx, rbx
call qword [case.0x1401d7990.0]
mov al, byte [rbp - 9]
test al, al
mov rcx, qword [rbp - 0x20]
mov r14, rbx
cmovs r14, rcx
mov rdx, rbx
test al, al
cmovs rdx, rcx
js 0x1401c0b43
movzx r8d, al
lea rdx, [rdx + r8*2]
cmp r14, rdx
je 0x1401c0b6d
test rdi, rdi
je 0x1401c0b52
movzx eax, word [r14]
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
je 0x1401c0b56
lea rdx, [rcx + 2]
mov qword [rdi + 0x30], rdx
mov word [rcx], ax
cmp ax, 0xffff
jne 0x1401c0b36
xor edi, edi
mov al, byte [rbp - 9]
mov rcx, qword [rbp - 0x20]
add r14, 2
jmp 0x1401c0af8
mov r8, qword [rbp - 0x18]
lea rdx, [rdx + r8*2]
cmp r14, rdx
jne 0x1401c0b10
jmp 0x1401c0b75
xor edi, edi
jmp 0x1401c0b3d
mov rcx, qword [rdi]
mov r8, qword [rcx + 0x60]
mov rcx, rdi
mov edx, eax
mov rax, r8
call qword [case.0x1401d7990.0]
jmp 0x1401c0b2e
mov qword [rsi], rdi
jmp 0x1401c0a5f
mov qword [rsi], rdi
call fcn.140172a44
jmp 0x1401c0a5f

Function at 0x1401cef90
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x10
call fcn.140172a4c
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1401cf000]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.140186dd4
mov qword [rbx], rax
test rax, rax
je 0x1401cefe7
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x1401d34c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
mov rax, qword [rcx]
mov rdx, qword [rcx + 8]
sub rdx, rax
je 0x1401d34fc
mov r8, rdx
shr r8, 2
xor r9d, r9d
lea r10, [0x1402683e0]
movzx r11d, r8b
movzx esi, byte [rax + r9]
xor esi, r11d
shr r8d, 8
xor r8d, dword [r10 + rsi*4]
inc r9
cmp rdx, r9
jne 0x1401d34de
jmp 0x1401d34ff
xor r8d, r8d
cmp r8d, dword [rcx + 0x18]
sete al
pop rsi
ret
Function at 0x1401d7820
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x140287028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x1401d789f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1401d78a4
test bl, bl
je 0x1401d787b
cmp byte [rdi + 8], 0
je 0x1401d7900
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
mov edx, esi
call fcn.1400b92e0
mov sil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401756e0
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rdi]
jmp 0x1401d784d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rdi + 8], 0
je 0x1401d78cc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1401d78d1
xor esi, esi
jmp 0x1401d7888
mov rcx, qword [rdi]
jmp 0x1401d78b9
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rdi + 8], 0
je 0x1401d7908
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1401d787b
mov esi, dword [rsp + 0x24]
jmp 0x1401d787b
mov rcx, qword [rdi]
jmp 0x1401d7870
mov rcx, qword [rdi]
jmp 0x1401d78e8
Function at 0x1401e2330
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x10]
cmp r15, qword [rcx + 0x18]
je 0x1401e236f
test r15, r15
je 0x1401e2465
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r14
jbe 0x1401e23b9
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r14, [rax + rcx]
inc r14
shr r14, 1
shl r14, 3
mov rcx, rbx
sub rcx, r14
mov r8, r15
sub r8, rbx
mov rdx, rbx
call fcn.140177150
sub r15, r14
mov qword [rsi + 0x10], r15
sub qword [rsi + 8], r14
jmp 0x1401e234d
mov rax, r15
sub rax, r14
sar rax, 2
cmp r15, r14
mov r12d, 1
cmovne r12, rax
mov rax, r12
shr rax, 0x3d
jne 0x1401e245d
lea rcx, [r12*8]
call fcn.140172a4c
mov rcx, r12
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rcx
sub r15, rbx
je 0x1401e242d
mov r8, r15
sar r8, 3
and r15, 0xfffffffffffffff8
mov rdx, r15
add rdx, rcx
shl r8, 3
xor r9d, r9d
mov r10, rcx
add r10, r9
je 0x1401e2462
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp r8, r9
jne 0x1401e2415
lea r8, [rax + r12*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], r8
mov r15, rdx
test r14, r14
je 0x1401e234d
mov rcx, r14
call fcn.140172a44
mov r15, qword [rsi + 0x10]
jmp 0x1401e234d
call fcn.1401b3360
int3
int3

Function at 0x1401e2470
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 8]
cmp rbx, qword [rcx]
je 0x1401e24b2
mov r14, rbx
add r14, 0xfffffffffffffff8
je 0x1401e25b1
mov rax, qword [rdi]
mov qword [r14], rax
add qword [rsi + 8], 0xfffffffffffffff8
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r15, qword [rsi + 0x10]
mov rax, qword [rsi + 0x18]
cmp r15, rax
jae 0x1401e2504
sub rax, r15
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r12, [rax + rcx]
inc r12
sar r12, 1
lea r14, [r15 + r12*8]
sub r15, rbx
je 0x1401e24f6
sub r14, r15
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.140177150
mov rbx, qword [rsi + 0x10]
mov qword [rsi + 8], r14
lea rax, [rbx + r12*8]
mov qword [rsi + 0x10], rax
jmp 0x1401e248f
mov rcx, rax
sub rcx, rbx
sar rcx, 2
cmp rax, rbx
mov r12d, 1
cmovne r12, rcx
mov rax, r12
shr rax, 0x3d
jne 0x1401e25a9
lea rcx, [r12*8]
call fcn.140172a4c
lea r14, [r12 + r12]
add r14, 6
and r14, 0xfffffffffffffff8
add r14, rax
mov rcx, r14
sub r15, rbx
je 0x1401e257c
mov rdx, r15
sar rdx, 3
and r15, 0xfffffffffffffff8
mov rcx, r15
add rcx, r14
shl rdx, 3
xor r8d, r8d
mov r9, r14
add r9, r8
je 0x1401e25ae
mov r10, qword [rbx + r8]
mov qword [r9], r10
add r8, 8
cmp rdx, r8
jne 0x1401e2564
lea rdx, [rax + r12*8]
mov qword [rsi], rax
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
test rbx, rbx
je 0x1401e248f
mov rcx, rbx
call fcn.140172a44
mov r14, qword [rsi + 8]
jmp 0x1401e248f
call fcn.1401b3360
int3
int3