joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180075a60
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x260
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x278], rbx
mov rax, qword [0x18013e1e0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov qword [rcx + 0x20], 7
mov qword [rcx + 0x18], rax
mov word [rcx + 8], ax
mov dword [rsp + 0x20], 1
mov word [rsp + 0x40], ax
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x42]
call fcn.1800c31a0
mov r8b, 3
xor edx, edx
lea ecx, [rdx + 6]
call fcn.1800698a0
mov edx, 3
mov ecx, 0x5c
test eax, eax
cmovne edx, ecx
mov r9d, 0x104
lea r8, [rsp + 0x40]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x180075b26
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.180014810
mov rax, rbx
jmp 0x180075b29
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800bf8d0
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret

Function at 0x180075b50
Capabilities:
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x8f0
mov rax, qword [0x18013e1e0]
xor rax, rsp
mov qword [rsp + 0x8e0], rax
mov rbx, rcx
mov rsi, rdx
lea rcx, [rsp + 0xe2]
xor ebp, ebp
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0xe0], bp
call fcn.1800c31a0
test rbx, rbx
jne 0x180075b9e
xor eax, eax
jmp 0x180075c9b
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.1800c31a0
xor eax, eax
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
test rsi, rsi
je 0x180075c12
mov qword [rsp + 0x920], rdi
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
mov rdi, qword [rsp + 0x920]
not rcx
cmp rcx, 1
je 0x180075c12
lea r8, str._s__s
lea rcx, [rsp + 0xe0]
mov r9, rbx
mov edx, 0x400
mov qword [rsp + 0x20], rsi
call fcn.1800c1a50
jmp 0x180075c31
lea rcx, [rsp + 0xe0]
sub rcx, rbx
nop dword [rax]
movzx eax, word [rbx]
add rbx, 2
mov word [rcx + rbx - 2], ax
test ax, ax
jne 0x180075c20
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0xe0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x180075b97
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x8e0]
xor rcx, rsp
call fcn.1800bf8d0
add rsp, 0x8f0
pop rsi
pop rbp
pop rbx
ret
Function at 0x180075e50
Capabilities:
Hash data with md5

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0xc0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x18013e1e0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov rbp, rdx
mov r12, rcx
mov qword [rsp + 0x30], r8
xor r13d, r13d
mov dword [rsp + 0x20], r13d
mov dword [rsp + 0x54], r13d
mov dword [rsp + 0x50], r13d
mov dword [rsp + 0x40], 0x67452301
mov dword [rsp + 0x44], 0xefcdab89
mov dword [rsp + 0x48], 0x98badcfe
mov dword [rsp + 0x4c], 0x10325476
cmp qword [r8 + 0x20], 0x10
jb 0x180075ed2
lea rsi, [r8 + 8]
mov r8, qword [rsi]
jmp 0x180075ed9
lea rsi, [r8 + 8]
mov r8, rsi
mov r9d, dword [rdi + 0x18]
lea rdx, [rsp + 0x40]
mov rcx, qword [rcx]
call fcn.180081010
mov byte [rsp + 0xa0], 0
xor eax, eax
mov qword [rsp + 0xa1], rax
mov dword [rsp + 0xa9], eax
mov word [rsp + 0xad], ax
mov byte [rsp + 0xaf], al
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xa0]
mov rcx, qword [r12]
call fcn.180081120
lea r8, [rsp + 0xa0]
mov rdx, rbp
mov rcx, r12
call fcn.180075f90
nop
cmp qword [rdi + 0x20], 0x10
jb 0x180075f4b
mov rcx, qword [rsi]
call fcn.1800bf8b4
mov qword [rdi + 0x20], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rdi + 0x18], r13
mov byte [rsi], 0
mov rax, rbp
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1800bf8d0
lea r11, [rsp + 0xc0]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret

Function at 0x180077a70
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebp, ebp
lea rax, vtable.SystemInfo.0
mov rbx, rcx
mov qword [rcx], rax
mov dword [rcx + 0x260], ebp
mov dword [rcx + 8], ebp
mov dword [rcx + 0xc], ebp
add rcx, 0x10
xor edx, edx
mov r8d, 0x100
mov edi, 1
call fcn.1800c31a0
lea rcx, [rbx + 0x110]
xor edx, edx
mov r8d, reloc.OLEAUT32.dll_BSTR_UserUnmarshal
call fcn.1800c31a0
lea rcx, [rbx + 0x110]
mov dword [rbx + 0x110], reloc.OLEAUT32.dll_BSTR_UserUnmarshal
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rbx + 0x260], eax
test eax, eax
jne 0x180077b06
lea rcx, [rbx + 0x110]
mov dword [rbx + 0x110], VarUI4FromDisp
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
cmove edi, ebp
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbx + 0x230]
test rax, rax
je 0x180077b33
call rax
jmp 0x180077b39
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
test edi, edi
je 0x180077b52
mov rcx, rbx
call fcn.180077bb0
mov rcx, rbx
call fcn.180077f30
call fcn.180078020
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180078110
Capabilities:
Get local ipv4 addresses

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x2a0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x18013e1e0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rsi, rcx
mov qword [rsp + 0x68], rcx
xor r13d, r13d
mov dword [rsp + 0x54], r13d
mov dword [rsp + 0x50], r13d
mov qword [rcx + 0x20], 7
mov qword [rcx + 0x18], r13
mov word [rcx + 8], r13w
mov dword [rsp + 0x54], 1
mov ecx, VarDecFix
call fcn.1800c171c
mov rdi, rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, rdi
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 2]
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp eax, 0x6f
jne 0x1800782ba
mov rcx, rdi
call fcn.1800c17d4
mov ecx, dword [rsp + 0x50]
call fcn.1800c171c
mov r12, rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, r12
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 2]
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
test eax, eax
jne 0x1800782b8
mov rbx, r12
mov word [rsp + 0x80], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x82]
call fcn.1800c31a0
test rbx, rbx
je 0x1800782b8
cmp dword [rbx + 0x68], 1
jne 0x1800782af
test byte [rbx + 0x64], 6
je 0x1800782af
mov word [rsp + 0x80], r13w
movzx eax, byte [rbx + 0x55]
movzx ecx, byte [rbx + 0x54]
movzx edx, byte [rbx + 0x53]
movzx edi, byte [rbx + 0x52]
movzx r8d, byte [rbx + 0x51]
movzx r9d, byte [rbx + 0x50]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r8d
lea r8, str._02X:_02X:_02X:_02X:_02X:_02X
mov edx, 0x104
lea rcx, [rsp + 0x80]
call fcn.1800c1a50
cmp qword [rsi + 0x18], 0
je 0x180078287
mov edx, 1
lea r8d, [rdx + 0x3a]
mov rcx, rsi
call fcn.180013530
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x80]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.180012440
mov rbx, qword [rbx + 8]
jmp 0x180078201
jmp 0x1800782de
mov dword [rsp + 0x58], 0xffffffff
lea rdx, [0x18013ad60]
lea rcx, [rsp + 0x58]
call fcn.1800c3e40
nop
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
test r12, r12
je 0x1800782eb
mov rcx, r12
call fcn.1800c17d4
mov rax, rsi
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1800bf8d0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x180078a00
Capabilities:
Delete registry value

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x460
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x498], rbx
mov rax, qword [0x18013e1e0]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, r8
mov r12, rdx
mov rdi, rcx
xor esi, esi
mov qword [rsp + 0x38], rsi
mov word [rsp + 0x50], si
xor edx, edx
mov r8d, 0x3fe
lea rcx, [rsp + 0x52]
call fcn.1800c31a0
cmp qword [r12 + 0x18], rsi
je 0x180078b40
cmp qword [rbx + 0x18], rsi
je 0x180078b40
cmp qword [rdi + 0x30], rsi
jne 0x180078a78
xor al, al
jmp 0x180078b42
cmp qword [rdi + 0x38], 8
jb 0x180078a85
mov r8, qword [rdi + 0x20]
jmp 0x180078a89
lea r8, [rdi + 0x20]
mov edx, 0x200
lea rcx, [rsp + 0x50]
call fcn.1800c0e4c
cmp qword [r12 + 0x20], 8
jb 0x180078aa7
mov r8, qword [r12 + 8]
jmp 0x180078aac
lea r8, [r12 + 8]
mov edx, 0x200
lea rcx, [rsp + 0x50]
call fcn.1800c29a4
lea r11, [rsp + 0x38]
mov qword [rsp + 0x20], r11
mov r9d, 0x20006
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x30], eax
test eax, eax
je 0x180078b01
mov dword [rsp + 0x40], 0xffffffff
lea rdx, [0x18013ad60]
lea rcx, [rsp + 0x40]
call fcn.1800c3e40
cmp qword [rbx + 0x20], 8
jb 0x180078b0e
mov rdx, qword [rbx + 8]
jmp 0x180078b12
lea rdx, [rbx + 8]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
mov dword [rsp + 0x30], eax
jmp 0x180078b29
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180078b39
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete al
jmp 0x180078b42
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1800bf8d0
mov rbx, qword [rsp + 0x498]
add rsp, 0x460
pop r12
pop rdi
pop rsi
ret
Function at 0x18007ddd0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rbp
mov edx, 0x80000000
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
mov qword [rsp + 0x78], rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [rbp + 2]
lea edx, [rax + 0x2000]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
lea r9, [rsp + 0x68]
mov r8d, esi
mov rcx, rdi
mov rdx, rax
mov dword [rsp + 0x68], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x70]
lea edx, [rbp + 1]
mov rcx, rbx
mov qword [rsp + 0x70], rbp
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov rcx, qword [rsp + 0x70]
lea r11, [rsp + 0x78]
lea r9, [0x1800fdc20]
xor r8d, r8d
mov edx, esi
mov qword [rsp + 0x20], r11
call qword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
test eax, eax
js 0x18007dea5
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rax, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x18007ec00
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
cmp qword [rcx + 0x20], 0x10
jb 0x18007ec26
mov rdi, qword [rcx + 8]
jmp 0x18007ec2a
lea rdi, [rcx + 8]
mov rsi, qword [rcx + 0x18]
test rdi, rdi
je 0x18007ec7c
test rsi, rsi
je 0x18007ec7c
cmp qword [rdx + 0x20], 8
jb 0x18007ec45
mov rcx, qword [rdx + 8]
jmp 0x18007ec49
lea rcx, [rdx + 8]
lea rdx, [0x18010a300]
call fcn.1800bfb3c
mov rbx, rax
mov r9, rax
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call fcn.1800c0124
mov rcx, rbx
call fcn.1800bfbd4
nop
mov eax, 1
jmp 0x18007ec82
xor eax, eax
jmp 0x18007ec82
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x18007ed40
Capabilities:
Get file size
Read file on windows

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rsi
mov r12, rdx
mov rdi, rcx
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rdx], rax
cmp qword [rcx + 0x20], 8
jb 0x18007ed80
lea rbx, [rcx + 8]
mov rcx, qword [rbx]
jmp 0x18007ed87
lea rbx, [rcx + 8]
mov rcx, rbx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x18007edba
xor eax, eax
jmp 0x18007ee57
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r13d, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13d, r13d
jne 0x18007edda
xor eax, eax
jmp 0x18007ee57
cmp qword [rdi + 0x20], 8
jb 0x18007ede4
mov rbx, qword [rbx]
lea rdx, [0x1801096a0]
mov rcx, rbx
call fcn.1800bfb3c
mov rsi, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x18007ee57
lea eax, [r13 + 1]
mov ebx, eax
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1800c31a0
mov rdx, r13
mov qword [r12], rdx
mov r9, rsi
mov r8d, 1
mov rcx, rdi
call fcn.1800bff68
mov rcx, rsi
call fcn.1800bfbd4
nop
jmp 0x18007ee54
mov rax, rdi
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r13
pop r12
pop rdi
ret
Function at 0x1800836e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov rdi, r9
mov ebp, r8d
mov rbx, rdx
mov rsi, rcx
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r12d, eax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18008376c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x180083797
mov r8d, r12d
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.180081ac0
nop
mov r8d, ebp
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.1800831f0
movzx ebx, al
lea rcx, [rsp + 0x28]
call fcn.180081d90
mov al, bl
jmp 0x180083799
mov rax, qword [str.Unable_to_load_resource_]
mov qword [rsi + 0x58], rax
mov rax, qword [0x1800f50f8]
mov qword [rsi + 0x60], rax
mov rax, qword [0x1800f5100]
mov qword [rsi + 0x68], rax
movzx eax, byte [0x1800f5108]
mov byte [rsi + 0x70], al
xor al, al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
Function at 0x18008d8a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov byte [rsp + 0x18], r8b
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x88], rbx
movzx esi, r8b
movzx r15d, dl
mov rdi, rcx
cmp qword [rcx + 8], 0
jne 0x18008d8de
xor al, al
jmp 0x18008daac
mov ecx, 0x3b3
call fcn.1800c0db0
mov qword [rsp + 0x80], rax
xor r13d, r13d
test rax, rax
je 0x18008d913
mov byte [rsp + 0x20], 1
mov r9b, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call fcn.180082c70
mov r14, rax
jmp 0x18008d916
mov r14, r13
test r14, r14
jne 0x18008d922
xor al, al
jmp 0x18008daac
mov rcx, r14
call fcn.180082f70
test al, al
jne 0x18008d942
mov rax, qword [r14]
mov edx, 1
mov rcx, r14
call qword [rax]
xor al, al
jmp 0x18008daac
movzx ecx, word [rdi + 0x1e]
mov ebp, 1
mov eax, 3
cmp ecx, 0x18
cmove ebp, eax
mov eax, dword [rdi + 0x14]
dec eax
imul ebp, eax
movsxd r11, ebp
mov rax, qword [rdi + 0x3c]
lea rbx, [r11 + rax]
mov r10, qword [r14 + 0x3c]
cmp ecx, 8
je 0x18008da3b
cmp ecx, 0x18
je 0x18008d9cd
mov ebx, r13d
cmp dword [rdi + 0x18], ebx
jle 0x18008da74
mov esi, r13d
test ebp, ebp
js 0x18008d9b9
mov r12d, ebp
mov r8d, ebx
mov edx, r12d
mov rcx, rdi
call fcn.180084f00
movzx r9d, al
mov r8d, ebx
mov edx, esi
mov rcx, r14
call fcn.180085380
inc esi
dec r12d
cmp esi, ebp
jle 0x18008d991
inc ebx
cmp ebx, dword [rdi + 0x18]
jl 0x18008d987
mov sil, byte [rsp + 0x90]
jmp 0x18008da74
cmp dword [rdi + 0x18], 0
jle 0x18008da74
movabs rbp, 0xaaaaaaaaaaaaaaab
test r11, r11
js 0x18008da27
lea r8, [r10 + 1]
lea r9, [rbx + 2]
lea rcx, [r11 + 3]
mov rax, rbp
mul rcx
shr rdx, 1
nop dword [rax + rax]
movzx eax, byte [r9 - 2]
mov byte [r8 - 1], al
movzx eax, byte [r9 - 1]
mov byte [r8], al
movzx eax, byte [r9]
mov byte [r8 + 1], al
add r8, 3
sub r9, 3
sub rdx, 1
jne 0x18008da00
mov eax, dword [rdi + 0x38]
add rbx, rax
add r10, rax
inc r13d
cmp r13d, dword [rdi + 0x18]
jl 0x18008d9e1
jmp 0x18008da74
mov r8d, r13d
cmp dword [rdi + 0x18], r13d
jle 0x18008da74
mov rcx, r13
test ebp, ebp
js 0x18008da62
mov rdx, rbx
nop
movzx eax, byte [rdx]
mov byte [rcx + r10], al
inc rcx
dec rdx
cmp rcx, r11
jle 0x18008da50
mov eax, dword [rdi + 0x38]
add rbx, rax
add r10, rax
inc r8d
cmp r8d, dword [rdi + 0x18]
jl 0x18008da44
test r15b, r15b
je 0x18008da81
mov rcx, r14
call fcn.1800886f0
test sil, sil
je 0x18008da8e
mov rcx, r14
call fcn.180088280
mov r8b, 1
mov rdx, r14
mov rcx, rdi
call fcn.1800822c0
mov r11, qword [r14]
mov edx, 1
mov rcx, r14
call qword [r11]
mov al, 1
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800a3b90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, dword [rcx + 0x39]
mov rdi, rcx
mov qword [rsp + 0x30], rbp
nop word [rax + rax]
mov edx, dword [rdi + 0x85]
mov esi, dword [rdi + 0x4d]
mov eax, dword [rdi + 0x39]
sub esi, dword [rdi + 0x8d]
lea ecx, [rbx + rax - 0x106]
sub esi, edx
cmp edx, ecx
jb 0x1800a3c4c
mov rcx, qword [rdi + 0x45]
mov r8, rbx
lea rdx, [rcx + rbx]
call fcn.1800c2cf0
mov r8d, dword [rdi + 0x65]
mov rax, qword [rdi + 0x59]
sub dword [rdi + 0x89], ebx
sub dword [rdi + 0x85], ebx
sub dword [rdi + 0x75], ebx
lea rdx, [rax + r8*2]
nop word [rax + rax]
movzx eax, word [rdx - 2]
sub rdx, 2
cmp eax, ebx
jb 0x1800a3c10
sub eax, ebx
jmp 0x1800a3c12
xor eax, eax
add r8d, 0xffffffff
mov word [rdx], ax
jne 0x1800a3c00
mov rax, qword [rdi + 0x51]
mov edx, ebx
lea rcx, [rax + rbx*2]
nop word [rax + rax]
movzx eax, word [rcx - 2]
sub rcx, 2
cmp eax, ebx
jb 0x1800a3c40
sub eax, ebx
jmp 0x1800a3c42
xor eax, eax
add edx, 0xffffffff
mov word [rcx], ax
jne 0x1800a3c30
add esi, ebx
mov rcx, qword [rdi]
cmp dword [rcx + 8], 0
je 0x1800a3d39
mov edx, dword [rdi + 0x8d]
mov eax, dword [rdi + 0x85]
mov r8d, esi
add rdx, rax
add rdx, qword [rdi + 0x45]
call fcn.1800a3940
add dword [rdi + 0x8d], eax
mov r9d, dword [rdi + 0x8d]
cmp r9d, 3
jb 0x1800a3cb1
mov eax, dword [rdi + 0x85]
mov rdx, qword [rdi + 0x45]
mov ecx, dword [rdi + 0x71]
movzx r8d, byte [rax + rdx]
mov dword [rdi + 0x61], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rdi + 0x6d]
mov dword [rdi + 0x61], r8d
cmp r9d, 0x106
jae 0x1800a3cc7
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x1800a3bb0
mov ecx, dword [rdi + 0x16f4]
mov esi, dword [rdi + 0x4d]
cmp ecx, esi
jae 0x1800a3d39
mov eax, dword [rdi + 0x85]
lea ebx, [r9 + rax]
cmp ecx, ebx
jae 0x1800a3d0b
sub esi, ebx
mov eax, 0x102
mov ecx, ebx
cmp esi, eax
cmova esi, eax
add rcx, qword [rdi + 0x45]
xor edx, edx
mov r8d, esi
call fcn.1800c31a0
lea r11d, [rsi + rbx]
mov dword [rdi + 0x16f4], r11d
jmp 0x1800a3d39
lea eax, [rbx + 0x102]
cmp ecx, eax
jae 0x1800a3d39
sub ebx, ecx
sub esi, ecx
mov eax, 0x102
add ebx, eax
cmp ebx, esi
cmova ebx, esi
add rcx, qword [rdi + 0x45]
xor edx, edx
mov r8d, ebx
call fcn.1800c31a0
add dword [rdi + 0x16f4], ebx
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800a9270
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
xor ebp, ebp
cmp dword [rcx + 0x21], 0xcc
mov rdi, rcx
je 0x1800a929e
mov rax, qword [rcx + 0x1f0]
call qword [rax]
mov dword [rdi + 0x86], ebp
mov dword [rdi + 0x21], 0xcc
mov rax, qword [rdi + 0x1f0]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
cmp byte [rax + 0x10], bpl
je 0x1800a934e
nop dword [rax]
mov ecx, dword [rdi + 0x86]
cmp ecx, dword [rdi + 0x6a]
jae 0x1800a931d
nop dword [rax + rax]
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1800a92ef
mov dword [rax + 8], ecx
mov rcx, qword [rdi + 0x10]
mov eax, dword [rdi + 0x6a]
mov dword [rcx + 0xc], eax
mov rax, qword [rdi + 0x10]
mov rcx, rdi
call qword [rax]
mov rax, qword [rdi + 0x1f8]
mov ebx, dword [rdi + 0x86]
lea r8, [rdi + 0x86]
xor r9d, r9d
xor edx, edx
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ecx, dword [rdi + 0x86]
cmp ecx, ebx
je 0x1800a9376
cmp ecx, dword [rdi + 0x6a]
jb 0x1800a92d0
mov rax, qword [rdi + 0x1f0]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r11, qword [rdi + 0x1f0]
mov rcx, rdi
call qword [r11]
mov dword [rdi + 0x86], ebp
mov rax, qword [rdi + 0x1f0]
cmp byte [rax + 0x10], bpl
jne 0x1800a92c0
cmp byte [rdi + 0x52], bpl
mov al, 1
setne bpl
add ebp, 0xcd
mov dword [rdi + 0x21], ebp
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor al, al
jmp 0x1800a9361
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x21], 0xca
mov rbx, rcx
jne 0x1800a9483
call fcn.1800a9c50
cmp byte [rbx + 0x51], 0
je 0x1800a947c
mov dword [rbx + 0x21], 0xcf
mov al, 1
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x21], 0xcb
mov eax, dword [rbx + 0x21]
cmp eax, 0xcb
jne 0x1800a9511
mov rax, qword [rbx + 0x210]
cmp byte [rax + 0x20], 0
je 0x1800a94f8
nop
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1800a94ae
mov rcx, rbx
call qword [rax]
mov rax, qword [rbx + 0x210]
mov rcx, rbx
call qword [rax]
test eax, eax
je 0x1800a94f0
cmp eax, 2
je 0x1800a94f8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1800a94a0
cmp eax, 3
je 0x1800a94d6
cmp eax, 1
jne 0x1800a94a0
inc dword [rcx + 8]
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx + 0xc]
cmp dword [rcx + 8], eax
jl 0x1800a94a0
mov eax, dword [rbx + 0x168]
add dword [rcx + 0xc], eax
jmp 0x1800a94a0
xor al, al
add rsp, 0x20
pop rbx
ret
mov eax, dword [rbx + 0x8a]
mov rcx, rbx
mov dword [rbx + 0x92], eax
add rsp, 0x20
pop rbx
jmp 0x1800a9270
cmp eax, 0xcc
je 0x1800a9533
mov rax, qword [rbx]
mov dword [rax + 0x28], reloc.OLEAUT32.dll_SafeArrayUnlock
mov rcx, qword [rbx]
mov eax, dword [rbx + 0x21]
mov dword [rcx + 0x2c], eax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x1800a9270