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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c3b0
lea r14, [rbx + 0x68]
mov rcx, r14
call fcn.14001e820
cmp esi, dword [rbx + 0x48]
jae 0x14001c330
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r14
mov byte [rax + rsi], 1
call fcn.14001e860
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbx + 0x50]
lea r15d, [rsi + 1]
movsxd r13, r15d
lea rdx, [r13*8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
test rax, rax
mov rdi, rax
je 0x14001c3bd
mov rcx, qword [rbx + 0x58]
mov rdx, r13
movq xmm6, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
movq xmm0, rax
test rax, rax
mov r13, rax
punpcklqdq xmm6, xmm0
je 0x14001c3bd
mov eax, dword [rbx + 0x48]
mov edx, r15d
lea rcx, [rdi + rax*8]
sub edx, eax
lea r8, [rdx*8]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov edx, dword [rbx + 0x48]
mov r8d, r15d
lea rcx, [r13 + rdx]
sub r8d, edx
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movaps xmmword [rbx + 0x50], xmm6
mov dword [rbx + 0x48], r15d
jmp 0x14001c2f4
call fcn.14001b550
mov rbx, rax
jmp 0x14001c2df
mov rcx, r14
call fcn.14001e860
mov eax, 0xc
jmp 0x14001c312

Function at 0x14001c440
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c468
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14001b550
test rax, rax
jne 0x14001c45a
add rsp, 0x28
ret

Function at 0x14001c4d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c4f8
add rax, 0x18
add rsp, 0x28
ret
call fcn.14001b550
test rax, rax
jne 0x14001c4ea
jmp 0x14001c4ee

Function at 0x14001c610
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140152658]
test eax, eax
jne 0x14001c628
xor eax, eax
add rsp, 0x28
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c658
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001c61e
test byte [rax + 0x40], 3
je 0x14001c61e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001c620
call fcn.14001b550
test rax, rax
jne 0x14001c63e
jmp 0x14001c61e
Function at 0x14001c670
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c6b0
test ebx, ebx
jle 0x14001c6a0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.14001b550
test rax, rax
jne 0x14001c68d
add rsp, 0x20
pop rbx
ret

Function at 0x14001c7a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c818
test byte [rbx + 0x40], 0xc
jne 0x14001c7cf
mov eax, dword [0x140152658]
test eax, eax
jne 0x14001c7e0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001a720
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001c803
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001c803
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001c82c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001aa10
call fcn.14001b550
test rax, rax
mov rbx, rax
jne 0x14001c7bf
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001c84a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001aa10
call fcn.14001c6c0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001c8d0
call fcn.14001d9b0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001c908
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c960
test esi, esi
je 0x14001c8e6
call fcn.14001c7a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c940
mov edx, edi
call fcn.14001da60
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c950
call fcn.14001c7a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x14001c8a5
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c8be
call fcn.14001b550
jmp 0x14001c8e6
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a1
Function at 0x14001c860
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c818
test byte [rbx + 0x40], 0xc
jne 0x14001c7cf
mov eax, dword [0x140152658]
test eax, eax
jne 0x14001c7e0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001a720
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001c803
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001c803
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001c82c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001aa10
call fcn.14001b550
test rax, rax
mov rbx, rax
jne 0x14001c7bf
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001c84a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001aa10
call fcn.14001c6c0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001c8d0
call fcn.14001d9b0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001c908
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c960
test esi, esi
je 0x14001c8e6
call fcn.14001c7a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c940
mov edx, edi
call fcn.14001da60
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c950
call fcn.14001c7a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x14001c8a5
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c8be
call fcn.14001b550
jmp 0x14001c8e6
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a1

Function at 0x14001c970
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c9e0
test esi, esi
je 0x14001c9c0
call fcn.14001c7a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c9f0
mov edx, esi
call fcn.14001da60
call fcn.14001c7a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001c7a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c7a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001b550
mov rbx, rax
jmp 0x14001c991
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c9aa
Function at 0x2c99113e8
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
cmp edx, 1
je 0x2c99113fb
mov eax, 1
add rsp, 0x48
ret
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rcx
lea r8, [0x2c99113a0]
mov edx, 0
mov ecx, 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x2c99113f1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x2c99113f1

Function at 0x2c99114be
Capabilities:
Encode data using base64

Disassembly:
push rdi
push rsi
push rbx
mov rbx, rcx
mov rsi, rdx
lea r11d, [r8 - 2]
test r11d, r11d
jle 0x2c99115d4
mov r10d, 0
lea r9, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movzx eax, byte [rdx]
shr al, 2
movsx rax, al
movzx eax, byte [r9 + rax]
mov byte [rcx], al
movsx eax, byte [rdx]
shl eax, 4
and eax, 0x30
movsx edi, byte [rdx + 1]
sar edi, 4
and edi, 0xf
or eax, edi
cdqe
movzx eax, byte [r9 + rax]
mov byte [rcx + 1], al
movsx eax, byte [rdx + 1]
shl eax, 2
and eax, 0x3c
movsx edi, byte [rdx + 2]
sar edi, 6
and edi, 3
or eax, edi
cdqe
movzx eax, byte [r9 + rax]
mov byte [rcx + 2], al
add rcx, 4
movzx eax, byte [rdx + 2]
and eax, 0x3f
movzx eax, byte [r9 + rax]
mov byte [rcx - 1], al
add r10d, 3
add rdx, 3
cmp r10d, r11d
jl 0x2c99114e1
cmp r8d, r10d
jle 0x2c99115c6
movsxd r9, r10d
lea rdx, [rsi + r9]
movzx eax, byte [rdx]
shr al, 2
movsx rax, al
lea r11, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movzx eax, byte [r11 + rax]
mov byte [rcx], al
sub r8d, 1
cmp r8d, r10d
je 0x2c99115df
lea r9, [rsi + r9 + 1]
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movsx eax, byte [rdx]
shl eax, 4
and eax, 0x30
movsx edx, byte [r9]
sar edx, 4
and edx, 0xf
or eax, edx
cdqe
movzx eax, byte [r8 + rax]
mov byte [rcx + 1], al
lea rdx, [rcx + 3]
movsx eax, byte [r9]
shl eax, 2
and eax, 0x3c
movzx eax, byte [r8 + rax]
mov byte [rcx + 2], al
lea rcx, [rdx + 1]
mov byte [rdx], 0x3d
mov byte [rcx], 0
lea rax, [rcx + 1]
sub rax, rbx
pop rbx
pop rsi
pop rdi
ret
mov r10d, 0
jmp 0x2c9911551
movsx eax, byte [rdx]
shl eax, 4
and eax, 0x30
movzx eax, byte [r11 + rax]
mov byte [rcx + 1], al
lea rdx, [rcx + 3]
mov byte [rcx + 2], 0x3d
jmp 0x2c99115bf

Function at 0x2c99119f2
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x248
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0x1a
mov ecx, 0
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, eax
mov eax, 0
test edx, edx
jns 0x2c9911a32
add rsp, 0x248
ret
lea rcx, [rsp + 0x30]
call fcn.2c991174d
jmp 0x2c9911a2a
Function at 0x2c9911a3e
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x270
lea rcx, [0x2c991e188]
call fcn.2c9915bf5
mov rdi, rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x108
mov r8d, 0
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
je 0x2c9911aab
mov esi, 0
mov rcx, rdi
call fcn.2c9915c7c
mov eax, esi
add rsp, 0x270
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rcx, [0x2c991e1f8]
call fcn.2c9915bf5
mov r13, rax
mov ebx, 0
mov rbp, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov r12, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r14, qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x2c9911ad9
add ebx, 1
mov dword [rsp + 0x4c], 0x104
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x60]
mov edx, ebx
mov rcx, qword [rsp + 0x58]
call rbp
test eax, eax
jne 0x2c9911b82
lea rdx, [rsp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x101
mov r8d, 0
mov rcx, qword [rsp + 0x58]
call r12
test eax, eax
jne 0x2c9911ad6
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, r13
mov rcx, qword [rsp + 0x50]
call r14
cmp eax, 1
adc esi, 0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x2c9911ad6
mov rcx, r13
call fcn.2c9915c7c
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x2c9911a8f

Function at 0x2c9911c0c
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x58
lea rcx, [0x2c991e260]
call fcn.2c9915bf5
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, rax
mov rcx, rbx
call fcn.2c9915c7c
lea rcx, [0x2c991e281]
call fcn.2c9915b70
mov rbx, rax
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov rcx, rbx
call fcn.2c9915c7c
test rsi, rsi
je 0x2c9911c72
lea rcx, [rsp + 0x20]
call rsi
mov eax, dword [rsp + 0x40]
add rsp, 0x58
pop rbx
pop rsi
ret
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x2c9911c67
Function at 0x2c9911cf0
Capabilities:
Link many functions at runtime

Disassembly:
push rsi
push rbx
sub rsp, 0x48
cmp qword [0x2c99220a8], 0
je 0x2c9911e30
cmp qword [0x2c99220a0], 0
je 0x2c9911e5c
cmp qword [0x2c9922098], 0
je 0x2c9911e8f
cmp qword [0x2c9922090], 0
je 0x2c9911ec2
cmp qword [0x2c9922088], 0
je 0x2c9911eee
cmp qword [0x2c9922080], 0
je 0x2c9911f21
cmp qword [0x2c9922078], 0
je 0x2c9911f54
cmp qword [0x2c9922070], 0
je 0x2c9911f87
mov rbx, qword [0x2c9922088]
call qword [0x2c99220a0]
mov rcx, rax
lea r8, [rsp + 0x38]
mov edx, 0x18
call rbx
mov esi, 0
test eax, eax
je 0x2c9911e27
mov dword [rsp + 0x34], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0x19
mov rcx, qword [rsp + 0x38]
call qword [0x2c9922080]
mov ecx, dword [rsp + 0x34]
call fcn.2c9914d40
mov rbx, rax
test rax, rax
je 0x2c9911e1c
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
mov r8, rbx
mov edx, 0x19
mov rcx, qword [rsp + 0x38]
call qword [0x2c9922080]
test eax, eax
je 0x2c9911e14
mov rsi, qword [0x2c9922070]
mov rcx, qword [rbx]
call qword [0x2c9922078]
movzx edx, byte [rax]
sub edx, 1
movzx edx, dl
mov rcx, qword [rbx]
call rsi
mov esi, dword [rax]
mov rcx, rbx
call fcn.2c9914d92
mov rcx, qword [rsp + 0x38]
call qword [0x2c9922098]
mov eax, esi
add rsp, 0x48
pop rbx
pop rsi
ret
lea rcx, [0x2c991e2a0]
call fcn.2c9915bf5
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x2c99220a8], rax
mov rcx, rbx
call fcn.2c9915c7c
jmp 0x2c9911d04
lea rcx, [0x2c991e2c1]
call fcn.2c9915b70
mov rbx, rax
mov rdx, rax
mov rcx, qword [0x2c99220a8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x2c99220a0], rax
mov rcx, rbx
call fcn.2c9915c7c
jmp 0x2c9911d12
lea rcx, [0x2c991e2db]
call fcn.2c9915b70
mov rbx, rax
mov rdx, rax
mov rcx, qword [0x2c99220a8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x2c9922098], rax
mov rcx, rbx
call fcn.2c9915c7c
jmp 0x2c9911d20
lea rcx, [0x2c991e2f0]
call fcn.2c9915bf5
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x2c9922090], rax
mov rcx, rbx
call fcn.2c9915c7c
jmp 0x2c9911d2e
lea rcx, [0x2c991e311]
call fcn.2c9915b70
mov rbx, rax
mov rdx, rax
mov rcx, qword [0x2c9922090]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x2c9922088], rax
mov rcx, rbx
call fcn.2c9915c7c
jmp 0x2c9911d3c
lea rcx, [0x2c991e32a]
call fcn.2c9915b70
mov rbx, rax
mov rdx, rax
mov rcx, qword [0x2c9922090]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x2c9922080], rax
mov rcx, rbx
call fcn.2c9915c7c
jmp 0x2c9911d4a
lea rcx, [0x2c991e348]
call fcn.2c9915b70
mov rbx, rax
mov rdx, rax
mov rcx, qword [0x2c9922090]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x2c9922078], rax
mov rcx, rbx
call fcn.2c9915c7c
jmp 0x2c9911d58
lea rcx, [0x2c991e368]
call fcn.2c9915b70
mov rbx, rax
mov rdx, rax
mov rcx, qword [0x2c9922090]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x2c9922070], rax
mov rcx, rbx
call fcn.2c9915c7c
jmp 0x2c9911d66
Function at 0x2c9911fd3
Capabilities:
Accept command line arguments

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp qword [0x2c9922068], 0
je 0x2c9912023
cmp qword [0x2c9922060], 0
je 0x2c991204c
mov rbx, qword [0x2c9922060]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x2c]
call rbx
mov rsi, rax
mov ebx, 0
test rax, rax
je 0x2c9912019
cmp dword [rsp + 0x2c], 1
jg 0x2c991207f
mov eax, ebx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rcx, [0x2c991e388]
call fcn.2c9915bf5
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x2c9922068], rax
mov rcx, rbx
call fcn.2c9915c7c
jmp 0x2c9911fe4
lea rcx, [0x2c991e3a7]
call fcn.2c9915b70
mov rbx, rax
mov rdx, rax
mov rcx, qword [0x2c9922068]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x2c9922060], rax
mov rcx, rbx
call fcn.2c9915c7c
jmp 0x2c9911fee
lea rcx, [0x2c991e3c2]
call fcn.2c9915bf5
mov rdi, rax
cmp dword [rsp + 0x2c], 1
jle 0x2c99120bb
mov ebx, 1
mov rcx, qword [rsi + rbx*8]
mov rdx, rdi
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x2c99120c2
add rbx, 1
cmp dword [rsp + 0x2c], ebx
jg 0x2c991209a
mov ebx, 0
jmp 0x2c99120c7
mov ebx, 0
jmp 0x2c99120c7
mov ebx, 1
mov rcx, rdi
call fcn.2c9915c7c
jmp 0x2c9912019

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

Disassembly:
mov r9, rcx
not r8d
lea eax, [rdx - 1]
test edx, edx
je 0x2c9912138
mov eax, eax
lea r10, [rcx + rax + 1]
mov ecx, 0xedb88320
jmp 0x2c9912110
cmp r9, r10
je 0x2c9912138
add r9, 1
movzx eax, byte [r9 - 1]
xor r8d, eax
mov eax, 8
mov edx, r8d
shr edx, 1
and r8d, 1
cmovne r8d, ecx
xor r8d, edx
sub eax, 1
jne 0x2c9912121
jmp 0x2c991210b
mov eax, r8d
not eax
ret
Function at 0x2c9913618
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r12, rdx
mov ebp, r8d
call fcn.2c991291d
mov rbx, rax
mov esi, 0
test rax, rax
je 0x2c99136f2
mov rcx, rax
call fcn.2c99127cd
mov rdi, rax
test rax, rax
je 0x2c99136ea
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
mov r9d, 0
mov r8d, 0
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x2c99136e2
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov r8d, ebp
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test eax, eax
je 0x2c99136d9
cmp dword [rsp + 0x4c], ebp
sete sil
movzx esi, sil
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.2c9914d92
mov rcx, rbx
call fcn.2c9914d92
mov eax, esi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x2c991381f
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbp, rdx
call fcn.2c991291d
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x2c99138d4
mov rcx, rax
call fcn.2c99127cd
mov rsi, rax
test rax, rax
je 0x2c99138cc
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 7
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov r12d, 0
cmp rax, 0xffffffffffffffff
je 0x2c99138c1
mov r9d, 2
mov r8d, 0
mov edx, 0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r13d, eax
cmp eax, 0x40000000
jbe 0x2c99138e4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.2c9914d92
mov rsi, r12
mov rcx, rbx
call fcn.2c9914d92
mov rax, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov ecx, eax
call fcn.2c9914d40
mov r12, rax
test rax, rax
je 0x2c99138b8
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov r8d, r13d
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x2c9913935
cmp dword [rsp + 0x4c], r13d
je 0x2c9913948
mov rcx, r12
call fcn.2c9914d92
mov r12d, 0
jmp 0x2c99138b8
test rbp, rbp
je 0x2c99138b8
mov dword [rbp], r13d
jmp 0x2c99138b8
Function at 0x2c9913b10
Capabilities:
Set current directory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x230
call fcn.2c99128ed
mov rbx, rax
mov rcx, rax
call sub.msvcrt.dll_wcslen
mov esi, 0
cmp rax, 1
ja 0x2c9913b42
mov eax, esi
add rsp, 0x230
pop rbx
pop rsi
pop rdi
ret
lea rcx, [0x2c991e6f8]
call fcn.2c9915bf5
mov rdi, rax
mov r8d, 2
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
mov esi, eax
test eax, eax
je 0x2c9913b78
mov esi, 0
mov rcx, rdi
call fcn.2c9915c7c
jmp 0x2c9913b35
lea rcx, [rbx + 4]
call fcn.2c99128ed
mov rbx, rax
mov rcx, rax
call sub.msvcrt.dll_wcslen
test rax, rax
je 0x2c9913b6e
mov word [rsp + 0x20], 0
movzx edx, word [rbx]
cmp dx, 0x22
je 0x2c9913bc0
cmp dx, 0x20
ja 0x2c9913bf1
mov eax, 1
movabs rcx, 0x100002601
bt rcx, rdx
jae 0x2c9913bf6
mov ecx, esi
jmp 0x2c9913c25
movzx edx, word [rbx + 2]
test dx, dx
je 0x2c9913c02
cmp dx, 0x22
je 0x2c9913c02
mov eax, 1
mov word [rsp + rax*2 + 0x1e], dx
mov ecx, eax
movzx edx, word [rbx + rax*2 + 2]
add rax, 1
test dx, dx
je 0x2c9913c25
cmp dx, 0x22
jne 0x2c9913bd4
jmp 0x2c9913c25
mov eax, 1
movabs r8, 0x100002601
jmp 0x2c9913c0a
mov ecx, esi
jmp 0x2c9913c25
add rax, 1
mov word [rsp + rax*2 + 0x1e], dx
mov ecx, eax
movzx edx, word [rbx + rax*2]
cmp dx, 0x20
ja 0x2c9913c06
add rax, 1
bt r8, rdx
jae 0x2c9913c0a
movsxd rcx, ecx
mov word [rsp + rcx*2 + 0x20], 0
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcslen
test rax, rax
je 0x2c9913b6e
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, eax
jmp 0x2c9913b6e