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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
test rdx, rdx
jle 0x402484
mov r12, qword [fcn.00421e00]
lea r14, [rcx + rdx*8]
mov rdi, rcx
lea r13, [0x004240f8]
lea rbp, [0x004240f9]
mov rbx, qword [rdi]
mov ecx, 1
call r12
mov rsi, rax
test rbx, rbx
je 0x402420
cmp qword [rbx], 0
lea r8, [rbx + 0x10]
mov rdx, rbp
mov rcx, rax
cmove r8, r13
call sub.msvcrt.dll_fprintf
mov r15d, eax
movsxd rax, r15d
cmp rax, qword [rbx]
jge 0x4023af
cmp byte [rbx + rax + 0x10], 0
jne 0x402400
xor ecx, ecx
mov rdx, rsi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x4023af
add r15d, 1
movsxd rax, r15d
cmp rax, qword [rbx]
jl 0x40238e
add rdi, 8
cmp rdi, r14
jne 0x402355
mov ecx, 1
call r12
mov r8d, 1
mov edx, 1
lea rcx, [0x004240fc]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call r12
mov rcx, rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_fflush
lea r8, [rbx + rax + 0x10]
mov rdx, rbp
mov rcx, rsi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x4023af
add r15d, eax
jmp 0x402386
mov r8, r13
mov rdx, rbp
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov ebx, eax
test ebx, ebx
jns 0x4023af
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
jne 0x402469
xor ecx, ecx
mov rdx, rsi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x4023af
add ebx, 1
test ebx, ebx
jns 0x4023af
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
je 0x402442
add r8, 0x10
mov rdx, rbp
mov rcx, rsi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x4023af
add ebx, eax
jmp 0x402430
mov r12, qword [fcn.00421e00]
jmp 0x4023b8

Function at 0x402510
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x40252f
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sub.msvcrt.dll_fflush

Function at 0x402740
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.00421e00]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop
ret
Function at 0x413750
Capabilities:
Parse credit card information

Disassembly:
cmp cx, 0x16
je 0x4139d4
jbe 0x4137b0
cmp cx, 0x25
je 0x413bc0
jbe 0x4138e0
cmp cx, 0x44
je 0x413bb0
ja 0x4138b3
cmp cx, 0x41
je 0x413ba0
jbe 0x413800
cmp cx, 0x42
je 0x413b90
cmp cx, 0x43
jne 0x413b80
lea rcx, [0x00427e40]
jmp fcn.0040b690
cmp cx, 0xa
je 0x413b70
ja 0x413873
cmp cx, 4
je 0x413b60
jbe 0x413840
cmp cx, 7
je 0x413b50
jbe 0x413820
cmp cx, 8
je 0x413b40
cmp cx, 9
jne 0x413b80
lea rcx, [0x004281c0]
jmp fcn.0040b690
cmp cx, 0x26
je 0x413b30
cmp cx, 0x40
jne 0x413b80
lea rcx, [0x00427ea0]
jmp fcn.0040b690
cmp cx, 5
je 0x413b20
cmp cx, 6
jne 0x413b80
lea rcx, [0x00428220]
jmp fcn.0040b690
cmp cx, 1
je 0x413b10
test cx, cx
je 0x413b00
cmp cx, 2
je 0x413af0
cmp cx, 3
jne 0x413b80
lea rcx, [0x00428280]
jmp fcn.0040b690
cmp cx, 0x10
je 0x413ae0
jbe 0x4139b0
cmp cx, 0x13
je 0x413ad0
jbe 0x413990
cmp cx, 0x14
je 0x413ac0
cmp cx, 0x15
jne 0x413b80
lea rcx, [0x00428060]
jmp fcn.0040b690
cmp cx, 0x47
je 0x413ab0
jbe 0x413920
cmp cx, 0x48
je 0x413aa0
cmp cx, 0xfff
jne 0x413b80
lea rcx, [0x00427d40]
jmp fcn.0040b690
cmp cx, 0x1b
je 0x413a90
jbe 0x413960
cmp cx, 0x1e
je 0x413a80
jbe 0x413940
cmp cx, 0x1f
je 0x413a70
cmp cx, 0x24
jne 0x413b80
lea rcx, [0x00427f00]
jmp fcn.0040b690
cmp cx, 0x45
je 0x413a60
cmp cx, 0x46
jne 0x413b80
lea rcx, [0x00427da0]
jmp fcn.0040b690
cmp cx, 0x1c
je 0x413a50
cmp cx, 0x1d
jne 0x413b80
lea rcx, [0x00427f60]
jmp fcn.0040b690
cmp cx, 0x18
je 0x413a40
jb 0x413a30
cmp cx, 0x19
je 0x413a20
cmp cx, 0x1a
jne 0x413b80
lea rcx, [0x00427fc0]
jmp fcn.0040b690
cmp cx, 0x11
je 0x413a10
cmp cx, 0x12
jne 0x413b80
lea rcx, [0x004280c0]
jmp fcn.0040b690
cmp cx, 0xc
je 0x413a00
jb 0x4139f0
cmp cx, 0xd
je 0x4139e0
cmp cx, 0xe
jne 0x413b80
lea rcx, [0x00428120]
jmp fcn.0040b690
lea rcx, [0x00428040]
jmp fcn.0040b690
lea rcx, [0x00428140]
jmp fcn.0040b690
lea rcx, [0x00428180]
jmp fcn.0040b690
lea rcx, [0x00428160]
jmp fcn.0040b690
lea rcx, [0x004280e0]
jmp fcn.0040b690
lea rcx, [0x00427fe0]
jmp fcn.0040b690
lea rcx, [0x00428020]
jmp fcn.0040b690
lea rcx, [0x00428000]
jmp fcn.0040b690
lea rcx, [0x00427f80]
jmp fcn.0040b690
lea rcx, [0x00427dc0]
jmp fcn.0040b690
lea rcx, [0x00427f20]
jmp fcn.0040b690
lea rcx, [0x00427f40]
jmp fcn.0040b690
lea rcx, [0x00427fa0]
jmp fcn.0040b690
lea rcx, [0x00427d60]
jmp fcn.0040b690
lea rcx, [0x00427d80]
jmp fcn.0040b690
lea rcx, [0x00428080]
jmp fcn.0040b690
lea rcx, [0x004280a0]
jmp fcn.0040b690
lea rcx, [0x00428100]
jmp fcn.0040b690
lea rcx, [0x004282a0]
jmp fcn.0040b690
lea rcx, [0x004282e0]
jmp fcn.0040b690
lea rcx, [0x004282c0]
jmp fcn.0040b690
lea rcx, [0x00428240]
jmp fcn.0040b690
lea rcx, [0x00427ec0]
jmp fcn.0040b690
lea rcx, [0x004281e0]
jmp fcn.0040b690
lea rcx, [0x00428200]
jmp fcn.0040b690
lea rcx, [0x00428260]
jmp fcn.0040b690
lea rcx, [0x004281a0]
jmp fcn.0040b690
lea rcx, [0x004283a0]
jmp fcn.0040b690
lea rcx, [0x00427e60]
jmp fcn.0040b690
lea rcx, [0x00427e80]
jmp fcn.0040b690
lea rcx, [0x00427e00]
jmp fcn.0040b690
lea rcx, [0x00427ee0]
jmp fcn.0040b690
Function at 0x418b60
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
test rcx, rcx
je 0x418bd5
cmp rcx, 0xffffffffffffffff
mov r8, qword [0x00466990]
mov r9, qword [0x00466998]
je 0x418be0
mov rax, 0xffffffffffffffff
xor edx, edx
div rcx
not rdx
mov r10, rdx
nop dword [rax]
lea rax, [r9 + r8]
mov rdx, r9
xor rdx, r8
ror r8, 9
mov r9, rdx
xor r8, rdx
ror rdx, 0x1c
shl r9, 0xe
xor r8, r9
cmp rax, r10
mov r9, rdx
ja 0x418b90
movq xmm1, rdx
movq xmm0, r8
add rcx, 1
punpcklqdq xmm0, xmm1
xor edx, edx
movups xmmword [0x00466990], xmm0
div rcx
mov rax, rdx
ret
mov rax, r8
mov rdx, r8
xor rax, r9
ror rdx, 9
mov rcx, rax
xor rdx, rax
ror rax, 0x1c
shl rcx, 0xe
mov qword [0x00466998], rax
xor rdx, rcx
mov qword [0x00466990], rdx
lea rdx, [r8 + r9]
mov rax, rdx
ret

Function at 0x418c30
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call fcn.0040b690
test rax, rax
je 0x418c7d
mov r9, qword [rax]
test r9, r9
jle 0x418c7d
mov rcx, rax
add r9, rbx
sub rcx, rbx
mov rdx, rbx
mov r8, rbx
sar rdx, 8
sar r8, 0x10
xor edx, ebx
xor edx, r8d
mov r8, rbx
sar r8, 0x18
xor edx, r8d
xor byte [rcx + rbx + 0x10], dl
add rbx, 1
cmp rbx, r9
jne 0x418c53
add rsp, 0x20
pop rbx
ret
Function at 0x41ac80
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call fcn.0040b690
test rax, rax
je 0x41ae2d
mov r10, qword [rax]
test r10, r10
jle 0x41ae2d
mov r11, rbx
mov r9, rbx
mov rdx, rbx
lea rcx, [r10 - 1]
sar r11, 8
sar r9, 0x10
sar rdx, 0x18
cmp rcx, 0xe
jbe 0x41ae33
movd xmm1, r9d
movd xmm0, r11d
mov r8, r10
punpcklbw xmm1, xmm1
punpcklbw xmm0, xmm0
punpcklwd xmm1, xmm1
punpcklwd xmm0, xmm0
pshufd xmm2, xmm1, 0
and r8, 0xfffffffffffffff0
pshufd xmm1, xmm0, 0
movd xmm0, ebx
pxor xmm1, xmm2
punpcklbw xmm0, xmm0
mov rcx, rax
punpcklwd xmm0, xmm0
add r8, rax
pshufd xmm2, xmm0, 0
movd xmm0, edx
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
pxor xmm0, xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rcx + 0x10]
add rcx, 0x10
pxor xmm0, xmm1
movups xmmword [rcx], xmm0
cmp rcx, r8
jne 0x41ad24
mov rcx, r10
and rcx, 0xfffffffffffffff0
cmp rcx, r10
je 0x41ae2d
lea r8, [rcx + 1]
xor r9d, r11d
xor r9d, ebx
xor edx, r9d
xor byte [rax + rcx + 0x10], dl
cmp r8, r10
jge 0x41ae2d
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 2]
cmp r10, r8
jle 0x41ae2d
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 3]
cmp r10, r8
jle 0x41ae2d
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 4]
cmp r10, r8
jle 0x41ae2d
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 5]
cmp r10, r8
jle 0x41ae2d
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 6]
cmp r10, r8
jle 0x41ae2d
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 7]
cmp r10, r8
jle 0x41ae2d
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 8]
cmp r10, r8
jle 0x41ae2d
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 9]
cmp r10, r8
jle 0x41ae2d
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 0xa]
cmp r10, r8
jle 0x41ae2d
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 0xb]
cmp r10, r8
jle 0x41ae2d
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 0xc]
cmp r10, r8
jle 0x41ae2d
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 0xd]
cmp r10, r8
jle 0x41ae2d
xor byte [rax + r8 + 0x10], dl
add rcx, 0xe
cmp r10, rcx
jle 0x41ae2d
xor byte [rax + rcx + 0x10], dl
add rsp, 0x20
pop rbx
ret
xor ecx, ecx
jmp 0x41ad49
Function at 0x41ae40
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov edx, 0x27e360ff
mov rbx, rcx
lea rcx, [0x0042aa40]
call fcn.00418c30
lea rdi, [rbx + 2]
mov edx, 0x2a5ebf0f
mov rcx, rax
call fcn.0041ac80
movzx r9d, word [rbx]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r8, qword [rax + 0x20]
lea rbp, [rax + 0x20]
nop dword [rax + rax]
mov rax, qword [r8 + 0x50]
test r9w, r9w
movzx r10d, word [rax]
je 0x41aeed
test r10w, r10w
je 0x41aef3
mov r12, rdi
mov edx, r9d
sub r12, rax
jmp 0x41aeb6
cmp word [rax], 0
je 0x41aeed
movzx ecx, word [rax]
lea esi, [rdx - 0x41]
lea r11d, [rdx + 0x20]
cmp si, 0x1a
cmovb edx, r11d
lea esi, [rcx - 0x41]
lea r11d, [rcx + 0x20]
cmp si, 0x1a
cmovb ecx, r11d
cmp dx, cx
jne 0x41aef3
mov rdx, rax
add rax, 2
movzx edx, word [r12 + rdx]
test dx, dx
jne 0x41aeb0
cmp r10w, r9w
je 0x41af70
mov r8, qword [r8]
cmp rbp, r8
jne 0x41ae90
lea rcx, [0x0042a9e0]
mov edx, 0x5376be05
call fcn.00418c30
lea rsi, [rsp + 0x30]
mov edx, 0x1389b7b5
mov rcx, rax
call fcn.0041ac80
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
call qword [0x00466c48]
xor edx, edx
xor ecx, ecx
mov r8, rsi
lea r9, [rsp + 0x28]
call qword [0x00466b50]
mov edx, eax
xor eax, eax
test edx, edx
jne 0x41af74
mov rax, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [r8 + 0x20]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x41b700
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rdi, rcx
mov ebx, edx
mov edx, 0x27e360ff
lea rcx, [0x0042aa40]
call fcn.00418c30
lea rbp, [rdi + 2]
mov edx, 0x2a5ebf0f
mov rcx, rax
call fcn.0041ac80
movzx r9d, word [rdi]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r8, qword [rax + 0x20]
lea r12, [rax + 0x20]
nop dword [rax]
mov rax, qword [r8 + 0x50]
test r9w, r9w
movzx r10d, word [rax]
je 0x41b7ae
test r10w, r10w
je 0x41b7b4
mov r13, rbp
mov edx, r9d
sub r13, rax
jmp 0x41b776
cmp word [rax], 0
je 0x41b7ae
movzx ecx, word [rax]
lea esi, [rdx - 0x41]
lea r11d, [rdx + 0x20]
cmp si, 0x1a
cmovb edx, r11d
lea esi, [rcx - 0x41]
lea r11d, [rcx + 0x20]
cmp si, 0x1a
cmovb ecx, r11d
cmp dx, cx
jne 0x41b7b4
mov rdx, rax
add rax, 2
movzx edx, word [r13 + rdx]
test dx, dx
jne 0x41b770
cmp r10w, r9w
je 0x41b830
mov r8, qword [r8]
cmp r12, r8
jne 0x41b750
xor esi, esi
test ebx, ebx
je 0x41b834
lea rcx, [0x0042a9e0]
mov edx, 0x5376be05
call fcn.00418c30
lea rbx, [rsp + 0x30]
mov edx, 0x1389b7b5
mov rcx, rax
call fcn.0041ac80
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
call qword [0x00466c48]
xor edx, edx
xor ecx, ecx
mov r8, rbx
lea r9, [rsp + 0x28]
call qword [0x00466b50]
test eax, eax
jne 0x41b834
mov rsi, qword [rsp + 0x28]
jmp 0x41b834
mov rsi, qword [r8 + 0x20]
mov rax, rsi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x41d320
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea r13, [0x00429600]
mov rax, qword [rcx + 0x18]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x78], rdx
mov rsi, qword [rax]
lea rbp, [rsi - 0x10]
mov rbx, rbp
nop
mov rdi, qword [rbx + 0x50]
mov rax, qword [0x0044c6e0]
mov rcx, rdi
call qword [rax]
mov rcx, rdi
movsxd rdx, eax
call fcn.0040d6a0
test rax, rax
mov rdi, rax
je 0x41d480
cmp qword [rax], 0
je 0x41d480
xor ecx, ecx
call fcn.0040fd50
mov rdx, rdi
mov rcx, rax
call fcn.0040d670
test al, al
jne 0x41d480
mov rcx, rdi
call fcn.0040c920
mov edx, 0x27290baf
lea rcx, [0x00429620]
mov rdi, rax
call fcn.00418c30
mov edx, 0x7c8fd56f
mov rcx, rax
call fcn.0041ac80
mov rcx, rdi
mov rdx, rax
call fcn.0040d670
test al, al
je 0x41d42e
mov r14, qword [rbx + 0x30]
xor r12d, r12d
nop word [rax + rax]
mov rdx, r12
mov rcx, r14
mov r15, r12
call fcn.00410450
add r12, 1
mov ecx, dword [rax]
call fcn.00415560
mov edx, 0x76988ef5
mov rcx, r13
mov rdi, rax
call fcn.00418c30
mov rcx, rdi
mov rdx, rax
call fcn.0040d670
test al, al
je 0x41d3e0
mov rdx, r15
mov rcx, r14
call fcn.00410450
add rax, 2
mov qword [0x00466a40], rax
mov rcx, qword [rbx + 0x30]
cmp word [rcx], 0x5a4d
je 0x41d450
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x41d439
movsxd rdx, dword [rax + 0x88]
mov r8, qword [rsp + 0x78]
add rdx, rcx
call fcn.0041d170
test al, al
jne 0x41d43b
nop word [rax + rax]
mov rsi, qword [rsi]
lea rbx, [rsi - 0x10]
cmp rbp, rbx
jne 0x41d350
jmp 0x41d439
Function at 0x420d50
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00453d04]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x420ed8
mov rax, qword [0x00453d08]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x420d9c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x420e25
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x420d80
mov rcx, rbx
call fcn.004219f0
test rax, rax
mov r12, rax
je 0x420f0d
mov rax, qword [0x00453d08]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00421b20
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00453d08]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x420ef0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x420e1e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x420e80
add dword [0x00453d04], 1
cmp edi, 8
jae 0x420e53
test dil, 4
jne 0x420ec4
test edi, edi
je 0x420e48
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x420edf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x420e48
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x420e6c
jmp 0x420e48
add rsi, qword [0x00453d08]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x420e1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00421fa0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x420e48
xor esi, esi
jmp 0x420da7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x420e48
mov rax, qword [0x00453d08]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00421fa0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00421fa0
nop
nop dword [rax]

Function at 0x421660
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00453fe0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00453fc0]
test rbx, rbx
je 0x4216b4
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 0x4216ab
test rsi, rsi
je 0x4216ab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x421690
lea rcx, [0x00453fe0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4219f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0044cae0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x421a5d
mov rcx, r8
call fcn.004218d0
test eax, eax
je 0x421a5d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x421a5d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x421a54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x421a5f
add rax, 0x28
cmp rax, r9
jne 0x421a40
xor eax, eax
add rsp, 0x28
ret

Function at 0x421fa0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
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.00421e00
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.00421e00
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x1400015d4
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov r8, rdx
mov ecx, 0x100000
xor edx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenEventW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140001694
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp dword [section..data], 2
mov ebx, eax
jbe 0x14000167a
mov eax, 0x800
test qword [0x14000b010], rax
je 0x14000167a
mov rcx, qword [0x14000b018]
and rcx, rax
cmp rcx, qword [0x14000b018]
jne 0x14000167a
lea rax, str.onecorexboxgameinput2published_svcgameinputservermanager.cpp
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x68], rax
lea rdx, [0x140008e66]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x60], 0x17
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
call fcn.140001008
test ebx, ebx
jne 0x140001685
mov eax, 0x8000ffff
jmp 0x1400016b7
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x1400016b7
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x140002280
Capabilities:
Check if file exists
Delete file

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
mov rdi, rcx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400023b7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 2
je 0x1400023b7
cmp eax, 5
jne 0x14000233d
mov rdx, rdi
xor ecx, ecx
call fcn.140004c10
mov ebx, eax
test eax, eax
jns 0x1400023b7
cmp dword [section..data], 2
jbe 0x140002339
mov r8d, 0x800
test qword [0x14000b010], r8
je 0x140002339
mov rcx, qword [0x14000b018]
and rcx, r8
cmp rcx, qword [0x14000b018]
jne 0x140002339
mov dword [rbp + 0x28], eax
lea rdx, [0x140008dd9]
lea rax, [0x1400085c8]
mov dword [rbp + 0x30], 0x78
mov qword [rbp + 0x38], rax
lea rax, [rbp + 0x28]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
call fcn.140001008
mov eax, ebx
jmp 0x1400023b9
test ebx, ebx
je 0x1400023a8
cmp dword [section..data], 2
jbe 0x1400023a8
mov r8d, 0x800
test qword [0x14000b010], r8
je 0x1400023a8
mov rax, qword [0x14000b018]
and rax, r8
cmp rax, qword [0x14000b018]
jne 0x1400023a8
lea rax, [0x1400085c8]
mov dword [rbp + 0x28], ebx
mov qword [rbp + 0x38], rax
lea rdx, [0x140008e66]
lea rax, [rbp + 0x28]
mov dword [rbp + 0x30], 0x7c
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
call fcn.140001008
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x1400023b9
xor eax, eax
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400023c8
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
mov rdi, r8
mov ebx, 0x28
mov ecx, ebx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, qword gs:[0x60]
mov r8, rax
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x1400024e9
mov r8d, ebx
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
test eax, eax
je 0x140002459
cmp eax, ebx
jne 0x14000244f
mov rcx, rsi
call fcn.140005f94
add ebx, ebx
jmp 0x1400023e8
mov qword [rdi], rsi
xor ebx, ebx
jmp 0x140002562
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp dword [section..data], 2
mov edi, eax
jbe 0x1400024ce
mov r8d, 0x800
test qword [0x14000b010], r8
je 0x1400024ce
mov rcx, qword [0x14000b018]
and rcx, r8
cmp rcx, qword [0x14000b018]
jne 0x1400024ce
mov dword [rbp + 0x28], eax
lea rdx, [0x140008e66]
lea rax, [0x1400085c8]
mov dword [rbp + 0x20], 0x95
mov qword [rbp + 0x38], rax
lea rax, [rbp + 0x28]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
call fcn.140001008
test edi, edi
jne 0x1400024d9
mov ebx, 0x8000ffff
jmp 0x140002555
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x140002555
cmp dword [section..data], 2
mov ebx, 0x8007000e
jbe 0x140002555
mov r8d, 0x800
test qword [0x14000b010], r8
je 0x140002555
mov rax, qword [0x14000b018]
and rax, r8
cmp rax, qword [0x14000b018]
jne 0x140002555
lea rax, [0x1400085c8]
mov dword [rbp + 0x28], ebx
mov qword [rbp + 0x38], rax
lea rdx, [0x140008e16]
lea rax, [rbp + 0x28]
mov dword [rbp + 0x20], 0x92
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
call fcn.140001008
test rsi, rsi
je 0x140002562
mov rcx, rsi
call fcn.140005f94
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret