joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800fde60
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1800fde7c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800fded0
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800fdff5
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1800fdff5
test rax, rax
je 0x1800fdff5
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1800fdff5
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1800fdf6a
lea rax, [0x1800fe050]
jmp 0x1800fdfc3
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1800fdff5
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800fdfe3
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1800fdf90
lea rax, [0x1800fe020]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1800fe00a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1800ff5e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1800ff5eb
xor eax, eax
ret
lea r11, [0x180124500]
not ecx
cmp r8d, 8
jb 0x1800ff6c1
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1800ff610
test r8d, r8d
je 0x1800ff6ed
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1800ff6d0
not ecx
mov eax, ecx
ret
Function at 0x180104480
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1801044ba
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1801044bf
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180104508
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180124cf0]
cmp byte [rcx + rax], 0
je 0x180104508
dec r8
sub rdx, 1
jne 0x1801044ee
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x180001100
Capabilities:
Hash data with crc32

Disassembly:
mov eax, 0xffffffff
test r8d, r8d
je 0x18000113b
mov r9d, r8d
lea r10, section..data
nop dword [rax]
nop dword [rax + rax]
movzx r8d, byte [rdx]
lea rdx, [rdx + 1]
movzx ecx, al
xor r8, rcx
shr eax, 8
xor eax, dword [r10 + r8*4]
sub r9, 1
jne 0x180001120
ret

Function at 0x180001140
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov r10, rdx
mov r9d, eax
test r8d, r8d
je 0x180001174
nop dword [rax]
lea ecx, [rax + rax]
mov edx, eax
shl edx, 8
lea r10, [r10 + 1]
cmp r9d, 4
cmovae edx, ecx
movzx ecx, byte [r10 - 1]
xor edx, ecx
inc r9d
xor eax, edx
cmp r9d, r8d
jb 0x180001150
ret
Function at 0x180002870
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x1a0
mov rax, qword [0x1801b4ca8]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rax, rdx
mov rsi, rcx
test rdx, rdx
je 0x180002a83
mov qword [rcx], rdx
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rax
mov r9d, 0x40
call fcn.180004050
mov edx, dword [rsp + 0x8c]
mov eax, 0x5a4d
mov dword [rsi + 0x10], edx
cmp word [rsp + 0x50], ax
je 0x1800028d7
mov rax, qword [rsi]
cmp edx, dword [rax + 0x5e]
ja 0x180002a83
mov rcx, qword [rsi]
lea r8, [rsp + 0x90]
mov r9d, 0xf8
call fcn.180004050
cmp dword [rsp + 0x90], 0x4550
jne 0x180002a83
movzx eax, word [rsp + 0xa8]
mov edx, 0x10b
movzx ecx, word [rsp + 0x96]
mov edi, 1
mov dword [rsi + 0xc], ecx
cmp ax, dx
jne 0x180002925
mov dword [rsi + 8], edi
jmp 0x180002936
mov edx, 0x20b
cmp ax, dx
jne 0x180002936
mov dword [rsi + 8], 2
mov eax, dword [rsp + 0x128]
mov dword [rsi + 0x20], eax
mov eax, dword [rsp + 0x12c]
mov dword [rsi + 0x24], eax
cmp ecx, 0x100
ja 0x180002a83
lea edx, [rcx + rcx*4]
mov rcx, qword [rsi]
shl edx, 3
call fcn.1800010c0
mov r15, rax
test rax, rax
je 0x180002a83
mov ecx, dword [rsi + 0xc]
mov r8, rax
movzx edx, word [rsp + 0xa4]
add edx, 0x18
add edx, dword [rsi + 0x10]
lea r9d, [rcx + rcx*4]
mov rcx, qword [rsi]
shl r9d, 3
call fcn.180004050
mov ecx, dword [rsi + 0xc]
cmp ecx, edi
jbe 0x180002a45
mov qword [rsp + 0x1c8], rbx
mov qword [rsp + 0x1d0], rbp
mov qword [rsp + 0x1d8], r14
lea eax, [rcx - 1]
cmp eax, edi
jb 0x180002a27
nop
lea ebx, [rax - 1]
mov ecx, eax
lea rdx, [rbx + rbx*4]
lea rbp, [r15 + rdx*8]
lea rax, [rcx + rcx*4]
lea r14, [r15 + rax*8]
mov eax, dword [rbp + 0x14]
cmp dword [r14 + 0x14], eax
jae 0x180002a1e
mov rcx, qword [rsi]
lea rdx, [rsp + 0x20]
mov r9d, 0x28
mov r8, r14
call fcn.180004bb0
mov rcx, qword [rsi]
mov r9d, 0x28
mov r8, rbp
mov rdx, r14
call fcn.180004bb0
mov rcx, qword [rsi]
lea r8, [rsp + 0x20]
mov r9d, 0x28
mov rdx, rbp
call fcn.180004bb0
mov eax, ebx
cmp ebx, edi
jae 0x1800029c0
mov ecx, dword [rsi + 0xc]
inc edi
cmp edi, ecx
jb 0x1800029b7
mov r14, qword [rsp + 0x1d8]
mov rbp, qword [rsp + 0x1d0]
mov rbx, qword [rsp + 0x1c8]
mov r10, qword [rsi]
lea eax, [rcx - 1]
lea rax, [rax + rax*4]
mov ecx, dword [r15 + rax*8 + 0x14]
lea r9, [r15 + rax*8]
add ecx, dword [r9 + 0x10]
mov r8d, dword [r10 + 0x5e]
sub r8d, dword [rsi + 0x24]
cmp r8d, ecx
jbe 0x180002a78
mov dword [rsi + 0x18], ecx
sub r8d, dword [r9 + 0x14]
sub r8d, dword [r9 + 0x10]
mov dword [rsi + 0x1c], r8d
mov rdx, r15
mov rcx, r10
call fcn.1800010b0
xor eax, eax
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1800bfa90
add rsp, 0x1a0
pop r15
pop rdi
pop rsi
ret
Function at 0x180004240
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x20
movzx r15d, word [rsp + 0x50]
mov rbx, r8
mov rdi, rdx
mov r8d, r15d
mov rdx, rbx
movzx esi, r9b
mov r14, rcx
call fcn.180003a20
test al, al
je 0x1800042b3
mov r8d, r15d
mov rdx, rdi
mov rcx, r14
call fcn.180003a20
test al, al
je 0x1800042b3
movzx ecx, word [rsp + 0x50]
test rcx, rcx
je 0x1800042b3
sub rdi, rbx
nop dword [rax + rax]
movzx eax, sil
xor al, byte [rdi + rbx]
mov byte [rbx], al
lea rbx, [rbx + 1]
sub rcx, 1
jne 0x1800042a0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret

Function at 0x1800042d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x20
movzx r15d, word [rsp + 0x50]
mov rbx, r8
mov rdi, rdx
mov r8d, r15d
mov rdx, rbx
mov esi, r9d
mov r14, rcx
call fcn.180003a20
test al, al
je 0x180004351
mov r8d, r15d
mov rdx, rdi
mov rcx, r14
call fcn.180003a20
test al, al
je 0x180004351
movzx ecx, word [rsp + 0x50]
test rcx, rcx
je 0x180004351
sub rdi, rbx
dec rcx
shr rcx, 2
inc rcx
nop dword [rax]
nop dword [rax + rax]
mov eax, esi
xor eax, dword [rdi + rbx]
mov dword [rbx], eax
lea rbx, [rbx + 4]
sub rcx, 1
jne 0x180004340
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret

Function at 0x180004460
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x20
movzx r15d, word [rsp + 0x50]
mov rbx, r8
mov rdi, rdx
mov r8d, r15d
mov rdx, rbx
movzx esi, r9w
mov r14, rcx
call fcn.180003a20
test al, al
je 0x1800044e4
mov r8d, r15d
mov rdx, rdi
mov rcx, r14
call fcn.180003a20
test al, al
je 0x1800044e4
movzx ecx, word [rsp + 0x50]
test rcx, rcx
je 0x1800044e4
sub rdi, rbx
dec rcx
shr rcx, 1
inc rcx
nop dword [rax]
nop dword [rax + rax]
movzx eax, si
xor ax, word [rdi + rbx]
mov word [rbx], ax
lea rbx, [rbx + 2]
sub rcx, 1
jne 0x1800044d0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
Function at 0x180027ec0
Capabilities:
Parse pe header
Reference processor manufacturer constants

Disassembly:
sub rsp, 0x28
mov r10, qword [rcx + 0xb1fb]
movzx eax, word [r10 + 0x1a]
cmp ax, 1
jne 0x18002813c
mov edx, dword [r10 + 0x5e]
cmp edx, 0x10000
ja 0x18002818e
mov eax, dword [r10 + 0xa8a]
mov ecx, eax
shr ecx, 8
cmp eax, 0x38464947
je 0x18002818e
mov r8d, 0xd8ff
cmp ax, r8w
je 0x18002818e
mov r8d, 0x4d42
cmp ax, r8w
je 0x18002818e
cmp eax, 0x46464952
je 0x18002818e
cmp eax, 0x10000
jne 0x180027f47
mov r8d, 0x1010
cmp word [r10 + 0xa90], r8w
je 0x18002818e
cmp eax, 0x100
jne 0x180027f66
cmp byte [r10 + 0xa8e], 0
jne 0x180027f66
cmp byte [r10 + 0xa8f], 0x20
jbe 0x18002818e
mov r8d, 0x5f3f
cmp ax, r8w
je 0x18002818e
cmp eax, 0x46445025
je 0x18002818e
cmp eax, 0x46535449
je 0x18002818e
cmp eax, 0x4643534d
je 0x18002818e
cmp eax, 0x5446534d
je 0x18002818e
cmp eax, 0x7263694d
je 0x18002818e
cmp eax, 0x5243494d
je 0x18002818e
cmp eax, 0x6f006e
je 0x18002818e
cmp eax, 0x20101
je 0x18002818e
cmp eax, 0x4034b50
je 0x18002818e
cmp al, 0xff
jne 0x180027ff2
movzx eax, cl
and al, 0xe0
cmp al, 0xe0
jne 0x180027ff2
and cl, 6
cmp cl, 2
je 0x18002818e
mov eax, dword [r10 + 0x4a8a]
cmp eax, 0xf0f0f0f
je 0x18002818e
test eax, eax
jne 0x180028011
cmp dword [r10 + 0x4a8e], eax
jmp 0x180028014
cmp eax, 0x4c
je 0x18002818e
mov ecx, 0xbbef
cmp ax, cx
je 0x18002818e
mov ecx, 0xfeff
cmp ax, cx
je 0x18002818e
mov ecx, 0xcfd0
cmp ax, cx
je 0x18002818e
mov ecx, 0xa0d
cmp ax, cx
je 0x18002818e
cmp eax, 0x4c4f5449
je 0x18002818e
cmp edx, 0x10
jb 0x18002818e
xor edx, edx
mov r8d, edx
mov ecx, edx
nop dword [rax]
movzx eax, byte [rcx + r10 + 0x4a8a]
cmp al, 0xb
je 0x180028085
cmp al, 8
jbe 0x180028085
cmp al, 0xe
jb 0x18002808c
cmp al, 0xa0
jb 0x180028095
inc r8d
inc rcx
cmp rcx, 8
jl 0x180028070
cmp r8d, 8
je 0x18002818e
mov r8, rdx
mov r9d, 0xb600
nop dword [rax + rax]
movzx ecx, byte [r8 + r10 + 0x4a8a]
cmp cl, 0xf
ja 0x1800280c4
bt r9d, ecx
jb 0x1800280d0
sub cl, 0x20
cmp cl, 0x5e
ja 0x180028195
inc r8
cmp r8, 2
jl 0x1800280b0
mov r8, rdx
nop dword [rax]
movzx ecx, byte [r8 + r10 + 0x4aea]
cmp cl, 0xf
ja 0x1800280f4
bt r9d, ecx
jb 0x180028100
sub cl, 0x20
cmp cl, 0x5e
ja 0x180028195
inc r8
cmp r8, 4
jl 0x1800280e0
nop dword [rax]
movzx ecx, byte [rdx + r10 + 0x2a7a]
cmp cl, 0xf
ja 0x180028124
bt r9d, ecx
jb 0x18002812c
sub cl, 0x20
cmp cl, 0x5e
ja 0x180028195
inc rdx
cmp rdx, 2
jl 0x180028110
xor eax, eax
add rsp, 0x28
ret
cmp ax, 2
jne 0x180028179
xor edx, edx
mov word [rsp + 0x30], dx
mov edx, dword [r10 + 0xac6]
test edx, edx
je 0x180028195
cmp dword [r10 + 0x5e], edx
jbe 0x180028195
mov r9d, 2
lea r8, [rsp + 0x30]
mov rcx, r10
call fcn.180003ff0
mov eax, 0x4550
cmp word [rsp + 0x30], ax
jmp 0x18002818c
cmp ax, 9
jne 0x180028195
mov eax, 0x5a4d
cmp word [r10 + 0x4a8a], ax
jne 0x180028195
xor eax, eax
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret
Function at 0x18003d6b0
Capabilities:
Encode data using xor

Disassembly:
movzx r8d, dx
mov r9, rcx
mov edx, 0x200
mov ecx, 0x1a8a
cmp r8w, dx
mov r10d, 0x4a8a
mov eax, 0x2f
mov r11d, dword [r9 + 0x1ac5]
cmovb r10d, ecx
add r10, r9
cmp r8d, eax
jbe 0x18003d712
nop dword [rax]
nop word [rax + rax]
movzx edx, ax
mov ecx, r11d
add ax, 4
xor ecx, dword [rdx + r10]
xor ecx, 0x130
mov dword [rdx + r9 + 0x2a8a], ecx
cmp ax, r8w
jb 0x18003d6f0
mov eax, r8d
ret

Function at 0x180041040
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x180041120
cmp qword [0x1801b5930], 0
jne 0x180041090
mov ecx, 0x1c
call fcn.1800bfb90
test rax, rax
je 0x18004107a
xor ecx, ecx
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rcx
mov dword [rax + 0x18], ecx
mov qword [0x1801b5930], rax
xor ecx, ecx
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rcx
mov dword [rax + 0x18], ecx
lea rdx, [0x1800d9968]
mov rcx, rbx
call fcn.1800c6108
mov rbx, rax
test rax, rax
je 0x180041120
mov rcx, qword [0x1801b5930]
mov edx, 1
mov r9, rax
mov qword [rsp + 0x30], rdi
lea r8d, [rdx + 0x1b]
call fcn.1800c669c
mov rcx, qword [0x1801b5930]
mov edx, dword [rcx + 4]
mov rcx, qword [0x1801b5938]
sub edx, 0x1c
movsxd rdi, edx
test rcx, rcx
jne 0x180041103
mov rcx, rdi
call fcn.1800bfbd4
mov r8, rdi
mov qword [0x1801b5938], rax
xor edx, edx
mov rcx, rax
call fcn.1800c0bd0
mov rcx, qword [0x1801b5938]
mov r9, rbx
mov r8, rdi
mov edx, 1
call fcn.1800c669c
mov rcx, rbx
call fcn.1800c5fb4
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x180041360
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, edx
lea rdx, [rcx + 0xa8a]
add rdx, rax
jmp fcn.180001100
Function at 0x180041610
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.180041380
test eax, eax
je 0x18004162d
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov ecx, dword [rbx + 0xc]
call fcn.1800bfbd4
mov rcx, qword [rbx + 0x48]
xor r8d, r8d
mov qword [rbx + 0x50], rax
mov rax, qword [rbx + 0x40]
mov edx, dword [rax + 4]
call fcn.1800c6384
mov r8d, dword [rbx + 0xc]
mov edx, 1
mov r9, qword [rbx + 0x48]
mov rcx, qword [rbx + 0x50]
call fcn.1800c669c
mov rcx, qword [rbx + 0x48]
call fcn.1800c5fb4
xor eax, eax
mov qword [rbx + 0x48], 0
add rsp, 0x20
pop rbx
ret

Function at 0x1800429c0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov dword [rcx + 0x13a8c], edi
mov word [rcx + 0xa86], di
mov dword [rcx + 0x13a94], edi
mov dword [rcx + 0x13a9c], edi
lea ecx, [rdi + 0x10]
call fcn.1800bfb90
test rax, rax
je case.0x180042b02.3
mov qword [rax + 8], rdi
lea ecx, [rdi + 0x10]
mov qword [rbx + 0x1ce1c], rax
mov qword [rax], rbx
call fcn.1800bfb90
test rax, rax
je case.0x180042b02.3
mov qword [rax + 8], rdi
lea ecx, [rdi + 8]
mov qword [rbx + 0x1ce24], rax
mov qword [rax], rbx
call fcn.1800bfb90
test rax, rax
je case.0x180042b02.3
mov qword [rbx + 0x1ce14], rax
lea ecx, [rdi + 0x38]
mov qword [rax], rbx
call fcn.1800bfb90
test rax, rax
je case.0x180042b02.3
mov qword [rax + 8], rdi
lea r8, [rbx + 0xa8a]
mov qword [rax + 0x10], rdi
mov r9d, 0x1000
mov qword [rax + 0x18], rdi
xor edx, edx
mov qword [rax + 0x20], rdi
mov rcx, rbx
mov qword [rax + 0x28], rdi
mov qword [rax + 0x30], rdi
mov qword [rbx + 0x1ce0c], rax
mov qword [rax], rbx
call fcn.180003ff0
movzx eax, word [rbx + 0x1a]
sub ax, 0xc
cmp ax, 1
jbe 0x180042ad8
mov r9d, dword [rbx + 0x5e]
mov rcx, rbx
cmp r9d, 0x800
jb 0x180042ac4
lea edx, [r9 - 0x800]
mov r9d, 0x800
lea r8, [rbx + 0x228a]
jmp 0x180042ad3
mov r8, rbx
sub r8, r9
add r8, 0x2a8a
xor edx, edx
call fcn.180003ff0
movzx eax, word [rbx + 0x1a]
dec eax
cmp eax, 0x6e
ja case.0x180042b02.3
lea rdx, [0x180000000]
cdqe
movzx eax, byte [rdx + rax + 0x42b8c]
mov ecx, dword [rdx + rax*4 + 0x42b80]
add rcx, rdx
jmp rcx
mov ecx, 0x19b8
call fcn.1800bfb90
mov rdi, rax
test rax, rax
je case.0x180042b02.3
lea rcx, [rax + 8]
xor edx, edx
mov r8d, 0x19b0
call fcn.1800c0bd0
mov qword [rdi], rbx
mov ecx, 0x4d5a
movzx eax, word [rbx + 0xa8a]
mov qword [rbx + 0x1ce04], rdi
cmp ax, cx
je 0x180042b4c
mov ecx, 0x5a4d
cmp ax, cx
jne case.0x180042b02.5
mov eax, 2
mov word [rbx + 0x1a], ax
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.180042c00
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18004bd30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
movzx eax, byte [rcx + 0x2aa6]
mov rdi, rdx
dec al
mov rbx, rcx
cmp al, 3
ja 0x18004bdcc
mov eax, dword [rcx + 0x2a9e]
movzx r11d, byte [rcx + 0x2aa7]
mov r10d, dword [rcx + 0x2aa2]
test r9w, r9w
je 0x18004bdcc
movzx edx, r9w
test rdx, rdx
je 0x18004bdcc
sub rdi, r8
dec rdx
shr rdx, 2
inc rdx
nop
mov ecx, eax
xor ecx, dword [rdi + r8]
mov dword [r8], ecx
movzx ecx, byte [rbx + 0x2aa6]
dec ecx
cmp ecx, 3
ja 0x18004bdc2
test ecx, ecx
je 0x18004bdbf
sub ecx, 1
je 0x18004bdd7
sub ecx, 1
je 0x18004bdb7
cmp ecx, 1
jne 0x18004bdc2
mov ecx, r11d
add eax, r10d
and ecx, 0x1f
rol eax, cl
jmp 0x18004bdc2
mov ecx, r11d
and ecx, 0x1f
rol eax, cl
add eax, r10d
add r8, 4
sub rdx, 1
jne 0x18004bd80
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
mov ecx, r11d
and ecx, 0x1f
rol eax, cl
jmp 0x18004bdc2
Function at 0x1800aea80
Capabilities:
Encode data using xor

Disassembly:
movsxd r8, edx
test edx, edx
jle 0x1800aeabf
dec r8
lea rax, [rcx + 1]
shr r8, 2
inc r8
nop word [rax + rax]
movzx edx, byte [rax - 1]
movzx ecx, byte [rax + 2]
xor byte [rax], 0x59
xor byte [rax + 1], 0x1b
mov byte [rax - 1], cl
mov byte [rax + 2], dl
lea rax, [rax + 4]
sub r8, 1
jne 0x1800aeaa0
ret

Function at 0x1800c6aa0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1800bfac0
sub rsp, rax
mov rax, qword [0x1801b4ca8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800ca334
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800c6aef
mov rax, rbp
jmp 0x1800c6bf7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1b80c0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800cba68
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x1b80c0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800c6bf3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800c6bf3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800cba68
test rax, rax
js 0x1800c6bf3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800c6bf3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800c6be5
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800c6be5
cmp byte [rcx], 0xd
jne 0x1800c6bcb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800c6bda
cmp byte [rcx + 1], 0xa
jne 0x1800c6bda
inc rcx
jmp 0x1800c6bda
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1b4fe0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800c6bad
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800c6bf7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800bfa90
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800ccab0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1801b80c0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1800ccb07
cmp word [rdx], r13w
jne 0x1800ccb07
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800ccb0c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800ccc31
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800ccc52
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800ccb45
mov rdx, r9
mov word [rbx], cx
jmp 0x1800ccb6c
cmp r9, r8
jae 0x1800ccb7c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1800ccb26
jmp 0x1800ccc31
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800ccc26
cmp dword [rsp + 0x80], esi
je 0x1800ccc26
lea r8, [0x1801b80c0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800ccbfe
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800ccbce
mov word [rbx], r13w
jmp 0x1800ccc2e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1800ccbdb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800ccc2e
cmp word [rsp + 0x70], r13w
jne 0x1800ccc0b
cmp rbx, r14
je 0x1800ccbc8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800cba70
cmp word [rsp + 0x70], r13w
je 0x1800ccc31
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1801b80c0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800ccc2b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800ccc31