joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1802536d8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1802536ee
mov al, 1
jmp 0x18025374e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1802536ff
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18025374c
mov ecx, dword [rcx + 0x18]
nop
call fcn.180008896
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18025374c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18025374c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18025374c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18025374e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18025e8e8
Capabilities:
Query environment variable

Disassembly:
jmp 0x18025e8e8
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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18025e918
xor eax, eax
jmp 0x18025e9db
mov rbp, rbx
cmp word [rax], si
je 0x18025e93d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18025e924
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18025e920
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180006767
movsxd r14, eax
test eax, eax
jne 0x18025e97b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18025e911
mov rcx, r14
call fcn.180001087
mov rdi, rax
test rax, rax
jne 0x18025e994
xor ecx, ecx
call fcn.18000135c
jmp 0x18025e970
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180006767
test eax, eax
jne 0x18025e9c5
mov rcx, rdi
call fcn.18000135c
jmp 0x18025e9cf
xor ecx, ecx
call fcn.18000135c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x18025ea3c
Capabilities:
Query environment variable

Disassembly:
jmp 0x18025ea3c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x18025eac3
mov rsi, rbx
cmp word [rax], bp
je 0x18025ea82
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18025ea6c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18025ea68
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.180001087
mov rdi, rax
test rax, rax
je 0x18025eab0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.18000472d
mov rbp, rdi
xor ecx, ecx
call fcn.18000135c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180262ef4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1800028ec
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180262f95
cmp ebx, dword [rsp + 0x30]
je 0x180262f8e
test esi, esi
je 0x180262f8e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180262f69
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180262f76
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180262f53
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180262f7a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180262f97
mov eax, 1
jmp 0x180262f97
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18026e640
Capabilities:
Set environment variable

Disassembly:
jmp 0x18026e640
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.180003aa3
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18026e6ca
cmp byte [rbp - 0x21], r15b
je 0x18026e6c5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18026e700
call fcn.18000894a
test eax, eax
jne 0x18026e6ec
cmp byte [rbp - 0x21], r15b
je 0x18026e6e4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18026e700
cmp byte [rbp - 0x21], r15b
je 0x18026e6fd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.180008e63
test eax, eax
jne 0x18026e7a0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.180003aa3
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18026e73f
cmp byte [rbp - 0x21], r15b
je 0x18026e774
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18026e774
call fcn.18000894a
test eax, eax
jne 0x18026e760
cmp byte [rbp - 0x21], r15b
je 0x18026e759
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18026e774
cmp byte [rbp - 0x21], r15b
je 0x18026e771
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.180008e63
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18026e7a0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18026e7a3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18026e7b1
mov rcx, rdi
call fcn.18000135c
cmp byte [rbp + 0x3f], r15b
je 0x18026e7c0
mov rcx, qword [rbp + 0x27]
call fcn.18000135c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1802702d8
Capabilities:
Clear file content

Disassembly:
jmp 0x1802702d8
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1800022d9
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800022d9
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180270428
cmp rax, 0xffffffffffffffff
je 0x180270428
xor edi, edi
test rbp, rbp
jle 0x1802703d3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180007851
mov rbx, rax
test rax, rax
jne 0x180270360
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1802703c9
mov edx, 0x8000
mov ecx, r14d
call fcn.1800062c1
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1800071a3
cmp eax, 0xffffffff
je 0x1802703a9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180270370
mov edx, r15d
mov ecx, r14d
call fcn.1800062c1
jmp 0x1802703c9
cmp byte [rsi + 0x38], dil
je 0x1802703c0
cmp dword [rsi + 0x34], 5
jne 0x1802703c0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1802703c9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18000135c
jmp 0x18027043c
jns 0x18027043c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800022d9
cmp rax, 0xffffffffffffffff
jne 0x1802703f4
cmp byte [rsi + 0x30], dil
je 0x18027043c
mov edi, dword [rsi + 0x2c]
jmp 0x18027043c
mov ecx, r14d
call fcn.180008896
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18027043c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18027043c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180270435
mov eax, dword [rsi + 0x2c]
jmp 0x18027043a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800022d9
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140006e50
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140006e80
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x140006e7f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140006e85
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x140006e7f
mov eax, 0
jmp 0x140006e7f

Function at 0x140007500
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400074b0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400116e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409c2970]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14001174f
mov rcx, r9
call fcn.1400115b0
test eax, eax
je 0x14001174f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14001174d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140011744
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14001174f
add rdx, 0x28
cmp rdx, r9
jne 0x140011730
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x1400079ff
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
lea rcx, [0x140009bcd]
call sub.msvcrt.dll_getenv
jmp 0x140007b00
lea rcx, [0x140009bd1]
lea rdx, [0x140009bc9]
mov r8, rax
mov rax, qword [0x14000a65e]
call rax
mov rsi, rax
lea rdi, [0x140009bd1]
lea r12, [0x140008251]
push r12
push rbp
mov rbp, rsp
sub rsp, 0xf0
mov qword [rbp - 0x95], rcx
movzx ecx, cl
lea rax, [rbp - 0xb]
mov qword [rbp - 0x8f], r10
mov qword [rbp - 0x4c], rdx
mov dword [rbp - 0x2f], eax
call fcn.1400080a2
or qword [0x14000900e], rdx
mov qword [rbp - 0xa1], rdx
or dword [rbp - 0x93], edx
mov qword [rbp - 0x9c], rcx
add ecx, 0x99a1
call fcn.140007d04
mov edx, dword [rbp - 0x2c]
mov qword [0x140009008], r10
mov eax, dword [rbp - 0x7d]
mov r8, rdx
and r8, rdx
add edx, 0x8f06
xor qword [rbp - 0x30], rcx
mov edx, dword [section..data]
mov qword [rbp - 0x38], r9
sub r11, qword [rbp - 0xd8]
mov edx, eax
and rax, 0xca8b
xor byte [rbp - 0x34], dh
mov rcx, rdx
movzx ecx, ch
mov ax, cx
mov dh, byte [rbp - 0xc9]
mov qword [0x14000900f], r9
mov qword [rbp - 0xce], r8
add r11, 0xb841
cmp ecx, ecx
jb 0x140007c4f
mov dword [rbp - 0xa0], eax
and qword [rbp - 0x71], r9
mov qword [0x140009008], rax
and dword [rbp - 0xa5], edx
mov qword [rbp - 0x2d], r9
add eax, dword [0x14000900c]
mov r10, 0xaaa6
sub rcx, 0x5df
xor rdx, 0xe6d9
mov qword [rbp - 0xb3], rax
mov edx, dword [0x14000900a]
mov r8, qword [rbp - 0xed]
and r8, r10
and r10, qword [rbp - 0xbd]
and qword [rbp - 0x51], rcx
add edx, dword [rbp - 0x2c]
mov rdx, rdx
mov r8, qword [rbp - 0x29]
mov eax, dword [rbp - 0xd9]
mov rax, 0x472f
mov eax, edx
mov cl, byte [rbp - 0xa0]
xor r8, rcx
xor r9, r9
movzx edx, byte [rbp - 0x71]
mov qword [rbp - 0x2f], rdx
mov ecx, dword [rbp - 1]
add ax, word [0x14000900a]
mov r11, qword [rbp - 0x97]
mov qword [rbp - 0x43], r11
lea edx, [rbp - 0xcb]
mov qword [rbp - 0x8d], r11
mov edx, edx
cmp rax, rcx
jmp 0x140007cd6
add rdx, 0x9d8
mov rax, qword [rbp]
mov eax, eax
add dword [rbp - 0xb6], eax
mov rcx, r10
mov dword [rbp - 0x71], eax
add qword [rbp - 0x6c], r8
mov r8, qword [rbp - 0x32]
mov ecx, eax
sub dword [rbp - 0x77], edx
mov dword [rbp - 0xa6], edx
leave
ret
Function at 0x140001050
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Parse pe header
Spawn thread to rwx shellcode

Disassembly:
push rsi
sub rsp, 0x60
mov rsi, rcx
mov r8d, edx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x14000107b
xor al, al
add rsp, 0x60
pop rsi
ret
mov qword [rsp + 0x80], rbx
mov ecx, 0x1faa00
mov qword [rsp + 0x58], rdi
call fcn.140001388
mov r8d, 0x1faa00
lea rdx, [0x140005d10]
mov rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memcpy
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x1400011ed
movsxd rax, dword [rdi + 0x3c]
cmp dword [rax + rdi], 0x4550
jne 0x1400011ed
mov ecx, 0x8664
cmp word [rax + rdi + 4], cx
jne 0x1400011ed
mov rcx, qword [rsi + 8]
xor edx, edx
mov qword [rsp + 0x88], rbp
mov r9d, 0x1000
mov r8d, 0x1faa00
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rcx, qword [rsi + 8]
xor edx, edx
mov r9d, 0x1000
mov dword [rsp + 0x20], 0x40
mov r8d, 0xc50
mov r14, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rcx, qword [rsi + 8]
xor ebx, ebx
mov r9d, 0x1faa00
mov qword [rsp + 0x20], rbx
mov r8, rdi
mov rdx, r14
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400011ac
mov rcx, qword [rsi + 8]
lea r8, [0x1400050c0]
mov r9d, 0xc50
mov qword [rsp + 0x20], rbx
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400011ac
mov rcx, qword [rsi + 8]
mov r9, rbp
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
xor edx, edx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rax
mov edx, 0xffffffff
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov rcx, qword [rsi + 8]
mov r9d, 0x8000
mov r8d, 0xc50
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rsi + 8]
mov r9d, 0x8000
mov r8d, 0x1faa00
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x88]
jmp 0x1400011ef
xor bl, bl
mov rcx, rdi
call fcn.140001380
mov rdi, qword [rsp + 0x58]
movzx eax, bl
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret

Function at 0x140001f50
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001f9a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001f9a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001f9a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001f9a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001f9a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001f9c
xor al, al
add rsp, 0x28
ret
Function at 0x18001d130
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x18001d154
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
je 0x18001d1e2
mov rdi, r15
mov qword [rsp + 0x40], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x18001d1b0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x18001d1b0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.1800861c0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18001d1cd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x18001d1d5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x18001d171
mov rbp, qword [rsp + 0x40]
sub r15, rdi
jmp 0x18001d2c0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x18001d1f9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18001d1fb
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18001d22d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.1800861c0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18001d2bd
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18001d268
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x18001d29e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.18006c6a8
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x18001d2bd
cmp rsi, rax
ja 0x18001d271
test rsi, rsi
je 0x18001d2bd
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.18006c6a8
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x48]
mov rax, r15
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
Function at 0x180029140
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x10]
mov rbx, rcx
mov r10d, eax
and r10d, 7
je 0x180029171
cmp eax, r10d
jge 0x18002915f
call fcn.180022c40
mov eax, dword [rbx + 0x14]
mov ecx, r10d
shr eax, cl
sub dword [rbx + 0x10], r10d
mov dword [rbx + 0x14], eax
mov eax, dword [rbx + 0x10]
xor r8d, r8d
mov r9d, eax
test eax, eax
jle 0x1800291b2
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r10d, cl
nop word [rax + rax]
shr ecx, 8
lea eax, [r9 - 8]
mov byte [rdx], r10b
lea rdx, [rdx + 1]
inc r8d
mov dword [rbx + 0x14], ecx
mov r9d, eax
movzx r10d, cl
test eax, eax
jg 0x180029190
mov dword [rbx + 0x10], eax
jns 0x1800291df
mov edx, dword [0x1800b9350]
mov rax, qword gs:[0x58]
mov ecx, 0x20
mov rax, qword [rax + rdx*8]
lea rdx, str.Corrupt_PNG
mov qword [rcx + rax], rdx
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x180029212
mov r8, qword [rbx + 8]
nop dword [rax]
mov rax, qword [rbx]
cmp rax, r8
jb 0x1800291fc
xor dl, dl
jmp 0x180029205
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x1800291f0
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x1800291b4
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x180029287
mov edx, dword [0x1800b9350]
mov rax, qword gs:[0x58]
mov ecx, 0x20
mov rax, qword [rax + rdx*8]
lea rdx, str.Corrupt_PNG
mov qword [rcx + rax], rdx
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x1800292a1
mov rcx, rbx
call fcn.18002e570
test eax, eax
je 0x18002927a
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call fcn.1800861c0
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x1800470c0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov rbx, rcx
call fcn.180047090
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1800472d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx]
mov rbx, rcx
cmp eax, 0x270
jne 0x1800472e9
call fcn.1800475b0
jmp 0x1800472f5
cmp eax, 0x4e0
jb 0x1800472f5
call fcn.1800474c0
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 0x20
pop rbx
ret
jmp 0x1800472d0
mov rcx, qword [rcx]
jmp 0x180047340

Function at 0x180047480
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx]
mov rbx, rcx
cmp eax, 0x270
jne 0x1800472e9
call fcn.1800475b0
jmp 0x1800472f5
cmp eax, 0x4e0
jb 0x1800472f5
call fcn.1800474c0
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 0x20
pop rbx
ret
jmp 0x1800472d0
mov rcx, qword [rcx]
jmp 0x180047340

Function at 0x1800474c0
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
lea r10, [rcx + 0x9c4]
mov r9, rcx
mov r11d, dword [r10]
mov ebx, 0xe3
nop word [rax + rax]
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1800474e0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x180047530
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
btr edx, 0x1f
mov dword [r9], ebx
mov rbx, qword [rsp + 8]
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
ret
Function at 0x1800475b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
lea rax, [rcx + 8]
mov r9d, 0x270
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x1800475c0
ret

Function at 0x180047600
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
xor r10d, r10d
mov r11, rcx
test r9, r9
je 0x1800476e5
cmp r9, 0x40
jb 0x1800476c3
movsx eax, byte [rcx]
lea rcx, [rdx - 1]
add rcx, r9
movd xmm2, eax
lea rax, [r8 - 1]
punpcklbw xmm2, xmm2
add rax, r9
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
cmp rdx, rax
ja 0x18004764d
cmp rcx, r8
jae 0x1800476c3
cmp rdx, r11
ja 0x180047657
cmp rcx, r11
jae 0x1800476c3
mov rcx, r9
mov qword [rsp + 0x10], rbx
and rcx, 0xffffffffffffffc0
mov qword [rsp], rdi
mov rbx, r8
lea rax, [rdx + 0x10]
sub rbx, rdx
movdqu xmm0, xmmword [rbx + rax - 0x10]
add r10, 0x40
movdqu xmm1, xmmword [rbx + rax]
lea rax, [rax + 0x40]
xorps xmm0, xmm2
xorps xmm1, xmm2
movdqu xmmword [rax - 0x50], xmm0
movdqu xmm0, xmmword [rbx + rax - 0x30]
movdqu xmmword [rax - 0x40], xmm1
xorps xmm0, xmm2
movdqu xmm1, xmmword [rbx + rax - 0x20]
movdqu xmmword [rax - 0x30], xmm0
xorps xmm1, xmm2
movdqu xmmword [rax - 0x20], xmm1
cmp r10, rcx
jb 0x180047671
mov rbx, qword [rsp + 0x10]
mov rdi, qword [rsp]
cmp r10, r9
jae 0x1800476e5
sub r8, rdx
lea rax, [r10 + rdx]
sub r9, r10
nop dword [rax]
movzx ecx, byte [r8 + rax]
lea rax, [rax + 1]
xor cl, byte [r11]
mov byte [rax - 1], cl
sub r9, 1
jne 0x1800476d0
add rsp, 8
ret

Function at 0x180047c70
Capabilities:
Encode data using xor

Disassembly:
mov dword [rcx + 4], edx
lea r10, [rcx + 8]
mov eax, 1
nop dword [rax]
mov r9d, edx
lea r10, [r10 + 4]
shr r9d, 0x1e
xor edx, r9d
imul edx, r8d
add edx, eax
inc rax
mov dword [r10 - 4], edx
cmp rax, 0x270
jb 0x180047c80
mov dword [rcx], 0x270
ret