joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18008e390
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1801044f8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18008e4ba
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x18008e4b1
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x18008e494
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18008e494
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18008e494
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18008e452
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x180108960]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18008e4b1
jmp 0x18008e487
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18008e487
mov rcx, qword [0x180108960]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18008e4b1
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x18008e400
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x18008e513
cmp dword [rbx + 0xc], esi
jbe 0x18008e513
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18008e50c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.18008eaf0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x18008e4d0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180093c30
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18008eca0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
mov r8, qword [rcx]
mov rdi, rcx
test r8, r8
je 0x18008ed11
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x18008ecfd
mov qword [rsp + 0x38], rsi
mov rax, qword [rdi]
xor edx, edx
mov r8d, dword [rax + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18008ecee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x18008ecc2
mov r8, qword [rdi]
mov rsi, qword [rsp + 0x38]
mov rcx, qword [0x180108960]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18008edd0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
cmp rdi, 0x40000000
jbe 0x18008ee0b
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18010ac38]
lea r15, [rdi + 0x40000000]
cmp qword [rsp + 0x30], r15
cmovbe r15, qword [rsp + 0x30]
sub r15, 0xfff
test rsi, rsi
je 0x18008ee4d
cmp rsi, r14
jb 0x18008ee45
cmp rsi, r15
jae 0x18008ee45
cmp qword [rsi + 8], 0
jne 0x18008f00d
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18008ee30
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
cmp rdi, r14
jb 0x18008eed2
nop word [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x18008eec9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18008eec9
cmp dword [rsp + 0x70], 0x10000
je 0x18008ef4b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x18008eec9
sub rbx, rbp
cmp rbx, r14
jae 0x18008ee90
test rsi, rsi
jne 0x18008efb6
cmp rdi, r15
ja 0x18008effd
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18008effd
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18008effd
cmp dword [rsp + 0x70], 0x10000
je 0x18008ef84
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x18008ef02
jmp 0x18008effd
test rbx, rbx
je 0x18008eec9
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18008efb6
cmp rbx, r14
jae 0x18008ee70
jmp 0x18008eed2
test rdi, rdi
je 0x18008effd
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18008efb6
cmp rdi, r15
jbe 0x18008eee0
jmp 0x18008effd
xor eax, eax
lea rcx, [rsi + 0x40]
mov rdx, rcx
mov qword [rsi + 8], rax
sub rdx, rsi
mov dword [rsi + 0x10], eax
nop dword [rax]
mov rax, qword [rsi + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rsi + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x18008efd0
mov rax, qword [0x18010ac38]
mov qword [rsi], rax
mov qword [0x18010ac38], rsi
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb0]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x1800924a8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18009252c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800d3610]
cmp byte [rcx + rax], 0
je 0x18009252c
dec r8
sub rdx, 1
jne 0x180092512
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1800a4740
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1800a4777
call fcn.18009a6dc
mov dword [rax], 0x16
call fcn.18009a4a4
xor eax, eax
jmp 0x1800a4805
mov rdx, r9
mov rcx, r8
call fcn.1800a46dc
mov rbx, rax
test rax, rax
je 0x1800a4802
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1800a4608]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1800a47ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18009a650
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1800a47d6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1800a47e5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1800b0ea0
jmp 0x1800a4802
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1800a47ff
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800b683c
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.180093bd0
sub rsp, rax
mov rax, qword [0x1801044f8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800b4b44
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800b688b
mov rax, rbp
jmp 0x1800b6993
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 + 0x109f70]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800b7b24
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x109f70]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800b698f
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 0x1800b698f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800b7b24
test rax, rax
js 0x1800b698f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800b698f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800b6981
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800b6981
cmp byte [rcx], 0xd
jne 0x1800b6967
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800b6976
cmp byte [rcx + 1], 0xa
jne 0x1800b6976
inc rcx
jmp 0x1800b6976
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1048f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800b6949
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800b6993
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180093c30
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 0x1800b6cb0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800b6cc6
mov al, 1
jmp 0x1800b6d26
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800b6cd7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800b6d24
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800bf000
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800b6d24
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800b6d24
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800b6d24
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800b6d26
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800b6ec4
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, [0x180109f70]
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 0x1800b6f1b
cmp word [rdx], r13w
jne 0x1800b6f1b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800b6f20
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800b7045
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800b7066
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800b6f59
mov rdx, r9
mov word [rbx], cx
jmp 0x1800b6f80
cmp r9, r8
jae 0x1800b6f90
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 0x1800b6f3a
jmp 0x1800b7045
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 0x1800b703a
cmp dword [rsp + 0x80], esi
je 0x1800b703a
lea r8, [0x180109f70]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800b7012
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800b6fe2
mov word [rbx], r13w
jmp 0x1800b7042
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 0x1800b6fef
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800b7042
cmp word [rsp + 0x70], r13w
jne 0x1800b701f
cmp rbx, r14
je 0x1800b6fdc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800b7b2c
cmp word [rsp + 0x70], r13w
je 0x1800b7045
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, [0x180109f70]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800b703f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800b7045
Function at 0x1800baa28
Capabilities:
Query environment variable

Disassembly:
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 0x1800baa58
xor eax, eax
jmp 0x1800bab1b
mov rbp, rbx
cmp word [rax], si
je 0x1800baa7d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800baa64
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800baa60
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.1800b9420
movsxd r14, eax
test eax, eax
jne 0x1800baabb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800baa51
mov rcx, r14
call fcn.1800b0edc
mov rdi, rax
test rax, rax
jne 0x1800baad4
xor ecx, ecx
call fcn.1800b0ea0
jmp 0x1800baab0
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.1800b9420
test eax, eax
jne 0x1800bab05
mov rcx, rdi
call fcn.1800b0ea0
jmp 0x1800bab0f
xor ecx, ecx
call fcn.1800b0ea0
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 0x1800bd028
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.1800af248
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 0x1800bd0c9
cmp ebx, dword [rsp + 0x30]
je 0x1800bd0c2
test esi, esi
je 0x1800bd0c2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800bd09d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800bd0aa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800bd087
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800bd0ae
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800bd0cb
mov eax, 1
jmp 0x1800bd0cb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800c1918
Capabilities:
Clear file content

Disassembly:
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.1800b7b2c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800b7b2c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800c1a68
cmp rax, 0xffffffffffffffff
je 0x1800c1a68
xor edi, edi
test rbp, rbp
jle 0x1800c1a13
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800b0e28
mov rbx, rax
test rax, rax
jne 0x1800c19a0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800c1a09
mov edx, 0x8000
mov ecx, r14d
call fcn.1800c179c
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.1800b60b4
cmp eax, 0xffffffff
je 0x1800c19e9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800c19b0
mov edx, r15d
mov ecx, r14d
call fcn.1800c179c
jmp 0x1800c1a09
cmp byte [rsi + 0x38], dil
je 0x1800c1a00
cmp dword [rsi + 0x34], 5
jne 0x1800c1a00
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800c1a09
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800b0ea0
jmp 0x1800c1a7c
jns 0x1800c1a7c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800b7b2c
cmp rax, 0xffffffffffffffff
jne 0x1800c1a34
cmp byte [rsi + 0x30], dil
je 0x1800c1a7c
mov edi, dword [rsi + 0x2c]
jmp 0x1800c1a7c
mov ecx, r14d
call fcn.1800bf000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800c1a7c
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 0x1800c1a7c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800c1a75
mov eax, dword [rsi + 0x2c]
jmp 0x1800c1a7a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800b7b2c
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 0x1800c1f40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800c1f68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800c1f68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x40104a
Capabilities:
Initialize winsock library

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x1a0
mov word [rbp - 0x198], 0
lea rax, [rbp - 0x198]
mov rdx, rax
mov rcx, 0x202
sub rsp, 0x20
call sub.WS2_32_WSAStartup
add rsp, 0x20
cmp rax, 0
je 0x401084
jmp 0x401084
mov rsp, rbp
pop rbp
ret

Function at 0x401316
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x110
mov byte [rbp - 0x100], 0x31
mov byte [rbp - 0xff], 0x39
mov byte [rbp - 0xfe], 0x32
mov byte [rbp - 0xfd], 0x2e
mov byte [rbp - 0xfc], 0x31
mov byte [rbp - 0xfb], 0x36
mov byte [rbp - 0xfa], 0x38
mov byte [rbp - 0xf9], 0x2e
mov byte [rbp - 0xf8], 0x32
mov byte [rbp - 0xf7], 0x33
mov byte [rbp - 0xf6], 0x39
mov byte [rbp - 0xf5], 0x2e
mov byte [rbp - 0xf4], 0x31
mov byte [rbp - 0xf3], 0x32
mov byte [rbp - 0xf2], 0x38
mov byte [rbp - 0xf1], 0
mov word [rbp - 0x102], 0x115c
lea rax, [0x004011a4]
push rax
sub rsp, 8
lea rcx, [0x00403007]
sub rsp, 0x20
call sub.ntdll_atoi
add rsp, 0x28
pop rcx
xchg rcx, rax
xor rax, rcx
mov dword [rbp - 0x108], eax
mov eax, dword [rbp - 0x108]
push rax
sub rsp, 8
lea rax, [0x0040300a]
mov rcx, rax
sub rsp, 0x20
call sub.ntdll_atoi
add rsp, 0x28
pop rcx
xchg rcx, rax
xor rax, rcx
mov qword [rbp - 0x110], rax
mov r8, 5
mov dx, word [rbp - 0x102]
lea rax, [rbp - 0x100]
mov rcx, rax
sub rsp, 0x20
call qword [rbp - 0x110]
add rsp, 0x20
mov rax, 0
mov rsp, rbp
pop rbp
ret
Function at 0x142238058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1422381df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x142238089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14223806f
add dl, dl
jne 0x142238096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1422380f6
xor eax, eax
add dl, dl
jne 0x1422380a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1422381ad
add dl, dl
jne 0x1422380b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1422380c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1422380d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1422380dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1422380ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14223807e
mov eax, 1
add dl, dl
jne 0x142238106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142238113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1422380fb
sub eax, ebx
mov ebx, 1
jne 0x14223814c
mov ecx, 1
add dl, dl
jne 0x14223812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14223813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142238123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14223807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x142238168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x142238175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14223815d
cmp eax, 0x7d00
jae 0x14223819b
cmp eax, 0x500
jb 0x142238196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14223807e
cmp eax, 0x7f
ja 0x14223819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14223807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1422381d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14223807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002f40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x14004d434], 0
lea rdi, [0x14004d430]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x140003018
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x140002f70
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x14000304e
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4]
sub r9d, 1
jne 0x140003030
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x14000308f
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x140003073
cmp byte [r8], r9b
jne 0x140003073
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rdi + rdx*4]
test r9b, r9b
jne 0x140003060
not eax
pop rdi
ret