joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400347f0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140015d39
movzx eax, al
test eax, eax
jne 0x140034810
mov ecx, 7
call fcn.140015aaf
nop
mov byte [rsp + 0x20], 0
call fcn.140015aff
mov byte [rsp + 0x21], al
cmp dword [0x14005ea20], 1
jne 0x140034834
mov ecx, 7
call fcn.140015aaf
nop
jmp 0x14003488c
cmp dword [0x14005ea20], 0
jne 0x140034887
mov dword [0x14005ea20], 1
lea rdx, [0x140045770]
lea rcx, [0x140045440]
call fcn.140015604
test eax, eax
je 0x140034868
mov eax, 0xff
jmp 0x140034991
lea rdx, [0x140045330]
lea rcx, [section..rdata]
call fcn.140015ae1
mov dword [0x14005ea20], 2
jmp 0x14003488c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140015a8c
call fcn.140015924
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400348e9
mov rcx, qword [rsp + 0x30]
call fcn.1400154e7
movzx eax, al
test eax, eax
je 0x1400348e9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14006b020]
nop
call fcn.1400159bf
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14003491d
mov rcx, qword [rsp + 0x38]
call fcn.1400154e7
movzx eax, al
test eax, eax
je 0x14003491d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140015c62
nop
call fcn.140034a40
mov dword [rsp + 0x28], eax
call fcn.1400158de
movzx eax, al
test eax, eax
jne 0x14003493c
mov ecx, dword [rsp + 0x28]
call fcn.1400150e1
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14003494b
call fcn.140015c80
nop
xor edx, edx
mov cl, 1
call fcn.14001548d
mov eax, dword [rsp + 0x28]
jmp 0x140034991
add rsp, 0x68
ret
Function at 0x180002cb0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rax, vtable.PRY8EAlByw::CAsyncFifo.0
mov qword [rcx], rax
mov byte [rcx + 0x121], 1
xor bl, bl
cmp qword [rcx + 0xc8], 0xffffffffffffffff
je 0x180002d2f
mov rcx, qword [rcx + 0xd0]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x180002cfb
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, 0x7530
mov rcx, qword [rdi + 0xc8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180002d22
xor edx, edx
mov rcx, qword [rdi + 0xc8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov bl, 1
mov rcx, qword [rdi + 0xc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x58]
lea rcx, [rdi + 0x60]
call fcn.1800040e0
test bl, bl
jne 0x180002d4a
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov rcx, qword [rdi + 0xf8]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x180002d61
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x118]
cmp rdx, 7
jbe 0x180002da7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi + 0x100]
cmp rdx, 0x1000
jb 0x180002da2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180002ec6
mov rcx, r8
call fcn.180016020
xor eax, eax
mov qword [rdi + 0x110], rax
mov qword [rdi + 0x118], 7
mov word [rdi + 0x100], ax
lea rcx, [rdi + 0xd0]
call fcn.180002700
mov rax, qword [rdi + 0xb8]
mov rbx, qword [rax + 8]
cmp byte [rbx + 0x19], 0
jne 0x180002e0d
nop
mov r8, qword [rbx + 0x10]
lea rdx, [rdi + 0xb8]
lea rcx, [rdi + 0xb8]
call fcn.180005530
mov rcx, rbx
mov rbx, qword [rbx]
mov edx, 0x30
call fcn.180016020
cmp byte [rbx + 0x19], 0
je 0x180002de0
mov edx, 0x30
mov rcx, qword [rdi + 0xb8]
call fcn.180016020
mov rcx, qword [rdi + 0x98]
call fcn.180016020
mov rcx, qword [rdi + 0x78]
call fcn.180016020
lea rcx, [rdi + 0x60]
call fcn.180004000
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rdi + 0x40]
dec dword [rax + 0x28]
mov ebx, dword [rax + 0x28]
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x180002e76
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov edx, 0x30
mov rcx, qword [rdi + 0x40]
call fcn.180016020
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rdi + 0x38]
dec dword [rax + 0x28]
mov ebx, dword [rax + 0x28]
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x180002eb1
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov edx, 0x30
mov rcx, qword [rdi + 0x38]
call fcn.180016020
nop
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
call fcn.180020d70
int3
Function at 0x180008cc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13d, edx
mov rbp, rcx
mov r15d, dword [rcx + 0xf4]
lea r12, [rcx + 0xc0]
mov qword [rsp + 0x28], r12
mov byte [rsp + 0x20], 0
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbp + 0xc8], eax
xor esi, esi
cmp qword [rbp + 0xd0], rsi
je 0x180008d85
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
mov edi, esi
test r15d, r15d
je 0x180008d85
nop dword [rax]
mov rbx, qword [rbp + 0xd0]
mov edx, r13d
mov rcx, qword [rbx + 0x58]
call sub.EarthPtDll64.dll_PtDllSetIdS
mov edx, eax
mov rcx, rbx
call fcn.180007e00
test al, al
je 0x180008d58
inc edi
cmp edi, 2
jae 0x180008d80
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, r14d
sub edx, eax
mov ecx, eax
sub ecx, r14d
cmp eax, r14d
cmovb ecx, edx
cmp ecx, r15d
jb 0x180008d30
jmp 0x180008d85
mov esi, 1
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x180009810
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x20
mov rax, qword [rcx]
mov ebp, edx
mov r14, rcx
call qword [rax + 8]
test al, al
jne 0x18000983b
mov eax, 0xffffffff
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov qword [rsp + 0x38], rsi
mov edx, edi
mov ecx, eax
sub edx, eax
sub ecx, edi
cmp eax, edi
mov ebx, eax
cmovb ecx, edx
cmp ecx, ebp
ja 0x1800098df
lea r8, [r14 + 0x88]
cmp qword [r8 + 0x18], 7
jbe 0x180009876
mov r8, qword [r8]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rsi, rax
lea rcx, [rax + 1]
test rcx, 0xfffffffffffffffe
jne 0x1800098a6
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x180009852
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov ecx, ebx
sub ecx, eax
sub r8d, ebx
cmp eax, ebx
mov eax, ebp
cmovb r8d, ecx
xor edx, edx
sub eax, r8d
mov rcx, rsi
cmp r8d, ebp
cmovbe edx, eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800098e4
mov ebx, 0x102
mov rdi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180012940
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x1a0], 0
mov rbx, rcx
je 0x1800129aa
cmp qword [rcx + 0x1e0], 0
je 0x1800129aa
mov rcx, qword [rcx + 0x1a8]
cmp rcx, 0xffffffffffffffff
je 0x1800129aa
mov edx, 0x7530
mov dword [rbx + 0x1b0], 1
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180012992
mov rcx, qword [rbx + 0x1a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x1a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x1a8], 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret

Function at 0x1800129b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
xor sil, sil
cmp byte [rbx + 0xe9], 0
jne 0x180012a17
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov ecx, edi
sub edx, edi
sub ecx, eax
cmp eax, edi
cmovae ecx, edx
cmp ecx, dword [rbx + 0x38]
jae 0x180012a0e
mov rcx, rbx
call fcn.180011580
test eax, eax
jne 0x180012a07
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1800129d6
mov byte [rbx + 0xe9], 1
cmp byte [rbx + 0xe9], 0
je 0x180012a50
mov rcx, qword [rbx + 0x1e0]
test rcx, rcx
je 0x180012a75
xor edx, edx
mov r8d, 0x1388
call fcn.180007670
test eax, eax
jne 0x180012a62
mov rcx, rbx
call fcn.180011fd0
mov byte [rbx + 0xe9], 0
test sil, sil
jne 0x180012a50
mov sil, 1
jmp 0x1800129c5
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp dword [rbx + 0x28], 0
je 0x180012a75
mov edx, 1
mov rcx, rbx
call fcn.180012140
mov rsi, qword [rsp + 0x38]
xor eax, eax
cmp qword [rbx + 0x1e0], rax
mov rbx, qword [rsp + 0x30]
setne al
add rsp, 0x20
pop rdi
ret

Function at 0x1800135c0
Capabilities:
Check mutex on windows

Disassembly:
cmp dword [rcx + 0x30], 0
jne 0x1800135cc
mov eax, 1
ret
jmp fcn.180012140
Function at 0x180021a98
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 0x180021acf
call fcn.18002da14
mov dword [rax], 0x16
call fcn.180020d50
xor eax, eax
jmp 0x180021b5d
mov rdx, r9
mov rcx, r8
call fcn.180021a34
mov rbx, rax
test rax, rax
je 0x180021b5a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x180021960]
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 0x180021b47
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18002d988
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x180021b2e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x180021b3d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.18002da34
jmp 0x180021b5a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180021b57
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 0x18002b77c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18002b7eb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18002b7eb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18002b7eb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18002b7eb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18002b7eb
cmp dword [rcx + 0x84], 0xe
jbe 0x18002b7eb
cmp dword [rcx + 0xf8], 0
je 0x18002b7eb
mov ecx, ebx
call fcn.18002b89c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18002b678
nop
cmp dword [rbp + 0x20], 0
je 0x18002b839
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18002b844
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18002b77c
Function at 0x1800358cc
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 0x1800358fc
xor eax, eax
jmp 0x1800359bf
mov rbp, rbx
cmp word [rax], si
je 0x180035921
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180035908
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180035904
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.1800357ec
movsxd r14, eax
test eax, eax
jne 0x18003595f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800358f5
mov rcx, r14
call fcn.18002da70
mov rdi, rax
test rax, rax
jne 0x180035978
xor ecx, ecx
call fcn.18002da34
jmp 0x180035954
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.1800357ec
test eax, eax
jne 0x1800359a9
mov rcx, rdi
call fcn.18002da34
jmp 0x1800359b3
xor ecx, ecx
call fcn.18002da34
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 0x18003a434
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.18002f6c8
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 0x18003a4d5
cmp ebx, dword [rsp + 0x30]
je 0x18003a4ce
test esi, esi
je 0x18003a4ce
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18003a4a9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18003a4b6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18003a493
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18003a4ba
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18003a4d7
mov eax, 1
jmp 0x18003a4d7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18003eb78
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, [0x180055760]
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 0x18003ebcf
cmp word [rdx], r13w
jne 0x18003ebcf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18003ebd4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18003ecf9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18003ed1a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18003ec0d
mov rdx, r9
mov word [rbx], cx
jmp 0x18003ec34
cmp r9, r8
jae 0x18003ec44
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 0x18003ebee
jmp 0x18003ecf9
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 0x18003ecee
cmp dword [rsp + 0x80], esi
je 0x18003ecee
lea r8, [0x180055760]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18003ecc6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18003ec96
mov word [rbx], r13w
jmp 0x18003ecf6
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 0x18003eca3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18003ecf6
cmp word [rsp + 0x70], r13w
jne 0x18003ecd3
cmp rbx, r14
je 0x18003ec90
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18003e834
cmp word [rsp + 0x70], r13w
je 0x18003ecf9
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, [0x180055760]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18003ecf3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18003ecf9
Function at 0x18003f810
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.18003e834
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18003e834
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18003f960
cmp rax, 0xffffffffffffffff
je 0x18003f960
xor edi, edi
test rbp, rbp
jle 0x18003f90b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180031b5c
mov rbx, rax
test rax, rax
jne 0x18003f898
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18003f901
mov edx, 0x8000
mov ecx, r14d
call fcn.18003f694
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.18003ce38
cmp eax, 0xffffffff
je 0x18003f8e1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18003f8a8
mov edx, r15d
mov ecx, r14d
call fcn.18003f694
jmp 0x18003f901
cmp byte [rsi + 0x38], dil
je 0x18003f8f8
cmp dword [rsi + 0x34], 5
jne 0x18003f8f8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18003f901
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18002da34
jmp 0x18003f974
jns 0x18003f974
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18003e834
cmp rax, 0xffffffffffffffff
jne 0x18003f92c
cmp byte [rsi + 0x30], dil
je 0x18003f974
mov edi, dword [rsi + 0x2c]
jmp 0x18003f974
mov ecx, r14d
call fcn.18003ac94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18003f974
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 0x18003f974
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18003f96d
mov eax, dword [rsi + 0x2c]
jmp 0x18003f972
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18003e834
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 0x180040810
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180040838
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180040838
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001d70
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
xor eax, eax
xor ecx, ecx
mov rbx, rdx
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rcx
mov qword [rdi], rcx
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rcx
call fcn.14000bcc0
mov ecx, eax
mov eax, 0x94f2095
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x6e
sub ecx, eax
lea eax, [rcx + 0x3c]
cdqe
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rax
call fcn.140004740
mov rdx, rbx
mov rcx, rdi
call fcn.140001f80
test al, al
je 0x140001ee5
call fcn.14000bcc0
mov ecx, eax
mov eax, 0x94f2095
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x6e
sub ecx, eax
lea eax, [rcx + 0x3c]
cdqe
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rax
call fcn.140004740
mov rdx, qword [rdi + 8]
xor ecx, ecx
add rdx, qword [rdi + 0x10]
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x140001ec2
call fcn.14000bcc0
mov r8d, eax
mov eax, 0x94f2095
imul r8d
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x6e
sub r8d, ecx
add r8d, 0x3c
movsxd rcx, r8d
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x50]
call fcn.140004740
call fcn.14000bcc0
mov r8d, eax
mov eax, 0x94f2095
imul r8d
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x6e
sub r8d, ecx
lea rcx, [rsp + 0x50]
lea eax, [r8 + 0x3c]
cdqe
mov qword [rsp + 0x50], rax
call fcn.140004740
mov r8, qword [rdi + 0x10]
add r8, qword [rdi + 8]
mov rdx, qword [rdi]
mov rcx, qword [rdi + 0x20]
call fcn.140021220
mov rbx, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x40
pop rdi
ret
lea rdx, [0x14002d2d0]
lea rcx, [rsp + 0x20]
call fcn.140001230
lea rdx, [0x140030ee0]
lea rcx, [rsp + 0x20]
call fcn.140007ee0
int3
lea rdx, [0x14002d2c0]
lea rcx, [rsp + 0x20]
call fcn.140001230
lea rdx, [0x140030ee0]
lea rcx, [rsp + 0x20]
call fcn.140007ee0
int3
Function at 0x1400028a0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x1400028c4
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140002952
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002920
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140002920
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.140021220
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000293d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140002945
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x1400028e1
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x140002a30
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140002969
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000296b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000299d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140021220
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 0x140002a2d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400029d8
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 0x140002a0e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.14000d150
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x140002a2d
cmp rsi, rax
ja 0x1400029e1
test rsi, rsi
je 0x140002a2d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000d150
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret

Function at 0x140006e90
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006eda
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006eda
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006eda
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006eda
cmp dword [rcx + 0x84], 0xe
jbe 0x140006eda
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006edc
xor al, al
add rsp, 0x28
ret