joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ea300
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 0x1400ea15f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ea15f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ea15f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ea15f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ea15f
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ea15f
cmp dword [rcx + 0xf8], 0
je 0x1400ea15f
mov ecx, ebx
call fcn.1400ea21c
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.1400e9fec
nop
cmp dword [rbp + 0x20], 0
je 0x1400ea1ad
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400ea1b8
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400ea0f0

Function at 0x1400f0348
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.1400fe470
sub rsp, rax
mov rax, qword [0x140145038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400f41bc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400f0397
mov rax, rbp
jmp 0x1400f049f
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 + 0x1493e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400f61a8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1493e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400f049b
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 0x1400f049b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400f61a8
test rax, rax
js 0x1400f049b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400f049b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400f048d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400f048d
cmp byte [rcx], 0xd
jne 0x1400f0473
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400f0482
cmp byte [rcx + 1], 0xa
jne 0x1400f0482
inc rcx
jmp 0x1400f0482
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x145350]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400f0455
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400f049f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400fe2e0
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 0x1400f6254
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1401493e0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400f62b2
cmp word [rdx], r12w
jne 0x1400f62b2
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400f62b8
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400f6413
mov r9d, DispGetParam
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400f63ee
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400f62f1
mov rcx, r9
jmp 0x1400f6314
cmp r9, rdx
jae 0x1400f632b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, DispGetParam
add rbx, 2
cmp rcx, rdx
jb 0x1400f62d5
jmp 0x1400f6413
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400f63e8
cmp dword [rsp + 0x80], edi
je 0x1400f63e8
mov rdx, r14
lea r11, [0x1401493e0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400f63c1
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400f6394
mov word [rbx], r12w
jmp 0x1400f640f
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400f639d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400f640f
cmp word [rsp + 0x70], r12w
jne 0x1400f63ce
cmp rbx, rsi
je 0x1400f638e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400f61b0
cmp word [rsp + 0x70], r12w
je 0x1400f6413
mov word [rbx], r13w
jmp 0x1400f640f
lea r11, [0x1401493e0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400f640b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400f6413
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400f6c68
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400f6c9a
call fcn.1400eb894
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.1400eb19c
jmp 0x1400f6db9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400f6db9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400f6db9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400f6cc9
lock or dword [rcx + 0x14], 0x10
jmp 0x1400f6db9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400f6cdd
call fcn.1400fc910
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400f41bc
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400f6700
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400f6da7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400f6d72
mov rcx, rsi
call fcn.1400f41bc
cmp eax, edi
je 0x1400f6d5d
mov rcx, rsi
call fcn.1400f41bc
cmp eax, 0xfffffffe
je 0x1400f6d5d
mov rcx, rsi
call fcn.1400f41bc
movsxd rbx, eax
lea r14, [0x1401493e0]
mov rcx, rsi
sar rbx, 6
call fcn.1400f41bc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400f6d64
lea rdx, [0x140145300]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400f6d72
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400f6d96
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400f6d96
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400f6d96
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400f6dbc
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1400f91e8
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 0x1400f926f
mov rsi, rbx
cmp word [rax], bp
je 0x1400f922e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400f9218
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400f9214
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400f2fb8
mov rdi, rax
test rax, rax
je 0x1400f925c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400e1c80
mov rbp, rdi
xor ecx, ecx
call fcn.1400f3018
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 0x1400fd3fc
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.1400f61b0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400f61b0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400fd54c
cmp rax, 0xffffffffffffffff
je 0x1400fd54c
xor edi, edi
test rbp, rbp
jle 0x1400fd4f7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400f45bc
mov rbx, rax
test rax, rax
jne 0x1400fd484
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400fd4ed
mov edx, 0x8000
mov ecx, r14d
call fcn.1400f2324
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.1400f7a54
cmp eax, 0xffffffff
je 0x1400fd4cd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400fd494
mov edx, r15d
mov ecx, r14d
call fcn.1400f2324
jmp 0x1400fd4ed
cmp byte [rsi + 0x38], dil
je 0x1400fd4e4
cmp dword [rsi + 0x34], 5
jne 0x1400fd4e4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetUBound
cmp byte [rsi + 0x30], dil
je 0x1400fd4ed
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400f3018
jmp 0x1400fd560
jns 0x1400fd560
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400f61b0
cmp rax, 0xffffffffffffffff
jne 0x1400fd518
cmp byte [rsi + 0x30], dil
je 0x1400fd560
mov edi, dword [rsi + 0x2c]
jmp 0x1400fd560
mov ecx, r14d
call fcn.1400f9b24
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400fd560
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayGetDim
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetUBound
jmp 0x1400fd560
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400fd559
mov eax, dword [rsi + 0x2c]
jmp 0x1400fd55e
mov eax, reloc.OLEAUT32.dll_SafeArrayAccessData
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400f61b0
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 0x1400140c0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push rcx
push r11
push r13
sub rcx, rcx
add rcx, 0x60
mov r11, qword gs:[rcx]
push r10
mov rcx, r11
add rcx, 0x10
adc byte [rbx + rcx*4 + 0x11], cl
add r11, 0x18
mov r13, qword [r11]
mov rcx, r13
add rcx, 0x10
mov r11, qword [rcx]
push r12
mov r13, r11
add r13, 0x30
mov rcx, qword [r13]
cmp rcx, 0
je 0x140014133
mov r13, qword [r11 + 0x60]
mov r12, qword [r13]
and r12d, 0xdf00df
mov r13, qword [r13 + 0xc]
shl r13d, 8
add r13d, r12d
shl r13d, 2
sub r13d, 0xc914cd2c
leave
cmp r13, 0
je 0x14001413b
mov r13, qword [r11]
mov r11, r13
jmp 0x1400140ef
mov r11d, dword [rcx + 0x3c]
add r11, rcx
add r11, 0x10
mov r13d, dword [r11 + 0x78]
add r13, rcx
push rbx
mov r12d, dword [r13 + 0x20]
add r12, rcx
mov ebx, dword [r12]
add rbx, rcx
mov r11d, dword [rbx + 0xb]
sub r11d, 0x746365
test r11d, r11d
jne 0x140014171
jmp 0x14001417f
inc r12
inc r12
inc r12
inc r12
jmp 0x140014155
mov r11d, dword [r13 + 0x20]
sub r12, r11
sub r12, rcx
shr r12d, 1
mov r11d, dword [r13 + 0x24]
add r11, r12
add r11, rcx
mov r12d, dword [r11]
mov r11d, dword [r13 + 0x1c]
and r12d, 0xffff
add byte [rbx - 0x3f], al
in al, 2
add r11, rcx
add r11, r12
mov r12d, dword [r11]
mov r11d, 0x1c9000
add r12, rcx
push rcx
add r11, r10
push r10
push r11
push rbx
push rbx
push r12
mov rcx, r11
mov r9, rsp
sub r8, r8
add r8, 0x40
mov edx, 0x55000
call r12
pop r13
pop rbx
pop rbx
pop r11
pop r10
mov ecx, 0x2749
movabs r13, 0x3a4c0
push r12
mov r12d, 0x92
imul ecx, r12d
movabs r12, 0x4a7
add rcx, r12
add rcx, r10
call 0x14001423c
mov r11d, 0x209000
movabs rcx, 0x1a2249
add rcx, r10
add r11, r10
mov r13d, 0x3aa0
call 0x14001423c
pop r12
cmp rcx, r11
jne 0x140014274
mov r12d, dword [rcx]
xor r12d, 0x88101583
dec r12
mov dword [r11], r12d
dec r13
dec r13
dec r13
inc rcx
inc rcx
inc rcx
inc rcx
ror dword [rbp - 0x7d], 0xc3
add al, 0x49
dec ebp
test r13d, r13d
je 0x140014272
jmp 0x14001423c
nop
ret
mov ecx, 0x8000000
movabs r11, 0x1c9000
mov r13d, 0x108
mov r12d, 0xf
imul r13d, r12d
add r11, r10
add r13d, 0x88
sub r11, r13
mov r13, r11
sub r13, rcx
movabs rcx, 0x1a6e49
add rcx, r10
mov r12d, dword [rcx]
xor r12d, 0x88101583
dec r12
test r12d, r12d
je 0x1400142d9
add r12, r11
mov rbx, qword [r12]
add rbx, r13
mov qword [r12], rbx
add rcx, 4
jmp 0x1400142b3
mov r11d, 0x4a04
movabs rcx, 0xcce
sub rsp, 0x28
add rcx, 0x1d3df8
add rcx, r10
add rcx, r11
push rcx
mov rcx, r11
dec r11
jmp 0x140014272
Function at 0x140014128
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rcx
push r11
push r13
sub rcx, rcx
add rcx, 0x60
mov r11, qword gs:[rcx]
push r10
mov rcx, r11
add rcx, 0x10
adc byte [rbx + rcx*4 + 0x11], cl
add r11, 0x18
mov r13, qword [r11]
mov rcx, r13
add rcx, 0x10
mov r11, qword [rcx]
push r12
mov r13, r11
add r13, 0x30
mov rcx, qword [r13]
cmp rcx, 0
je 0x140014133
mov r13, qword [r11 + 0x60]
mov r12, qword [r13]
and r12d, 0xdf00df
mov r13, qword [r13 + 0xc]
shl r13d, 8
add r13d, r12d
shl r13d, 2
sub r13d, 0xc914cd2c
leave
cmp r13, 0
je 0x14001413b
mov r13, qword [r11]
mov r11, r13
jmp 0x1400140ef
mov r11d, dword [rcx + 0x3c]
add r11, rcx
add r11, 0x10
mov r13d, dword [r11 + 0x78]
add r13, rcx
push rbx
mov r12d, dword [r13 + 0x20]
add r12, rcx
mov ebx, dword [r12]
add rbx, rcx
mov r11d, dword [rbx + 0xb]
sub r11d, 0x746365
test r11d, r11d
jne 0x140014171
jmp 0x14001417f
inc r12
inc r12
inc r12
inc r12
jmp 0x140014155
mov r11d, dword [r13 + 0x20]
sub r12, r11
sub r12, rcx
shr r12d, 1
mov r11d, dword [r13 + 0x24]
add r11, r12
add r11, rcx
mov r12d, dword [r11]
mov r11d, dword [r13 + 0x1c]
and r12d, 0xffff
add byte [rbx - 0x3f], al
in al, 2
add r11, rcx
add r11, r12
mov r12d, dword [r11]
mov r11d, 0x1c9000
add r12, rcx
push rcx
add r11, r10
push r10
push r11
push rbx
push rbx
push r12
mov rcx, r11
mov r9, rsp
sub r8, r8
add r8, 0x40
mov edx, 0x55000
call r12
pop r13
pop rbx
pop rbx
pop r11
pop r10
mov ecx, 0x2749
movabs r13, 0x3a4c0
push r12
mov r12d, 0x92
imul ecx, r12d
movabs r12, 0x4a7
add rcx, r12
add rcx, r10
call 0x14001423c
mov r11d, 0x209000
movabs rcx, 0x1a2249
add rcx, r10
add r11, r10
mov r13d, 0x3aa0
call 0x14001423c
pop r12
cmp rcx, r11
jne 0x140014274
mov r12d, dword [rcx]
xor r12d, 0x88101583
dec r12
mov dword [r11], r12d
dec r13
dec r13
dec r13
inc rcx
inc rcx
inc rcx
inc rcx
ror dword [rbp - 0x7d], 0xc3
add al, 0x49
dec ebp
test r13d, r13d
je 0x140014272
jmp 0x14001423c
nop
ret
mov ecx, 0x8000000
movabs r11, 0x1c9000
mov r13d, 0x108
mov r12d, 0xf
imul r13d, r12d
add r11, r10
add r13d, 0x88
sub r11, r13
mov r13, r11
sub r13, rcx
movabs rcx, 0x1a6e49
add rcx, r10
mov r12d, dword [rcx]
xor r12d, 0x88101583
dec r12
test r12d, r12d
je 0x1400142d9
add r12, r11
mov rbx, qword [r12]
add rbx, r13
mov qword [r12], rbx
add rcx, 4
jmp 0x1400142b3
mov r11d, 0x4a04
movabs rcx, 0xcce
sub rsp, 0x28
add rcx, 0x1d3df8
add rcx, r10
add rcx, r11
push rcx
mov rcx, r11
dec r11
jmp 0x140014272

Function at 0x14001485c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400148a8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400148a0
cmp dword [rcx + 0x3c], edx
jl 0x1400148a0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400148a0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400148a8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140028348
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x60
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov qword [rbp + 0x60], rbx
mov qword [rbp + 0x68], rsi
mov qword [rbp + 0x70], rdi
mov rax, qword [0x1401563f0]
xor rax, rbp
mov qword [rbp + 0x20], rax
mov rbx, r9
mov rsi, r8
mov rax, rdx
xor edi, edi
mov qword [rbp], rdi
mov qword [rbp + 0x10], rcx
mov qword [rbp + 8], rdi
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov r15, rax
test rax, rax
jne 0x1400283c9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14002854a
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14002854a
xor r9d, r9d
mov r8, rsi
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
mov rbx, rax
test rax, rax
jne 0x140028401
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140028540
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140028540
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov r14, rax
test rax, rax
je 0x1400283e3
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov rsi, r14
mov r12d, eax
movabs r13, 0xffffffffffffff0
cmp byte [r12 + r14], dil
je 0x14002849c
inc eax
mov ebx, eax
cmp eax, 0x400
ja 0x14002846c
mov ecx, eax
call fcn.14002a518
test al, al
je 0x14002846c
lea rax, [rbx + 0xf]
cmp rax, rbx
ja 0x140028459
mov rax, r13
and rax, 0xfffffffffffffff0
call fcn.140015730
sub rsp, rax
lea rsi, [rsp + 0x30]
jmp 0x14002847b
mov rdx, rbx
lea rcx, [rbp]
call fcn.140024bb0
mov rsi, rax
test rsi, rsi
jne 0x14002848a
mov ebx, 0x8007000e
jmp 0x140028540
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call sub.msvcrt.dll_memcpy
mov byte [r12 + rsi], dil
test rsi, rsi
je 0x14002852b
or r12, 0xffffffffffffffff
mov r14, r12
inc r14
cmp byte [rsi + r14], dil
jne 0x1400284ac
inc r14d
movsxd rbx, r14d
add rbx, rbx
cmp rbx, 0x400
ja 0x1400284f2
mov rcx, rbx
call fcn.14002a518
test al, al
je 0x1400284f2
lea rax, [rbx + 0xf]
cmp rax, rbx
ja 0x1400284df
mov rax, r13
and rax, 0xfffffffffffffff0
call fcn.140015730
sub rsp, rax
lea rbx, [rsp + 0x30]
jmp 0x140028501
mov rdx, rbx
lea rcx, [rbp]
call fcn.140024bb0
mov rbx, rax
test rbx, rbx
je 0x14002852b
mov word [rbx], di
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rbx
mov r9d, r12d
mov r8, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
neg eax
sbb rdi, rdi
and rdi, rbx
mov r8d, dword [rbp + 0x80]
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.1400281c0
mov ebx, eax
mov rcx, r15
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop
lea rcx, [rbp]
call fcn.140023ce4
mov eax, ebx
mov rcx, qword [rbp + 0x20]
xor rcx, rbp
call fcn.1400140f0
mov rbx, qword [rbp + 0x60]
mov rsi, qword [rbp + 0x68]
mov rdi, qword [rbp + 0x70]
lea rsp, [rbp + 0x30]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140029d50
Capabilities:
Check if file exists

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 - 0x168]
sub rsp, 0x250
mov rax, qword [0x1401563f0]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r15d, r15d
mov r14, r8
mov qword [r8], r15
mov ebx, 0x104
mov r8, rcx
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140029b1c
mov ecx, ebx
lea rax, [rsp + 0x30]
cmp word [rax], r15w
je 0x140029db7
add rax, 2
sub rcx, 1
jne 0x140029da7
test rcx, rcx
je 0x140029dc4
mov rax, rbx
sub rax, rcx
jmp 0x140029dc7
mov rax, r15
test rcx, rcx
je 0x140029e21
mov rdx, rbx
lea rcx, [rsp + 0x30]
lea rcx, [rcx + rax*2]
sub rdx, rax
je 0x140029e12
lea r8, [rax + 0x7ffffefa]
add r8, rdx
lea rax, [0x1400fb780]
sub rax, rcx
test r8, r8
je 0x140029e12
movzx r9d, word [rax + rcx]
test r9w, r9w
je 0x140029e12
mov word [rcx], r9w
dec r8
add rcx, 2
sub rdx, 1
jne 0x140029df1
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x140029e62
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x140029f86
mov edx, 0xc0
mov rcx, qword [rbp + 0x168]
call fcn.140029254
mov esi, eax
jmp 0x140029f89
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r15d
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call fcn.140026168
mov esi, eax
test eax, eax
jns 0x140029e98
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, SetErrorInfo
call fcn.140029274
jmp 0x140029f89
mov rcx, rbx
lea rax, [rsp + 0x30]
cmp word [rax], r15w
je 0x140029eb0
add rax, 2
sub rcx, 1
jne 0x140029ea0
test rcx, rcx
je 0x140029ebd
mov rax, rbx
sub rax, rcx
jmp 0x140029ec0
mov rax, r15
test rcx, rcx
je 0x140029f15
lea rdx, [rsp + 0x30]
lea rdx, [rdx + rax*2]
sub rbx, rax
je 0x140029f06
lea rcx, [rax + 0x7ffffefa]
add rcx, rbx
lea r8, [0x1400fb788]
sub r8, rdx
test rcx, rcx
je 0x140029f06
movzx eax, word [r8 + rdx]
test ax, ax
je 0x140029f06
mov word [rdx], ax
dec rcx
add rdx, 2
sub rbx, 1
jne 0x140029ee7
test rbx, rbx
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], r15w
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x140029f39
mov edx, 0xcc
jmp 0x140029e4f
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140026168
mov esi, eax
test eax, eax
jns 0x140029f6a
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xce
call fcn.140029274
mov rcx, rbx
call fcn.140024dec
jmp 0x140029f89
mov rcx, rbx
call fcn.140024dec
movsxd rcx, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x24]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
mov esi, r15d
test rdi, rdi
je 0x140029f96
mov rcx, rdi
call fcn.140024dec
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400140f0
lea r11, [rsp + 0x250]
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