joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140040120
Capabilities:
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x78]
test rcx, rcx
jne 0x140040146
xor al, al
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
cmp rdi, qword [rsi + 0x98]
je 0x140040213
xor r9d, r9d
mov byte [rsi + 0xa0], 0
xor r8d, r8d
mov qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetSetFilePointer]
mov eax, eax
mov qword [rsi + 0x98], rax
cmp rdi, rax
je 0x140040213
jl 0x140040139
sub rdi, rax
mov qword [rsp + 0x48], rbx
mov ecx, 0x4000
mov qword [rsp + 0x50], rbp
cmp rdi, rcx
mov eax, edi
cmovg eax, ecx
movsxd rbp, eax
mov rcx, rbp
call fcn.1400c1e7c
mov rbx, rax
test rdi, rdi
jle 0x140040201
cmp byte [rsi + 0xa0], 0
jne 0x140040201
mov rcx, qword [rsi + 0x78]
xor edx, edx
mov dword [rsp + 0x40], edx
test rcx, rcx
je 0x1400401f6
mov r8d, edi
lea r9, [rsp + 0x40]
cmp rbp, rdi
mov rdx, rbx
cmovl r8d, ebp
call qword [sym.imp.WININET.dll_InternetReadFile]
mov edx, dword [rsp + 0x40]
add qword [rsi + 0x98], rdx
test edx, edx
jne 0x1400401f6
mov byte [rsi + 0xa0], 1
movsxd rax, edx
sub rdi, rax
test rdi, rdi
jg 0x1400401b0
mov rcx, rbx
call fcn.1400c1bd0
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov al, 1
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 8]
jmp 0x140040120
Function at 0x140040220
Capabilities:
Create http request
Parse url

Disassembly:
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xc0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xf8], rbx
mov r15, rdx
mov r14, rcx
mov ecx, 4
mov rax, qword gs:[0x58]
mov r8, qword [rax]
xor ebx, ebx
mov eax, dword [rcx + r8]
cmp dword [0x1404beb14], eax
jle 0x1400402aa
lea rcx, [0x1404beb14]
call fcn.1400bdacc
cmp dword [0x1404beb14], 0xffffffff
jne 0x1400402aa
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.juce
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [0x1404beb30], rax
lea rcx, [0x1404beb14]
call fcn.1400bda6c
mov rcx, qword [r14 + 0x78]
mov qword [r14 + 0x78], rbx
test rcx, rcx
je 0x1400402bd
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [r14 + 0x70]
test rcx, rcx
je 0x1400402d0
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [r14 + 0x70], rbx
cmp qword [0x1404beb30], rbx
je 0x140040402
mov ecx, 0x20000
call fcn.1400c1e7c
mov rbx, rax
mov qword [rsp + 0x100], rax
mov ecx, 0x1000
call fcn.1400c1e7c
mov rdi, rax
mov qword [rsp + 0xf0], rax
mov ecx, 0x800
call fcn.1400c1e7c
mov rsi, rax
mov qword [rsp + 0x108], rax
mov ecx, 0x800
call fcn.1400c1e7c
mov rbp, rax
mov qword [rsp + 0x38], rax
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rsp + 0x58]
call fcn.1400c0ec0
mov dword [rsp + 0x50], 0x68
mov qword [rsp + 0x98], rbx
mov dword [rsp + 0xa0], 0x10000
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], 0x800
mov qword [rsp + 0x78], rsi
mov dword [rsp + 0x80], 0x400
mov qword [rsp + 0x88], rbp
mov dword [rsp + 0x90], 0x400
cmp byte [r14 + 0xa1], 0
je 0x1400403aa
lea r8, [r14 + 0x88]
lea rdx, [r14 + 0x80]
lea rcx, [r14 + 0x10]
call fcn.140163620
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.140040d80
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x1400403df
mov r9, r15
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.140040420
nop
mov rcx, rbp
call fcn.1400c1bd0
nop
mov rcx, rsi
call fcn.1400c1bd0
nop
mov rcx, rdi
call fcn.1400c1bd0
nop
mov rcx, rbx
call fcn.1400c1bd0
mov rbx, qword [rsp + 0xf8]
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140040420
Capabilities:
Connect to http server

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbp, qword [0x1404beb30]
lea r8, [rax + 0x18]
mov r13d, 1
mov r15, r9
mov rdi, rdx
mov dword [rax + 0x18], r13d
mov rbx, rcx
mov rcx, rbp
lea r9d, [r13 + 3]
lea edx, [r13 + 0x45]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
lea rsi, [rbx + 0xa4]
mov eax, dword [rsi]
test eax, eax
jne 0x14004047e
mov dword [rsi], 0x7530
jmp 0x140040486
jns 0x140040486
mov dword [rsi], 0xffffffff
mov r9d, 4
mov r8, rsi
mov rcx, rbp
lea edx, [r9 - 2]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
mov r8, rsi
mov rcx, rbp
lea edx, [r9 + 2]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
mov r8, rsi
mov rcx, rbp
lea edx, [r9 + 1]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
mov r8, rsi
mov rcx, rbp
lea edx, [r9 + 4]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
mov r8, rsi
mov rcx, rbp
lea edx, [r9 + 3]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
lea rax, str.ftp:
mov rcx, r15
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x80], rax
call fcn.14018ae10
lea rcx, [rbx + 0xf0]
movzx r14d, al
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [rbx + 0x11c], 0
je 0x140040533
xor esi, esi
mov eax, esi
jmp 0x14004056d
mov r9, qword [rdi + 0x28]
test r14b, r14b
movzx r8d, word [rdi + 0x24]
mov eax, 3
mov rdx, qword [rdi + 0x18]
cmovne eax, r13d
xor esi, esi
mov rcx, rbp
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WININET.dll_InternetConnectW]
lea rcx, [rbx + 0xf0]
mov qword [rbx + 0x70], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x1400405bb
test r14b, r14b
je 0x1400405ad
mov rdx, qword [rdi + 0x48]
mov r9d, reloc.WS2_32.dll_select
mov r8d, 0x80000000
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WININET.dll_FtpOpenFileW]
mov qword [rbx + 0x78], rax
jmp 0x1400405bb
mov r8, r15
mov rdx, rdi
mov rcx, rbx
call fcn.1400405e0
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 0x1400405e0
Capabilities:
Send data
Send http request

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
push rsi
push rdi
push r14
sub rsp, 0x90
mov qword [r11 - 0x68], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rbp, rdx
mov rdi, rcx
lea rax, [0x140429bb0]
mov qword [r11 - 0x60], rax
xor r14d, r14d
mov qword [r11 - 0x58], r14
mov esi, 0x84280000
lea rax, str.https:
mov qword [r11 + 0x20], rax
lea rdx, [r11 + 0x20]
mov rcx, r8
call fcn.14018ae10
mov ecx, 0x84a80000
test al, al
cmovne esi, ecx
lea rbx, [rdi + 0xf0]
mov qword [rsp + 0xc8], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp byte [rdi + 0x11c], r14b
je 0x140040667
mov eax, r14d
jmp 0x1400406a7
lea rdx, [rdi + 0xa8]
lea rcx, [rsp + 0xb0]
call fcn.140040d80
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], esi
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8, qword [rbp + 0x48]
mov rdx, qword [rax]
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov qword [rdi + 0x78], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp qword [rdi + 0x78], 0
je 0x1400407ec
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x58], 0x38
lea rdx, [rdi + 0x80]
lea rcx, [rsp + 0xc8]
call fcn.140040d80
mov rcx, qword [rax]
mov qword [rsp + 0x68], rcx
mov rax, qword [rdi + 0x80]
mov rdx, r14
movzx ecx, byte [rax]
inc rax
test cl, cl
jns 0x140040740
movzx ecx, byte [rax]
and cl, 0xc0
cmp cl, 0x80
jne 0x140040744
nop dword [rax + rax]
inc rax
movzx ecx, byte [rax]
and cl, 0xc0
cmp cl, 0x80
je 0x140040730
jmp 0x140040744
test ecx, ecx
je 0x140040749
inc rdx
jmp 0x140040713
mov dword [rsp + 0x70], edx
mov eax, dword [rdi + 0x90]
mov dword [rsp + 0x84], eax
mov qword [rsp + 0x20], r14
mov r9d, 8
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, qword [rdi + 0x78]
call qword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
je 0x1400407ec
mov esi, r14d
nop
mov eax, dword [rdi + 0x90]
sub eax, esi
mov ebx, 0x400
cmp eax, ebx
cmovl ebx, eax
mov eax, r14d
mov dword [rsp + 0xc8], eax
test ebx, ebx
jle 0x1400407cc
movsxd rdx, esi
add rdx, qword [rdi + 0x88]
lea r9, [rsp + 0xc8]
mov r8d, ebx
mov rcx, qword [rdi + 0x78]
call qword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x1400407ec
mov eax, dword [rsp + 0xc8]
test ebx, ebx
je 0x1400407d6
cmp eax, ebx
jl 0x1400407d6
add esi, eax
jmp 0x140040780
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rdi + 0x78]
call qword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
jne 0x140040812
mov rcx, qword [rdi + 0x78]
mov qword [rdi + 0x78], r14
test rcx, rcx
je 0x1400407ff
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rdi + 0x70]
test rcx, rcx
je 0x140040812
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rdi + 0x70], r14
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140040830
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov qword [rcx], 0
mov dword [rcx + 8], 1
mov r9d, 0x2f
lea r8d, [r9 + 0x2d]
lea rdx, [rsp + 0x80]
mov rcx, r14
call fcn.140189c80
mov rdx, qword [r14]
mov qword [rsp + 0x30], rdx
mov rcx, qword [rax]
mov qword [r14], rcx
mov qword [rax], rdx
mov rcx, qword [rsp + 0x80]
add rcx, 0xfffffffffffffff0
lea rbp, [0x1402901c8]
or edi, 0xffffffff
cmp rcx, rbp
je 0x1400408b4
mov eax, edi
lock xadd dword [rcx], eax
test eax, eax
jne 0x1400408b4
call fcn.1400bd658
mov r8, r14
lea rdx, str.Global_
lea rcx, [rsp + 0x98]
call fcn.14018d730
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140040d80
mov r8, qword [rax]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx], rax
mov rcx, qword [rsp + 0x98]
add rcx, 0xfffffffffffffff0
cmp rcx, rbp
je 0x14004090c
mov eax, edi
lock xadd dword [rcx], eax
test eax, eax
jne 0x14004090c
call fcn.1400bd658
cmp qword [rbx], 0
jne 0x14004096a
mov r8, r14
lea rdx, str.Local_
lea rcx, [rsp + 0x20]
call fcn.14018d730
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140040d80
mov r8, qword [rax]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx], rax
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffff0
cmp rcx, rbp
je 0x140040964
mov eax, edi
lock xadd dword [rcx], eax
test eax, eax
jne 0x140040964
call fcn.1400bd658
cmp qword [rbx], 0
je 0x1400409bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400409bb
mov rcx, qword [rbx]
test esi, esi
jne 0x14004099b
test rcx, rcx
je 0x1400409bb
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0
jmp 0x1400409bb
or eax, 0xffffffff
test esi, esi
cmovs esi, eax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x1400409bb
mov rcx, rbx
call fcn.1400409f0
nop
mov rax, qword [r14]
mov qword [rsp + 0x48], rax
lea rcx, [rax - 0x10]
cmp rcx, rbp
je 0x1400409d9
lock xadd dword [rcx], edi
test edi, edi
jne 0x1400409d9
call fcn.1400bd658
mov rax, rbx
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14006d690
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
push rbx
push r13
push r14
push r15
sub rsp, 0x48
mov rax, qword [rcx]
mov rbx, rdx
mov r15, rcx
mov r14, qword [rax]
movsxd r13, dword [rax + 0x10]
shl r13, 4
add r13, r14
cmp r14, r13
je 0x14006d886
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 - 0x28], r12
nop
mov eax, dword [r15 + 8]
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x30]
mov eax, dword [r15 + 0xc]
mov rcx, r14
mov dword [rsp + 0x24], eax
mov eax, dword [r15 + 0x10]
mov dword [rsp + 0x28], eax
mov eax, dword [r15 + 0x14]
mov dword [rsp + 0x2c], eax
call fcn.14002f9c0
movsxd rsi, dword [rsp + 0x38]
test esi, esi
jle 0x14006d85f
mov eax, dword [rsp + 0x3c]
test eax, eax
jle 0x14006d85f
mov edi, dword [rsp + 0x34]
lea ebp, [rdi + rax]
cmp edi, ebp
jge 0x14006d85f
mov r12d, dword [rsp + 0x30]
nop
mov r8, qword [rbx]
mov r9d, esi
mov eax, dword [r8 + 0xc]
imul eax, edi
movsxd rdx, eax
add rdx, qword [r8]
mov eax, dword [rbx + 0x10]
mov qword [rbx + 8], rdx
movsxd r10, dword [r8 + 0x10]
mov ecx, r10d
mov dword [rsp + 0x70], eax
imul ecx, r12d
movsxd rcx, ecx
add rcx, rdx
cmp r10d, 3
jne 0x14006d826
cmp byte [rbx + 0x20], 0
je 0x14006d783
shr eax, 0x10
lea r8, [rsi + rsi*2]
movzx edx, al
call fcn.1400c0ec0
jmp 0x14006d855
movzx r8d, byte [rsp + 0x72]
movzx r10d, byte [rsp + 0x71]
test esi, 0xffffffe0
je 0x14006d7fe
cmp esi, 8
jle 0x14006d7bc
nop dword [rax]
test cl, 7
je 0x14006d7bc
mov byte [rcx], al
dec r9d
mov byte [rcx + 1], r10b
mov byte [rcx + 2], r8b
add rcx, 3
cmp r9d, 8
jg 0x14006d7a0
cmp r9d, 4
jle 0x14006d7fe
lea edx, [r9 - 5]
shr edx, 2
inc edx
mov r11d, edx
neg edx
lea r9d, [r9 + rdx*4]
nop dword [rax]
nop dword [rax + rax]
mov edx, dword [rbx + 0x14]
mov dword [rcx], edx
lea rdx, [rcx + 4]
mov ecx, dword [rbx + 0x18]
mov dword [rdx], ecx
mov ecx, dword [rbx + 0x1c]
mov dword [rdx + 4], ecx
lea rcx, [rdx + 8]
sub r11, 1
jne 0x14006d7e0
sub r9d, 1
js 0x14006d855
add rcx, 2
nop dword [rax + rax]
sub r9d, 1
mov byte [rcx - 2], al
mov byte [rcx - 1], r10b
mov byte [rcx], r8b
lea rcx, [rcx + 3]
jns 0x14006d810
jmp 0x14006d855
movzx r8d, byte [rsp + 0x72]
mov rdx, r10
movzx r10d, byte [rsp + 0x71]
nop word [rax + rax]
mov byte [rcx], al
dec r9d
mov byte [rcx + 1], r10b
mov byte [rcx + 2], r8b
add rcx, rdx
test r9d, r9d
jg 0x14006d840
inc edi
cmp edi, ebp
jl 0x14006d730
add r14, 0x10
cmp r14, r13
jne 0x14006d6d0
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
add rsp, 0x48
pop r15
pop r14
pop r13
pop rbx
ret
Function at 0x14006db80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
push rbp
push r13
push r14
push r15
sub rsp, 0x48
mov rax, qword [rcx]
mov r15, rdx
mov r14, rcx
mov rbp, qword [rax]
movsxd r13, dword [rax + 0x10]
shl r13, 4
add r13, rbp
cmp rbp, r13
je 0x14006dc99
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 - 0x28], r12
nop
mov eax, dword [r14 + 8]
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x30]
mov eax, dword [r14 + 0xc]
mov rcx, rbp
mov dword [rsp + 0x24], eax
mov eax, dword [r14 + 0x10]
mov dword [rsp + 0x28], eax
mov eax, dword [r14 + 0x14]
mov dword [rsp + 0x2c], eax
call fcn.14002f9c0
movsxd rsi, dword [rsp + 0x38]
test esi, esi
jle 0x14006dc72
mov eax, dword [rsp + 0x3c]
test eax, eax
jle 0x14006dc72
mov ebx, dword [rsp + 0x34]
lea edi, [rbx + rax]
cmp ebx, edi
jge 0x14006dc72
mov r12d, dword [rsp + 0x30]
mov r9, qword [r15]
mov ecx, esi
mov edx, dword [r15 + 0x10]
mov dword [rsp + 0x70], edx
mov eax, dword [r9 + 0xc]
imul eax, ebx
movsxd r8, eax
add r8, qword [r9]
mov qword [r15 + 8], r8
movsxd r10, dword [r9 + 0x10]
mov eax, r10d
imul eax, r12d
cdqe
add rax, r8
cmp r10d, 1
jne 0x14006dc57
mov r8, rsi
shr edx, 0x18
mov rcx, rax
call fcn.1400c0ec0
jmp 0x14006dc6c
movzx r8d, byte [rsp + 0x73]
nop dword [rax]
mov byte [rax], r8b
dec ecx
add rax, r10
test ecx, ecx
jg 0x14006dc60
inc ebx
cmp ebx, edi
jl 0x14006dc13
add rbp, 0x10
cmp rbp, r13
jne 0x14006dbc0
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x48
pop r15
pop r14
pop r13
pop rbp
ret
Function at 0x14006dcb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
push rsi
push r13
push r14
push r15
sub rsp, 0x48
mov rax, qword [rcx]
mov rsi, rdx
mov r15, rcx
mov r14, qword [rax]
movsxd r13, dword [rax + 0x10]
shl r13, 4
add r13, r14
cmp r14, r13
je 0x14006de19
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rdi
mov qword [r11 - 0x28], r12
nop
mov eax, dword [r15 + 8]
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x30]
mov eax, dword [r15 + 0xc]
mov rcx, r14
mov dword [rsp + 0x24], eax
mov eax, dword [r15 + 0x10]
mov dword [rsp + 0x28], eax
mov eax, dword [r15 + 0x14]
mov dword [rsp + 0x2c], eax
call fcn.14002f9c0
movsxd rdi, dword [rsp + 0x38]
test edi, edi
jle 0x14006ddf2
mov eax, dword [rsp + 0x3c]
test eax, eax
jle 0x14006ddf2
mov ebx, dword [rsp + 0x34]
lea ebp, [rbx + rax]
cmp ebx, ebp
jge 0x14006ddf2
mov r12d, dword [rsp + 0x30]
nop
mov r8, qword [rsi]
mov eax, dword [r8 + 0xc]
imul eax, ebx
movsxd rdx, eax
add rdx, qword [r8]
mov qword [rsi + 8], rdx
movsxd r10, dword [r8 + 0x10]
mov eax, r10d
imul eax, r12d
cdqe
add rax, rdx
cmp byte [rsi + 0x13], 0xff
jb 0x14006ddae
mov edx, dword [rsi + 0x10]
mov ecx, edi
mov dword [rsp + 0x70], edx
cmp r10d, 1
jne 0x14006dd99
mov r8, rdi
shr edx, 0x18
mov rcx, rax
call fcn.1400c0ec0
jmp 0x14006dde8
movzx r8d, byte [rsp + 0x73]
nop
mov byte [rax], r8b
dec ecx
add rax, r10
test ecx, ecx
jg 0x14006dda0
jmp 0x14006dde8
mov ecx, dword [rsi + 0x10]
mov r8d, 0x100
mov dword [rsp + 0x70], ecx
mov edx, edi
movzx r9d, byte [rsp + 0x73]
sub r8d, r9d
nop word [rax + rax]
movzx ecx, byte [rax]
dec edx
imul ecx, r8d
sar ecx, 8
add cl, r9b
mov byte [rax], cl
add rax, r10
test edx, edx
jg 0x14006ddd0
inc ebx
cmp ebx, ebp
jl 0x14006dd50
add r14, 0x10
cmp r14, r13
jne 0x14006dcf0
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x48
pop r15
pop r14
pop r13
pop rsi
ret
Function at 0x14006e940
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x30]
mov edi, r8d
mov ebx, edx
mov r11, rcx
movsxd r9, dword [rax + 0x10]
mov eax, r9d
mov rsi, r9
imul eax, edx
movsxd r10, eax
add r10, qword [rcx + 0x38]
nop
mov r8d, ebx
lea rdx, [rsp + 0x38]
mov rcx, r11
call fcn.14004b4b0
mov ecx, 0x100
inc ebx
dec edi
mov edx, dword [rax]
mov r9d, edx
and edx, 0xff00ff
shr r9d, 8
and r9d, 0xff00ff
mov eax, r9d
shr eax, 0x10
sub ecx, eax
mov eax, dword [r10]
mov r8d, eax
shr eax, 8
and eax, 0xff00ff
and r8d, 0xff00ff
imul eax, ecx
imul r8d, ecx
mov ecx, 0x100
shr eax, 8
and eax, 0xff00ff
shr r8d, 8
add r9d, eax
and r8d, 0xff00ff
add r8d, edx
mov eax, r9d
shr eax, 8
mov edx, 0x100
and eax, 0xff00ff
sub edx, eax
mov eax, r9d
shl eax, 8
shl edx, 8
or edx, eax
mov eax, r8d
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r9d
or ecx, r8d
shr eax, 8
xor edx, ecx
shl r9d, 8
and eax, 0xff00ff
and edx, 0xff00ff
mov ecx, 0x100
sub ecx, eax
shl ecx, 8
or ecx, r9d
xor edx, ecx
mov dword [r10], edx
add r10, rsi
test edi, edi
jg 0x14006e970
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14006ea60
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x30]
mov r11d, edx
mov esi, r9d
mov ebx, r8d
mov rdi, rcx
movsxd rdx, dword [rax + 0x10]
mov eax, edx
imul eax, r11d
movsxd r10, eax
add r10, qword [rcx + 0x38]
cmp r9d, 0xff
jge 0x14006ebb3
mov qword [rsp + 0x30], rbp
mov rbp, rdx
nop word [rax + rax]
mov r8d, r11d
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14004b4b0
mov ecx, 0x100
inc r11d
dec ebx
mov edx, dword [rax]
mov r9d, edx
and edx, 0xff00ff
shr r9d, 8
imul edx, esi
and r9d, 0xff00ff
imul r9d, esi
shr edx, 8
and edx, 0xff00ff
shr r9d, 8
and r9d, 0xff00ff
mov eax, r9d
shr eax, 0x10
sub ecx, eax
mov eax, dword [r10]
mov r8d, eax
shr eax, 8
and eax, 0xff00ff
and r8d, 0xff00ff
imul eax, ecx
imul r8d, ecx
mov ecx, 0x100
shr eax, 8
and eax, 0xff00ff
shr r8d, 8
add r9d, eax
and r8d, 0xff00ff
add r8d, edx
mov eax, r9d
shr eax, 8
mov edx, 0x100
and eax, 0xff00ff
sub edx, eax
mov eax, r9d
shl eax, 8
shl edx, 8
or edx, eax
mov eax, r8d
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r9d
or ecx, r8d
shr eax, 8
xor edx, ecx
shl r9d, 8
and eax, 0xff00ff
and edx, 0xff00ff
mov ecx, 0x100
sub ecx, eax
shl ecx, 8
or ecx, r9d
xor edx, ecx
mov dword [r10], edx
add r10, rbp
test ebx, ebx
jg 0x14006eab0
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rsi, rdx
nop word [rax + rax]
mov r8d, r11d
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14004b4b0
mov ecx, 0x100
inc r11d
dec ebx
mov edx, dword [rax]
mov r9d, edx
and edx, 0xff00ff
shr r9d, 8
and r9d, 0xff00ff
mov eax, r9d
shr eax, 0x10
sub ecx, eax
mov eax, dword [r10]
mov r8d, eax
shr eax, 8
and eax, 0xff00ff
and r8d, 0xff00ff
imul eax, ecx
imul r8d, ecx
mov ecx, 0x100
shr eax, 8
and eax, 0xff00ff
shr r8d, 8
add r9d, eax
and r8d, 0xff00ff
add r8d, edx
mov eax, r9d
shr eax, 8
mov edx, 0x100
and eax, 0xff00ff
sub edx, eax
mov eax, r9d
shl eax, 8
shl edx, 8
or edx, eax
mov eax, r8d
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r9d
or ecx, r8d
shr eax, 8
xor edx, ecx
shl r9d, 8
and eax, 0xff00ff
and edx, 0xff00ff
mov ecx, 0x100
sub ecx, eax
shl ecx, 8
or ecx, r9d
xor edx, ecx
mov dword [r10], edx
add r10, rsi
test ebx, ebx
jg 0x14006ebc0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14006ecb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rax, qword [rcx + 0x70]
mov ebp, r8d
mov esi, edx
mov rdi, rcx
movsxd r9, dword [rax + 0x10]
mov eax, r9d
mov r14, r9
imul eax, edx
movsxd rbx, eax
add rbx, qword [rcx + 0x78]
nop dword [rax]
nop word [rax + rax]
mov r8d, esi
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.14004b580
mov ecx, 0x100
inc esi
dec ebp
mov edx, dword [rax]
mov r9d, edx
and edx, 0xff00ff
shr r9d, 8
and r9d, 0xff00ff
mov eax, r9d
shr eax, 0x10
sub ecx, eax
mov eax, dword [rbx]
mov r8d, eax
shr eax, 8
and eax, 0xff00ff
and r8d, 0xff00ff
imul eax, ecx
imul r8d, ecx
mov ecx, 0x100
shr eax, 8
and eax, 0xff00ff
shr r8d, 8
add r9d, eax
and r8d, 0xff00ff
add r8d, edx
mov eax, r9d
shr eax, 8
mov edx, 0x100
and eax, 0xff00ff
sub edx, eax
mov eax, r9d
shl eax, 8
shl edx, 8
or edx, eax
mov eax, r8d
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r9d
or ecx, r8d
shr eax, 8
xor edx, ecx
shl r9d, 8
and eax, 0xff00ff
and edx, 0xff00ff
mov ecx, 0x100
sub ecx, eax
shl ecx, 8
or ecx, r9d
xor edx, ecx
mov dword [rbx], edx
add rbx, r14
test ebp, ebp
jg 0x14006ecf0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret