joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18012b8a0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
xorps xmm0, xmm0
xor esi, esi
mov rbx, r8
mov rdi, rdx
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
test r8, r8
je 0x18012b9f7
mov qword [rsp + 0x40], rbp
movabs rbp, 0xf000f000f000f0
mov qword [rsp + 0x48], r12
movabs r12, 0xffffffff00000000
mov qword [rsp + 0x50], r14
movabs r14, 0xff000000ff00
mov qword [rsp + 0x58], r15
mov r15d, 0xffff0000
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rdi]
mov r10, qword [rdi + 8]
lea rdi, [rdi + 0x10]
mov rax, rdx
shr rax, 4
xor rax, rdx
and rax, rbp
mov r8, rax
shl r8, 4
xor r8, rax
xor r8, rdx
mov rdx, r8
shr rdx, 8
xor rdx, r8
and rdx, r14
mov rax, rdx
shl rax, 8
xor rax, rdx
xor r8, rax
mov rax, r8
shr rax, 0x10
xor rax, r8
and rax, r15
mov r11, rax
shl r11, 0x10
xor r11, rax
mov rax, r10
shr rax, 4
xor r11, r8
xor rax, r10
and rax, rbp
mov r9, rax
shl r9, 4
xor r9, rax
xor r9, r10
mov rdx, r9
shr rdx, 8
xor rdx, r9
and rdx, r14
mov rax, rdx
shl rax, 8
xor rax, rdx
xor r9, rax
mov rax, r9
shr rax, 0x10
xor rax, r9
and rax, r15
mov r8, rax
shl r8, 0x10
xor r8, rax
mov eax, r11d
xor r8, r9
shr r11, 0x20
mov rdx, r8
and r8, r12
shl rdx, 0x20
or r11, r8
or rdx, rax
mov qword [rcx + rsi*8 + 0x20], r11
mov qword [rcx + rsi*8], rdx
inc rsi
cmp rsi, rbx
jb 0x18012b910
mov r15, qword [rsp + 0x58]
mov r14, qword [rsp + 0x50]
mov r12, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
pop rsi
pop rbx
jmp fcn.18012ba10
Function at 0x18012bb50
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x18012bd31
mov r11, rsp
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x4c0
mov rax, qword [0x180223180]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov rbp, qword [rsp + 0x510]
mov rdi, r9
mov qword [r11 + 0x18], rbx
mov r15, r8
mov qword [r11 - 0x30], rsi
lea rbx, [rsp + 0x68]
mov qword [r11 - 0x38], r13
mov r12, rdx
lea r13, [r9 + 0xf0]
mov r14, rcx
xor esi, esi
nop dword [rax + rax]
mov rdx, qword [rdi]
lea rcx, [rbx - 8]
movq xmm0, qword [rdi + 8]
mov qword [rcx], rdx
unpcklpd xmm0, xmm0
movups xmmword [rbx + 0x18], xmm0
mov qword [rbx], rdx
mov qword [rbx + 8], rdx
movups xmmword [rbx + 0x28], xmm0
mov qword [rbx + 0x10], rdx
call fcn.18012ba10
mov eax, dword [r13]
lea rdi, [rdi + 0x10]
inc rsi
lea rbx, [rbx + 0x40]
cmp rsi, rax
jbe 0x18012bbb0
mov r8d, 4
lea rax, [rsp + 0x420]
mov ecx, r8d
lea rax, [rax + 0x10]
movups xmm0, xmmword [rbp]
movups xmmword [rax - 0x10], xmm0
sub rcx, 1
jne 0x18012bc00
mov edi, dword [rsp + 0x42c]
lea rbx, [rsp + 0x460]
bswap edi
sub rbx, r14
nop word [rax + rax]
xor ecx, ecx
lea rdx, [rsp + 0x42c]
nop word [rax + rax]
lea eax, [rcx + rdi]
inc rcx
lea rdx, [rdx + 0x10]
bswap eax
mov dword [rdx - 0x10], eax
cmp rcx, 4
jb 0x18012bc40
cmp r15, 4
lea rdx, [rsp + 0x420]
mov rsi, r15
lea rcx, [rsp + 0x20]
cmovae rsi, r8
mov r8, rsi
call fcn.18012b8a0
mov edx, dword [r13]
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.18012ac60
lea r8, [rsp + 0x20]
mov rdx, rsi
lea rcx, [rsp + 0x460]
call fcn.18012af00
test rsi, rsi
je 0x18012bcdb
mov r8, r12
mov rax, r14
sub r8, r14
mov r9, rsi
nop
mov edx, 2
nop word [rax + rax]
mov rcx, qword [rbx + rax]
xor rcx, qword [rax]
mov qword [r8 + rax], rcx
add rax, 8
sub rdx, 1
jne 0x18012bcc0
sub r9, 1
jne 0x18012bcb0
sub r15, rsi
je 0x18012bcfa
add r14, 0x40
sub rbx, 0x40
add r12, 0x40
mov r8d, 4
add edi, 4
jmp 0x18012bc30
mov rsi, qword [rsp + 0x4b8]
mov rbx, qword [rsp + 0x500]
mov r13, qword [rsp + 0x4b0]
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.180135ca0
add rsp, 0x4c0
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x18012be20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rdi, r8
cmp edx, 0x80
je 0x18012be74
cmp edx, 0x100
je 0x18012be56
mov eax, 1
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
mov rdx, rcx
mov rcx, rdi
call fcn.18012b340
xor eax, eax
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
mov qword [rsp + 0x90], rbp
mov rdx, rcx
mov qword [rsp + 0x98], rsi
lea rcx, [rsp + 0x20]
mov qword [rsp + 0xa0], r14
mov dword [r8 + 0xf0], 0xa
call fcn.18012ab60
movups xmm2, xmmword [rsp + 0x20]
mov ebx, 1
lea r14, [0x180169a40]
movabs rbp, 0xf000000000000
movups xmmword [rdi], xmm2
add rdi, 0x10
xor esi, esi
nop dword [rax + rax]
movq qword [rsp + 0x40], xmm2
lea rcx, [rsp + 0x40]
psrldq xmm2, 8
xorps xmm0, xmm0
xorps xmm1, xmm1
movq qword [rsp + 0x60], xmm2
mov qword [rsp + 0x48], rsi
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x68], rsi
movdqa xmmword [rsp + 0x70], xmm1
call fcn.18012ba10
lea rcx, [rsp + 0x40]
call fcn.18012b540
lea rcx, [rsp + 0x40]
call fcn.18012ba10
mov rax, qword [rsp + 0x40]
movzx r9d, byte [rbx + r14 - 1]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rax, rsi
nop dword [rax + rax]
mov rdx, qword [rsp + rax*8 + 0x30]
movzx ecx, al
shl cl, 2
mov r8, r9
shr r8, cl
mov rcx, rdx
shr rcx, 0x10
and r8d, 0xf
and rdx, rbp
or rcx, rdx
shr rcx, 0x24
xor r8, rcx
xor r8, qword [rsp + rax*8 + 0x20]
mov rcx, r8
shl rcx, 0x10
xor rcx, r8
shl rcx, 0x10
xor rcx, r8
shl rcx, 0x10
xor rcx, r8
mov qword [rsp + rax*8 + 0x20], rcx
inc rax
cmp rax, 2
jb 0x18012bf40
movups xmm2, xmmword [rsp + 0x20]
inc rbx
movups xmmword [rdi], xmm2
add rdi, 0x10
cmp rbx, 0xa
jbe 0x18012bed0
mov r14, qword [rsp + 0xa0]
xor eax, eax
mov rsi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x18012f420
Capabilities:
Encrypt data using curve25519

Disassembly:
movzx eax, byte [rcx + 0x1f]
and byte [rcx], 0xf8
and al, 0x3f
or al, 0x40
mov byte [rcx + 0x1f], al
ret
Function at 0x1801356d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor eax, eax
mov r11, rcx
mov r10d, 1
movabs rdi, 0x8000000000000000
lea ebx, [rax + 0x20]
nop dword [rax]
nop word [rax + rax]
shr rax, 1
mov r9, r10
and r9d, 1
neg r9
mov rdx, r9
and r9, rdi
add r9, rax
and rdx, r11
mov r8, rdx
shr r9, 1
xor r8, r10
and rdx, r10
shr r8, 1
add r8, rdx
mov rax, r8
and eax, 1
neg rax
mov rcx, rax
and rax, rdi
and rcx, r11
add rax, r9
mov r10, rcx
and rcx, r8
xor r10, r8
shr r10, 1
add r10, rcx
sub rbx, 1
jne 0x180135700
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x180138c50
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov ebp, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.18011f510
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180138cab
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x180138d24
mov r8d, 1
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.1800052b0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x180138d31
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
je 0x180138d24
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.1800052b0
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
jne 0x180138d13
jmp 0x180138d24

Function at 0x180024440
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
test edx, edx
je 0x18002445d
mov eax, 1
cmp edx, eax
jne 0x18002449f
mov qword [0x180075668], rcx
add rsp, 0x28
ret
cmp qword [0x180060a70], 0
je 0x18002449a
cmp qword [0x180060a78], 8
lea rcx, [0x180060a60]
cmovae rcx, qword [0x180060a60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r8d, r8d
lea rdx, [0x180034acc]
lea rcx, [0x180060a60]
call fcn.1800014a0
mov eax, 1
add rsp, 0x28
ret
Function at 0x401000
Capabilities:
Create service
Print debug messages
Start service

Disassembly:
mov r11, rsp
sub rsp, 0x188
mov rax, qword [0x00410008]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rcx, rdx
mov qword [r11 + 0x18], rbx
lea r8, [rsp + 0x70]
xor r9d, r9d
mov edx, 0x100
mov qword [r11 + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov rsi, rax
jne 0x401066
lea rcx, str.OpenSCManager___Faild___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ebx, ebx
jmp 0x4011d7
lea rcx, str.OpenSCManager___ok____n
mov qword [rsp + 0x180], rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ebx, ebx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
lea r8, str.ampa
lea rdx, str.ampa
mov r9d, 0xf01ff
mov rcx, rsi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
test rax, rax
mov rdi, rax
jne 0x40114e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4010ff
cmp eax, 0x431
je 0x4010ff
lea rcx, str.CrateService___Faild___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4011b8
lea rcx, str.CrateService___Faild_Service_is_ERROR_IO_PENDING_or_ERROR_SERVICE_EXISTS___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rdx, str.ampa
mov r8d, 0xf01ff
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
mov rdi, rax
jne 0x40113f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenService___Faild__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4011b8
lea rcx, str.OpenService___ok____n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40115b
lea rcx, str.CrateService___ok____n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4011b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4011a4
cmp eax, 0x420
je 0x401190
lea rcx, str.StartService___Faild___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4011b8
lea rcx, str.StartService___Faild_ERROR_SERVICE_ALREADY_RUNNING____n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, 1
jmp 0x4011b8
lea rcx, str.StartService___Faild_ERROR_IO_PENDING____n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4011b8
mov ebx, 1
test rdi, rdi
je 0x4011c6
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x180]
mov rsi, qword [rsp + 0x1a8]
mov eax, ebx
mov rbx, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.004014c0
add rsp, 0x188
ret
Function at 0x401210
Capabilities:
Delete service
Print debug messages
Stop service

Disassembly:
sub rsp, 0x48
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov rsi, rax
jne 0x401256
lea rcx, str.OpenSCManager___Faild___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ebx, ebx
mov eax, ebx
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
add rsp, 0x48
ret
lea rcx, str.OpenSCManager___ok____n
mov qword [rsp + 0x68], rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rdx, str.ampa
mov r8d, 0xf01ff
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
mov rdi, rax
jne 0x401297
lea rcx, str.OpenService___Faild____n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ebx, ebx
jmp 0x401302
lea rcx, str.OpenService___ok____n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, 1
lea r8, [rsp + 0x20]
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4012cc
lea rcx, str.ControlService___Faild___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4012d9
lea rcx, str.ControlService___ok___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4012f5
lea rcx, str.DeleteSrevice___Faild___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x401302
lea rcx, str.DelServer:DeleteSrevice___ok___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test rdi, rdi
je 0x401310
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x48
ret
Function at 0x401330
Capabilities:
Accept command line arguments
Print debug messages

Disassembly:
mov r11, rsp
sub rsp, 0x468
mov rax, qword [0x00410008]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov qword [r11 - 8], rbx
xor ebx, ebx
mov qword [r11 - 0x18], rdi
mov dword [rsp + 0x30], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test rax, rax
je 0x4013a5
cmp dword [rsp + 0x30], 1
jle 0x4013a5
mov qword [rsp + 0x458], rsi
mov rsi, qword [rax + 8]
lea rdi, [0x0040d748]
mov ecx, 3
mov eax, 1
repe cmpsw word [rsi], word [rdi]
mov rsi, qword [rsp + 0x458]
cmove ebx, eax
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x1ff
mov byte [rsp + 0x40], 0
call fcn.00406300
lea rcx, [rsp + 0x40]
mov edx, 0x200
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
test eax, eax
jne 0x4013dc
lea rcx, str.Failed_to_get_system_windows_directory__n
jmp 0x40147a
lea rcx, [rsp + 0x241]
xor edx, edx
mov r8d, 0x1ff
mov byte [rsp + 0x240], 0
call fcn.00406300
lea rdi, str.ampa
lea r9, [rsp + 0x40]
lea r8, str._s_system32_s.sys
lea rcx, [rsp + 0x240]
mov edx, 0x200
mov qword [rsp + 0x20], rdi
call fcn.004014e0
test ebx, ebx
jne 0x401451
lea rcx, str.____________Install_AMPA_Drive__________________n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rdx, [rsp + 0x240]
mov rcx, rdi
call section..text
test eax, eax
jne 0x401473
lea rcx, str.Failed_to_Install_drive._n
jmp 0x40147a
lea rcx, str.____________Uninstall_AMPA_Drive__________________n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, rdi
call fcn.00401210
test eax, eax
jne 0x401473
lea rcx, str.Failed_to_Uninstall_drive._n
jmp 0x40147a
lea rcx, str.OK_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rdi, qword [rsp + 0x450]
mov rbx, qword [rsp + 0x460]
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.004014c0
add rsp, 0x468
ret
Function at 0x4018c7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x00410008]
jne 0x4014da
rol rcx, 0x10
test cx, 0xffff
jne 0x4014d6
repz ret
ror rcx, 0x10
jmp 0x401820
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x00411560]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x00411658]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x4018a5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x00411560]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x4018c7
mov rax, qword [rsp + 0x88]
mov qword [0x00411658], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x004115f8], rax
mov rax, qword [0x00411658]
mov qword [0x004114d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x004115e0], rax
mov dword [0x004114c0], 0xc0000409
mov dword [0x004114c4], 1
mov rax, qword [0x00410008]
mov qword [rsp + 0x68], rax
mov rax, qword [0x00410010]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x00411558], eax
mov ecx, 1
call fcn.00403de0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0040c330]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x00411558], 0
jne 0x40194e
mov ecx, 1
call fcn.00403de0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x407e50
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.00403750
xor ebx, ebx
cmp qword [0x004121c8], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x407f81
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x407eb3
xor eax, eax
jmp 0x408061
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x407eac
mov rcx, rax
call fcn.004036e0
lea rdx, str.GetActiveWindow
mov rcx, rbp
mov qword [0x004121c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.004036e0
lea rdx, str.GetLastActivePopup
mov rcx, rbp
mov qword [0x004121d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.004036e0
lea rcx, [rsp + 0x30]
mov qword [0x004121d8], rax
call fcn.004020f0
test eax, eax
je 0x407f37
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.00401b60
cmp dword [rsp + 0x30], 2
jne 0x407f81
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.004036e0
test rax, rax
mov qword [0x004121e8], rax
je 0x407f81
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.004036e0
mov qword [0x004121e0], rax
mov rcx, qword [0x004121e0]
cmp rcx, rsi
je 0x408013
cmp qword [0x004121e8], rsi
je 0x408013
call fcn.004037b0
call rax
test rax, rax
mov rbp, rax
je 0x407fde
mov rcx, qword [0x004121e8]
call fcn.004037b0
lea rcx, [rsp + 0x38]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x407fde
test byte [rsp + 0x48], 1
jne 0x408013
lea rcx, [rsp + 0x34]
call fcn.00402140
test eax, eax
je 0x408000
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.00401b60
cmp dword [rsp + 0x34], 4
jb 0x40800d
bts edi, 0x15
jmp 0x408047
bts edi, 0x12
jmp 0x408047
mov rcx, qword [0x004121d0]
cmp rcx, rsi
je 0x408047
call fcn.004037b0
call rax
test rax, rax
mov rbx, rax
je 0x408047
mov rcx, qword [0x004121d8]
cmp rcx, rsi
je 0x408047
call fcn.004037b0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x004121c8]
call fcn.004037b0
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x140001710
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0x68], rax
xorps xmm6, xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov ecx, 2
mov edx, 0x4000000
call fcn.140012c00
test rax, rax
je 0x140001837
mov r15, rax
mov rax, qword [rbx + 8]
mov qword [rsp + 0x30], rax
movups xmmword [rsp + 0x38], xmm6
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 0
mov rax, qword [rbx + 0x20]
mov qword [rsp + 0x58], rax
xor esi, esi
lea r12, [rsp + 0x30]
jmp 0x1400017a8
test ebp, ebp
jne 0x140001845
mov eax, dword [rdi + 0xc]
test eax, eax
je 0x14000183e
cmp esi, eax
jge 0x1400017f6
mov rax, qword [rsp + 0x38]
cmp rax, qword [rsp + 0x40]
jne 0x1400017f6
mov eax, dword [rbx + 0x18]
mov rcx, qword [rbx]
mov r9, qword [rbx + 8]
mov dword [rsp + 0x20], eax
mov rdx, rdi
mov r8d, esi
call fcn.140010bc0
test eax, eax
jle 0x140001878
add esi, eax
cdqe
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov rcx, r15
mov rdx, r12
call fcn.1400118d0
mov ebp, eax
mov r8, qword [rsp + 0x50]
cmp r8, qword [rbx + 0x20]
jne 0x1400017a0
mov rcx, qword [rbx + 0x10]
mov edx, 1
mov r9, r14
call fcn.140021258
cmp rax, qword [rsp + 0x50]
jne 0x140001871
mov qword [rsp + 0x50], 0
xor r8d, r8d
jmp 0x1400017a0
mov esi, 0x27
jmp 0x140001885
mov esi, 0x28
jmp 0x14000187d
mov esi, 0x27
cmp ebp, 1
jne 0x14000187d
mov rcx, qword [rbx + 0x10]
mov edx, 1
mov r9, r14
call fcn.140021258
xor ecx, ecx
cmp rax, qword [rsp + 0x50]
mov esi, 0x46
cmove esi, ecx
jmp 0x14000187d
mov esi, 0x46
jmp 0x14000187d
mov esi, 6
mov rcx, r15
call fcn.140012d10
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140023fe0
mov eax, esi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140003a60
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov dx, 0x2f
call fcn.1400164fc
test rax, rax
je 0x140003a95
mov rsi, rax
mov word [rax], 0
mov rcx, rdi
call fcn.140003a60
mov ebx, eax
test eax, eax
je 0x140003aa1
mov word [rsi], 0x2f
jmp 0x140003a97
xor ebx, ebx
mov eax, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
xor ebx, ebx
cmp word [rdi], 0
je 0x140003a8e
mov rcx, rdi
call fcn.14001f65c
test eax, eax
jns 0x140003a8e
call fcn.14001ba74
cmp dword [rax], 0x11
je 0x140003a8e
mov eax, dword [0x140048558]
mov ecx, dword [0x140045e44]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003b05
call fcn.14001ba74
mov r9d, dword [rax]
lea rcx, [0x140048348]
lea rdx, str.ensure_parent_dir:_failed_to_create_directory:__S__err:__d
mov r8, rdi
call fcn.14000ed50
mov ebx, 7
jmp 0x140003a8e
lea rcx, [0x140048558]
call fcn.140014020
cmp dword [0x140048558], 0xffffffff
jne 0x140003ae0
mov qword [0x140048348], 0
lea rcx, [0x14000ac50]
call fcn.1400141d8
lea rcx, [0x140048558]
call fcn.140014088
jmp 0x140003ae0