joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003740
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400240c0]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edi, edi
mov rbx, rcx
lea rax, [rcx + 8]
test rcx, rcx
jne 0x14000376f
mov eax, edi
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rcx
mov qword [rax + 0x28], rcx
mov dword [rax + 0x30], ecx
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x1400037b0
lea rdx, [rsp + 0x40]
mov r8d, 0x104
mov dword [rbx + 0x68], 1
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1400037b7
xor eax, eax
jmp 0x14000388f
mov rcx, qword [rbx + 0x60]
mov qword [rsp + 0x278], rsi
test rcx, rcx
je 0x1400037d1
call fcn.140008184
mov qword [rbx + 0x60], rdi
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
je 0x140003825
mov ecx, esi
call fcn.140007eb8
lea rcx, [rsp + 0x40]
mov r8d, esi
mov r9, rax
xor edx, edx
mov qword [rbx + 0x60], rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140003825
mov rcx, qword [rbx + 0x60]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
lea rdx, [0x1400187e8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x140003829
xor eax, eax
jmp 0x140003887
mov rax, qword [rsp + 0x28]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
lea rdx, str.VarFileInfoTranslation
movups xmm0, xmmword [rax]
movups xmmword [rbx + 8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x18], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rbx + 0x28], xmm0
mov eax, dword [rax + 0x30]
mov dword [rbx + 0x38], eax
mov rcx, qword [rbx + 0x60]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14000387a
cmp dword [rsp + 0x20], 4
jb 0x14000387a
mov rcx, qword [rsp + 0x28]
mov edx, dword [rcx]
mov dword [rbx + 0x48], edx
cmp dword [rbx + 8], 0xfeef04bd
sete dil
mov eax, edi
mov rsi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400095d0
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret

Function at 0x140004360
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x8f8
mov rax, qword [0x1400240c0]
xor rax, rsp
mov qword [rsp + 0x8e0], rax
mov r8, rcx
lea rdx, str.rundll32.exe_url.dll_FileProtocolHandler__s
lea rcx, [rsp + 0xe0]
call fcn.1400099e4
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.140009b50
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0xe0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor eax, eax
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
xor ecx, ecx
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x70], 0x68
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
neg eax
sbb eax, eax
neg eax
dec eax
mov rcx, qword [rsp + 0x8e0]
xor rcx, rsp
call fcn.1400095d0
add rsp, 0x8f8
ret
Function at 0x1400056d0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400240c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
mov rsi, rdx
mov rdi, rcx
mov qword [rcx], rax
mov qword [rsp + 0x30], rax
or rbx, 0xffffffffffffffff
call fcn.140005b50
cmp word [rax], 0
je 0x14000576c
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x38], 0x38
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
call fcn.140005b50
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000576c
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov eax, dword [0x1400261bc]
test al, 1
jne 0x14000578d
or eax, 1
mov dword [0x1400261bc], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400261b8], eax
jmp 0x140005793
mov eax, dword [0x1400261b8]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x1400057b9
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [0x1400261b8]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
xor edx, edx
lea r9, str.c_a2A
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x15]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x1400057f6
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
cmp rbx, 0xffffffffffffffff
je 0x140005805
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov rax, rdi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400095d0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140005830
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400240c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
mov rsi, rdx
mov rdi, rcx
mov qword [rcx], rax
mov qword [rsp + 0x30], rax
or rbx, 0xffffffffffffffff
call fcn.140005b50
cmp word [rax], 0
je 0x1400058cc
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x38], 0x38
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
call fcn.140005b50
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400058cc
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov eax, dword [0x1400261c4]
test al, 1
jne 0x1400058ed
or eax, 1
mov dword [0x1400261c4], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400261c0], eax
jmp 0x1400058f3
mov eax, dword [0x1400261c0]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140005919
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [0x1400261c0]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
xor edx, edx
lea r9, [0x140019188]
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x15]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140005956
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
cmp rbx, 0xffffffffffffffff
je 0x140005965
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov rax, rdi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400095d0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140006820
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
mov rdi, r9
mov rsi, r8
mov r15, rdx
mov r14d, ebx
test r9, r9
je 0x140006849
mov r14d, dword [r9]
test rdx, rdx
je 0x140006913
test r8, r8
je 0x140006913
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140006904
mov qword [rsp + 0x30], rcx
cmp qword [rsp + 0x80], rbx
je 0x1400068a1
mov rdx, qword [rsp + 0x80]
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140006904
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r15
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
cmp qword [rsp + 0x80], rbx
je 0x1400068e1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r15d, r15d
jne 0x140006904
mov eax, dword [rsp + 0x78]
cmp eax, 4
je 0x1400068fb
cmp eax, 3
jne 0x140006900
cmp dword [rsp + 0x68], 4
jne 0x140006900
mov ebx, 1
mov eax, ebx
jmp 0x140006915
test rdi, rdi
je 0x140006913
mov dword [rsi], r14d
mov eax, 1
jmp 0x140006915
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140006930
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor esi, esi
mov r14, r9
mov rdi, r8
mov r15, rdx
mov r12d, esi
test rdx, rdx
je 0x140006adf
test r8, r8
je 0x140006adf
test r9, r9
je 0x140006adf
mov rcx, qword [rcx + 0x10]
mov qword [r11 + 8], rbx
or rbx, 0xffffffffffffffff
mov qword [r11 + 0x18], rbp
test rcx, rcx
je 0x140006a8f
mov rbp, qword [rsp + 0x98]
mov r12d, dword [r9]
mov qword [r11 - 0x38], rcx
test rbp, rbp
je 0x1400069bc
lea rax, [r11 - 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbp
mov qword [r11 - 0x48], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140006a8f
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
test rbp, rbp
je 0x1400069ea
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [rsp + 0x78]
cmp ecx, 2
jne 0x140006a5c
mov eax, 2
mul r12
cmovo rax, rbx
mov rcx, rax
call fcn.140007eb8
mov rbp, rax
test rax, rax
je 0x140006a58
mov r8d, r12d
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rdx, rdi
mov rcx, rbp
sub rdx, rbp
nop word [rax + rax]
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [rdx + rcx - 2], ax
test ax, ax
jne 0x140006a30
mov rax, rbx
inc rax
cmp word [rdi + rax*2], si
jne 0x140006a44
mov rcx, rbp
mov dword [r14], eax
call fcn.140008184
mov ecx, dword [rsp + 0x78]
test r15d, r15d
jne 0x140006a8f
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x140006a6e
cmp ecx, 7
jne 0x140006a73
mov esi, 1
mov eax, esi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x140006adb
nop dword [rax]
cmp word [rcx + rbx*2 + 2], si
lea rbx, [rbx + 1]
jne 0x140006aa0
lea edx, [rbx*2 + 2]
cmp edx, r12d
ja 0x140006adb
sub rdi, rcx
nop word [rax + rax]
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [rdi + rcx - 2], ax
test ax, ax
jne 0x140006ac0
mov dword [r14], edx
mov eax, 1
jmp 0x140006a75
xor eax, eax
jmp 0x140006a75
xor eax, eax
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x14000b108
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14000af70
Function at 0x14004bcc0
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [0x1402d8bc0]
mov rdx, rcx
mov rcx, qword [rax + 0x3e88]
jmp fcn.140054c10

Function at 0x14004bce0
Capabilities:
Hash data with crc32

Disassembly:
xor edx, edx
xor ecx, ecx
jmp fcn.14005a540
Function at 0x14004ce30
Capabilities:
Hash data with crc32

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 rdi, qword [0x1402d8bc0]
xor r15d, r15d
mov ebp, ecx
mov r14d, r15d
mov rsi, qword [rdi + 0x3e88]
test cl, 0x10
jne 0x14004cfbf
mov ebx, dword [rdi + 0x3f4c]
test ebx, ebx
je 0x14004cea7
cmp dword [rdi + 0x3ed4], ebx
jne 0x14004cfb8
mov eax, dword [rdi + 0x3efc]
cmp eax, 0xffffffff
cmove eax, r15d
movsxd r15, eax
cmp byte [r15 + rdi + 0xdfc], r14b
je 0x14004cfb8
cmp byte [rsi + 0x9b], r14b
jmp 0x14004cf60
cmp byte [rdi + 0xdfc], r14b
je 0x14004cfb8
cmp byte [rsi + 0x9b], r14b
jne 0x14004cfb8
test byte [rdi + 0x3f54], 1
jne 0x14004cee4
cmp dword [rdi + 0x3ed4], r14d
je 0x14004cfb8
cmp qword [rdi + 0x3ef0], rsi
jne 0x14004cfb8
test bpl, 8
je 0x14004cfb8
lea rdx, [rdi + 0x3f58]
mov rcx, rsi
call fcn.140054da0
mov ebx, eax
mov dword [rdi + 0x3f4c], eax
mov rax, qword [0x1402d8bc0]
cmp dword [rax + 0x3ed4], ebx
jne 0x14004cf1a
mov dword [rax + 0x3ed8], ebx
cmp dword [rax + 0x3f00], ebx
jne 0x14004cf29
mov byte [rax + 0x3f04], 1
mov edx, ebx
lea rcx, [rdi + 0x3f58]
call fcn.140058ec0
movzx r14d, al
test al, al
je 0x14004cf5a
cmp byte [rdi + 0x3730], r15b
je 0x14004cf5a
mov rdx, rsi
mov ecx, ebx
call fcn.140058790
mov rcx, rsi
call fcn.1400555a0
cmp dword [rdi + 0x3ed4], ebx
jne 0x14004cfb8
mov byte [rdi + 0x3ee1], r14b
movsxd rcx, dword [rsi + 0xd0]
mov rax, qword [rsi + 0xd8]
mov r14d, dword [rax + rcx*4 - 4]
mov rax, qword [0x1402d8bc0]
movsxd rcx, r15d
cmp byte [rcx + rax + 0xdfc], 0
jne 0x14004cf95
xor sil, sil
jmp 0x14004cfae
movss xmm1, dword [rax + 0x38]
movss xmm0, dword [rax + rcx*4 + 0x3788]
mulss xmm1, xmm1
comiss xmm0, xmm1
setae sil
call fcn.14005bae0
test sil, sil
jne 0x14004d012
xor al, al
jmp 0x14004d0b2
mov r9d, 0xffffffff
lea rdx, [0x14017fd19]
mov ebx, r9d
lea r10, [0x14017e2e0]
mov r8b, reloc.WLDAP32.dll_Ordinal_35
nop dword [rax]
cmp r8b, 0x23
jne 0x14004cff3
cmp byte [rdx], r8b
jne 0x14004cff3
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x14004cfe0
not ebx
cmp byte [rdi + 0x4234], 0
jne 0x14004d050
call fcn.14005c060
mov dword [rdi + 0x4254], ebx
mov dword [rdi + 0x4258], r14d
mov byte [rdi + 0x4234], 1
mov dword [rdi + 0x4238], ebp
mov dword [rdi + 0x4240], r15d
cmp ebx, dword [rdi + 0x3ed4]
jne 0x14004d050
mov byte [rdi + 0x3ee2], 1
mov eax, dword [rdi + 0x3e08]
mov dword [rdi + 0x423c], eax
mov byte [rdi + 0x4235], 1
test bpl, 1
jne 0x14004d0a3
xor edx, edx
xor ecx, ecx
call fcn.14005a540
cmp dword [rdi + 0x42a8], 0
je 0x14004d0a3
test dword [rdi + 0x429c], 0x1000
je 0x14004d0a3
mov rax, qword [rdi + 0x3e88]
mov byte [rax + 0x9b], 1
mov byte [rax + 0x9d], 1
mov byte [rax + 0xb8], 1
test bpl, 0x12
jne 0x14004d0b0
and dword [rdi + 0x3f54], 0xfffffffe
mov al, 1
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
Function at 0x14004f530
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1402d8bc0]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x5364], ecx
test rbx, rbx
je 0x14004f59f
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.14004f5b0
lea rdx, [0x14017fda0]
mov rcx, rbx
mov rdi, rax
call fcn.140053780
mov rbx, rax
test rax, rax
je 0x14004f59a
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x140052650
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1400526ad
lea rbx, [0x14017e2e0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140052694
cmp r10, 2
jb 0x140052694
cmp byte [r9], r8b
jne 0x140052694
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140052670
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400526ef
lea rbx, [0x14017e2e0]
cmp r8b, 0x23
jne 0x1400526d3
cmp byte [r9], r8b
jne 0x1400526d3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1400526c0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x140053280
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
movsxd rax, edx
mov rdi, rcx
dec rax
mov qword [r11 + 0x18], rbp
mov rbp, r9
xor r9d, r9d
lea rax, [rcx + rax*2]
mov qword [rsp + 8], rax
cmp rcx, rax
jae 0x1400534a9
mov qword [r11 + 0x20], rsi
lea rsi, [0x140000000]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
mov qword [rsp], r8
test rbp, rbp
je 0x1400532e2
cmp r8, rbp
jae 0x140053486
movzx edx, byte [r8]
test dl, dl
je 0x140053486
mov eax, edx
mov rcx, rbp
shr rax, 3
movsx r9, byte [rax + rsi + 0x17eb60]
xor eax, eax
test r9d, r9d
mov ebx, eax
sete bl
add ebx, r9d
test rbp, rbp
jne 0x140053318
movsxd rcx, ebx
add rcx, r8
cmp r8, rcx
mov r14d, edx
cmovae r14d, eax
lea rax, [r8 + 1]
cmp rax, rcx
jae 0x140053331
movzx r13d, byte [rax]
jmp 0x140053334
xor r13b, r13b
lea rax, [r8 + 2]
cmp rax, rcx
jae 0x140053343
movzx r12d, byte [rax]
jmp 0x140053346
xor r12b, r12b
lea rax, [r8 + 3]
cmp rax, rcx
jae 0x140053355
movzx r15d, byte [rax]
jmp 0x140053358
xor r15b, r15b
lea r10, [r9*4]
movzx eax, r14b
mov esi, dword [r10 + rsi + 0x17eb80]
and esi, eax
movzx r9d, r13b
shl esi, 6
mov eax, r9d
and eax, 0x3f
movzx edx, r12b
or esi, eax
movzx r11d, r15b
shl esi, 6
and r9d, 0xc0
mov eax, edx
and edx, 0xc0
and eax, 0x3f
or esi, eax
mov eax, r11d
shr r11d, 2
and eax, 0x3f
or r11d, edx
shl esi, 6
or esi, eax
shr r11d, 2
or r11d, r9d
lea rax, [0x140000000]
mov ecx, dword [r10 + rax + 0x17ebb0]
shr r11d, 2
shr esi, cl
mov ecx, 0x100
cmp esi, dword [r10 + rax + 0x17eb98]
sbb eax, eax
xor r9d, r9d
and eax, 0x40
mov edx, r9d
or r11d, eax
mov eax, esi
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove edx, eax
mov eax, r9d
or r11d, edx
cmp esi, 0xffff
cmova eax, ecx
lea rcx, [0x140000000]
mov ecx, dword [r10 + rcx + 0x17ebc8]
or r11d, eax
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x140053463
test r14b, r14b
mov eax, r9d
mov ecx, r9d
mov esi, 0xfffd
setne cl
test r15b, r15b
setne al
add ecx, eax
mov eax, r9d
test r12b, r12b
setne al
add ecx, eax
mov eax, r9d
test r13b, r13b
setne al
add ecx, eax
cmp ebx, ecx
cmovl ecx, ebx
movsxd r8, ecx
add r8, qword [rsp]
jmp 0x14005346d
movsxd rax, ebx
add r8, rax
test esi, esi
je 0x140053486
mov word [rdi], si
add rdi, 2
lea rsi, [0x140000000]
cmp rdi, qword [rsp + 8]
jb 0x1400532d0
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x50]
mov word [rdi], r9w
test rax, rax
je 0x1400534bf
mov qword [rax], r8
sub rdi, rcx
sar rdi, 1
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x1400534e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push r13
push r14
push r15
mov qword [rsp + 0x28], rbp
xor r10d, r10d
mov qword [rsp + 0x30], rsi
mov rbx, rdx
mov qword [rsp + 0x38], rdi
mov rax, rcx
mov qword [rsp + 0x40], r12
mov r14d, r10d
lea r15, [0x140000000]
mov r13, rax
test rbx, rbx
je 0x140053520
cmp rax, rbx
jae 0x1400536cc
movzx r8d, byte [rax]
test r8b, r8b
je 0x1400536cc
mov r11d, r10d
mov ecx, r8d
shr rcx, 3
mov rdx, rbx
movsx r9, byte [rcx + r15 + 0x17eb60]
test r9d, r9d
sete r11b
add r11d, r9d
test rbx, rbx
jne 0x140053558
movsxd rdx, r11d
add rdx, rax
cmp rax, rdx
lea rcx, [rax + 1]
mov edi, r8d
cmovae edi, r10d
cmp rcx, rdx
jae 0x140053571
movzx r12d, byte [rcx]
jmp 0x140053574
xor r12b, r12b
lea rcx, [rax + 2]
cmp rcx, rdx
jae 0x140053582
movzx ebp, byte [rcx]
jmp 0x140053585
xor bpl, bpl
lea rcx, [rax + 3]
cmp rcx, rdx
jae 0x140053593
movzx esi, byte [rcx]
jmp 0x140053596
xor sil, sil
lea r9, [r9*4]
movzx ecx, dil
mov r15d, dword [r9 + r15 + 0x17eb80]
and r15d, ecx
movzx r8d, r12b
shl r15d, 6
mov ecx, r8d
and ecx, 0x3f
movzx edx, bpl
or r15d, ecx
movzx r10d, sil
shl r15d, 6
mov ecx, edx
and ecx, 0x3f
and edx, 0xc0
or r15d, ecx
and r8d, 0xc0
mov ecx, r10d
shl r15d, 6
and ecx, 0x3f
shr r10d, 2
or r10d, edx
or r15d, ecx
shr r10d, 2
lea rcx, [0x140000000]
mov ecx, dword [r9 + rcx + 0x17ebb0]
or r10d, r8d
shr r15d, cl
lea rcx, [0x140000000]
shr r10d, 2
mov edx, r15d
cmp r15d, dword [r9 + rcx + 0x17eb98]
sbb ecx, ecx
and edx, 0xfffff800
and ecx, 0x40
xor r8d, r8d
or r10d, ecx
mov ecx, 0x80
cmp edx, 0xd800
cmove r8d, ecx
xor edx, edx
or r10d, r8d
mov ecx, 0x100
cmp r15d, 0xffff
cmova edx, ecx
lea rcx, [0x140000000]
mov ecx, dword [r9 + rcx + 0x17ebc8]
or r10d, edx
xor r10d, 0x2a
sar r10d, cl
test r10d, r10d
je 0x1400536b6
xor r10d, r10d
test dil, dil
mov eax, r10d
mov ecx, r10d
setne cl
test sil, sil
setne al
add ecx, eax
mov eax, r10d
test bpl, bpl
setne al
add ecx, eax
mov eax, r10d
test r12b, r12b
setne al
add ecx, eax
cmp r11d, ecx
cmovl ecx, r11d
movsxd rax, ecx
add rax, r13
inc r14d
jmp 0x140053508
movsxd rcx, r11d
add rax, rcx
test r15d, r15d
je 0x1400536cc
xor r10d, r10d
inc r14d
jmp 0x140053508
mov r12, qword [rsp + 0x40]
mov eax, r14d
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x28]
pop r15
pop r14
pop r13
pop rbx
ret
Function at 0x140053990
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
movsxd rbp, r9d
mov r14, r8
test r8, r8
je 0x1400539ab
mov qword [r8], 0
call fcn.140053780
mov rbx, rax
test rax, rax
jne 0x1400539c1
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140053ac9
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140053ac9
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140053ac9
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140053ac9
cmp rdi, 0xffffffffffffffff
je 0x140053ac9
mov rax, qword [0x1402d8bc0]
test rax, rax
je 0x140053a42
inc dword [rax + 0xec]
mov rdx, qword [0x1402d8bd0]
lea rcx, [rdi + rbp]
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x140053ac9
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rdi
je 0x140053aa1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1402d8bc0]
test rax, rax
je 0x140053a8f
dec dword [rax + 0xec]
mov rdx, qword [0x1402d8bd0]
mov rcx, rsi
call qword [0x1401c5008]
jmp 0x140053ad2
test ebp, ebp
jle 0x140053ab3
lea rcx, [rsi + rdi]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140053ac4
mov qword [r14], rdi
mov rax, rsi
jmp 0x140053ad4
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret