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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x40], r12
mov rsi, r8
mov r12, qword [r8 + 0x10]
mov rbp, rcx
mov qword [rsp + 0x38], r13
mov r10, r8
mov r13, qword [r8 + 0x18]
cmp r13, 0x10
jb 0x14000f6b9
mov r10, qword [r8]
xor r8d, r8d
movabs r9, 0xcbf29ce484222325
test r12, r12
je 0x14000f6f4
movabs rcx, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [r8 + r10]
inc r8
xor r9, rax
imul r9, rcx
cmp r8, r12
jb 0x14000f6e0
mov rcx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x30]
mov r14, qword [rbp + 8]
and rax, r9
mov rbx, rax
mov qword [rsp + 0x48], rdi
add rax, rax
add rbx, rbx
mov rdx, qword [rcx + rax*8]
inc rax
mov rbx, qword [rcx + rbx*8]
mov qword [rsp + 0x90], rdx
lea rax, [rcx + rax*8]
mov qword [rsp + 0x98], rax
cmp rdx, r14
jne 0x14000f73a
mov rax, r14
jmp 0x14000f740
mov rax, qword [rax]
mov rax, qword [rax]
cmp rbx, rax
je 0x14000f7b8
lea rdi, [rbx + 0x10]
mov rdx, rsi
cmp r13, 0x10
jb 0x14000f755
mov rdx, qword [rsi]
mov r15, qword [rdi + 0x18]
mov rcx, rdi
cmp r15, 0x10
jb 0x14000f765
mov rcx, qword [rdi]
mov rbp, qword [rdi + 0x10]
cmp rbp, r12
jne 0x14000f77a
mov r8, rbp
call fcn.140038610
test eax, eax
je 0x14000f78f
mov rbx, qword [rbx]
mov rdx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x98]
jmp 0x14000f730
cmp r15, 0x10
jb 0x14000f798
mov rdi, qword [rdi]
mov rcx, rsi
cmp r13, 0x10
jb 0x14000f7a4
mov rcx, qword [rsi]
cmp r12, rbp
jne 0x14000f7b8
mov r8, r12
mov rdx, rdi
call fcn.140038610
test eax, eax
je 0x14000f7bb
mov rbx, r14
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
cmp rbx, r14
jne 0x14000f871
mov rbx, qword [r14]
lea rax, [rsp + 0x90]
mov rbp, qword [rsp + 0x80]
lea r9, [0x140057a49]
mov qword [rsp + 0x28], rax
mov rdx, rbx
lea rax, [rsp + 0x98]
mov qword [rsp + 0x98], rsi
mov rdi, qword [rbx + 8]
mov r8, rdi
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 8]
call fcn.14000c1d0
mov rdx, rax
movabs rcx, 0x333333333333332
mov rax, qword [rbp + 0x10]
sub rcx, rax
cmp rcx, 1
jb 0x14000f895
inc rax
mov rcx, rbp
mov qword [rbp + 0x10], rax
mov qword [rbx + 8], rdx
mov qword [rdi], rdx
mov r9, qword [rbp + 8]
mov rdx, qword [rsp + 0x88]
mov r9, qword [r9]
lea r8, [r9 + 0x10]
call fcn.14000c970
mov rax, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x48]
add rsp, 0x50
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret
mov r15, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x48]
mov rax, r15
mov qword [r15], rbx
mov byte [r15 + 8], 0
add rsp, 0x50
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret
lea rcx, str.list_T__too_long
call fcn.140035674
int3
Function at 0x14000fea0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [r8 + 0x28], 0x10
lea r11, [r8 + 0x10]
mov rbx, qword [r11 + 0x10]
mov rsi, rdx
mov rdi, rcx
jb 0x14000fec7
mov r11, qword [r11]
xor r9d, r9d
movabs r10, 0xcbf29ce484222325
test rbx, rbx
je 0x14000ff04
movabs rcx, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r9 + r11]
inc r9
xor r10, rax
imul r10, rcx
cmp r9, rbx
jb 0x14000fef0
mov rdx, qword [rdi + 0x30]
mov rcx, qword [rdi + 0x18]
and rdx, r10
shl rdx, 4
add rcx, rdx
mov rax, qword [rcx]
cmp qword [rcx + 8], r8
jne 0x14000ff44
cmp rax, r8
jne 0x14000ff3a
mov rax, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rdi + 0x18]
mov rax, qword [rdi + 8]
mov qword [rdx + rcx + 8], rax
jmp 0x14000ff4f
mov rax, qword [r8 + 8]
mov qword [rcx + 8], rax
jmp 0x14000ff4f
cmp rax, r8
jne 0x14000ff4f
mov rax, qword [r8]
mov qword [rcx], rax
lea rcx, [rdi + 8]
mov rdx, rsi
call fcn.140026f00
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140015c00
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x260
mov rax, qword gs:[0x58]
mov rdi, rcx
mov edx, dword [0x14007b390]
mov ecx, 4
mov qword [rsp + 0x290], r15
mov rdx, qword [rax + rdx*8]
mov eax, dword [rcx + rdx]
cmp dword [0x1400791d4], eax
jg 0x140015e87
xor r15d, r15d
lea rsi, [0x140078088]
cmp qword [0x140078098], r15
jne 0x140015df0
lea rdx, [rsp + 0x50]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
movdqa xmm0, xmmword [0x14005a090]
lea rax, [rsp + 0x50]
or rbx, 0xffffffffffffffff
mov word [rsp + 0x30], r15w
movdqu xmmword [rsp + 0x40], xmm0
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], r15w
jne 0x140015c90
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140025010
mov rcx, rsi
call fcn.14000b190
movups xmm0, xmmword [rsp + 0x30]
lea rcx, str.Shell32.dll
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x140078088], xmm0
movups xmmword [0x140078098], xmm1
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
test rax, rax
je 0x140015df0
lea rdx, str.SHGetKnownFolderPath
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140015d64
lea r9, [rsp + 0x288]
mov qword [rsp + 0x288], r15
xor r8d, r8d
lea rcx, [0x14005b418]
xor edx, edx
call rax
mov rcx, qword [rsp + 0x288]
test eax, eax
js 0x140015d50
cmp word [rcx], r15w
je 0x140015d50
nop word [rax + rax]
inc rbx
cmp word [rcx + rbx*2], r15w
jne 0x140015d30
mov rdx, rcx
mov r8, rbx
mov rcx, rsi
call fcn.140025010
mov rcx, qword [rsp + 0x288]
test rcx, rcx
je 0x140015de7
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x140015de7
lea rdx, str.SHGetFolderPathW
mov qword [rsp + 0x280], r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x140015ddf
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x20a
call fcn.140038450
xor r9d, r9d
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1a]
call r14
test eax, eax
js 0x140015ddf
cmp eax, 1
je 0x140015ddf
cmp word [rsp + 0x50], r15w
je 0x140015ddf
lea rax, [rsp + 0x50]
inc rbx
cmp word [rax + rbx*2], r15w
jne 0x140015dc5
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140025010
mov r14, qword [rsp + 0x280]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r15
cmp qword [0x1400780a0], 8
mov rbp, qword [0x140078098]
cmovae rsi, qword [0x140078088]
mov r15, qword [rsp + 0x290]
cmp rbp, 8
jae 0x140015e2a
movups xmm0, xmmword [rsi]
mov ebx, 7
movups xmmword [rdi], xmm0
jmp 0x140015e69
movabs rax, 0x7ffffffffffffffe
mov edx, 2
mov rbx, rbp
mov r8d, edx
or rbx, 7
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
call fcn.140007080
lea r8, [rbp*2 + 2]
mov qword [rdi], rax
mov rdx, rsi
mov rcx, rax
call fcn.140037930
mov qword [rdi + 0x10], rbp
mov rax, rdi
mov qword [rdi + 0x18], rbx
mov rbx, qword [rsp + 0x298]
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1400791d4]
call fcn.140030b88
cmp dword [0x1400791d4], 0xffffffff
jne 0x140015c41
lea rcx, [0x140055a00]
call fcn.140030938
lea rcx, [0x1400791d4]
call fcn.140030b28
jmp 0x140015c41
Function at 0x140018c80
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov rdi, rdx
mov qword [rsp + 0x40], r14
xor r14d, r14d
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x140018cce
xor dil, dil
jmp 0x140018d58
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x60], rbp
mov rcx, rbx
mov dword [rsp + 0x70], r14d
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp dword [rsp + 0x70], r14d
je 0x140018cf4
xor dil, dil
jmp 0x140018d53
mov qword [rsp + 0x68], rsi
mov r8, rdi
mov rsi, qword [rdi + 8]
mov rcx, rdi
sub rsi, qword [rdi]
lea rdx, [rsi + rbp]
call fcn.14000efd0
mov rdx, qword [rdi]
lea r9, [rsp + 0x78]
add rdx, rsi
mov dword [rsp + 0x78], r14d
mov r8d, ebp
mov qword [rsp + 0x20], r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140018d4b
mov edx, dword [rsp + 0x78]
mov r8, rdi
add rdx, rsi
mov rcx, rdi
call fcn.14000efd0
xor dil, dil
jmp 0x140018d4e
mov dil, 1
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x40]
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140018d70
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, dil
add rsp, 0x48
pop rdi
pop rbx
ret
Function at 0x1400258e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140025914
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140025900
ret

Function at 0x140025920
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x140025964
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140025950
ret

Function at 0x14002abd0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rcx], rdx
mov rbx, rcx
mov qword [rcx + 8], 0
mov qword [rcx + 0x10], r8
mov byte [rcx + 0x40], 0
add rcx, 0x18
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov r9, rbx
mov qword [rsp + 0x28], 0
lea r8, [0x14002b6f0]
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x14002b8e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
sub rsp, 0x460
mov r14, rcx
mov qword [rax + 0x10], rbx
add rcx, 8
movaps xmmword [rax - 0x38], xmm6
call fcn.140007bc0
mov rcx, qword [r14 + 0xa0]
call fcn.14002d670
cmp qword [r14 + 0x58], 8
lea rcx, [r14 + 0x40]
movaps xmm6, xmm0
jb 0x14002b91f
mov rcx, qword [rcx]
xor edx, edx
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x14002b942
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebp, ebp
jmp 0x14002bac8
xor ebp, ebp
lea r9, [rsp + 0x480]
lea r8, [0x14002dad0]
mov qword [rsp + 0x480], rbp
mov rcx, rbx
lea edx, [rbp + 0xe]
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov rdx, qword [rsp + 0x480]
mov rcx, rbx
test rdx, rdx
jne 0x14002b982
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14002bac8
mov r8d, 0xe
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbx
test rax, rax
jne 0x14002b9a1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14002bac8
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x14002b9bd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14002bac8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
jne 0x14002b9d9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14002bac8
mov r9d, 0x100
mov qword [rsp + 0x458], r12
mov r8d, r9d
mov dword [rsp + 0x20], ebp
mov edx, 1
mov rcx, rax
call qword [sym.imp.USER32.dll_LookupIconIdFromDirectoryEx]
movzx edx, ax
mov r8d, 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r12, rax
mov rcx, rbx
test rax, rax
jne 0x14002ba24
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14002bac0
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x14002ba40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14002bac0
mov rcx, rax
mov qword [rsp + 0x450], r15
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
mov rcx, rbx
test rax, rax
jne 0x14002ba64
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14002bab8
mulss xmm6, dword [0x14005b40c]
mov rdx, r12
mov qword [rsp + 0x490], rsi
cvttss2si esi, xmm6
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x30], ebp
mov r9d, 0x30000
mov edx, eax
mov dword [rsp + 0x28], esi
mov r8d, 1
mov dword [rsp + 0x20], esi
mov rcx, r15
call qword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x490]
mov r15, qword [rsp + 0x450]
mov r12, qword [rsp + 0x458]
movaps xmm6, xmmword [rsp + 0x440]
lea rax, [r14 + 0x80]
cmp qword [rax + 0x18], 8
mov rbx, qword [rsp + 0x488]
jb 0x14002bae9
mov rax, qword [rax]
cmp qword [r14 + 0x78], 8
lea r9, [r14 + 0x60]
jb 0x14002baf7
mov r9, qword [r9]
lea r8, str._s____s
mov qword [rsp + 0x20], rax
mov edx, 0x200
lea rcx, [rsp + 0x40]
call fcn.14000b680
mov rcx, qword [r14 + 0xa0]
lea r9, [rsp + 0x40]
mov r8, rbp
mov edx, 0x501
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [r14 + 8]
call fcn.140007bd0
add rsp, 0x460
pop r14
pop rdi
pop rbp
ret
Function at 0x14002c310
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov r13, rcx
mov r12, rdx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [rsp + 0x54]
xor edx, edx
mov eax, 0x40000000
xor edi, edi
div rsi
mov r14d, edi
lea ebp, [rdi + 1]
mov r15, rax
shl r15, 2
test r15, r15
je 0x14002c3ea
mov qword [rsp + 0xb0], rbx
nop dword [rax]
mov rdx, rdi
lea r8, [rsp + 0x20]
imul rdx, rsi
mov r9d, 0x30
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
xor edx, edx
test rax, rax
je 0x14002c3cf
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14002c3cf
div rsi
cmp dword [rsp + 0x40], 0x1000
mov rbx, rax
jne 0x14002c3da
mov r8, qword [rsp + 0x28]
cmp r8, r14
jbe 0x14002c3da
mov r9d, ebp
mov rdx, r12
mov rcx, r13
mov r14, r8
call fcn.14002bf70
test al, al
je 0x14002c3da
inc ebp
jmp 0x14002c3da
mov eax, 0x10000
div rsi
mov rbx, rax
add rdi, rbx
cmp rdi, r15
jb 0x14002c370
mov rbx, qword [rsp + 0xb0]
lea r11, [rsp + 0x80]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14002c410
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
lea rdx, [0x140056770]
call fcn.140030480
lea rdx, str.Context:_r_n
mov rcx, rdi
call fcn.140030480
mov rax, qword [rbx + 0x78]
lea rdx, str.RDI:____0x_016llx__RSI:_0x_016llx__RAX:___0x_016llx_r_n
mov r9, qword [rbx + 0xa8]
mov rcx, rdi
mov r8, qword [rbx + 0xb0]
mov qword [rsp + 0x20], rax
call fcn.140030480
mov rax, qword [rbx + 0x88]
lea rdx, str.RBX:____0x_016llx__RCX:_0x_016llx__RDX:___0x_016llx_r_n
mov r9, qword [rbx + 0x80]
mov rcx, rdi
mov r8, qword [rbx + 0x90]
mov qword [rsp + 0x20], rax
call fcn.140030480
movzx eax, word [rbx + 0x38]
lea rdx, str.RIP:____0x_016llx__RBP:_0x_016llx__SegCs:_0x_016llx_r_n
mov r9, qword [rbx + 0xa0]
mov rcx, rdi
mov r8, qword [rbx + 0xf8]
mov dword [rsp + 0x20], eax
call fcn.140030480
movzx eax, word [rbx + 0x42]
lea rdx, str.EFlags:_0x_016llx__RSP:_0x_016llx__SegSs:_0x_016llx_r_n
mov r9, qword [rbx + 0x98]
mov rcx, rdi
mov r8d, dword [rbx + 0x44]
mov dword [rsp + 0x20], eax
call fcn.140030480
mov rax, qword [rbx + 0xc8]
lea rdx, str.R8:_____0x_016llx__R9:__0x_016llx__R10:___0x_016llx_r_n
mov r9, qword [rbx + 0xc0]
mov rcx, rdi
mov r8, qword [rbx + 0xb8]
mov qword [rsp + 0x20], rax
call fcn.140030480
mov rax, qword [rbx + 0xe0]
lea rdx, str.R11:____0x_016llx__R12:_0x_016llx__R13:___0x_016llx_r_n
mov r9, qword [rbx + 0xd8]
mov rcx, rdi
mov r8, qword [rbx + 0xd0]
mov qword [rsp + 0x20], rax
call fcn.140030480
mov r9, qword [rbx + 0xf0]
lea rdx, str.R14:____0x_016llx__R15:_0x_016llx_r_n
mov r8, qword [rbx + 0xe8]
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.140030480
Function at 0x14002eec0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor r14d, r14d
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
mov ebx, r14d
test r8, r8
je 0x14002ef3e
mov r15d, 0xffffffff
nop dword [rax]
nop word [rax + rax]
mov rax, rsi
mov dword [rsp + 0x58], r14d
sub rax, rbx
mov qword [rsp + 0x20], r14
cmp rax, r15
lea r9, [rsp + 0x58]
mov rdx, rdi
mov rcx, rbp
cmova eax, r15d
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002ef59
mov eax, dword [rsp + 0x58]
add rbx, rax
add rdi, rax
cmp rbx, rsi
jb 0x14002ef00
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
xor al, al
jmp 0x14002ef40
Function at 0x14002fd20
Capabilities:
Terminate thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx + 8], 0xffffffffffffffff
mov rdi, rcx
je 0x14002fe4e
mov rcx, qword [rcx]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rdi]
mov byte [rdi + 0x40], 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Kernel32.dll
mov qword [rdi], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.CancelSynchronousIo
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x14002fde3
mov rcx, qword [rdi + 8]
call rbx
test eax, eax
jne 0x14002fdbb
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14002fdbb
mov rcx, qword [rdi + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14002fdbb
mov rcx, qword [rdi + 8]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x14002fd83
mov rcx, qword [rdi + 8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x30]
xor ebx, ebx
mov dword [rsp + 0x30], ebx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ebx, dword [rsp + 0x30]
jmp 0x14002fe33
mov rcx, qword [rdi + 8]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14002fe11
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x38]
xor ebx, ebx
mov dword [rsp + 0x38], ebx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ebx, dword [rsp + 0x38]
jmp 0x14002fe33
lea rcx, [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140030420
Capabilities:
Write file on windows

Disassembly:
cmp rcx, 0xffffffffffffffff
je 0x140030474
push rbx
sub rsp, 0x30
cmp dword [0x140079240], 0
mov rbx, rcx
jle 0x14003046f
lea rcx, [0x140079250]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, eax
lea rdx, [0x140079250]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [0x140079240], 0
add rsp, 0x30
pop rbx
ret
Function at 0x140030480
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x60
lea rax, [rcx - 1]
mov r8, rdx
mov rbx, rcx
cmp rax, 0xfffffffffffffffd
ja 0x140030547
mov eax, dword [0x140079240]
mov qword [rsp + 0x58], rdi
lea rdi, [0x140079250]
cmp eax, 0x1c00
jle 0x1400304f4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, eax
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8, qword [rsp + 0x78]
xor eax, eax
mov dword [0x140079240], eax
cdqe
lea r9, [rsp + 0x80]
mov qword [rsp + 0x30], r9
mov edx, 0x2000
mov qword [rsp + 0x28], r8
sub rdx, rax
xor r9d, r9d
mov qword [rsp + 0x40], 0
lea rcx, [rax + rdi]
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
call fcn.140019410
test eax, eax
js 0x140030542
mov eax, dword [rsp + 0x40]
sub eax, edi
mov dword [0x140079240], eax
mov rdi, qword [rsp + 0x58]
add rsp, 0x60
pop rbx
ret

Function at 0x140030550
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x38
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x14003057a
mov edx, eax
lea rcx, str.CoInitializeEx_failed_with_code_0x_0x_n
call fcn.140001e00
mov eax, 1
add rsp, 0x38
ret
mov ecx, 3
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rcx, [0x14002dc10]
call fcn.14003ed54
mov edx, 2
mov ecx, edx
call fcn.140040590
lea rdx, [0x14002aff0]
mov ecx, 0x16
call fcn.140040a1c
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rcx, qword [str.__console]
lea rdx, [rsp + 0x20]
mov r8, rax
mov rbx, rax
call fcn.140018840
test al, al
je 0x1400305ef
call fcn.140017d50
mov rcx, qword [str.__wait_for_debugger]
lea rdx, [rsp + 0x20]
mov r8, rbx
call fcn.140018840
test al, al
je 0x14003060c
call fcn.14001af60
mov r8, rbx
lea rdx, [rsp + 0x20]
lea rcx, str.__attach
call fcn.140018840
mov ecx, dword [rsp + 0x20]
mov rdx, rbx
test al, al
je 0x140030658
mov qword [rsp + 0x30], rdi
call fcn.140013b60
mov edi, eax
test eax, eax
js 0x140030647
mov ecx, dword [rsp + 0x20]
mov rdx, rbx
call fcn.14002f740
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
ret
call fcn.14002f240
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x140031fb4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov ebp, dword [rcx + 0x44]
mov rdi, rcx
mov r9d, dword [rcx + 0x9c]
mov edx, dword [rdi + 0x94]
mov esi, dword [rdi + 0x58]
mov ecx, dword [rdi + 0x44]
sub esi, edx
add ecx, 0xfffffefa
sub esi, r9d
add ecx, ebp
cmp edx, ecx
jb 0x140032071
mov rcx, qword [rdi + 0x50]
mov r8, rbp
lea rdx, [rcx + rbp]
call fcn.140037930
mov r9d, dword [rdi + 0x74]
mov rax, qword [rdi + 0x68]
sub dword [rdi + 0x98], ebp
sub dword [rdi + 0x94], ebp
sub dword [rdi + 0x84], ebp
lea r8, [rax + r9*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, bp
cmp edx, ebp
cmovae ax, cx
mov word [r8], ax
add r9d, 0xffffffff
jne 0x140032024
mov rax, qword [rdi + 0x60]
mov r9d, ebp
lea r8, [rax + rbp*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, bp
cmp edx, ebp
cmovae ax, cx
mov word [r8], ax
add r9d, 0xffffffff
jne 0x14003204f
add esi, ebp
mov r14, qword [rdi]
mov ecx, dword [r14 + 8]
test ecx, ecx
je 0x140032149
mov edx, dword [rdi + 0x9c]
mov r15d, dword [rdi + 0x94]
add r15, rdx
add r15, qword [rdi + 0x50]
cmp ecx, esi
cmovbe esi, ecx
test esi, esi
je 0x1400320f5
mov rax, qword [r14 + 0x28]
sub ecx, esi
mov dword [r14 + 8], ecx
mov ecx, dword [rax + 0x2c]
cmp ecx, 1
jne 0x1400320c0
mov rdx, qword [r14]
mov r8d, esi
mov ecx, dword [r14 + 0x4c]
call fcn.14003321c
jmp 0x1400320d4
cmp ecx, 2
jne 0x1400320d8
mov rdx, qword [r14]
mov r8d, esi
mov ecx, dword [r14 + 0x4c]
call fcn.14003382c
mov dword [r14 + 0x4c], eax
mov rdx, qword [r14]
mov rcx, r15
mov r8d, esi
mov ebx, esi
call fcn.140037930
add qword [r14], rbx
add dword [r14 + 0xc], esi
mov edx, dword [rdi + 0x9c]
lea r9d, [rdx + rsi]
mov dword [rdi + 0x9c], r9d
cmp r9d, 3
jb 0x140032133
mov eax, dword [rdi + 0x94]
mov rdx, qword [rdi + 0x50]
mov ecx, dword [rdi + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rdi + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rdi + 0x7c]
mov dword [rdi + 0x70], r8d
cmp r9d, 0x106
jae 0x140032149
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x140031fd9
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret