joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012980
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
lea rbp, [rsp - 0x450]
sub rsp, 0x550
mov rax, qword [0x1400213f8]
xor rax, rsp
mov qword [rbp + 0x440], rax
mov rdx, 0xffffffffffffffff
lea rsi, [rcx + 0x410]
mov rbx, rcx
mov rax, rdx
lea rcx, [0x140022e84]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400129c6
not eax
inc rdx
cmp word [rbx + rdx*2], 0
jne 0x1400129d2
add eax, edx
mov qword [rsp + 0x28], rbx
mov edx, 0x100
mov dword [rsp + 0x20], eax
mov r9, rsi
lea r8, str._s_.s_pre.bat
lea rcx, [rbp + 0x30]
call fcn.1400021e0
lea rdx, [rbp]
lea rcx, [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64i32]
cmp eax, 0xffffffff
je 0x140012baf
lea rax, [rbx + 0x208]
mov qword [rsp + 0x568], rdi
lea r9, [0x140022ea4]
mov qword [rsp + 0x20], rax
lea r8, str._s_s_pre.log
mov edx, 0x104
lea rcx, [rbp + 0x230]
call fcn.1400021e0
xor ebx, ebx
mov qword [rsp + 0x58], 0x18
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x58]
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 0x230]
mov edx, 0x40000000
mov qword [rsp + 0x68], 1
lea r8d, [rbx + 3]
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xorps xmm0, xmm0
lea rcx, [rbp - 0x70]
mov rdi, rax
xor eax, eax
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x80], rax
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp dword [0x1400234d0], ebx
lea rdx, [rbp + 0x30]
mov eax, 0xa
mov dword [rbp - 0x70], 0x68
mov word [rbp - 0x30], ax
mov ecx, reloc.WS2_32.dll_recv
mov eax, 0x8000000
mov dword [rbp - 0x34], 0x100
cmovne eax, ecx
mov qword [rbp - 0x20], rbx
lea rcx, [rsp + 0x70]
mov qword [rbp - 0x18], rdi
mov qword [rsp + 0x48], rcx
xor r9d, r9d
lea rcx, [rbp - 0x70]
mov qword [rbp - 0x10], rdi
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov qword [rsp + 0x38], rsi
xor ecx, ecx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140012ba7
cmp dword [0x1400234dc], ebx
jl 0x140012b83
nop word [rax + rax]
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x140012b83
cmp dword [rsp + 0x50], 0x103
jne 0x140012b83
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, dword [0x1400234dc]
jle 0x140012b50
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140012ba7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x568]
mov rcx, qword [rbp + 0x440]
xor rcx, rsp
call fcn.140016590
lea r11, [rsp + 0x550]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140012be0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400213f8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov edi, ecx
xor esi, esi
xor edx, edx
xor ecx, ecx
lea r8d, [rsi + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x140012cbd
mov r8d, 4
mov qword [rsp + 0x60], rbx
lea rdx, str.OpenVPNServiceInteractive
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x140012c5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x140012c5c
test edi, edi
je 0x140012cad
mov ecx, 0x6b0
call fcn.140003f10
jmp 0x140012cad
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140012c9f
cmp dword [rsp + 0x24], 4
je 0x140012c9a
test edi, edi
je 0x140012c9f
call fcn.1400068e0
test eax, eax
je 0x140012c8e
mov ecx, 0x6b1
call fcn.140003f10
jmp 0x140012c9f
mov ecx, 0x6af
call fcn.140003f10
jmp 0x140012c9f
mov esi, 1
test rbx, rbx
je 0x140012cad
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x60]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140016590
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140012ce0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1400213f8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
xor edx, edx
xor ecx, ecx
lea r8d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140012d25
mov dword [0x140022430], 0xffffffff
call fcn.140014830
jmp 0x140012dd1
mov r8d, 4
mov qword [rsp + 0x60], rsi
lea rdx, [0x14001bb80]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x140012d63
mov ecx, 0x6a6
call fcn.140003f10
mov dword [0x140022430], 0xffffffff
call fcn.140014830
jmp 0x140012dc3
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140012d81
mov ecx, 0x6a8
call fcn.140003f10
jmp 0x140012dba
cmp dword [rsp + 0x24], 4
jne 0x140012da8
mov dword [0x140022430], 2
call fcn.140014830
mov ecx, 3
call fcn.1400148e0
mov ebx, 1
jmp 0x140012dba
mov dword [0x140022430], ebx
call fcn.140014830
xor ecx, ecx
call fcn.1400148e0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140016590
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140012df0
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400213f8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor edi, edi
mov rsi, rax
test rax, rax
jne 0x140012e38
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 0x6aa
call fcn.140003f10
jmp 0x140012ef4
mov r8d, 0x20
mov qword [rsp + 0x68], rbp
lea rdx, [0x14001bb80]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
jne 0x140012e6a
mov ecx, 0x6a6
call fcn.140003f10
jmp 0x140012ee6
mov qword [rsp + 0x60], rbx
mov ebx, edi
cmp dword [0x140022418], ebx
jle 0x140012ea5
nop dword [rax]
movsxd rax, ebx
mov edx, 1
imul rcx, rax, 0xdd0
add rcx, qword [0x140022408]
call fcn.1400126e0
inc ebx
cmp ebx, dword [0x140022418]
jl 0x140012e80
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rbx, qword [rsp + 0x60]
test eax, eax
jne 0x140012ecd
mov ecx, 0x6ab
call fcn.140003f10
jmp 0x140012edd
mov dword [0x140022430], edi
call fcn.140014830
call fcn.1400132c0
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x68]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140012f30
test eax, eax
setne dil
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140016590
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140012f30
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1400213f8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [0x140022430], 1
call fcn.140014830
call fcn.1400132c0
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor edi, edi
mov r14, rax
test rax, rax
jne 0x140012f87
mov ecx, 0x6aa
call fcn.140003f10
jmp 0x1400130d9
mov r8d, socket
lea rdx, [0x14001bb80]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
jne 0x140012fb4
mov ecx, 0x6a6
call fcn.140003f10
jmp 0x1400130d0
mov ebx, edi
cmp dword [0x140022418], ebx
jle 0x140012fe0
nop
movsxd rax, ebx
imul rcx, rax, 0xdd0
add rcx, qword [0x140022408]
call fcn.140012980
inc ebx
cmp ebx, dword [0x140022418]
jl 0x140012fc0
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140012ffc
mov ecx, 0x6a7
jmp 0x1400130c2
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140013018
mov ecx, 0x6a8
jmp 0x1400130c2
mov qword [rsp + 0x70], rsi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [rsp + 0x34]
mov esi, eax
mov eax, dword [rsp + 0x24]
cmp eax, 2
jne 0x1400130b3
mov qword [rsp + 0x78], r15
mov r15d, 0x1388
mov eax, 0xcccccccd
mul dword [rsp + 0x38]
shr edx, 3
cmp edx, 0x3e8
jae 0x14001305c
mov edx, 0x3e8
jmp 0x140013063
cmp edx, r15d
cmova edx, r15d
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400130aa
cmp dword [rsp + 0x34], ebx
jbe 0x140013091
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [rsp + 0x34]
mov esi, eax
jmp 0x14001309f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, dword [rsp + 0x38]
ja 0x1400130aa
mov eax, dword [rsp + 0x24]
cmp eax, 2
je 0x140013041
jmp 0x1400130ae
mov eax, dword [rsp + 0x24]
mov r15, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
cmp eax, 4
je 0x1400130f0
mov ecx, 0x6a9
call fcn.140003f10
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [0x140022430], edi
call fcn.140014830
call fcn.1400132c0
xor eax, eax
jmp 0x140013169
cmp dword [0x140022418], edi
jle 0x140013125
nop dword [rax + rax]
movsxd rax, edi
mov edx, 1
imul rcx, rax, 0xdd0
add rcx, qword [0x140022408]
call fcn.1400123f0
inc edi
cmp edi, dword [0x140022418]
jl 0x140013100
mov dword [0x140022430], 2
call fcn.140014830
call fcn.1400132c0
mov ecx, 0x519
call fcn.140003b60
mov rcx, rax
lea rdx, [0x140018fbc]
call fcn.140014cc0
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140016590
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret
Function at 0x140013190
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400213f8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edi, edi
xor edx, edx
xor ecx, ecx
lea r8d, [rdi + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x1400131da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 0x6aa
call fcn.140003f10
xor eax, eax
jmp 0x14001329b
mov r8d, 0x20
mov qword [rsp + 0x68], rbp
lea rdx, [0x14001bb80]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
jne 0x14001320c
mov ecx, 0x6a6
call fcn.140003f10
jmp 0x14001328b
mov qword [rsp + 0x60], rbx
mov ebx, edi
cmp dword [0x140022418], ebx
jle 0x140013245
nop dword [rax + rax]
movsxd rax, ebx
mov edx, 1
imul rcx, rax, 0xdd0
add rcx, qword [0x140022408]
call fcn.1400126e0
inc ebx
cmp ebx, dword [0x140022418]
jl 0x140013220
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rbx, qword [rsp + 0x60]
test eax, eax
jne 0x14001326d
mov ecx, 0x6ab
call fcn.140003f10
jmp 0x140013282
mov dword [0x140022430], edi
call fcn.140014830
call fcn.1400132c0
mov edi, 1
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x68]
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140016590
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140014dd0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x500
mov rax, qword [0x1400213f8]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
xorps xmm0, xmm0
lea r8, [0x140018d40]
xor eax, eax
mov edx, 0x208
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x60], rax
movsxd rax, ecx
mov rcx, qword [0x140022408]
imul rbx, rax, 0xdd0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
add rcx, rbx
mov qword [rsp + 0x20], rcx
movups xmmword [rsp + 0xa0], xmm0
lea r9, [rcx + 0x410]
lea rcx, [rsp + 0xe0]
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0x50], xmm0
call fcn.1400021e0
mov edx, 6
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov rcx, qword [0x140022408]
lea r8, [rsp + 0xe0]
add rcx, 0x410
mov dword [rsp + 0x28], 1
add rcx, rbx
lea rdx, str.open
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov rcx, qword [0x1400234f0]
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
ja 0x140014fab
mov rcx, qword [0x140022408]
lea r9, [0x1400232b8]
add rcx, rbx
lea r8, str._s___s_s_
mov qword [rsp + 0x28], rcx
mov edx, 0x208
lea rax, [rcx + 0x410]
lea rcx, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
call fcn.1400021e0
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov rcx, qword [0x140022408]
lea rdx, [rsp + 0xe0]
add rcx, 0x410
mov dword [rsp + 0x70], 0x68
add rcx, rbx
xor r8d, r8d
mov eax, 0xa
mov dword [rsp + 0xac], r8d
mov word [rsp + 0xb0], ax
xorps xmm0, xmm0
lea rax, [rsp + 0x50]
movdqa xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
xor ecx, ecx
mov qword [rsp + 0x30], r8
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140014f95
lea rdx, [0x1400232b8]
mov ecx, 0x44e
call fcn.140003f10
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.140016590
add rsp, 0x500
pop rbx
ret
Function at 0x140014fd0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x500
mov rax, qword [0x1400213f8]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
xorps xmm0, xmm0
movsxd rbx, ecx
xor eax, eax
xor ecx, ecx
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0xd0], rax
movups xmmword [rsp + 0x80], xmm0
lea edx, [rax + 6]
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov r8, qword [0x140022408]
lea rdi, [0x140022ea4]
mov rcx, qword [0x1400234f0]
lea rdx, str.open
add r8, 0x618
mov dword [rsp + 0x28], 1
imul rbx, rbx, 0xdd0
xor r9d, r9d
mov qword [rsp + 0x20], rdi
add r8, rbx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
ja 0x140015166
mov rcx, qword [0x140022408]
lea r9, [0x1400230b0]
add rcx, 0x618
lea r8, str._s___s_
add rcx, rbx
mov edx, 0x208
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0xe0]
call fcn.1400021e0
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor ecx, ecx
mov dword [rsp + 0x70], 0x68
mov eax, 0xa
mov dword [rsp + 0xac], ecx
mov word [rsp + 0xb0], ax
lea rdx, [rsp + 0xe0]
lea rax, [rsp + 0x50]
xorps xmm0, xmm0
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
movdqa xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140015150
lea rdx, [0x1400230b0]
mov ecx, 0x44d
call fcn.140003f10
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.140016590
mov rbx, qword [rsp + 0x518]
add rsp, 0x500
pop rdi
ret
Function at 0x140015c10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov r8d, 1
lea rdx, [0x140015c50]
mov ecx, 0x190
jmp fcn.140003d40

Function at 0x140015c30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov r8d, 2
lea rdx, [0x140015c50]
mov ecx, 0x190
jmp fcn.140003d40
Function at 0x1400011e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x13e8
call fcn.14008e8c0
sub rsp, rax
movaps xmmword [rsp + 0x13d0], xmm6
movaps xmmword [rsp + 0x13c0], xmm7
mov rax, qword [0x140100010]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
movss xmm6, dword [0x14010004c]
movss xmm7, dword [0x140100048]
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x24], eax
nop dword [rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x24], eax
inc rdx
cmp rdx, 0x270
jb 0x140001240
movsd xmm3, qword [0x1400f0548]
xorps xmm1, xmm1
mov edx, 0x270
xorps xmm4, xmm4
cvtss2sd xmm1, xmm6
mov dword [rsp + 0x20], edx
mov r10d, 2
movsd xmm6, qword [0x1400f05c0]
xorps xmm5, xmm5
cvtss2sd xmm4, xmm7
xorps xmm2, xmm2
cmp edx, 0x270
jne 0x1400012f2
lea r8, [rsp + 0x28]
mov r9d, edx
nop dword [rax]
nop word [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x1400012b0
mov edx, dword [rsp + 0x20]
jmp 0x1400013d0
cmp edx, 0x4e0
jb 0x1400013d0
xor r8d, r8d
mov eax, dword [rsp + r8*4 + 0x9e4]
mov edx, eax
xor edx, dword [rsp + r8*4 + 0x9e8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [rsp + r8*4 + 0x1018]
xor ecx, edx
mov dword [rsp + r8*4 + 0x24], ecx
inc r8
cmp r8, 0xe3
jb 0x140001301
mov r8d, 0xe3
nop word [rax + rax]
mov eax, dword [rsp + r8*4 + 0x9e4]
mov edx, eax
xor edx, dword [rsp + r8*4 + 0x9e8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [rsp + r8*4 - 0x368]
xor ecx, edx
mov dword [rsp + r8*4 + 0x24], ecx
inc r8
cmp r8, 0x26f
jb 0x140001350
mov edx, dword [rsp + 0x13a0]
mov eax, dword [rsp + 0x24]
and edx, 0x80000000
btr eax, 0x1f
or edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, edx
xor ecx, dword [rsp + 0x654]
xor edx, edx
mov dword [rsp + 0x9e0], ecx
mov dword [rsp + 0x20], edx
mov eax, edx
xorps xmm0, xmm0
inc edx
mov ecx, dword [rsp + rax*4 + 0x24]
mov eax, ecx
shr eax, 0xb
and eax, dword [rsp + 0x13a4]
xor ecx, eax
mov dword [rsp + 0x20], edx
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2sd xmm0, rax
subsd xmm0, xmm5
mulsd xmm0, xmm3
mulsd xmm3, xmm6
addsd xmm2, xmm0
sub r10, 1
jne 0x140001292
divsd xmm2, xmm3
subsd xmm1, xmm4
xorps xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm4
cvtsd2ss xmm0, xmm1
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.14008d7f0
movaps xmm6, xmmword [rsp + 0x13d0]
movaps xmm7, xmmword [rsp + 0x13c0]
add rsp, 0x13e8
ret
Function at 0x140017a70
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 0x140017a98
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 0x140017abe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140017ac0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140017b19
test ecx, ecx
jle 0x140017af9
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 0x140017b19
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140017b19
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 0x140017b40
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 0x140017b62
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140017b78
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 0x140017b94
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140017b96
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140017bd2
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 0x140017c6e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140017c0d
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 0x140017c4e
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 0x140017c6e
cmp rbx, rax
ja 0x140017c20
test rbx, rbx
je 0x140017c6e
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