joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b9a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x14037ede0]
cmp byte [rbx + 0x3230], 0
jne 0x14001bae2
cmp dword [rbx + 0x3258], 0
je 0x14001b9ea
mov r8d, 0x2b0c
lea rdx, str.D:_vsCS2menus_staffimguiimgui.cpp
lea rcx, str.g.SettingsWindows.empty__
call fcn.140055ab4
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001badb
lea rdx, [0x1402d4bb8]
call fcn.140005110
mov rdi, rax
test rax, rax
je 0x14001badb
mov rcx, rax
call fcn.1400560e0
mov ebp, eax
cmp eax, 0xffffffff
je 0x14001bad3
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.140056b3c
test eax, eax
jne 0x14001bad3
mov rcx, rdi
call fcn.1400560e0
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x14001bad3
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call fcn.140056b3c
test eax, eax
jne 0x14001bad3
cmp rsi, 0xffffffffffffffff
je 0x14001bad3
mov rax, qword [0x14037ede0]
test rax, rax
je 0x14001ba75
inc dword [rax + 0x3b0]
mov rcx, rsi
call fcn.140061f20
mov rbp, rax
test rax, rax
je 0x14001bad3
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rax
call fcn.14005c8bc
mov rcx, rdi
cmp rax, rsi
je 0x14001baa7
call fcn.140056834
jmp 0x14001bab7
call fcn.140056834
mov rdx, rsi
mov rcx, rbp
call fcn.14001bdf0
mov rax, qword [0x14037ede0]
test rax, rax
je 0x14001bac9
dec dword [rax + 0x3b0]
mov rcx, rbp
call fcn.14005c648
jmp 0x14001badb
mov rcx, rdi
call fcn.140056834
mov byte [rbx + 0x3230], 1
movss xmm0, dword [rbx + 0x3234]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14001bb6f
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x3234], xmm0
jb 0x14001bb6f
mov rdi, qword [rbx + 0x20]
xor ebp, ebp
test rdi, rdi
je 0x14001bb62
mov rax, qword [0x14037ede0]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x3234], ebp
call fcn.14001c2d0
lea rdx, [0x1402d4bbc]
mov rcx, rdi
mov rsi, rax
call fcn.140005110
mov rdi, rax
test rax, rax
je 0x14001bb69
mov r8, qword [rsp + 0x30]
lea edx, [rbp + 1]
mov r9, rax
mov rcx, rsi
call fcn.140057570
mov rcx, rdi
call fcn.140056834
jmp 0x14001bb69
mov byte [rbx + 0x398], 1
mov dword [rbx + 0x3234], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001bd70
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov r10d, 0xffffffff
mov ecx, r10d
movzx r9d, byte [rbx]
lea r8, [rbx + 1]
test r9b, r9b
je 0x14001bdc6
lea r11, [0x1402cc780]
cmp r9b, 0x23
jne 0x14001bda9
cmp byte [r8], r9b
jne 0x14001bda9
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14001bd96
not ecx
call fcn.14001bc80
test rax, rax
jne 0x14001bddf
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14001bb90
add rsp, 0x20
pop rbx
ret
Function at 0x140020660
Capabilities:
Hash data with crc32

Disassembly:
test r8d, r8d
jle 0x14002089e
mov r11, rsp
push rbp
push rsi
sub rsp, 0x58
mov rax, qword [0x1402e4040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [r11 - 0x18], rdi
mov rbp, rcx
mov qword [r11 - 0x20], r14
lea rdi, [rdx + 0x1a]
mov qword [r11 - 0x28], r15
mov r14d, 0xffffffff
lea r15, [0x1402cc780]
mov qword [r11 + 0x18], rbx
movsxd rsi, r8d
nop dword [rax + rax]
mov edx, dword [rdi - 0x1a]
test edx, edx
je 0x140020866
mov rcx, rbp
call fcn.14001f940
mov r9d, dword [rdi - 0x16]
mov rbx, rax
test r9d, r9d
je 0x140020731
movsxd rdx, dword [rbp + 0x31f8]
mov r8, qword [rbp + 0x3200]
mov r10, rdx
shl r10, 4
add r10, r8
test rdx, rdx
je 0x140020721
nop dword [rax]
mov rcx, rdx
shr rcx, 1
mov rax, rcx
add rax, rax
cmp dword [r8 + rax*8], r9d
jae 0x140020719
lea r8, [r8 + rax*8]
mov rax, 0xffffffffffffffff
sub rax, rcx
add r8, 0x10
add rdx, rax
jmp 0x14002071c
mov rdx, rcx
test rdx, rdx
jne 0x1400206f0
cmp r8, r10
je 0x140020731
cmp dword [r8], r9d
jne 0x140020731
mov rcx, qword [r8 + 8]
jmp 0x140020733
xor ecx, ecx
mov qword [rbx + 0x10], rcx
movsx eax, word [rdi - 2]
movd xmm1, eax
movsx eax, word [rdi]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x40], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x44], xmm0
movsx eax, word [rdi + 2]
movd xmm1, eax
movsx eax, word [rdi + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x48], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x4c], xmm0
movsx eax, word [rdi + 6]
movd xmm1, eax
movsx eax, word [rdi + 8]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, dword [rbx + 0xb8]
and eax, 0xfffffe49
movss dword [rbx + 0x50], xmm1
or eax, 0x49
mov dword [rbx + 0xb8], eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x54], xmm0
test rcx, rcx
je 0x1400207c7
cmp qword [rcx + 0x18], 0
jne 0x1400207bc
mov qword [rcx + 0x18], rbx
jmp 0x1400207c7
cmp qword [rcx + 0x20], 0
jne 0x1400207c7
mov qword [rcx + 0x20], rbx
mov eax, dword [rdi - 0xe]
mov r9, rbx
mov dword [rbx + 0xb0], eax
movsx eax, byte [rdi - 0xa]
mov dword [rbx + 0x58], eax
mov eax, dword [rdi - 6]
and eax, 0x61fc20
or dword [rbx + 8], eax
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1400207fc
nop
mov r9, rax
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400207f0
mov r9d, dword [r9]
lea r8, str.DockNode__02X
mov edx, 0x14
lea rcx, [rsp + 0x20]
call fcn.140004fe0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov ecx, r14d
test r9b, r9b
je 0x140020858
cmp r9b, 0x23
jne 0x14002083b
cmp byte [r8], r9b
jne 0x14002083b
cmp byte [r8 + 1], r9b
cmove ecx, r14d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r15 + rdx*4]
test r9b, r9b
jne 0x140020828
not ecx
call fcn.14000d850
mov qword [rbx + 0x80], rax
add rdi, 0x24
sub rsi, 1
jne 0x1400206b0
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14004dc50
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x140049d90
Capabilities:
Hash data with crc32

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
test r8, r8
je 0x140049e41
test dword [rcx + 0x10], 0x100000
jne 0x140049dc4
mov r8d, 0x1d17
lea rdx, str.D:_vsCS2menus_staffimguiimgui_widgets.cpp
lea rcx, str.tab_bar__Flags__ImGuiTabBarFlags_DockNode
call fcn.140055ab4
movzx r9d, byte [rsi]
lea r8, [rsi + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x140049e11
lea r11, [0x1402cc780]
cmp r9b, 0x23
jne 0x140049df4
cmp byte [r8], r9b
jne 0x140049df4
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140049de1
mov rcx, qword [0x14037ede0]
not eax
cmp dword [rcx + 0x1d6c], eax
jne 0x140049e28
mov dword [rcx + 0x1d70], eax
cmp dword [rcx + 0x1da8], eax
jne 0x140049ec6
mov byte [rcx + 0x1dac], 1
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x14037ede0]
mov qword [rsp + 0x38], rdi
mov rdi, qword [rbx + 0x1d18]
cmp dword [rdi + 0x108], 0
jg 0x140049e82
mov r8d, 0x6d2
lea rdx, str.D:_vsCS2menus_staffimguiimgui.h
lea rcx, str.Size___0
call fcn.140055ab4
mov rbx, qword [0x14037ede0]
movsxd rax, dword [rdi + 0x108]
xor edx, edx
mov r8, qword [rdi + 0x110]
mov rcx, rsi
mov r8d, dword [r8 + rax*4 - 4]
call fcn.140005060
mov rdi, qword [rsp + 0x38]
cmp dword [rbx + 0x1d6c], eax
jne 0x140049eb2
mov dword [rbx + 0x1d70], eax
cmp dword [rbx + 0x1da8], eax
jne 0x140049ec1
mov byte [rbx + 0x1dac], 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rsi
ret
Function at 0x14004eafc
Capabilities:
Parse pe header

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

Function at 0x140054bf8
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 0x140054a63
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140054a63
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140054a63
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140054a63
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140054a63
cmp dword [rcx + 0x84], 0xe
jbe 0x140054a63
cmp dword [rcx + 0xf8], 0
je 0x140054a63
mov ecx, ebx
call fcn.140054b14
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.1400548f0
nop
cmp dword [rbp + 0x20], 0
je 0x140054ab1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140054abc
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400549f4
Function at 0x140055efc
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.140071ea0
sub rsp, rax
mov rax, qword [0x1402e4040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140065498
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140055f4b
mov rax, rbp
jmp 0x140056053
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x37e770]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140065728
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x37e770]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14005604f
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 0x14005604f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140065728
test rax, rax
js 0x14005604f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14005604f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140056041
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140056041
cmp byte [rcx], 0xd
jne 0x140056027
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140056036
cmp byte [rcx + 1], 0xa
jne 0x140056036
inc rcx
jmp 0x140056036
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2e4350]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140056009
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140056053
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14004dc50
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 0x140062060
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 0x140062097
call fcn.140063c78
mov dword [rax], 0x16
call fcn.140055298
xor eax, eax
jmp 0x140062125
mov rdx, r9
mov rcx, r8
call fcn.140061ffc
mov rbx, rax
test rax, rax
je 0x140062122
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140061f28]
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 0x14006210f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140063bec
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400620f6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140062105
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140066884
jmp 0x140062122
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14006211f
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 0x1400657d4
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, [0x14037e770]
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 0x14006582b
cmp word [rdx], r13w
jne 0x14006582b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140065830
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140065955
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140065976
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140065869
mov rdx, r9
mov word [rbx], cx
jmp 0x140065890
cmp r9, r8
jae 0x1400658a0
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 0x14006584a
jmp 0x140065955
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 0x14006594a
cmp dword [rsp + 0x80], esi
je 0x14006594a
lea r8, [0x14037e770]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140065922
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400658f2
mov word [rbx], r13w
jmp 0x140065952
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 0x1400658ff
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140065952
cmp word [rsp + 0x70], r13w
jne 0x14006592f
cmp rbx, r14
je 0x1400658ec
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140065730
cmp word [rsp + 0x70], r13w
je 0x140065955
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, [0x14037e770]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14006594f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140065955
Function at 0x14006870c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140068722
mov al, 1
jmp 0x140068782
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140068733
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140068780
mov ecx, dword [rcx + 0x18]
nop
call fcn.14006c9d0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140068780
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140068780
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140068780
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140068782
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14006bd80
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 0x14006bdb0
xor eax, eax
jmp 0x14006be73
mov rbp, rbx
cmp word [rax], si
je 0x14006bdd5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14006bdbc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14006bdb8
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.14006bca0
movsxd r14, eax
test eax, eax
jne 0x14006be13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14006bda9
mov rcx, r14
call fcn.140068e14
mov rdi, rax
test rax, rax
jne 0x14006be2c
xor ecx, ecx
call fcn.140066884
jmp 0x14006be08
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.14006bca0
test eax, eax
jne 0x14006be5d
mov rcx, rdi
call fcn.140066884
jmp 0x14006be67
xor ecx, ecx
call fcn.140066884
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 0x14006be90
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14006bf17
mov rsi, rbx
cmp word [rax], bp
je 0x14006bed6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14006bec0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14006bebc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140068e14
mov rdi, rax
test rax, rax
je 0x14006bf04
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400737d0
mov rbp, rdi
xor ecx, ecx
call fcn.140066884
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400706ac
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.140065730
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140065730
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400707fc
cmp rax, 0xffffffffffffffff
je 0x1400707fc
xor edi, edi
test rbp, rbp
jle 0x1400707a7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14006680c
mov rbx, rax
test rax, rax
jne 0x140070734
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14007079d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400634b4
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.140067e0c
cmp eax, 0xffffffff
je 0x14007077d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140070744
mov edx, r15d
mov ecx, r14d
call fcn.1400634b4
jmp 0x14007079d
cmp byte [rsi + 0x38], dil
je 0x140070794
cmp dword [rsi + 0x34], 5
jne 0x140070794
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14007079d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140066884
jmp 0x140070810
jns 0x140070810
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140065730
cmp rax, 0xffffffffffffffff
jne 0x1400707c8
cmp byte [rsi + 0x30], dil
je 0x140070810
mov edi, dword [rsi + 0x2c]
jmp 0x140070810
mov ecx, r14d
call fcn.14006c9d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140070810
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 0x140070810
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140070809
mov eax, dword [rsi + 0x2c]
jmp 0x14007080e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140065730
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 0x140071dd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140071df8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140071df8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400021f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004360]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002210
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002218
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002210
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000226d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002264
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002210
add rax, 0x28
cmp rax, r9
jne 0x140002250
xor eax, eax
ret

Function at 0x140002270
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004360]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000228f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002298
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000228f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002330
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004360]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000234f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002358
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002690
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push rbx
sub rsp, 0x40
call fcn.140001500
mov r9d, 4
xor ecx, ecx
mov edx, dword [0x140003260]
mov r8d, 0x3000
mov dword [rsp + 0x3c], 0
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [0x140003260]
lea rdx, [0x140003080]
mov rbx, rax
mov rcx, rax
call sub.msvcrt.dll_memmove
mov edx, dword [0x140003260]
lea r9, [rsp + 0x3c]
mov rcx, rbx
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400026fb
xor eax, eax
add rsp, 0x40
pop rbx
ret
xor eax, eax
xor edx, edx
xor ecx, ecx
xor r9d, r9d
mov dword [rsp + 0x20], edx
mov r8, rbx
xor edx, edx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x1400026f3