joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140040f99
Capabilities:
Get graphical window text
Write file on windows

Disassembly:
test r9d, r9d
jne 0x1400411c9
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
xor r12d, r12d
mov rdi, rcx
dec edx
je 0x140040fea
dec edx
jne 0x14004119f
xor edx, edx
call qword [sym.imp.USER32.dll_EndDialog]
jmp 0x14004119f
mov rcx, qword [0x1400ea2f8]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x41b
mov rcx, rdi
mov qword [rsp + 0x48], rax
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov r14, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov rcx, 0xffffffffffffffff
lea esi, [rax + 1]
mov eax, 2
movsxd r15, esi
mul r15
cmovo rax, rcx
mov rcx, rax
call fcn.140055b1c
mov rbx, rax
test rax, rax
je 0x140041195
mov r8d, esi
mov rdx, rax
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [rbx], r12w
je 0x14004117f
lea r8, str.message.txt
lea rdx, [0x1400ea510]
lea rcx, [rbp - 0x50]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov qword [rsp + 0x30], r12
lea rcx, [rbp - 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14004117f
lea r9, [rsp + 0x40]
lea rdx, [0x1400b7ae4]
mov r8d, 3
mov rcx, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0x60]
mov r8d, 1
mov rdx, r15
call fcn.14002cd54
lea rax, [rsp + 0x60]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x70]
mov rdx, rbx
mov qword [rsp + 0x58], rax
call fcn.14003d56c
mov r8d, dword [rbp - 0x80]
mov rdx, qword [rbp - 0x68]
lea r9, [rsp + 0x40]
mov rcx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [0x1400b4580]
lea rdx, [rbp - 0x50]
lea rcx, [0x1400ea720]
call fcn.14003bc0c
lea rax, [0x1400b4f60]
mov qword [rsp + 0x60], rax
lea rax, [0x1400b4f78]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea rax, [0x1400b4fa0]
mov qword [rsp + rcx + 0x68], rax
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0x40]
mov dword [rsp + rcx + 0x64], r8d
mov rcx, qword [rbp - 0x68]
call fcn.14007efdc
mov rcx, rbx
call fcn.14007efdc
mov edx, 1
mov rcx, rdi
call qword [sym.imp.USER32.dll_EndDialog]
lea rcx, [rsp + 0x48]
call fcn.14003fbfc
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14007e1c0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400413d8
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx - 0x40]
cmp rcx, 0xffffffffffffffff
jne 0x1400413fc
mov dword [rbx - 0x38], 0x649
or rax, 0xffffffffffffffff
jmp 0x14004142a
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [rbx - 0x260]
movsxd rdx, dword [rcx + 4]
lea rcx, [rbx - 0x260]
mov edi, eax
add rcx, rdx
mov rdx, qword [rcx]
call qword [rdx + 0x28]
mov dword [rbx - 0x38], eax
test eax, eax
jne 0x1400413f6
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140041b58
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x258], 2
mov rbx, rcx
jne 0x140041bca
cmp qword [rcx + 0x248], 0
jbe 0x140041bc2
mov r8d, dword [rcx + 0x248]
mov rdx, qword [rcx + 0x238]
mov rcx, qword [rcx + 0x228]
and dword [rsp + 0x40], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rbx + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rbx
mov rax, qword [rcx]
call qword [rax + 0x28]
mov dword [rbx + 0x230], eax
test eax, eax
je 0x140041bc2
xor al, al
jmp 0x140041bcc
mov rcx, rbx
call fcn.140041abc
mov al, 1
add rsp, 0x30
pop rbx
ret

Function at 0x140047a34
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
mov r10d, dword [rcx]
mov rbx, rcx
mov eax, r8d
mov r9d, r10d
mov r11, rdx
shr r10d, 8
xor r9, rax
movzx eax, r9b
mov r9d, dword [rdx + rax*4]
mov edx, dword [rcx + 8]
xor r9d, r10d
mov dword [rcx], r9d
movzx eax, r9b
add eax, dword [rcx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [rcx + 4], eax
mov ecx, eax
shr ecx, 0x18
xor rcx, rdx
shr edx, 8
movzx eax, cl
mov eax, dword [r11 + rax*4]
xor eax, edx
mov dword [rbx + 8], eax
mov rbx, qword [rsp + 8]
mov eax, r8d
ret
Function at 0x140047af8
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r14, qword [rsp + 0xa0]
mov rbp, r9
mov r13, rdx
mov r15, rcx
cmp r8d, 0xc
jge 0x140047b34
xor eax, eax
jmp 0x140047c3b
mov eax, dword [0x1400eb488]
inc eax
mov dword [0x1400eb488], eax
cmp eax, 1
jne 0x140047b5a
xor ecx, ecx
call fcn.1400824e8
xor eax, 0xbb40e64e
mov ecx, eax
call fcn.1400824d0
mov r8, r14
mov rdx, rbp
mov rcx, r15
call fcn.140047a98
xor esi, esi
mov edi, esi
call fcn.1400824a4
mov rdx, r14
mov rcx, rbp
sar eax, 7
movzx r8d, al
call fcn.140047a10
mov rdx, r14
mov ebx, eax
call fcn.140047a34
xor r8b, bl
mov byte [rsp + rdi + 0x20], r8b
inc rdi
cmp rdi, 0xa
jl 0x140047b6c
mov r8, r14
mov rdx, rbp
mov rcx, r15
call fcn.140047a98
lea rax, [rsp + 0x20]
mov r15, r13
sub r15, rax
mov rdx, r14
mov rcx, rbp
call fcn.140047a10
lea rdi, [rsp + 0x20]
mov rdx, r14
add rdi, rsi
mov ebx, eax
movzx r8d, byte [rdi]
call fcn.140047a34
xor r8b, bl
inc rsi
mov byte [r15 + rdi], r8b
cmp rsi, 0xa
jl 0x140047bb7
mov rdx, r14
mov rcx, rbp
call fcn.140047a10
mov esi, dword [rsp + 0xa8]
mov rdx, r14
mov ebx, esi
mov edi, eax
shr ebx, 0x10
movzx r8d, bl
call fcn.140047a34
xor bl, dil
mov rdx, r14
mov rcx, rbp
mov byte [r13 + 0xa], bl
call fcn.140047a10
shr esi, 0x18
mov rdx, r14
mov r8d, esi
mov ebx, eax
call fcn.140047a34
xor sil, bl
mov eax, reloc.WS2_32.dll_inet_ntoa
mov byte [r13 + 0xb], sil
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14007e1c0
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140048164
Capabilities:
Encode data using xor

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, 0x20
cmp dword [rcx + 0x40e8], 0
mov rsi, rcx
je 0x1400481d1
xor ebp, ebp
cmp dword [rcx + 0xbc], ebp
jbe 0x1400481d1
lea r14, [rcx + 0x40ec]
mov r9, qword [rsi + 0x40f8]
mov rcx, r14
mov rdx, r9
call fcn.140047a10
movzx r8d, byte [rbp + rsi + 0xe0]
mov rdx, r9
mov edi, eax
call fcn.140047a34
xor byte [rbp + rsi + 0xe0], dil
inc ebp
cmp ebp, dword [rsi + 0xbc]
jb 0x14004819a
mov r9d, dword [rsi + 0xbc]
mov rdx, qword [rsi + 0x40]
mov rcx, qword [rsi + 0x38]
lea r8, [rsi + 0xe0]
call qword [rsi + 0x10]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
xor ecx, ecx
or edx, 0xffffffff
cmp eax, dword [rsi + 0xbc]
cmovne ecx, edx
and dword [rsi + 0xbc], 0
mov rsi, qword [rsp + 0x40]
mov eax, ecx
add rsp, 0x20
pop r14
ret
Function at 0x140049b24
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x550]
sub rsp, 0x650
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rbp + 0x540], rax
mov rsi, rdx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
mov r15, rcx
call qword [sym.imp.USER32.dll_SendMessageW]
mov ebx, 0x2b8
lea rcx, [rbp - 0x10]
mov r8d, ebx
xor edx, edx
mov r12, rax
call fcn.1400809a0
lea r8, [rbp - 0x10]
mov r9d, ebx
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x20], 0x4401
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
xor r13d, r13d
test r12d, r12d
jne 0x140049bb8
lea r8d, [r13 + 1]
mov r9, rax
mov edx, 0x1003
mov rcx, r15
call qword [sym.imp.USER32.dll_SendMessageW]
lea rdx, [rbp + 0x2b0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140049cc5
mov ebx, dword [rbp + 0x2d0]
cmp ebx, 0x3b9aca00
jb 0x140049c18
mov eax, 0x12e0be83
mov r9d, ebx
mov ecx, ebx
lea r8, str._lu._lu_GB
mul ebx
sub r9d, edx
shr r9d, 1
add r9d, edx
shr r9d, 0x1d
imul eax, r9d, 0x3b9aca00
sub ecx, eax
mov eax, 0x55e63b89
mul ecx
shr edx, 0x19
jmp 0x140049c88
cmp ebx, 0xf4240
jb 0x140049c56
mov eax, 0x431bde83
mov ecx, ebx
lea r8, str._lu._lu_MB
mul ebx
mov r9d, edx
shr r9d, 0x12
imul eax, r9d, 0xf4240
sub ecx, eax
mov eax, 0x4f8b588f
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0x10
mov dword [rsp + 0x20], ecx
jmp 0x140049c8c
cmp ebx, 0x3e8
jb 0x140049c9f
mov eax, 0x10624dd3
mov ecx, ebx
lea r8, str._lu._lu_KB
mul ebx
mov r9d, edx
shr r9d, 6
imul eax, r9d, 0x3e8
sub ecx, eax
mov eax, 0x51eb851f
mul ecx
shr edx, 5
mov dword [rsp + 0x20], edx
lea rcx, [rbp + 0x500]
mov edx, 0x20
call fcn.1400807f0
jmp 0x140049cba
lea r8, str._lu_B
lea rcx, [rbp + 0x500]
mov r9d, ebx
mov edx, 0x20
call fcn.1400807f0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140049cd0
mov word [rbp + 0x500], r13w
mov ebx, r13d
mov rcx, rsi
call fcn.140080c38
inc eax
mov r14d, eax
lea rcx, [rax*2 + 4]
call fcn.140055b1c
mov rdi, rax
test rax, rax
je 0x140049d03
lea rcx, [rax + 4]
mov r8, rsi
mov edx, r14d
mov dword [rax], ebx
call fcn.140080bcc
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x58]
call fcn.1400809a0
mov rcx, rsi
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x34], r12d
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov eax, dword [rbp - 8]
xor r8d, r8d
mov edx, 0x104d
mov rcx, r15
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x54], eax
call qword [sym.imp.USER32.dll_SendMessageW]
lea rax, [rbp + 0x208]
movsxd rbx, r12d
mov edi, 0x1074
lea r9, [rbp - 0x70]
mov rcx, r15
mov r8, rbx
mov edx, edi
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x68], 1
call qword [sym.imp.USER32.dll_SendMessageW]
lea rax, [rbp + 0x500]
lea r9, [rbp - 0x70]
mov r8, rbx
mov edx, edi
mov rcx, r15
mov dword [rbp - 0x68], 2
mov qword [rbp - 0x58], rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rbp + 0x540]
xor rcx, rsp
call fcn.14007e1c0
mov rbx, qword [rsp + 0x6a0]
add rsp, 0x650
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004a8d0
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rbx
mov rdx, rax
call fcn.14002e510
mov edx, 2
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetFocus]
mov edx, 0x3fc
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rdx, [rsp + 0x20]
lea rcx, [0x1400eb7c0]
call fcn.14003e7c8
lea rcx, [0x1400eb7c0]
mov rdx, rbx
call fcn.14003e7ec
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14007e1c0
add rsp, 0x240
pop rbx
ret
Function at 0x14004bf0c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, dword [rcx + 0x44]
mov rbx, rcx
mov edx, dword [rbx + 0x94]
mov esi, dword [rbx + 0x58]
mov ecx, dword [rbx + 0x44]
sub esi, dword [rbx + 0x9c]
add ecx, 0xfffffefa
add ecx, edi
sub esi, edx
cmp edx, ecx
jb 0x14004bfbf
mov rcx, qword [rbx + 0x50]
mov r8, rdi
lea rdx, [rcx + rdi]
call fcn.14007e7a0
mov r9d, dword [rbx + 0x74]
mov rax, qword [rbx + 0x68]
sub dword [rbx + 0x98], edi
sub dword [rbx + 0x94], edi
sub dword [rbx + 0x84], edi
lea r8, [rax + r9*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, di
cmp edx, edi
cmovae ax, cx
mov word [r8], ax
dec r9d
jne 0x14004bf74
mov rax, qword [rbx + 0x60]
mov r9d, edi
lea r8, [rax + rdi*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, di
cmp edx, edi
cmovae ax, cx
mov word [r8], ax
dec r9d
jne 0x14004bf9e
add esi, edi
mov rcx, qword [rbx]
cmp dword [rcx + 8], 0
je 0x14004c039
mov edx, dword [rbx + 0x9c]
mov eax, dword [rbx + 0x94]
mov r8d, esi
add rdx, rax
add rdx, qword [rbx + 0x50]
call fcn.14004cc44
add dword [rbx + 0x9c], eax
mov r9d, dword [rbx + 0x9c]
cmp r9d, 3
jb 0x14004c023
mov eax, dword [rbx + 0x94]
mov rdx, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rbx + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rbx + 0x7c]
mov dword [rbx + 0x70], r8d
cmp r9d, 0x106
jae 0x14004c039
mov rax, qword [rbx]
cmp dword [rax + 8], 0
jne 0x14004bf26
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140051088
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
and dword [rbx + 0x28], 0
mov edi, 0x7d00
cmp eax, edi
mov dword [rbx + 8], eax
cmovb edi, eax
mov ecx, edi
call fcn.140055b1c
mov qword [rbx], rax
test rax, rax
jne 0x1400510cb
mov rcx, rbx
call fcn.140050500
jmp 0x1400510eb
mov rcx, qword [rbx + 0x10]
and dword [rsp + 0x40], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, 1
mov rcx, rbx
call fcn.140050d14
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14005110c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov eax, 0x7d00
mov rsi, rcx
cmp dword [rcx + 8], eax
cmovb eax, dword [rcx + 8]
mov ebx, eax
shr ebx, 4
test al, 0xf
je 0x140051138
inc ebx
mov ecx, dword [rcx + 0x28]
cmp edx, ecx
jb 0x14005114a
lea eax, [rcx + rbx]
cmp edx, eax
jb 0x1400511ff
xor edi, edi
cmp edx, 0x3e8
lea eax, [rdx - 0x3e8]
cmova edi, eax
cmp edi, ecx
jb 0x140051186
lea eax, [rcx + rbx]
cmp edi, eax
jae 0x140051182
mov eax, ecx
mov edx, edi
sub edx, ecx
sub eax, edi
xor ecx, ecx
add eax, ebx
shl edx, 4
mov ebp, eax
sub ebx, eax
lea r14d, [rax + rdi]
shl ebp, 4
jmp 0x1400511a7
cmp edi, ecx
ja 0x14005119c
lea eax, [rdi + rbx]
cmp ecx, eax
jae 0x14005119c
mov eax, edi
sub eax, ecx
add eax, ebx
sub ebx, eax
mov ecx, ebx
shl ecx, 4
jmp 0x1400511a0
xor ecx, ecx
xor eax, eax
xor edx, edx
mov r14d, edi
xor ebp, ebp
test eax, eax
je 0x1400511bc
add rdx, qword [rsi]
add rcx, qword [rsi]
shl eax, 4
mov r8d, eax
call fcn.14007e7a0
test ebx, ebx
je 0x1400511fc
mov rcx, qword [rsi + 0x10]
shl r14d, 4
xor r9d, r9d
mov edx, r14d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rsi + 0x10]
and dword [rsp + 0x58], 0
and qword [rsp + 0x20], 0
shl ebx, 4
mov edx, ebp
add rdx, qword [rsi]
lea r9, [rsp + 0x58]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsi + 0x28], edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x14008852c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, ebx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400ec7b0], eax
call fcn.14009b84c
mov rcx, rbx
call fcn.14008854c
cmp dword [0x1400ec7b0], 0
jne 0x14008aafe
mov ecx, 1
call fcn.14009b84c
mov ecx, 0xc0000409
add rsp, 0x20
pop rbx
jmp 0x14008852c
Function at 0x140102570
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14010259d
xor al, al
jmp 0x1401026ff
mov rax, qword [0x1401216c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1401216c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1401216d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1401216d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1401216e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1401216e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1401216f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1401216f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x140121700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x1401026f1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x140102649
mov r11d, 2
jmp 0x14010266d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x140102663
mov r11d, 1
jmp 0x14010266d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x140102715
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x1401026b2
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x1401026ca
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x1401026da
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x1401026e8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x140102630
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x1401026fa

Function at 0x140316a5e
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
jmp 0x1403280a2
syscall
ret
Function at 0x1403eeec9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
bsr rbx, rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
or dil, r9b
sub rsp, 0x20
mov rbp, 0xeb94f2e
and bp, r8w
mov rbp, r8
mov bl, setsockopt
or dil, bl
mov rdi, rdx
add edx, ebx
and dx, 0x1f5f
movzx edx, r15w
mov rbx, rcx
test edx, 0x35736f62
movsx edx, dx
xor dx, 0x673b
nop
bsf edx, r9d
cmp dword [rbx + 0x44], 0
not dl
mov dl, 0xb2
mov rdx, rdi
jmp 0x1403eef2b
jne 0x1403eef70
mov r8d, dword [rbx + 0xc]
dec rax
cmp cx, r11w
sub cx, r8w
mov rcx, qword [rbx + 0x30]
shrd rax, r14, 0x8e
mov rax, rdi
sub r8d, dword [rbx + 0x40]
test cl, 0x42
cmc
sub rax, rcx
cmp rax, r8
jbe 0x1403eef70
lea rdx, [r8 + rcx]
movsx r8d, r10w
movsxd r8, r8d
movzx r8w, r8b
mov r8, rbp
mov rcx, rbx
jmp 0x1403eef7b
call fcn.1403ebd75
test eax, eax
jmp 0x1403eef87
jne 0x1403ef134
cmp dword [rbx + 0x44], eax
jmp 0x1403eef95
jne 0x1403eefc2
mov eax, dword [rbx + 0xc]
test r10b, 0xad
cmp r10b, cl
cmp dword [rbx + 0x40], eax
jmp 0x1403eefad
jb 0x1403eefc2
mov dword [rbx + 0x44], eax
movsx r9, r12w
rcl r9b, 0x3b
rcl r9w, cl
mov r9d, dword [rbx + 0x5c]
test r9d, r9d
jmp 0x1403eefce
je 0x1403ef0e1
cmp r9d, 0x112
jmp 0x1403eefe0
jae 0x1403ef0e1
mov rdx, qword [rbx + 0x30]
movsx ecx, cx
mov r10, qword [rbx + 0x18]
mov r8b, r12b
jmp 0x1403eefff
mov rsi, qword [rbx + 0x38]
rcr ch, cl
ror r11w, cl
mov r11d, dword [rbx + 0x4c]
movsx r8, si
mov rcx, rdi
neg r8w
mov r8d, r9d
sub rcx, rdx
cmp rdi, 0x1d4f49a4
test r10b, r9b
cmp rcx, r9
cmovb r8d, ecx
stc
cmp dword [rbx + 0x44], 0
jmp 0x1403ef039
jne 0x1403ef06a
mov ecx, dword [rbx + 0xc]
movsx ax, r15b
mov eax, ecx
stc
cmc
cmp spl, spl
sub eax, dword [rbx + 0x40]
cmp di, 0x64e0
cmp r9b, r8b
cmp eax, r8d
jmp 0x1403ef061
ja 0x1403ef06a
mov dword [rbx + 0x44], ecx
add dword [rbx + 0x40], r8d
cmp spl, 0x41
cmp r10b, dl
sub r9d, r8d
cmc
cmp r15b, 0xc2
test r8, 0x277102ec
mov dword [rbx + 0x5c], r9d
test r8d, r8d
jmp 0x1403ef090
je 0x1403ef0da
nop
stc
cmc
sub eax, eax
cmp bpl, 0x1e
stc
cmc
cmp rdx, r11
cmovb rax, rsi
stc
jmp 0x1403ef0ae
sub rax, r11
stc
jmp 0x1403ef0b7
add rax, rdx
inc rdx
stc
test dil, cl
add r8d, 0xffffffff
jmp 0x1403ef0ca
movzx eax, byte [rax + r10]
mov byte [rdx + r10 - 1], al
jne 0x1403ef099
mov qword [rbx + 0x30], rdx
test spl, bl
cmp qword [rbx + 0x30], rdi
jmp 0x1403ef0ea
jae 0x1403ef10c
cmp qword [rbx + 0x20], rbp
jmp 0x1403ef0f9
jae 0x1403ef10c
cmp dword [rbx + 0x5c], 0x112
jb 0x1403eef1b
cmp dword [rbx + 0x5c], 0x112
jmp 0x1403ef118
jbe 0x1403ef129
mov dword [rbx + 0x5c], 0x112
rcr si, 0xd
sub eax, eax
btr rbp, 0x40
movzx rbp, r10w
mov rbx, qword [rsp + 0x30]
not sil
rcr sil, 0x74
mov rbp, qword [rsp + 0x38]
movsx rsi, r13w
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
movsx di, bpl
cmovo rdi, rbp
pop rdi
jmp 0x1403ef161
ret
Function at 0x140002328
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002372
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002372
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002372
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002372
cmp dword [rcx + 0x84], 0xe
jbe 0x140002372
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002374
xor al, al
add rsp, 0x28
ret
Function at 0x140004b08
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x238]
sub rsp, 0x300
mov qword [rbp + 0xa0], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x140126108]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov r12, r8
mov r14d, edx
mov rsi, rcx
xor r13d, r13d
mov dword [rsp + 0x60], r13d
mov dword [rcx + 8], edx
mov byte [rsp + 0x30], r13b
lea rcx, [rsp + 0x30]
call fcn.14000bb48
mov rcx, rsi
call fcn.140004378
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsi + 0x254c], eax
lea r15, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
lea rdi, vtable.std::ios_base.0
bt r14d, 8
jae 0x140004caa
invalid
add dword [rax], eax
invalid
mov byte [rsi + 0xd], 1
call fcn.140062924
lea r9d, [r13 + 1]
mov r8, qword [rax]
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.14000c39c
nop
lea rbx, [rax + 0x10]
lea rdx, str.____Enter
mov rcx, rbx
call fcn.140015a04
lea rdx, str.DetectOSInfo
mov rcx, rbx
call fcn.140015a04
lea rdx, str.____
mov rcx, rbx
call fcn.140015a04
nop
lea rcx, [rbp + 0x10]
call fcn.14000c32c
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
mov qword [rbp + 0x10], r15
mov qword [rbp + 0x10], rdi
lea rcx, [rbp + 0x10]
call fcn.140069b78
mov rcx, rsi
call fcn.140007424
mov edi, eax
call fcn.140062924
lea r9d, [r13 + 1]
mov r8, qword [rax]
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.14000c39c
nop
lea rbx, [rax + 0x10]
lea rdx, str.____Exit
mov rcx, rbx
call fcn.140015a04
lea rdx, str.DetectOSInfo
mov rcx, rbx
call fcn.140015a04
lea rdx, str.____
mov rcx, rbx
call fcn.140015a04
nop
lea rcx, [rbp + 0x10]
call fcn.14000c32c
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
mov qword [rbp + 0x10], r15
adc byte [rax - 0x73], cl
add eax, 0xcadb8