joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x0042a0c4]
mov r12, rcx
test ebx, ebx
jle 0x401b50
mov rax, qword [0x0042a0c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x401a6c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x401af3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x401a50
mov rcx, r12
call fcn.004023d0
mov rsi, rax
test rax, rax
je 0x401b72
mov rax, qword [0x0042a0c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.00402500
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0042a0c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401b57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x401aec
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x401b00
add dword [0x0042a0c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x0042a0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401aec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004019b0
nop dword [rax]
xor ebx, ebx
jmp 0x401a77
mov rax, qword [0x0042a0c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.004019b0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.004019b0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x402040
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0042a120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0042a100]
test rbx, rbx
je 0x402094
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40208b
test r12, r12
je 0x40208b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402070
lea rcx, [0x0042a120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x4023d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x00427340]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x4023f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x4023f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4023f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x402445
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x40243c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4023f0
add rax, 0x28
cmp rax, r9
jne 0x402428
xor eax, eax
ret
Function at 0x402450
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00427340]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x402470
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x402478
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x402470
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x402500
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00427340]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x402520
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x402528
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x1400020e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x1400021db
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x1400021e3
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x14000221a
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x1400021f0
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x140002245
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14000226b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x140002250
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a340
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140030008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a385
xor al, al
jmp 0x14000a3d2
cmp word [rbx], 0
je 0x14000a39d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a390
cmp word [rsp + 0x30], 0
je 0x14000a3cb
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a3f3
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a3b0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000bb80
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000fc4c
int3
Function at 0x14000abd0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.1400225a0
sub rsp, rax
mov rax, qword [0x140030008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x140031db0]
lea rsi, [0x1400365e0]
mov rdi, rcx
test r11d, r11d
jne 0x14000ac49
mov r8d, 0x1000
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
call fcn.14000a400
test al, al
je 0x14000ad29
lea rcx, [rsp + 0x20]
call fcn.140016790
movsxd r11, dword [0x140031db0]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x140031db0], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000ac84
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ac74
add rax, 2
test ecx, ecx
jne 0x14000ac60
test edx, edx
je 0x14000aca7
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ac54
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000ac90
cmp rax, 2
jne 0x14000acab
cmp word [rdi + 2], 0x3a
jne 0x14000acab
mov al, 1
jmp 0x14000ad08
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000acd6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000acfd
mov bl, 1
cmp dword [0x140031db0], 0x400
jge 0x14000acfd
mov rcx, rdi
call fcn.140016790
movsxd rdx, dword [0x140031db0]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x140031db0], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000bb80
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str._HOME_
call fcn.14000aa20
int3
Function at 0x14000ae50
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
push rbx
sub rsp, 0x60
movzx eax, cl
mov rcx, qword [0x140031db8]
test rcx, rcx
je 0x14000aee0
test al, al
je 0x14000aeb5
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeConsole]
test ebx, ebx
jne 0x14000aeae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_send_CTRL_C_to_child_process.
call fcn.14000a8b0
mov rcx, qword [0x140031db8]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000aed3
mov rcx, qword [0x140031db8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140031db8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400385e8], 0
je 0x14000afc9
mov qword [rsp + 0x70], rbp
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rsi
lea rbp, [0x14002b950]
mov qword [rsp + 0x80], rdi
lea rsi, [0x140033de0]
xor edi, edi
mov qword [rsp + 0x88], r14
mov r14d, 0x414
mov qword [rsp + 0x20], rdi
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000afaf
test al, 0x10
je 0x14000afaf
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000af55
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
mov r14, qword [rsp + 0x88]
add rsp, 0x60
pop rbx
ret
Function at 0x14000c454
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c49e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000c49e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000c49e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c49e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000c49e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000c4a0
xor al, al
add rsp, 0x28
ret

Function at 0x14000fc40
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000faab
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000faab
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000faab
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000faab
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000faab
cmp dword [rcx + 0x84], 0xe
jbe 0x14000faab
cmp dword [rcx + 0xf8], 0
je 0x14000faab
mov ecx, ebx
call fcn.14000fb5c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f938
nop
cmp dword [rbp + 0x20], 0
je 0x14000faf9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fb04
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000fa3c
Function at 0x14001b800
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 0x14001b887
mov rsi, rbx
cmp word [rax], bp
je 0x14001b846
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001b830
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001b82c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140018afc
mov rdi, rax
test rax, rax
je 0x14001b874
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000da20
mov rbp, rdi
xor ecx, ecx
call fcn.140017ec8
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 0x14001f9a0
Capabilities:
Get file size

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

Function at 0x1400224b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400224d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400224d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140011276
Capabilities:
Terminate process

Disassembly:
jmp 0x140014170
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011311
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400154c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400154e0
xor al, al
jmp 0x140015561
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400154f3
xor al, al
jmp 0x140015561
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001551d
xor al, al
jmp 0x140015561
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015531
xor al, al
jmp 0x140015561
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015543
xor al, al
jmp 0x140015561
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001555f
xor al, al
jmp 0x140015561
mov al, 1
add rsp, 0x38
ret
Function at 0x1400010a5
Capabilities:
Read file on windows

Disassembly:
jmp 0x140080a30
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx + 0x210], edi
jne 0x140080a5d
lea ecx, [rdi + 0x15]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rdx, rdx
jne 0x140080a78
lea ecx, [rdx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea r9, [rsp + 0x40]
cmp dword [rcx + 0x218], edi
jne 0x140080aa2
mov rcx, qword [rcx + 0x208]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov qword [rcx + 0x230], rdi
mov qword [rsp + 0x48], rsi
lea rsi, [rcx + 0x228]
mov rcx, qword [rcx + 0x208]
mov qword [rsi], rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test eax, eax
jne 0x140080b08
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140080b06
mov rcx, qword [rbx + 0x208]
lea r9d, [rdi + 1]
lea r8, [rsp + 0x40]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov eax, edi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140001122
Capabilities:
Encode data using base64

Disassembly:
jmp 0x14000e420
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
xor eax, eax
movzx r11d, r8w
mov rdi, rdx
mov word [rsp + 0x19], ax
mov byte [rsp + 0x1b], al
mov eax, 0x55555556
xor r10d, r10d
mov byte [rsp + 0x18], 0
lea rsi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
imul r11d
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
lea eax, [rbx + rbx*2]
sub r11d, eax
test ebx, ebx
jle 0x14000e4f6
nop dword [rax]
movzx edx, r10w
lea r8, [rdi + rdx*2]
add r8, rdx
movzx edx, byte [r8]
movzx r9d, byte [r8 + 1]
movzx eax, dl
shl dl, 4
shr al, 2
mov byte [rsp + 0x18], al
movzx eax, r9b
shl r9b, 2
shr al, 4
or al, dl
movzx edx, byte [r8 + 2]
mov r8d, 4
and al, 0x3f
mov byte [rsp + 0x19], al
movzx eax, dl
shr al, 6
or al, r9b
and al, 0x3f
and dl, 0x3f
mov byte [rsp + 0x1b], dl
lea rdx, [rsp + 0x18]
mov byte [rsp + 0x1a], al
nop word [rax + rax]
movzx eax, byte [rdx]
inc rcx
lea rdx, [rdx + 1]
movzx eax, byte [rax + rsi]
mov byte [rcx - 1], al
dec r8
jne 0x14000e4d0
inc r10w
movzx eax, r10w
cmp eax, ebx
jl 0x14000e470
dec r11d
je 0x14000e580
dec r11d
jne 0x14000e56d
movzx edx, r10w
lea rax, [rdi + rdx*2]
movzx r8d, byte [rdx + rax]
movzx r10d, byte [rdx + rax + 1]
movzx edx, r10b
movzx r9d, r8b
shl r8b, 4
shr dl, 4
shr r9b, 2
and r10b, 0xf
movzx eax, r9b
or dl, r8b
movzx eax, byte [rax + rsi]
and dl, 0x3f
shl r10b, 2
mov byte [rcx], al
movzx eax, dl
movzx eax, byte [rax + rsi]
mov byte [rcx + 1], al
movzx eax, r10b
movzx eax, byte [rax + rsi]
mov byte [rcx + 2], al
mov word [rcx + 3], 0x3d
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x20]
ret
mov byte [rcx], 0
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x20]
ret
mov rbx, qword [rsp + 8]
movzx edx, r10w
lea rax, [rdi + rdx*2]
mov rdi, qword [rsp + 0x20]
movzx r8d, byte [rdx + rax]
movzx eax, r8b
and r8b, 3
shr al, 2
shl r8b, 4
movzx eax, al
movzx eax, byte [rax + rsi]
mov byte [rcx], al
movzx eax, r8b
movzx eax, byte [rax + rsi]
mov rsi, qword [rsp + 0x10]
mov byte [rcx + 1], al
mov word [rcx + 2], 0x3d3d
mov byte [rcx + 4], 0
ret
Function at 0x140001168
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x14000e210
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140125350]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor eax, eax
movzx r14d, r8w
mov rsi, rdx
mov qword [rbp - 0x4f], rax
mov qword [rbp - 0x47], rax
mov qword [rbp - 0x3f], rax
mov qword [rbp - 0x37], rax
mov qword [rbp - 0x2f], rax
mov qword [rbp - 0x27], rax
mov qword [rbp - 0x1f], rax
mov dword [rbp - 0x17], eax
mov word [rbp - 0x13], ax
mov byte [rbp - 0x11], al
mov eax, 0x200
mov r15, rcx
mov byte [rbp - 0x50], 0
cmp r8w, ax
jb 0x14000e298
movzx ebx, r8w
mov edi, 0xfe00
shr rbx, 9
nop
mov rdx, rsi
mov rcx, r15
call fcn.140001870
add r14w, di
add rsi, 0x40
dec rbx
jne 0x14000e280
xor eax, eax
movzx ebx, r14w
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
lea eax, [rbx + 7]
sar eax, 3
movzx edi, r14w
mov r8, rsi
add qword [r15 + 0x18], rdi
movsxd rdx, eax
mov r9, rdx
call fcn.14008cc4c
and ebx, 7
shr rdi, 3
movzx ecx, bl
mov eax, 0x80
sar eax, cl
or byte [rbp + rdi - 0x50], al
mov eax, 0x1bf
cmp r14w, ax
jbe 0x14000e334
lea rdx, [rbp - 0x50]
mov rcx, r15
call fcn.140001870
add qword [r15 + 0x18], 0xfffffffffffffe00
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x18]
lea rax, [r15 + 0x1f]
mov ecx, 8
movzx edx, byte [rax]
lea r8, [r8 + 1]
lea rax, [rax - 1]
mov byte [r8 - 1], dl
dec rcx
jne 0x14000e341
lea rdx, [rbp - 0x50]
mov rcx, r15
call fcn.140001870
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14008d900
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400011f9
Capabilities:
Write file on windows

Disassembly:
jmp 0x14000cc10
mov r9d, dword [rcx]
mov r10, rdx
dec r9d
jne 0x14000cc31
mov r9, qword [rcx + 0x10]
test r9, r9
je 0x14000cc31
mov edx, 1
mov rcx, r10
jmp fcn.14009092c
xor eax, eax
ret
Function at 0x140001343
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140012cc0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, qword [rsp + 0x70]
xor ebx, ebx
mov r15, r9
mov rbp, r8
mov rdi, rdx
mov r14, rcx
mov qword [r12], rbx
cmp rdx, 2
jb 0x140012e22
movzx ecx, word [rcx]
mov eax, 6
lea esi, [rbx + 2]
movzx edx, cx
mov r8d, 0x7e
lea r13d, [rbx + 0x7f]
shr dx, 0xf
and dl, 1
cmovne esi, eax
movzx eax, cx
shr ax, 8
and ax, 0x7f
cmp r8w, ax
jne 0x140012d36
add rsi, 2
jmp 0x140012d40
cmp r13w, ax
jne 0x140012d40
add rsi, 8
cmp rdi, rsi
jb 0x140012e22
test rsi, rsi
je 0x140012e22
test cl, 0x70
je 0x140012d61
mov eax, 0xf1
jmp 0x140012e27
test cl, cl
jns 0x140012d57
test dl, dl
je 0x140012d57
movzx ecx, byte [r14]
and cl, 0xf
lea eax, [rcx - 1]
cmp al, 1
jbe 0x140012d7e
lea eax, [rcx - 8]
cmp al, 2
ja 0x140012d57
movzx eax, cl
lea r8, [rsp + 0x70]
mov rdx, rdi
mov rcx, r14
mov dword [rsp + 0x70], eax
call fcn.140012bc0
mov r8, rax
test rax, rax
je 0x140012e1c
mov rax, rdi
sub rax, rsi
cmp r8, rax
ja 0x140012e22
jae 0x140012db4
sub rdi, rsi
sub rdi, r8
mov qword [r12], rdi
movzx ecx, word [r14]
movzx eax, cx
shr ax, 0xf
test al, 1
je 0x140012d57
shr cx, 8
mov eax, 0x7e
and cx, r13w
cmp ax, cx
jne 0x140012ddb
lea rdx, [r14 + 4]
jmp 0x140012de9
lea rdx, [r14 + 0xa]
cmp r13w, cx
je 0x140012de9
lea rdx, [r14 + 2]
test rdx, rdx
je 0x140012d57
lea rax, [rdx + 4]
mov qword [rbp], rax
mov qword [r15], r8
test r8, r8
je 0x140012e1c
mov rcx, qword [rbp]
mov rax, rbx
inc rbx
and eax, 3
movzx eax, byte [rax + rdx]
xor byte [rcx + rbx - 1], al
cmp rbx, qword [r15]
jb 0x140012e02
mov eax, dword [rsp + 0x70]
jmp 0x140012e27
mov eax, 0xf2
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret