joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012c60
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x20
mov rax, qword [0x140067ef8]
mov edi, ecx
mov rbx, qword [rax + 0x1b90]
cmp dword [rbx + 0x108], 0
jg 0x140012ca1
mov r8d, 0x5cd
lea rdx, str.C:Users_smirnovcheksDesktopmainworkRockstar_Premium_Loaderimgui_dockingimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd rcx, dword [rbx + 0x108]
lea r9, [0x140050d70]
mov rax, qword [rbx + 0x110]
mov r8d, dword [rax + rcx*4 - 4]
not r8d
movzx eax, dil
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x31]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x32]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
shr r8d, 8
xor rcx, rax
movzx eax, byte [rsp + 0x33]
xor r8d, dword [r9 + rcx*4]
lea rcx, [rbx + 0x108]
movzx edx, r8b
xor rdx, rax
shr r8d, 8
xor r8d, dword [r9 + rdx*4]
lea rdx, [rsp + 0x30]
not r8d
mov dword [rsp + 0x30], r8d
call fcn.140028360
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140014130
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140067ef8]
mov edi, edx
cmp byte [rbx + 0x1ef5], 0
jne 0x140014190
cmp byte [rbx + 0x1ef6], 0
jne 0x140014190
mov r9d, dword [rbx + 0x2f38]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140004d80
test dil, 1
je 0x1400142b9
jmp 0x14001421f
movss xmm1, dword [rbx + 0x16ec]
lea r8, str.Tooltip__02d
movaps xmm0, xmm1
lea rcx, [rsp + 0x20]
mulss xmm0, dword [0x14005dac4]
xor eax, eax
mulss xmm1, dword [0x14005dab0]
addss xmm0, dword [rbx + 0x120]
lea edx, [rax + 0x10]
addss xmm1, dword [rbx + 0x124]
mov qword [rbx + 0x1c5c], rax
mov dword [rbx + 0x1c44], 1
movss dword [rbx + 0x1c54], xmm0
mov byte [rbx + 0x1c7c], 1
movss dword [rbx + 0x1c58], xmm1
movss xmm0, dword [rbx + 0x1748]
mulss xmm0, dword [0x14005da1c]
or dword [rbx + 0x1c40], 0x41
movss dword [rbx + 0x1ca0], xmm0
mov r9d, dword [rbx + 0x2f38]
call fcn.140004d80
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140014270
lea r11, [0x140050d70]
nop
cmp r9b, 0x23
jne 0x140014253
cmp byte [r8], r9b
jne 0x140014253
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140014240
not ecx
call fcn.14000c870
test rax, rax
je 0x1400142b9
cmp byte [rax + 0xbf], 0
je 0x1400142b9
mov byte [rax + 0xc6], 1
lea r8, str.Tooltip__02d
mov dword [rax + 0xdc], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x2f38]
mov edx, 0x10
mov r9d, dword [rbx + 0x2f38]
call fcn.140004d80
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x22c0347
call fcn.14000ee50
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14004dcb0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140019c50
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x40
mov rbx, qword [0x140067ef8]
cmp byte [rbx + 0x3000], 0
je 0x140019d3c
cmp qword [rbx + 0x3008], 0
mov qword [rax - 0x18], rsi
lea rsi, [rax + 0x10]
mov qword [rax - 0x20], rdi
lea rdi, [rbx + 0x3010]
je 0x140019d24
mov r9d, dword [rdi + 4]
mov qword [rax - 0x10], rbp
xor ebp, ebp
test r9d, r9d
jns 0x140019ccb
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
mov edx, ebp
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140029210
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov dword [rdi], ebp
mov rcx, rdi
mov r8, rsi
call fcn.140005600
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x3008]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x3018]
cmove ecx, ebp
test rax, rax
movsxd r8, ecx
lea rcx, [0x140067cc8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
mov r8, rsi
mov rcx, rdi
call fcn.140005600
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret

Function at 0x14001a1c0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov r10d, 0xffffffff
mov ecx, r10d
movzx r9d, byte [rbx]
lea r8, [rbx + 1]
test r9b, r9b
je 0x14001a216
lea r11, [0x140050d70]
cmp r9b, 0x23
jne 0x14001a1f9
cmp byte [r8], r9b
jne 0x14001a1f9
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14001a1e6
not ecx
call fcn.14001a0d0
test rax, rax
jne 0x14001a22f
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140019fe0
add rsp, 0x20
pop rbx
ret
Function at 0x14001ea90
Capabilities:
Hash data with crc32

Disassembly:
test r8d, r8d
jle 0x14001eccb
mov r11, rsp
push rbp
push rsi
sub rsp, 0x58
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [r11 - 0x18], rdi
mov rbp, rcx
mov qword [r11 - 0x20], r14
lea rdi, [rdx + 0x1a]
mov qword [r11 - 0x28], r15
mov r14d, 0xffffffff
lea r15, [0x140050d70]
mov qword [r11 + 0x18], rbx
movsxd rsi, r8d
nop dword [rax + rax]
mov edx, dword [rdi - 0x1a]
test edx, edx
je 0x14001ec93
mov rcx, rbp
call fcn.14001dd30
mov r9d, dword [rdi - 0x16]
mov rbx, rax
test r9d, r9d
je 0x14001eb61
movsxd rdx, dword [rbp + 0x2f80]
mov r8, qword [rbp + 0x2f88]
mov r10, rdx
shl r10, 4
add r10, r8
test rdx, rdx
je 0x14001eb51
nop dword [rax]
mov rcx, rdx
shr rcx, 1
mov rax, rcx
add rax, rax
cmp dword [r8 + rax*8], r9d
jae 0x14001eb49
lea r8, [r8 + rax*8]
mov rax, 0xffffffffffffffff
sub rax, rcx
add r8, 0x10
add rdx, rax
jmp 0x14001eb4c
mov rdx, rcx
test rdx, rdx
jne 0x14001eb20
cmp r8, r10
je 0x14001eb61
cmp dword [r8], r9d
jne 0x14001eb61
mov rcx, qword [r8 + 8]
jmp 0x14001eb63
xor ecx, ecx
mov qword [rbx + 0x10], rcx
movsx eax, word [rdi - 2]
movd xmm1, eax
movsx eax, word [rdi]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x40], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x44], xmm0
movsx eax, word [rdi + 2]
movd xmm1, eax
movsx eax, word [rdi + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x48], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x4c], xmm0
movsx eax, word [rdi + 6]
movd xmm1, eax
movsx eax, word [rdi + 8]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, dword [rbx + 0xb0]
and eax, 0xfffffe49
movss dword [rbx + 0x50], xmm1
or eax, 0x49
mov dword [rbx + 0xb0], eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x54], xmm0
test rcx, rcx
je 0x14001ebf7
cmp qword [rcx + 0x18], 0
jne 0x14001ebec
mov qword [rcx + 0x18], rbx
jmp 0x14001ebf7
cmp qword [rcx + 0x20], 0
jne 0x14001ebf7
mov qword [rcx + 0x20], rbx
mov eax, dword [rdi - 0xe]
mov r9, rbx
mov dword [rbx + 0xa8], eax
movsx eax, byte [rdi - 0xa]
mov dword [rbx + 0x58], eax
mov eax, dword [rdi - 6]
and eax, 0x61fc20
or dword [rbx + 8], eax
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14001ec2c
nop
mov r9, rax
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14001ec20
mov r9d, dword [r9]
lea r8, str.DockNode__02X
mov edx, 0x14
lea rcx, [rsp + 0x20]
call fcn.140004d80
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov ecx, r14d
test r9b, r9b
je 0x14001ec88
cmp r9b, 0x23
jne 0x14001ec6b
cmp byte [r8], r9b
jne 0x14001ec6b
cmp byte [r8 + 1], r9b
cmove ecx, r14d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r15 + rdx*4]
test r9b, r9b
jne 0x14001ec58
not ecx
call fcn.14000c870
mov qword [rbx + 0x78], rax
add rdi, 0x24
sub rsi, 1
jne 0x14001eae0
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14004dcb0
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x1400450e0
Capabilities:
Hash data with crc32

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
test r8, r8
je 0x140045192
test dword [rcx + 0x10], 0x100000
jne 0x140045115
mov r8d, 0x1c54
lea rdx, str.C:Users_smirnovcheksDesktopmainworkRockstar_Premium_Loaderimgui_dockingimgui_widgets.cpp
lea rcx, str.tab_bar__Flags__ImGuiTabBarFlags_DockNode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movzx r9d, byte [rsi]
lea r8, [rsi + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x140045162
lea r11, [0x140050d70]
cmp r9b, 0x23
jne 0x140045145
cmp byte [r8], r9b
jne 0x140045145
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140045132
mov rcx, qword [0x140067ef8]
not eax
cmp dword [rcx + 0x1be8], eax
jne 0x140045179
mov dword [rcx + 0x1bec], eax
cmp dword [rcx + 0x1c28], eax
jne 0x140045218
mov byte [rcx + 0x1c2c], 1
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x140067ef8]
mov qword [rsp + 0x38], rdi
mov rdi, qword [rbx + 0x1b90]
cmp dword [rdi + 0x108], 0
jg 0x1400451d4
mov r8d, 0x5cd
lea rdx, str.C:Users_smirnovcheksDesktopmainworkRockstar_Premium_Loaderimgui_dockingimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rbx, qword [0x140067ef8]
movsxd rax, dword [rdi + 0x108]
xor edx, edx
mov r8, qword [rdi + 0x110]
mov rcx, rsi
mov r8d, dword [r8 + rax*4 - 4]
call fcn.140004e00
mov rdi, qword [rsp + 0x38]
cmp dword [rbx + 0x1be8], eax
jne 0x140045204
mov dword [rbx + 0x1bec], eax
cmp dword [rbx + 0x1c28], eax
jne 0x140045213
mov byte [rbx + 0x1c2c], 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rsi
ret
Function at 0x1400498c0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x36], 0
je 0x1400498e3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x21]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x35
jb 0x1400498d0
mov byte [rcx + 0x36], 0
mov rax, rcx
ret
Function at 0x14004c470
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov qword [rsp + 0x28], rdx
xor edx, edx
mov rdi, rcx
cmp byte [rcx + 0x2d], dl
je 0x14004c4a2
mov eax, edx
nop
lea ecx, [rax - 0x21]
xor byte [rax + rdi], cl
inc rax
cmp rax, 0x2c
jb 0x14004c490
mov byte [rdi + 0x2d], dl
xorps xmm0, xmm0
lea rcx, [rdi + 0x2c]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x18], rdx
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], rdx
cmp rdi, rcx
jne 0x14004c4d5
mov qword [rbx + 0x10], rdx
mov rax, rbx
mov byte [rbx], dl
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x30
call fcn.14004de4c
mov qword [rbx], rax
mov qword [rbx + 0x10], 0x2c
mov qword [rbx + 0x18], 0x2f
movups xmm0, xmmword [rdi]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [rdi + 0x20]
movsd qword [rax + 0x20], xmm0
mov ecx, dword [rdi + 0x28]
mov dword [rax + 0x28], ecx
mov byte [rax + 0x2c], 0
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14004d0e0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Reference http user-agent string
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor edi, edi
lea rcx, str.Mozilla_5.0
mov rbx, rdx
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 1]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
mov rcx, rax
mov dword [rsp + 0x20], 0x80000000
xor r8d, r8d
mov rdx, rbx
mov rsi, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
lea rdx, [0x14005d948]
mov rbx, rax
lea rcx, str.C:_AMD_amd.dll
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14004d1bb
nop dword [rax]
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x14004d1bb
mov r8d, ecx
mov r9, rdi
lea rcx, [rsp + 0x40]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x14004d180
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14004dcb0
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14004d200
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x460
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov r14, r8
mov rsi, rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], r8
xor r12d, r12d
mov dword [rsp + 0x30], r12d
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], r12
mov qword [rdx + 0x18], 0xf
mov byte [rdx], r12b
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 1]
lea rcx, str.Mozilla_5.0
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r15, rax
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x14004d28d
mov rdx, qword [r14]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbp, rax
test rax, rax
je 0x14004d358
lea r9, [rsp + 0x48]
mov r8d, 0x400
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14004d34f
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x14004d34f
mov ebx, eax
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rbx, rax
ja 0x14004d31d
lea rax, [rcx + rbx]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0x10
jb 0x14004d303
mov rax, qword [rsi]
lea rdi, [rax + rcx]
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x14004d332
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x50]
mov rdx, rbx
mov rcx, rsi
call fcn.140003360
lea r9, [rsp + 0x48]
mov r8d, 0x400
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x14004d2d2
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x14004d398
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x14004d393
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004d3d7
mov rcx, r8
call fcn.14004de88
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
mov rax, rsi
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14004dcb0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14004d6cc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14004d750
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400507d0]
cmp byte [rcx + rax], 0
je 0x14004d750
dec r8
sub rdx, 1
jne 0x14004d736
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14004e9bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004ea06
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004ea06
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004ea06
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004ea06
cmp dword [rcx + 0x84], 0xe
jbe 0x14004ea06
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004ea08
xor al, al
add rsp, 0x28
ret
Function at 0x140b790b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140b79237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140b790e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b790c7
add dl, dl
jne 0x140b790ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b7914e
xor eax, eax
add dl, dl
jne 0x140b790fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b79205
add dl, dl
jne 0x140b7910e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b7911b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b79128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b79135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140b79142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140b790d6
mov eax, 1
add dl, dl
jne 0x140b7915e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b7916b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b79153
sub eax, ebx
mov ebx, 1
jne 0x140b791a4
mov ecx, 1
add dl, dl
jne 0x140b79186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b79193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b7917b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b790d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140b791c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b791cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b791b5
cmp eax, 0x7d00
jae 0x140b791f3
cmp eax, 0x500
jb 0x140b791ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b790d6
cmp eax, 0x7f
ja 0x140b791f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b790d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140b7922a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140b790d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001cc0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdx, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x140001cef
mov r8, qword [rcx]
add r8, qword [rcx + 0x10]
mov rdx, qword [rcx]
jmp 0x140001cf6
mov r8, qword [rcx + 0x10]
add r8, rcx
lea rcx, [rsp + 0x38]
call fcn.140004030
nop
lea r8, [rsp + 0x38]
cmp qword [rsp + 0x50], 7
cmova r8, qword [rsp + 0x38]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rbx, rax
cmp eax, 0x20
jg 0x140001d9f
mov edi, 9
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, di
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.Error_executing_the_file._Error_code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003e20
mov edx, ebx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x140003ff0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, di
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x140001de5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ddf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001ddf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004b8c
nop
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004b30
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140002ee0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140002f08
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140002f2e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002f30
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002f89
test ecx, ecx
jle 0x140002f69
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002f89
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002f89
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140002fb0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002fd2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140002fe8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140003004
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003006
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003042
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400030de
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000307d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400030be
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400030de
cmp rbx, rax
ja 0x140003090
test rbx, rbx
je 0x1400030de
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret