joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b180
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14000b210
cmp r11, r10
ja 0x14000b286
cmp r10, rdx
ja 0x14000b298
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14000b212
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14000b1f0
jmp 0x14000b274
ja 0x14000b21a
mov r11, r10
cmp rax, r8
jne 0x14000b1b4
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14000b250
mov rdi, r8
sub ecx, edx
jns 0x14000b26b
jmp 0x14000b276
cmp r8, rsi
je 0x14000b2a7
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14000b276
xor al, 1
cmp rdi, rsi
jne 0x14000b230
jmp 0x14000b276
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140044f70
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140044cf0
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srcio_borrowed_buf.rs_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rs
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140044d70
int3
Function at 0x14000ca20
Capabilities:
Manipulate console buffer

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov esi, edx
mov edi, ecx
call fcn.14000d480
test rax, rax
je 0x14000ca59
mov rsi, rdx
mov rax, rsi
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret
mov word [rbp + 0x26], di
mov word [rbp + 0x24], si
test di, di
mov qword [rbp + 0x18], rdx
js 0x14000ca9f
test si, si
js 0x14000caf7
mov rcx, qword [rdx + 0x10]
shl esi, 0x10
movzx edx, di
or edx, esi
call sub.KERNEL32.dll_SetConsoleCursorPosition
test eax, eax
je 0x14000cb68
mov rcx, qword [rbp + 0x18]
lock dec qword [rcx]
jne 0x14000ca9b
call fcn.14000c100
xor esi, esi
jmp 0x14000ca4b
lea rax, [rbp + 0x26]
mov qword [rbp + 8], rax
lea rax, [0x14000bc20]
mov qword [rbp + 0x10], rax
lea rax, str.Argument_Out_of_Range_Exception_when_setting_cursor_position_to_X:
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], 1
mov qword [rbp - 8], 0
lea rax, [rbp + 8]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], 1
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x28]
call fcn.1400078a0
lea rdx, [rbp - 0x40]
mov cl, 0x27
call fcn.14000c5c0
jmp 0x14000cb4d
lea rax, [rbp + 0x24]
mov qword [rbp + 8], rax
lea rax, [0x14000bc20]
mov qword [rbp + 0x10], rax
lea rax, [0x1400a2ca0]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], 1
mov qword [rbp - 8], 0
lea rax, [rbp + 8]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], 1
lea rcx, [rbp - 0x58]
lea rdx, [rbp - 0x28]
call fcn.1400078a0
lea rdx, [rbp - 0x58]
mov cl, 0x27
call fcn.14000c5c0
mov rsi, rax
mov rcx, qword [rbp + 0x18]
lock dec qword [rcx]
jne 0x14000ca4b
call fcn.14000c100
jmp 0x14000ca4b
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rsi
call rsi
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, qword [rbp + 0x18]
lock dec qword [rcx]
jne 0x14000ca4b
jmp 0x14000cb5e

Function at 0x140010c20
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140010c55
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140010c5a
call fcn.1400302d0
mov ecx, dword [0x1400b9d34]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov qword [rcx + 0xa0], 1
mov qword [rcx + 0xa8], rax
mov qword [rcx + 0xb0], rdx
add rsp, 0x38
ret
Function at 0x140011890
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x1400118d2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x1400118da
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x1400118eb
jmp 0x140011902
xor r10d, r10d
jmp 0x14001198d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140011902
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140011919
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140011939
add r11, r8
jmp 0x140011a6a
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140011a02
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x1400119b0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x140011a20
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x140011a32
jmp 0x140011a4c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x140011a4c
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x140011a66
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x140015f00
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140008610
cmp rax, rcx
je 0x140015f25
cmp rdx, 4
jae 0x140015f28
xor eax, eax
xor r8d, r8d
jmp 0x140015fc0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400495b0]
movdqa xmm3, xmmword [0x1400495c0]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140015f50
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140015fd7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140015fc0
ret

Function at 0x14001b060
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1400a6ae8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14001b0d3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14001b10a
test eax, eax
js 0x14001b0e4
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14001b0fd
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14001a320
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140019910
mov ecx, 7
int 0x29
ud2
Function at 0x14002d0a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
Function at 0x1400302d0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x140030313
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140020950]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str._bp_n_
lea rcx, [rbp - 0x60]
call fcn.140044bb0
ud2

Function at 0x1400322d0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140032423
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x140032307
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1400323e8
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140032406
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140032369
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x14003239b
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x14003239f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x3e5
je 0x1400323a3
cmp eax, 0x6d
jne 0x1400323ce
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
jmp 0x1400323a8
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1400323d4
lea rax, [rsp + 0x30]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.1400012b0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x1400323de
cmp rax, 1
je 0x140032352
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x14003235c
mov r8d, 0x10
mov rcx, rbx
call fcn.140047ae0
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x140032314
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140047ae0
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x140032314
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140047cd0
int3

Function at 0x140036a5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140036aa6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140036aa6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140036aa6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140036aa6
cmp dword [rcx + 0x84], 0xe
jbe 0x140036aa6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140036aa8
xor al, al
add rsp, 0x28
ret
Function at 0x14003a120
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 0x14003a18f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003a18f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003a18f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003a18f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003a18f
cmp dword [rcx + 0x84], 0xe
jbe 0x14003a18f
cmp dword [rcx + 0xf8], 0
je 0x14003a18f
mov ecx, ebx
call fcn.14003a240
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.14003a01c
nop
cmp dword [rbp + 0x20], 0
je 0x14003a1dd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003a1e8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14003a120

Function at 0x14003a324
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003a120
Function at 0x14003d3ec
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 0x14003d41c
xor eax, eax
jmp 0x14003d4df
mov rbp, rbx
cmp word [rax], si
je 0x14003d441
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14003d428
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14003d424
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.14003d30c
movsxd r14, eax
test eax, eax
jne 0x14003d47f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14003d415
mov rcx, r14
call fcn.14003e2c8
mov rdi, rax
test rax, rax
jne 0x14003d498
xor ecx, ecx
call fcn.14003b96c
jmp 0x14003d474
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.14003d30c
test eax, eax
jne 0x14003d4c9
mov rcx, rdi
call fcn.14003b96c
jmp 0x14003d4d3
xor ecx, ecx
call fcn.14003b96c
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 0x1400409d0
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.14003c3dc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140040a5a
cmp byte [rbp - 0x21], r15b
je 0x140040a55
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140040a90
call fcn.14003ead8
test eax, eax
jne 0x140040a7c
cmp byte [rbp - 0x21], r15b
je 0x140040a74
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140040a90
cmp byte [rbp - 0x21], r15b
je 0x140040a8d
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.14003b9bc
test eax, eax
jne 0x140040b30
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003c3dc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140040acf
cmp byte [rbp - 0x21], r15b
je 0x140040b04
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140040b04
call fcn.14003ead8
test eax, eax
jne 0x140040af0
cmp byte [rbp - 0x21], r15b
je 0x140040ae9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140040b04
cmp byte [rbp - 0x21], r15b
je 0x140040b01
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.14003b9bc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140040b30
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140040b33
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140040b41
mov rcx, rdi
call fcn.14003b96c
cmp byte [rbp + 0x3f], r15b
je 0x140040b50
mov rcx, qword [rbp + 0x27]
call fcn.14003b96c
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 0x140043a30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140043a58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140043a58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140045fe0
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x140046055
mov rdi, rax
lea rdx, str.WaitOnAddress
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140046055
mov rsi, rax
lea rdx, str.WakeByAddressSingle
mov rcx, rdi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140046055
mov rdi, rax
xor ebx, ebx
movzx eax, byte [0x1400b9d30]
mov rcx, qword [0x1400b9ca0]
test rcx, rcx
jne 0x140046103
jmp 0x1400460ee
lea rcx, [0x1400a3370]
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x14004616e
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x14004616e
mov rdi, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x14004616e
mov rbx, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x14004616e
mov rsi, rax
lea rcx, [rbp - 0x18]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rdi
test eax, eax
jne 0x14004616e
mov rdi, qword [rbp - 0x18]
movzx eax, byte [0x1400b9d30]
mov rcx, qword [0x1400b9ca0]
test rcx, rcx
jne 0x140046103
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x140046173
mov rcx, rax
mov qword [0x1400b9ca0], rax
mov r8d, 0x18
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140046173
mov rcx, rax
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
xor eax, eax
lock cmpxchg qword [0x1400b9bb8], rcx
je 0x140046162
mov rsi, rax
cmp qword [rcx], 0
mov qword [rbp - 8], rcx
je 0x14004614c
mov rax, qword [rbp - 8]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400b9ca0]
xor edx, edx
mov r8, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
mov rax, rcx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop rbp
ret
call fcn.1400461f0
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rbx
mov ecx, 8
mov edx, 0x18
call fcn.140044ae0
ud2
Function at 0x14000164c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x14000d028]
xor rax, rsp
mov qword [rbp + 0x20], rax
lea rcx, [rsp + 0x54]
xor ebx, ebx
xor edx, edx
mov r8d, 0xa8
mov dword [rsp + 0x50], ebx
call fcn.1400052e0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp dword [rsp + 0x50], 0xfffffe20
je 0x1400016b8
xor eax, eax
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140001a50
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rbp
ret
lea rcx, [rbp + 0x10]
mov dword [rbp + 0x10], 0x2e646c6c
mov dword [rbp + 0x14], 0x68747470
mov dword [rbp + 0x18], 0x57696e
call fcn.14000104c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [rsp + 0x38]
mov rdx, rax
call fcn.14000109c
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x28], xmm0
cmp qword [rsp + 0x28], rbx
je 0x140001788
lea rcx, [rbp]
mov dword [rbp], 0x2e646c6c
mov dword [rbp + 4], 0x68656c70
mov dword [rbp + 8], 0x646267
call fcn.14000104c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdx, qword [rsp + 0x30]
lea r9, [rsp + 0x20]
test rax, rax
je 0x14000176d
lea rbx, [rax + 0x1000]
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rcx, rbx
call fcn.140001c30
mov rcx, qword [rsp + 0x28]
call fcn.140001f6c
mov rcx, rbx
jmp 0x140001783
mov rcx, qword [rsp + 0x28]
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, 0x1000
call fcn.1400022bc
xor ecx, ecx
call fcn.140002634
int3

Function at 0x140002634
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400024a4
Function at 0x1400028eb
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000d028]
jne 0x140001a6a
rol rcx, 0x10
test cx, 0xffff
jne 0x140001a66
repz ret
ror rcx, 0x10
jmp 0x140002844
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000e110]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14000e208]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400028c9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14000e110]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400028eb
mov rax, qword [rsp + 0x88]
mov qword [0x14000e208], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000e1a8], rax
mov rax, qword [0x14000e208]
mov qword [0x14000e080], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000e190], rax
mov dword [0x14000e070], 0xc0000409
mov dword [0x14000e074], 1
mov rax, qword [0x14000d028]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000d030]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14000e108], eax
mov ecx, 1
call fcn.140004b40
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140009300]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14000e108], 0
jne 0x140002972
mov ecx, 1
call fcn.140004b40
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret