joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800065d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1800163c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1800066a3
cmp byte [rcx + 0x71], 0
je 0x1800066a3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18000669f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180006664
sub eax, 1
je 0x180006668
cmp eax, 2
jne 0x18000669f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18000c9a0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180006696
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x18000669f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18000664c
xor al, al
jmp 0x18000664c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18000c9a0
add rsp, 0x60
pop rbx
ret

Function at 0x180006740
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1800163c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180006813
cmp byte [rcx + 0x71], 0
je 0x180006813
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18000680f
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x1800067d4
sub eax, 1
je 0x1800067d8
cmp eax, 2
jne 0x18000680f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18000c9a0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180006806
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x18000680f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1800067bc
xor al, al
jmp 0x1800067bc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18000c9a0
add rsp, 0x60
pop rbx
ret
Function at 0x1800085ac
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 0x1800085e6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800085eb
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 0x180008634
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18000f690]
cmp byte [rcx + rax], 0
je 0x180008634
dec r8
sub rdx, 1
jne 0x18000861a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x180009d80
Capabilities:
Suspend thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 0
mov rcx, qword [rsp + 0x40]
call fcn.180009b70
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x180009e57
mov dword [rsp + 0x20], 0
jmp 0x180009df4
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x180009e57
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180009e55
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.180009950
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180009dea
add rsp, 0x30
pop rdi
ret

Function at 0x180009e70
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x180009f14
mov dword [rsp + 0x20], 0
jmp 0x180009ead
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x180009efd
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180009efb
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180009ea3
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x180016c68]
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x30
pop rdi
ret
Function at 0x180009f20
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x80]
mov eax, dword [rsp + 0x80]
imul rax, rax, 0x38
mov rcx, qword [0x1800172f0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], 5
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x180009fa4
mov rax, qword [rsp + 0x50]
sub rax, 5
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180009fcd
mov eax, 0xa
jmp 0x18000a107
cmp dword [rsp + 0x88], 0
je 0x18000a03b
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov byte [rax], 0xe9
mov rax, qword [rsp + 0x50]
add rax, 5
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 1], eax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18000a039
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov byte [rax], 0xeb
mov rax, qword [rsp + 0x60]
mov byte [rax + 1], 0xf9
jmp 0x18000a087
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18000a06b
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 7
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x18000a087
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 5
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 1
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfd
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 2
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfb
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x18000f9d0]
call fcn.18000d174
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x18000b5f0
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov rdi, rsp
mov ecx, 4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x20]
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x18000b65e
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x18000b65e
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x18000b65e
xor eax, eax
jmp 0x18000b6a5
mov dword [rsp], 1
jmp 0x18000b66f
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x18000b6a0
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x18000b69e
xor eax, eax
jmp 0x18000b6a5
jmp 0x18000b667
mov eax, 1
add rsp, 0x10
pop rdi
ret
Function at 0x140209890
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14020989d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1402098ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140209895
lea eax, [rcx + 1]
jmp 0x1402098bb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1402098ce
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1402098b4
sub eax, 3
jb 0x1402098ee
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14020993d
sar eax, 1
movsxd rbp, eax
jb 0x140209924
jmp 0x1402098fc
add ebx, ebx
jne 0x1402098fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140209924
inc ecx
add ebx, ebx
jne 0x14020990a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140209924
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14020991d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14020990c
add ecx, 2
jmp 0x140209929
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140209852
jmp 0x14020989d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x90000
mov dl, 0x16
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140209989
cmp rsi, rcx
jae 0x140209991
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140209970
cmp al, 0x8f
ja 0x140209970
cmp byte [rsi - 2], 0xf
je 0x140209976
sub al, 0xe8
cmp al, 1
ja 0x14020995a
cmp rsi, rcx
jae 0x140209991
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140209960
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140209991
lodsb al, byte [rsi]
jmp 0x140209970
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x206000]
mov eax, dword [rdi]
or eax, eax
je 0x1402099ee
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x209000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14020999e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1402099e8
mov qword [rbx], rax
add rbx, 8
jmp 0x1402099be
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140209a28
cmp al, 0xef
ja 0x140209a1a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1402099fa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140209a09
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1a7]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.140209aa7], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.140209aa7
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140209a97
sub rsp, 0xffffffffffffff80
jmp 0x14000b4a0
Function at 0x1400026c8
Capabilities:
Parse pe header

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

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

Function at 0x140007270
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.140007220
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 0x140010870
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400193b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400193b0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x1400108e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14049d874]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140010a70
mov rax, qword [0x14049d878]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14001092c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x1400109b5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140010910
mov rcx, rdi
call fcn.140011440
test rax, rax
mov r12, rax
je 0x140010ac2
mov rax, qword [0x14049d878]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140011580
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14049d878]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140010aa5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400109ae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140010a20
add dword [0x14049d874], 1
cmp ebx, 8
jae 0x1400109e1
test bl, 4
jne 0x140010a80
test ebx, ebx
je 0x1400109d6
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140010a94
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x1400109d6
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x1400109fa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x14049d878]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400109ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140010870
xor esi, esi
jmp 0x140010937
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x1400109d6
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x1400109d6
mov rax, qword [0x14049d878]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140010870
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140010870
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140011090
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14049d8e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14049d8c0]
test rbx, rbx
je 0x1400110e4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400110db
test rsi, rsi
je 0x1400110db
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400110c0
lea rcx, [0x14049d8e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140011440
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140498490]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400114af
mov rcx, r9
call fcn.140011310
test eax, eax
je 0x1400114af
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 0x1400114ad
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 0x1400114a4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400114af
add rdx, 0x28
cmp rdx, r9
jne 0x140011490
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14001b780
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x140494fe0]
jmp 0x140012270

Function at 0x14001b790
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x140494fe0]
jmp 0x140012270

Function at 0x1badef0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1badefd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1badf0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1badef5
lea eax, [rcx + 1]
jmp 0x1badf1b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1badf2e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1badf14
sub eax, 3
jb 0x1badf4e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1badf9d
sar eax, 1
movsxd rbp, eax
jb 0x1badf84
jmp 0x1badf5c
add ebx, ebx
jne 0x1badf5a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1badf84
inc ecx
add ebx, ebx
jne 0x1badf6a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1badf84
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1badf7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1badf6c
add ecx, 2
jmp 0x1badf89
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.01badeb2
jmp 0x1badefd
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1797000]
mov eax, dword [rdi]
or eax, eax
je 0x1badff9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x17ae000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1badfa9
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1badff3
mov qword [rbx], rax
add rbx, 8
jmp 0x1badfc9
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1bae03d
cmp al, 0xef
ja 0x1bae025
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1bae005
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1bae014
mov eax, dword [rdi]
add rdi, 4
jmp 0x1bae014
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1bae091
sub rsp, 0xffffffffffffff80
jmp 0x465b20
Function at 0x1400017c0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
xor eax, eax
test rcx, rcx
je 0x140001863
mov r9, rdx
test rdx, rdx
je 0x140001863
cmp word [rcx], 0x5a4d
jne 0x140001869
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140001869
push rbp
xor r8d, r8d
push rdi
push rsi
push rbx
mov edx, dword [rdx + 0x88]
add rdx, rcx
mov ebp, dword [rdx + 0x20]
mov edi, dword [rdx + 0x18]
movzx eax, r8w
cmp eax, edi
jae 0x14000185f
movzx eax, r8w
lea r10, [rcx + rax*4]
mov r11d, dword [r10 + rbp]
xor r10d, r10d
add r11, rcx
mov sil, byte [r11 + r10]
mov bl, byte [r9 + r10]
test sil, sil
je 0x140001838
inc r10
cmp bl, sil
je 0x140001821
jmp 0x14000185a
test bl, bl
jne 0x14000185a
mov r8d, dword [rdx + 0x24]
add rax, rax
add rax, rcx
movzx r8d, word [rax + r8]
mov eax, dword [rdx + 0x1c]
lea rdx, [rcx + r8*4]
mov eax, dword [rdx + rax]
add rax, rcx
jmp 0x140001864
inc r8d
jmp 0x140001807
xor eax, eax
jmp 0x140001864
ret
pop rbx
pop rsi
pop rdi
pop rbp
ret
ret

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

Disassembly:
push r12
mov r10, rcx
xor eax, eax
mov ecx, 0x400
push rbp
xor r9d, r9d
mov edx, 0x80000000
push rdi
push rsi
push rbx
sub rsp, 0x1050
lea rdi, [rsp + 0x50]
rep stosd dword [rdi], eax
mov rax, qword [0x1400048e0]
mov dword [rsp + 0x28], pe_nt_image_headers64
mov rcx, r10
mov dword [rsp + 0x20], 3
and qword [rsp + 0x30], 0
push 1
pop r8
call qword [rax]
xchg rsi, rax
cmp rsi, 0xffffffffffffffff
je 0x140001d2f
lea rdi, [rsp + 0x50]
push 0xffffffffffffffff
pop rbx
lea r12, [0x140004b00]
lea rbp, [rsp + 0x4c]
mov rax, qword [0x140004a80]
mov r9, rbp
mov rdx, rdi
mov rcx, rsi
and qword [rsp + 0x20], 0
mov r8d, 0x1000
call qword [rax]
test eax, eax
jne 0x140001d0b
mov rax, qword [0x1400048d0]
mov rcx, rsi
call qword [rax]
xchg ebx, eax
not eax
jmp 0x140001d32
mov eax, dword [rsp + 0x4c]
test eax, eax
je 0x140001cfa
xor edx, edx
mov ecx, ebx
xor bl, byte [rdi + rdx]
inc rdx
movzx ebx, bl
shr ecx, 8
xor ecx, dword [r12 + rbx*4]
mov ebx, ecx
cmp edx, eax
jb 0x140001d15
jmp 0x140001cd8
push 0xffffffffffffffff
pop rax
add rsp, 0x1050
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret