joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180035560
Capabilities:
Get user security identifier

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0xb0
mov rax, qword [0x180295a70]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, qword [rcx + 8]
xor eax, eax
mov byte [rsp + 0x50], 0
xor r13d, r13d
test rbx, rbx
mov rdi, rcx
mov qword [r11 - 0x77], rax
mov qword [r11 - 0x6f], rax
mov qword [r11 - 0x67], rax
mov qword [r11 - 0x5f], rax
mov qword [r11 - 0x57], rax
mov qword [r11 - 0x4f], rax
mov qword [r11 - 0x47], rax
mov qword [r11 - 0x3f], rax
mov word [r11 - 0x37], ax
mov byte [r11 - 0x35], al
mov dword [rsp + 0x44], 0x44
mov dword [rsp + 0x40], r13d
je 0x1800355f1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi + 8], r13
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x180035604
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rdi + 0x10], r13
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x180035617
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x18], r13
mov esi, 2
nop
mov rdx, qword [rdi]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rax, qword [rdi + 8]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ecx, dword [rsp + 0x40]
test ecx, ecx
mov r12d, eax
je 0x180035684
cmp qword [rdi + 8], r13
jne 0x180035684
mov rbx, rcx
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi + 8], rax
sub rsi, 1
jne 0x180035620
test r12d, r12d
je 0x180035719
lea rdx, [rdi + 0x10]
lea rcx, [rsp + 0x50]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x1800356b3
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x180035719
mov rbx, qword [rdi]
test rbx, rbx
je 0x1800356d2
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi], r13
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1800356f3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi + 8], r13
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x180035706
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rdi + 0x10], r13
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x180035719
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x18], r13
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1801604e0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x1800359d0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
test r9b, r9b
mov rbp, rdx
lea rsi, [rcx + 0x6a6]
jne 0x1800359fa
lea rsi, [rcx + 0x8c]
mov edi, r8d
add rdi, rdi
mov r8, rdi
xor edx, edx
mov rcx, rbp
call fcn.1801603e0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r11d, eax
call fcn.180034df0
mov ecx, 1
lock xadd dword [0x180297ba8], ecx
add ecx, 1
mov qword [rsp + 0x30], rax
lea rdx, str._s_u__u__u_s
mov dword [rsp + 0x28], ecx
mov r9d, ebx
mov r8, rsi
mov rcx, rbp
mov dword [rsp + 0x20], r11d
call fcn.180162940
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180035a00
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180038df0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rdi, rcx
mov esi, dword [rcx]
add esi, esi
cmp qword [rcx + 0x10], 0
jne 0x180038e37
test esi, esi
je 0x180038e37
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, esi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi + 0x10], rax
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x180038ead
mov word [rax], 0
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x180038ea9
lea rcx, [rdi + 0x18]
call fcn.180038b40
nop
mov r8, rsi
mov rdx, rbx
mov rcx, qword [rdi + 0x10]
call fcn.180161690
nop
jmp 0x180038e91
lea rcx, [rdi + 0x18]
call fcn.180038ba0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rax, qword [rdi + 0x10]
jmp 0x180038ead
mov rax, qword [rdi + 0x10]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x1800390a0
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [rcx + 8], 0x67452301
mov dword [rcx + 0xc], 0xefcdab89
mov dword [rcx + 0x10], 0x98badcfe
mov dword [rcx + 0x14], 0x10325476
mov dword [rcx + 0x18], 0xc3d2e1f0
mov dword [rcx + 0x1c], eax
mov dword [rcx + 0x20], eax
mov word [rcx + 0x24], ax
mov qword [rcx + 0x68], rax
mov qword [rcx + 0x70], rax
mov dword [rcx + 0x78], eax
mov qword [rcx + 0x7c], rax
mov qword [rcx + 0x84], rax
mov qword [rcx + 0x8c], rax
mov qword [rcx + 0x94], rax
mov qword [rcx + 0x9c], rax
mov byte [rcx + 0xa4], al
ret

Function at 0x180039710
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
movzx eax, word [rcx + 0x24]
mov rbx, rcx
cmp ax, 0x37
movzx eax, ax
mov byte [rax + rcx + 0x26], 0x80
jbe 0x180039787
add word [rcx + 0x24], 1
movzx eax, word [rcx + 0x24]
cmp ax, 0x40
jae 0x180039757
nop
nop
movzx eax, ax
mov byte [rax + rcx + 0x26], 0
add word [rcx + 0x24], 1
mov ax, word [rcx + 0x24]
cmp ax, 0x40
jb 0x180039740
call fcn.180039200
cmp word [rbx + 0x24], 0x38
jae 0x1800397b7
nop
nop
nop
nop
movzx eax, word [rbx + 0x24]
mov byte [rax + rbx + 0x26], 0
add word [rbx + 0x24], 1
cmp word [rbx + 0x24], 0x38
jb 0x180039770
jmp 0x1800397b7
add word [rcx + 0x24], 1
movzx eax, word [rcx + 0x24]
cmp ax, 0x38
jae 0x1800397b7
nop
nop
nop
movzx eax, ax
mov byte [rax + rcx + 0x26], 0
add word [rcx + 0x24], 1
mov ax, word [rcx + 0x24]
cmp ax, 0x38
jb 0x1800397a0
mov ecx, dword [rbx + 0x20]
mov eax, ecx
shr eax, 0x18
mov byte [rbx + 0x5e], al
mov eax, ecx
shr ecx, 8
shr eax, 0x10
mov byte [rbx + 0x60], cl
mov ecx, dword [rbx + 0x1c]
mov byte [rbx + 0x5f], al
movzx eax, byte [rbx + 0x20]
mov byte [rbx + 0x61], al
mov eax, ecx
shr eax, 0x18
mov byte [rbx + 0x62], al
mov eax, ecx
shr ecx, 8
shr eax, 0x10
mov byte [rbx + 0x64], cl
mov rcx, rbx
mov byte [rbx + 0x63], al
movzx eax, byte [rbx + 0x1c]
mov byte [rbx + 0x65], al
add rsp, 0x20
pop rbx
jmp fcn.180039200
Function at 0x1800399c0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
test rdx, rdx
mov r13d, r9d
mov r15, r8
mov r12, rdx
je 0x1800399e9
test r8, r8
je 0x1800399e9
xor edi, edi
jmp 0x1800399ee
mov edi, 0x80070057
lea eax, [r9 + 8]
mov r14d, 0x10000
cmp eax, r14d
cmovb r14d, eax
test edi, edi
js 0x180039b6d
cmp qword [rcx + 8], 0
jne 0x180039a21
mov eax, 0x80070005
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x48], rbp
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, r14d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x180039a54
mov edi, 0x8007000e
jmp 0x180039b37
mov qword [rsp + 0x40], rsi
xor esi, esi
nop
nop
cmp esi, r13d
jae 0x180039b32
mov eax, r13d
lea ebx, [r14 - 8]
mov edx, esi
sub eax, esi
mov rcx, rbp
cmp eax, ebx
cmovb ebx, eax
add rdx, r15
mov r8d, ebx
mov dword [rsp + 0x98], ebx
call fcn.180161690
xor r8d, r8d
lea rax, [rsp + 0x98]
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 8]
add ebx, esi
mov qword [rsp + 0x20], rbp
cmp ebx, r13d
sete r8b
xor r9d, r9d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x180039ae3
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov edi, eax
jle 0x180039b23
movzx edi, ax
or edi, 0x80070000
jmp 0x180039b23
mov rax, qword [r12]
mov r8d, dword [rsp + 0x98]
lea r9, [rsp + 0x88]
mov rdx, rbp
mov rcx, r12
mov dword [rsp + 0x88], 0
call qword [rax + 0x20]
test eax, eax
mov edi, eax
js 0x180039b32
mov ecx, dword [rsp + 0x98]
cmp dword [rsp + 0x88], ecx
jne 0x180039b2d
mov esi, ebx
test edi, edi
jns 0x180039a60
jmp 0x180039b32
mov edi, 0x8000ffff
mov rsi, qword [rsp + 0x40]
test rbp, rbp
mov rbx, qword [rsp + 0x90]
je 0x180039b58
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, edi
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180039eb0
Capabilities:
Encrypt data using des via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
xor r12d, r12d
mov ebx, 0x80070005
mov rbp, rdx
cmp qword [rcx], r12
mov rdi, rcx
mov qword [rsp + 0x60], r12
cmovne ebx, r12d
test ebx, ebx
js 0x180039eeb
mov eax, 0x80070057
test rdx, rdx
cmove ebx, eax
lea rsi, [rcx + 8]
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x180039f01
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rsi], r12
test ebx, ebx
js 0x180039ff6
mov rcx, qword [rdi]
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x180039f40
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ebx, eax
jle 0x180039f40
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x180039ff6
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
lea rdx, [rsp + 0x50]
lea r8d, [r9 + 4]
mov dword [rsp + 0x50], 0x420042
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x180039f80
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ebx, eax
jle 0x180039f80
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x180039ff6
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
lea r8d, [rax + rax]
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x180039fbb
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ebx, eax
jle 0x180039fbb
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x180039ff6
mov r8, qword [rsp + 0x60]
mov rcx, qword [rdi]
mov r9d, 0xc00000
mov edx, 0x6603
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x180039ff6
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ebx, eax
jle 0x180039ff6
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18003a006
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x18003a9c0
Capabilities:
Delete file

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov r13d, r9d
mov rbp, r8
mov rdi, rdx
mov r12, rcx
test rdx, rdx
je 0x18003a9fc
test r8, r8
je 0x18003a9fc
xor ebx, ebx
jmp 0x18003aa01
mov ebx, 0x80070057
xor ecx, ecx
mov qword [rsp + 0x58], rcx
xor sil, sil
test ebx, ebx
js 0x18003aa84
cmp qword [r12 + 8], 0
jne 0x18003aa1e
mov ebx, 0x80070005
jmp 0x18003aa84
lea r8, [rsp + 0x58]
mov edx, 0x1011
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_SHCreateStreamOnFileW]
mov ebx, eax
test eax, eax
js 0x18003aa4f
mov sil, 1
mov r9d, r13d
mov r8, rbp
mov rdx, qword [rsp + 0x58]
mov rcx, r12
call fcn.1800399c0
mov ebx, eax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x18003aa6d
mov qword [rsp + 0x58], 0
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rsp + 0x58]
test ebx, ebx
jns 0x18003aa84
test sil, sil
je 0x18003aa84
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x18003aa93
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, ebx
jmp 0x18003aa95
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x180049dc4
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x180295a70]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.1801603e0
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x180000000]
mov esi, SysAllocStringByteLen
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.1801603e0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x180049e57
cmp dword [rsp + 0x24], 5
jb 0x180049e71
jmp 0x180049e6d
cmp dword [rsp + 0x30], esi
jne 0x180049e71
cmp dword [rsp + 0x24], 4
ja 0x180049e6d
jne 0x180049e71
cmp dword [rsp + 0x28], 0
jbe 0x180049e71
mov byte [rbx + 0x18], sil
lea rax, [0x180194f88]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.18000921c
movzx ecx, byte [0x1802978a0]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x1802978a0], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1801604e0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1800c7040
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x24]
mov edi, edx
mov rbx, rcx
cmp eax, 0xcf
je 0x1800c7079
cmp eax, 0xcc
je 0x1800c7079
mov rax, qword [rcx]
mov dword [rax + 0x28], SafeArrayUnaccessData
mov eax, dword [rcx + 0x24]
mov r8, qword [rcx]
mov dword [r8 + 0x2c], eax
mov rax, qword [rcx]
call qword [rax]
mov eax, 1
test edi, edi
cmovle edi, eax
mov rax, qword [rbx + 0x220]
cmp byte [rax + 0x21], 0
je 0x1800c709b
mov eax, dword [rbx + 0x9c]
cmp edi, eax
cmovg edi, eax
mov dword [rbx + 0xa4], edi
xor edi, edi
cmp dword [rbx + 0x24], 0xcc
je 0x1800c70c5
mov rax, qword [rbx + 0x200]
mov rcx, rbx
call qword [rax]
mov dword [rbx + 0x98], edi
mov dword [rbx + 0x24], 0xcc
mov rax, qword [rbx + 0x200]
cmp byte [rax + 0x10], dil
je 0x1800c70ff
nop
nop
nop
nop
mov rax, qword [rbx]
mov rcx, rbx
mov dword [rax + 0x28], 0x31
mov rax, qword [rbx]
call qword [rax]
mov r11, qword [rbx + 0x200]
cmp byte [r11 + 0x10], dil
jne 0x1800c70e0
cmp byte [rbx + 0x59], dil
mov al, 1
setne dil
add edi, 0xcd
mov dword [rbx + 0x24], edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800c71c0
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x24], 0xca
mov rbx, rcx
jne 0x1800c71f3
call fcn.18011fa80
cmp byte [rbx + 0x58], 0
je 0x1800c71ec
mov dword [rbx + 0x24], 0xcf
mov al, 1
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x24], 0xcb
mov eax, dword [rbx + 0x24]
cmp eax, 0xcb
jne 0x1800c7277
mov rax, qword [rbx + 0x220]
cmp byte [rax + 0x20], 0
je 0x1800c7269
nop
nop
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1800c721e
mov rcx, rbx
call qword [rax]
mov rax, qword [rbx + 0x220]
mov rcx, rbx
call qword [rax]
test eax, eax
je 0x1800c7261
cmp eax, 2
je 0x1800c7269
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1800c7210
cmp eax, 3
je 0x1800c7246
cmp eax, 1
jne 0x1800c7210
add dword [rcx + 8], 1
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0xc]
cmp dword [rcx + 8], eax
jl 0x1800c7210
mov eax, dword [rbx + 0x184]
add dword [rcx + 0xc], eax
jmp 0x1800c7210
xor al, al
add rsp, 0x20
pop rbx
ret
mov eax, dword [rbx + 0x9c]
mov dword [rbx + 0xa4], eax
jmp 0x1800c7299
cmp eax, 0xcc
je 0x1800c7299
mov rax, qword [rbx]
mov dword [rax + 0x28], SafeArrayUnaccessData
mov rcx, qword [rbx]
mov eax, dword [rbx + 0x24]
mov dword [rcx + 0x2c], eax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov qword [rsp + 0x30], rdi
xor edi, edi
cmp dword [rbx + 0x24], 0xcc
je 0x1800c72c2
mov rax, qword [rbx + 0x200]
mov rcx, rbx
call qword [rax]
mov dword [rbx + 0x98], edi
mov dword [rbx + 0x24], 0xcc
mov rax, qword [rbx + 0x200]
cmp byte [rax + 0x10], dil
je 0x1800c72ef
nop
mov rax, qword [rbx]
mov rcx, rbx
mov dword [rax + 0x28], 0x31
mov rax, qword [rbx]
call qword [rax]
mov r11, qword [rbx + 0x200]
cmp byte [r11 + 0x10], dil
jne 0x1800c72d0
cmp byte [rbx + 0x59], dil
mov al, 1
setne dil
add edi, 0xcd
mov dword [rbx + 0x24], edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x1800efcb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov edi, dword [rcx + 0x44]
mov qword [rsp + 0x40], r12
mov rbp, rcx
mov qword [rsp + 0x48], r13
nop
mov edx, dword [rbp + 0x94]
mov ebx, dword [rbp + 0x58]
mov eax, dword [rbp + 0x44]
sub ebx, dword [rbp + 0x9c]
lea ecx, [rdi + rax - 0x106]
sub ebx, edx
cmp edx, ecx
jb 0x1800efd6c
mov rcx, qword [rbp + 0x50]
mov r8, rdi
lea rdx, [rcx + rdi]
call fcn.180161690
mov r8d, dword [rbp + 0x74]
mov rax, qword [rbp + 0x68]
sub dword [rbp + 0x98], edi
sub dword [rbp + 0x94], edi
sub dword [rbp + 0x84], edi
lea rdx, [rax + r8*2]
nop
movzx eax, word [rdx - 2]
sub rdx, 2
cmp eax, edi
jb 0x1800efd30
sub eax, edi
jmp 0x1800efd32
xor eax, eax
add r8d, 0xffffffff
mov word [rdx], ax
jne 0x1800efd20
mov rax, qword [rbp + 0x60]
mov edx, edi
lea rcx, [rax + rdi*2]
nop
nop
nop
movzx eax, word [rcx - 2]
sub rcx, 2
cmp eax, edi
jb 0x1800efd60
sub eax, edi
jmp 0x1800efd62
xor eax, eax
add edx, 0xffffffff
mov word [rcx], ax
jne 0x1800efd50
add ebx, edi
mov rsi, qword [rbp]
cmp dword [rsi + 8], 0
je 0x1800efe4b
mov eax, dword [rbp + 0x94]
mov r13d, dword [rbp + 0x9c]
add r13, rax
mov eax, dword [rsi + 8]
add r13, qword [rbp + 0x50]
cmp eax, ebx
mov r12d, eax
cmova r12d, ebx
test r12d, r12d
je 0x1800efdf2
sub eax, r12d
mov dword [rsi + 8], eax
mov rax, qword [rsi + 0x28]
mov ecx, dword [rax + 0x2c]
cmp ecx, 1
jne 0x1800efdc4
mov rdx, qword [rsi]
mov ecx, dword [rsi + 0x4c]
mov r8d, r12d
call fcn.180130440
mov dword [rsi + 0x4c], eax
jmp 0x1800efdda
cmp ecx, 2
jne 0x1800efdda
mov rdx, qword [rsi]
mov ecx, dword [rsi + 0x4c]
mov r8d, r12d
call fcn.1800e80d0
mov dword [rsi + 0x4c], eax
mov rdx, qword [rsi]
mov r8d, r12d
mov rcx, r13
mov ebx, r12d
call fcn.180161690
add qword [rsi], rbx
add dword [rsi + 0xc], r12d
add dword [rbp + 0x9c], r12d
mov r9d, dword [rbp + 0x9c]
cmp r9d, 3
jb 0x1800efe34
mov eax, dword [rbp + 0x94]
mov rdx, qword [rbp + 0x50]
mov ecx, dword [rbp + 0x80]
movzx r8d, byte [rax + rdx]
add eax, 1
mov dword [rbp + 0x70], r8d
movzx eax, byte [rax + rdx]
shl r8d, cl
xor r8d, eax
and r8d, dword [rbp + 0x7c]
mov dword [rbp + 0x70], r8d
cmp r9d, 0x106
jae 0x1800efe4b
mov rax, qword [rbp]
cmp dword [rax + 8], 0
jne 0x1800efcd0
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x18011d1e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rbx, rcx
mov qword [rcx + 8], rsi
call fcn.18006d590
mov edx, 0x98
mov rcx, rbx
mov dword [rsp + 0x38], eax
call fcn.180137780
test rax, rax
mov rdi, rax
jne 0x18011d237
mov rcx, rbx
call fcn.1801429a0
mov r11, qword [rbx]
mov dword [r11 + 0x28], 0x37
mov rcx, qword [rbx]
mov dword [rcx + 0x2c], esi
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
mov dword [rdi + 0x5c], 0x3b9aca00
lea rax, [fcn.18011bc60]
lea rcx, str.JPEGMEM
mov qword [rdi], rax
lea rax, [0x18011be00]
mov qword [rdi + 8], rax
lea rax, [0x18011bf00]
mov qword [rdi + 0x10], rax
lea rax, [0x18011c0f0]
mov qword [rdi + 0x18], rax
lea rax, [0x18011c2d0]
mov qword [rdi + 0x20], rax
lea rax, [0x18011c380]
mov qword [rdi + 0x28], rax
lea rax, [0x18011c430]
mov qword [rdi + 0x30], rax
lea rax, [0x18011cb70]
mov qword [rdi + 0x38], rax
lea rax, [0x18011cdd0]
mov qword [rdi + 0x40], rax
lea rax, [fcn.18011d040]
mov qword [rdi + 0x48], rax
lea rax, [0x18011d190]
mov qword [rdi + 0x50], rax
mov eax, dword [rsp + 0x38]
mov dword [rdi + 0x58], eax
mov qword [rdi + 0x68], rsi
mov qword [rdi + 0x78], rsi
mov qword [rdi + 0x60], rsi
mov qword [rdi + 0x70], rsi
mov qword [rdi + 0x80], rsi
mov qword [rdi + 0x88], rsi
mov dword [rdi + 0x90], 0x98
mov qword [rbx + 8], rdi
call fcn.18016ad20
test rax, rax
je 0x18011d342
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, str._ld_c
mov rcx, rax
mov byte [rsp + 0x30], 0x78
call fcn.180168940
test eax, eax
jle 0x18011d342
movzx eax, byte [rsp + 0x30]
cmp al, 0x6d
je 0x18011d32f
cmp al, 0x4d
je 0x18011d32f
mov eax, dword [rsp + 0x38]
jmp 0x18011d339
mov eax, dword [rsp + 0x38]
imul eax, eax, 0x3e8
imul eax, eax, 0x3e8
mov dword [rdi + 0x58], eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1801328d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r10d, r10d
or r9d, 0xffffffff
movsxd rdi, r8d
cmp byte [rcx + 0x10d0], r10b
mov rbx, rdx
mov r8, rcx
jne 0x180132938
mov r11d, r10d
lea rdx, [rcx + 0xcd0]
nop
mov eax, r11d
mov ecx, 8
test al, 1
je 0x180132915
shr eax, 1
xor eax, 0xedb88320
jmp 0x180132917
shr eax, 1
sub rcx, 1
jne 0x180132908
add r11d, 1
mov dword [rdx], eax
add rdx, 4
cmp r11d, 0x100
jl 0x180132900
mov byte [r8 + 0x10d0], 1
test edi, edi
jle 0x180132965
nop
movzx ecx, byte [r10 + rbx]
add r10, 1
xor cl, r9b
movzx eax, cl
mov ecx, r9d
mov r9d, dword [r8 + rax*4 + 0xcd0]
shr ecx, 8
xor r9d, ecx
cmp r10, rdi
jl 0x180132940
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
not r9d
mov eax, r9d
ret