joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001bf38
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, [0x1400459d0]
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 0x14001bf8f
cmp word [rdx], r13w
jne 0x14001bf8f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001bf94
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001c0b9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001c0da
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001bfcd
mov rdx, r9
mov word [rbx], cx
jmp 0x14001bff4
cmp r9, r8
jae 0x14001c004
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 0x14001bfae
jmp 0x14001c0b9
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 0x14001c0ae
cmp dword [rsp + 0x80], esi
je 0x14001c0ae
lea r8, [0x1400459d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001c086
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001c056
mov word [rbx], r13w
jmp 0x14001c0b6
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 0x14001c063
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001c0b6
cmp word [rsp + 0x70], r13w
jne 0x14001c093
cmp rbx, r14
je 0x14001c050
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001cd08
cmp word [rsp + 0x70], r13w
je 0x14001c0b9
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, [0x1400459d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001c0b3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001c0b9
Function at 0x14001deec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001df02
mov al, 1
jmp 0x14001df62
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001df13
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001df60
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400190e8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001df60
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001df60
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001df60
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001df62
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14002144c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14003f030]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140021496
call fcn.14001bef8
mov dword [rax], 0xf
call fcn.14001bf18
mov dword [rax], 0xd
call fcn.14001b2b4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000aba0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400214a1
lea eax, [rbx + 1]
jmp 0x140021483
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140021481
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140021483
Function at 0x14002363c
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 0x14002366c
xor eax, eax
jmp 0x14002372f
mov rbp, rbx
cmp word [rax], si
je 0x140023691
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140023678
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140023674
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.1400214f8
movsxd r14, eax
test eax, eax
jne 0x1400236cf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140023665
mov rcx, r14
call fcn.14001e254
mov rdi, rax
test rax, rax
jne 0x1400236e8
xor ecx, ecx
call fcn.14001aef4
jmp 0x1400236c4
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.1400214f8
test eax, eax
jne 0x140023719
mov rcx, rdi
call fcn.14001aef4
jmp 0x140023723
xor ecx, ecx
call fcn.14001aef4
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 0x14002374c
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 0x1400237d3
mov rsi, rbx
cmp word [rax], bp
je 0x140023792
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002377c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140023778
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001e254
mov rdi, rax
test rax, rax
je 0x1400237c0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000b960
mov rbp, rdi
xor ecx, ecx
call fcn.14001aef4
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 0x140027f54
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140015868
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140027fde
cmp byte [rbp - 0x21], r15b
je 0x140027fd9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140028014
call fcn.14001fc20
test eax, eax
jne 0x140028000
cmp byte [rbp - 0x21], r15b
je 0x140027ff8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140028014
cmp byte [rbp - 0x21], r15b
je 0x140028011
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140015ef8
test eax, eax
jne 0x1400280b4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140015868
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140028053
cmp byte [rbp - 0x21], r15b
je 0x140028088
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140028088
call fcn.14001fc20
test eax, eax
jne 0x140028074
cmp byte [rbp - 0x21], r15b
je 0x14002806d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140028088
cmp byte [rbp - 0x21], r15b
je 0x140028085
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140015ef8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400280b4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400280b7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400280c5
mov rcx, rdi
call fcn.14001aef4
cmp byte [rbp + 0x3f], r15b
je 0x1400280d4
mov rcx, qword [rbp + 0x27]
call fcn.14001aef4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140029684
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.14001cd08
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001cd08
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400297d4
cmp rax, 0xffffffffffffffff
je 0x1400297d4
xor edi, edi
test rbp, rbp
jle 0x14002977f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f994
mov rbx, rax
test rax, rax
jne 0x14002970c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029775
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a5b8
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.14001d9f0
cmp eax, 0xffffffff
je 0x140029755
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002971c
mov edx, r15d
mov ecx, r14d
call fcn.14001a5b8
jmp 0x140029775
cmp byte [rsi + 0x38], dil
je 0x14002976c
cmp dword [rsi + 0x34], 5
jne 0x14002976c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029775
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001aef4
jmp 0x1400297e8
jns 0x1400297e8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001cd08
cmp rax, 0xffffffffffffffff
jne 0x1400297a0
cmp byte [rsi + 0x30], dil
je 0x1400297e8
mov edi, dword [rsi + 0x2c]
jmp 0x1400297e8
mov ecx, r14d
call fcn.1400190e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400297e8
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 0x1400297e8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400297e1
mov eax, dword [rsi + 0x2c]
jmp 0x1400297e6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001cd08
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 0x14001116d
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
jmp 0x140011820
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a8]
mov rax, qword [0x14001e028]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x1400240a2]
call fcn.1400113a2
mov dword [rbp + 4], 0
mov eax, dword [rbp + 0x190]
mov dword [rbp + 0x28], eax
mov eax, dword [rbp + 0x190]
mov dword [rbp + 0x2c], eax
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x30], rax
mov eax, dword [rbp + 0x198]
mov dword [rbp + 0x58], eax
mov eax, dword [rbp + 0x198]
mov dword [rbp + 0x5c], eax
mov rax, qword [rbp + 0x188]
mov qword [rbp + 0x60], rax
lea rcx, str.Advapi32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.SystemFunction032
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x88], rax
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x58]
call qword [rbp + 0x88]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140011907
mov edx, dword [rbp + 4]
lea rcx, str.____SystemFunction032_FAILED_With_Error_:_0x_0.8X_n
call fcn.1400111a4
xor eax, eax
jmp 0x14001190c
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001acc0]
call fcn.140011334
mov rax, rdi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.1400111c2
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x1400111ae
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140011990
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1b8]
mov rax, qword [0x14001e028]
xor rax, rbp
mov qword [rbp + 0x140], rax
lea rcx, [0x1400240a2]
call fcn.1400113a2
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0
lea rax, [rbp + 0x44]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, str.MalDevAcademy
lea rdx, str.Control_Panel
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
je 0x140011a4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Unable_to_read_registry_key__1st_round_._RegGetValueA_failed_with_error__d_n
call fcn.1400111a4
xor eax, eax
jmp 0x140011b18
mov eax, dword [rbp + 0x44]
mov qword [rbp + 0x138], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0x138]
mov r8, rcx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 8], rax
mov eax, dword [rbp + 0x44]
mov qword [rbp + 0x28], rax
lea rax, [rbp + 0x44]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, str.MalDevAcademy
lea rdx, str.Control_Panel
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
je 0x140011ade
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Unable_to_read_registry_key__2nd_round_._RegGetValueA_failed_with_error__d_n
call fcn.1400111a4
xor eax, eax
jmp 0x140011b18
mov eax, dword [rbp + 0x44]
cmp rax, qword [rbp + 0x28]
je 0x140011af7
lea rcx, str.____Error_reading_data_from_registry_key___size_mismatch
call fcn.1400111a4
xor eax, eax
jmp 0x140011b18
mov rax, qword [rbp + 0x170]
mov rcx, qword [rbp + 8]
mov qword [rax], rcx
mov rax, qword [rbp + 0x178]
mov rcx, qword [rbp + 0x28]
mov qword [rax], rcx
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001ad40]
call fcn.140011334
mov rax, rdi
mov rcx, qword [rbp + 0x140]
xor rcx, rbp
call fcn.1400111c2
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret

Function at 0x140011208
Capabilities:
Terminate process

Disassembly:
jmp 0x140013560
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x14001123a
Capabilities:
Create thread

Disassembly:
jmp 0x140011bc0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x178]
mov rax, qword [0x14001e028]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x1400240a2]
call fcn.1400113a2
mov dword [rbp + 4], 0
mov r9d, 4
mov r8d, 0x3000
mov rdx, qword [rbp + 0x148]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140011c56
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_to_allocate_memory_for_code._VirtualAlloc_failed_with_error__d_n
call fcn.1400111a4
xor eax, eax
jmp 0x140011d34
mov rdx, qword [rbp + 0x28]
lea rcx, str._i__Virtual_memory_allocated_at:__p_n
call fcn.1400111a4
mov r8, qword [rbp + 0x148]
mov rdx, qword [rbp + 0x140]
mov rcx, qword [rbp + 0x28]
call fcn.1400111c7
mov r8, qword [rbp + 0x148]
xor edx, edx
mov rcx, qword [rbp + 0x140]
call fcn.1400112e4
lea r9, [rbp + 4]
mov r8d, 0x10
mov rdx, qword [rbp + 0x148]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140011cc9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_to_set_memory_protection._VirtualProtect_failed_with_error__d_n
call fcn.1400111a4
xor eax, eax
jmp 0x140011d34
lea rcx, str.___Press__ENTER__to_run..._n
call fcn.1400111a4
call qword [sym.imp.ucrtbased.dll_getchar]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x48], rax
mov edx, 0x7d0
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp qword [rbp + 0x48], 0
jne 0x140011d2f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_to_create_thread_and_run_code._CreateThread_failed_with_error__d_n
call fcn.1400111a4
xor eax, eax
jmp 0x140011d34
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001adc0]
call fcn.140011334
mov rax, rdi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.1400111c2
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x140011299
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400148b0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400148d0
xor al, al
jmp 0x140014951
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400148e3
xor al, al
jmp 0x140014951
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001490d
xor al, al
jmp 0x140014951
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014921
xor al, al
jmp 0x140014951
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014933
xor al, al
jmp 0x140014951
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001494f
xor al, al
jmp 0x140014951
mov al, 1
add rsp, 0x38
ret
Function at 0x140001f38
Capabilities:
Parse pe header

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

Function at 0x140006460
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000625c
Function at 0x140008b7c
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 0x140008c03
mov rsi, rbx
cmp word [rax], bp
je 0x140008bc2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140008bac
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140008ba8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000755c
mov rdi, rax
test rax, rax
je 0x140008bf0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140004d00
mov rbp, rdi
xor ecx, ecx
call fcn.140007844
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 0x14000dc30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000dc58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000dc58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140021830
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140021864
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140021850
ret
Function at 0x14002e890
Capabilities:
Load windows common language runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
cmp qword [0x1400ddf90], 0
jne 0x14002e982
xor ebx, ebx
lea r8, [rsp + 0x48]
lea rdx, [0x1400c63c8]
mov qword [rsp + 0x48], rbx
lea rcx, [0x1400c63b8]
call qword [sym.imp.mscoree.dll_CLRCreateInstance]
lea rdi, [0x1400ddf90]
test eax, eax
js 0x14002e945
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
lea r8, [0x1400c63a8]
lea rdx, str.v4.0.30319
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, eax
test eax, eax
js 0x14002e936
mov rcx, qword [rsp + 0x40]
lea r8, [0x1400c6398]
mov r9, rdi
lea rdx, [0x1400c6388]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x14002e92b
mov rcx, qword [0x1400ddf90]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
jns 0x14002e982
cmp qword [0x1400ddf90], 0
jne 0x14002e982
lea r9, [0x1400c6398]
mov qword [rsp + 0x20], rdi
lea r8, [0x1400c6388]
xor edx, edx
lea rcx, str.v2.0.50727
call qword [sym.imp.mscoree.dll_CorBindToRuntime]
test eax, eax
js 0x14002e98f
mov rcx, qword [0x1400ddf90]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor r9d, r9d
lea r8, [0x1400c64a8]
lea rdx, [0x1400c64c0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rbx, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x14002fe90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [rsp + 0x30]
xor esi, esi
mov dword [rsp + 0x34], eax
mov rbx, rdx
mov dword [rsp + 0x30], esi
mov rdi, rcx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x34]
lea r8d, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x14002fedc
mov rdx, qword [rbx]
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x30]
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14002ff2a
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14002ff25
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002ff49
mov rcx, r8
call fcn.1400742a0
mov qword [rbx + 0x10], rsi
mov byte [rbx], sil
mov rsi, qword [rsp + 0x68]
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.14007abbc
int3

Function at 0x14002ff50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [rsp + 0x30]
xor esi, esi
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x30], esi
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x34]
add eax, eax
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 4]
mov dword [rsp + 0x34], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rbx + 0x10]
mov rdx, rbx
add r8d, r8d
cmp qword [rbx + 0x18], 8
jb 0x14002ffa5
mov rdx, qword [rbx]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14002fff4
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14002ffef
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140030013
mov rcx, r8
call fcn.1400742a0
mov qword [rbx + 0x10], rsi
mov word [rbx], si
mov rsi, qword [rsp + 0x68]
mov qword [rbx + 0x18], 7
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.14007abbc
int3