joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00404480]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00404490]
mov dword [rax], 1
mov rax, qword [0x004044a0]
mov dword [rax], 1
mov rax, qword [0x00404470]
mov dword [rax], 1
mov rax, qword [0x00404360]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00404460]
mov dword [0x00407008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00404420]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00404310]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401550
Capabilities:
Create udp socket
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push rbp
sub rsp, 0x600
lea rbp, [rsp + 0x80]
call sym.__main
lea rax, [rbp - 0x60]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WSOCK32.dll_WSAStartup]
call rax
mov dword [rbp + 0x57c], eax
mov r8d, 0
mov edx, 2
mov ecx, 2
mov rax, qword [sym.imp.WSOCK32.dll_socket]
call rax
mov qword [rbp + 0x570], rax
lea rax, [rbp + 0x140]
mov edx, 0x400
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_gethostname]
call rax
lea rax, [rbp + 0x140]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_gethostbyname]
call rax
mov qword [rbp + 0x568], rax
mov rax, qword [rbp + 0x568]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rbp + 0x54c], eax
mov rax, qword [rbp + 0x570]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WSOCK32.dll_WSACleanup]
call rax
mov eax, dword [rbp + 0x54c]
mov ecx, eax
mov rax, qword [sym.imp.WSOCK32.dll_inet_ntoa]
call rax
mov rdx, rax
lea rcx, section..rdata
call sym.printf
call sym.getchar
mov eax, 0
add rsp, 0x600
pop rbp
ret
Function at 0x402740
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402750
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402760
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4027a1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402798
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4027a3
add rax, 0x28
cmp rax, r9
jne 0x402784
xor eax, eax
ret

Function at 0x402840
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404360]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4028ad
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4028ad
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4028ad
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4028a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4028af
add rax, 0x28
cmp rax, r9
jne 0x402890
xor eax, eax
add rsp, 0x28
ret

Function at 0x4029b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404360]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x4029d0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4029c8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402a2d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402a24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402a34
add rax, 0x28
cmp rax, r9
jne 0x402a10
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402a50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00404360]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402abe
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402abe
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402abe
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402abe
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402ab5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402ac5
add rcx, 0x28
cmp rcx, rax
jne 0x402aa0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402ad8
jmp 0x402abe
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402ae6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402abe
test r9d, r9d
jg 0x402ad0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x402d30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x180005220
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x130
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rbx, r9
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov rcx, qword [rcx]
xor edi, edi
test rcx, rcx
je 0x180005268
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x180005268
mov qword [rsi], rdi
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.180002ec0
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x88]
call fcn.1800053f0
nop
mov r8d, 0x20
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.180005200
nop
mov r8, rbp
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1800031e0
nop
mov rcx, qword [rsp + 0x78]
call fcn.18001d6d4
nop
mov rcx, qword [rsp + 0x88]
call fcn.18001d6d4
nop
mov rcx, qword [rsp + 0x60]
call fcn.18001d6d4
mov dword [rsp + 0xc0], 0x68
mov qword [rsp + 0xc8], rdi
xorps xmm0, xmm0
movdqa xmmword [rsp + 0xd0], xmm0
mov dword [rsp + 0xfc], edi
mov word [rsp + 0x102], di
mov qword [rsp + 0x108], rdi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x98]
call fcn.1800053c0
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
mov rcx, qword [rsp + 0x98]
call fcn.18001d6d4
test ebx, ebx
jne 0x180005375
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x18000538e
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0xa8]
mov qword [rsi], rax
mov rcx, qword [rsp + 0x50]
call fcn.18001d6d4
mov eax, edi
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x180006090
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov r11, rsp
push rsi
push rdi
sub rsp, 0x268
mov rax, qword [0x18005d3f0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [r11 + 8], rbx
mov rsi, rdx
mov qword [r11 - 0x18], r14
mov rbx, rcx
xor r14b, r14b
call fcn.1800083d0
xor edi, edi
test al, al
je 0x180006130
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
mov rcx, rbx
call fcn.1800068d0
test al, al
je 0x180006130
mov r8, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x290], rbp
lea edx, [rdi + 0x1a]
mov ebp, 1
mov qword [rsp + 0x20], rax
mov r9d, ebp
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
movzx ebx, r14b
cmove ebx, ebp
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x290]
test bl, bl
jne 0x180006144
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov r14, qword [rsp + 0x260]
lea rcx, [rsp + 0x40]
mov rbx, qword [rsp + 0x280]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], di
jne 0x180006160
test eax, eax
je 0x180006220
lea rcx, [rsp + 0x40]
sub rcx, 2
nop word [rax + rax]
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x180006180
mov eax, dword [0x18003ff24]
lea rdx, [rsp + 0x40]
sub rdx, 2
mov dword [rcx], eax
nop dword [rax + rax]
cmp word [rdx + 2], di
lea rdx, [rdx + 2]
jne 0x1800061a0
mov ecx, dword [0x18003fee8]
movups xmm0, xmmword [str.PuddingZip]
movups xmmword [rdx], xmm0
mov dword [rdx + 0x10], ecx
movzx ecx, word [0x18003feec]
mov word [rdx + 0x14], cx
lea rcx, [rsp + 0x40]
sub rcx, 2
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x1800061d1
mov dword [rcx], eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1800061f6
lea rcx, [rsp + 0x40]
call fcn.18000a4b0
cmp word [rsp + 0x40], di
je 0x180006210
lea rax, [rsp + 0x40]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x180006206
mov r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.180002310
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18001d7b0
add rsp, 0x268
pop rdi
pop rsi
ret
Function at 0x180006240
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov r11, rsp
push rsi
push rdi
sub rsp, 0x268
mov rax, qword [0x18005d3f0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [r11 + 8], rbx
mov rsi, rdx
mov qword [r11 - 0x18], r14
mov rbx, rcx
xor r14b, r14b
call fcn.1800083d0
xor edi, edi
test al, al
je 0x1800062e0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
mov rcx, rbx
call fcn.1800068d0
test al, al
je 0x1800062e0
mov r8, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x290], rbp
lea edx, [rdi + 0x1a]
mov ebp, 1
mov qword [rsp + 0x20], rax
mov r9d, ebp
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
movzx ebx, r14b
cmove ebx, ebp
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x290]
test bl, bl
jne 0x1800062f4
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov r14, qword [rsp + 0x260]
lea rcx, [rsp + 0x40]
mov rbx, qword [rsp + 0x280]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], di
jne 0x180006310
test eax, eax
je 0x1800063da
lea rcx, [rsp + 0x40]
sub rcx, 2
nop word [rax + rax]
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x180006330
mov eax, dword [0x18003ff24]
lea rdx, [rsp + 0x40]
sub rdx, 2
mov dword [rcx], eax
nop dword [rax + rax]
cmp word [rdx + 2], di
lea rdx, [rdx + 2]
jne 0x180006350
movzx ecx, word [0x18003ff20]
movups xmm0, xmmword [str.PuddingZip.users]
movups xmm1, xmmword [0x18003ff10]
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm1
mov word [rdx + 0x20], cx
lea rcx, [rsp + 0x40]
sub rcx, 2
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x180006383
mov dword [rcx], eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1800063a8
lea rcx, [rsp + 0x40]
call fcn.18000a4b0
cmp word [rsp + 0x40], di
je 0x1800063ca
lea rax, [rsp + 0x40]
or rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1800063c0
mov r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.180002310
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18001d7b0
add rsp, 0x268
pop rdi
pop rsi
ret
Function at 0x180006550
Capabilities:
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x798]
sub rsp, 0x898
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x18005d3f0]
xor rax, rsp
mov qword [rbp + 0x780], rax
mov edi, r9d
mov r14, r8
mov rsi, rdx
mov rbx, rcx
lea r9, [rcx + 0xd0]
cmp qword [r9 + 0x18], 8
jb 0x18000659f
mov r9, qword [r9]
mov r8d, edi
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, edi
jne 0x18000671b
mov qword [rsp + 0x50], 7
xor r15d, r15d
mov qword [rsp + 0x48], r15
mov word [rsp + 0x38], r15w
xor r8d, r8d
lea rdx, [0x18003f874]
lea rcx, [rsp + 0x38]
call fcn.180002310
nop
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x80]
call fcn.18001f6b0
mov r8d, edi
lea rdx, [0x1800401fc]
lea rcx, [rbp - 0x80]
call fcn.180009f60
lea rax, [rbp - 0x80]
mov r9, r14
mov r8, rsi
lea rdx, [rsp + 0x58]
mov rcx, rbx
mov qword [rsp + 0x20], rax
cmp byte [rbx + 1], r15b
je 0x180006676
call fcn.180006410
mov rbx, rax
lea rax, [rsp + 0x38]
cmp rax, rbx
je 0x180006674
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x180006652
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.180002460
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r15
mov word [rsp + 0x38], r15w
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.180009500
nop
jmp 0x1800066c7
call fcn.180006510
mov rbx, rax
lea rax, [rsp + 0x38]
cmp rax, rbx
je 0x1800066c7
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x1800066a5
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.180002460
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r15
mov word [rsp + 0x38], r15w
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.180009500
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1800066e4
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.180002460
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call fcn.180025928
mov ebx, eax
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x180006719
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.180002460
mov eax, ebx
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.18001d7b0
add rsp, 0x898
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180006740
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x888
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x18005d3f0]
xor rax, rsp
mov qword [rsp + 0x870], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x40], rdx
mov rsi, qword [rsp + 0x8e0]
xor edi, edi
mov dword [rsp + 0x30], edi
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x70]
call fcn.18001f6b0
lea rax, [rbp + 0xd0]
cmp qword [rax + 0x18], 8
jb 0x1800067ad
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x70]
mov r8, rsi
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 8
jb 0x1800067e6
mov rax, qword [rbx]
jmp 0x1800067e9
mov rax, rbx
mov word [rax], di
cmp word [rsp + 0x70], di
je 0x18000680a
lea rax, [rsp + 0x70]
or rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x180006800
mov r8, rdi
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.180002310
mov dword [rsp + 0x30], 1
cmp qword [rbx + 0x18], 8
jb 0x18000682e
mov rax, qword [rbx]
jmp 0x180006831
mov rax, rbx
mov r11, rsi
sub r11, rax
nop word [rax + rax]
movzx r10d, word [rax]
movzx edx, word [rax + r11]
sub r10d, edx
jne 0x180006856
add rax, 2
test edx, edx
jne 0x180006840
test r10d, r10d
jne 0x1800068a8
mov qword [rsp + 0x20], rsi
mov r9, r15
mov r8, r14
lea rdx, [rsp + 0x48]
mov rcx, rbp
cmp byte [rbp + 1], r10b
je 0x18000687b
call fcn.180006410
jmp 0x180006880
call fcn.180006510
mov rdx, rax
mov rcx, rbx
call fcn.180005ef0
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x1800068a8
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.180002460
mov rax, rbx
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.18001d7b0
add rsp, 0x888
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180006ab0
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x18005d3f0]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp qword [rcx + 0x48], 8
lea r8, [rcx + 0x30]
mov rbx, rcx
jb 0x180006adc
mov r8, qword [r8]
lea r9, str.Config
lea rdx, str._s_s_
lea rcx, [rsp + 0x20]
call fcn.180009f60
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180006b0d
lea rcx, [rsp + 0x20]
call fcn.18000a4b0
lea rax, [rsp + 0x20]
sub rax, 2
nop word [rax + rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x180006b20
movups xmm0, xmmword [str.Related.ini]
movsd xmm1, qword [0x180040150]
movups xmmword [rax], xmm0
movsd qword [rax + 0x10], xmm1
cmp word [rsp + 0x20], 0
jne 0x180006b4f
xor r8d, r8d
jmp 0x180006b6b
lea rax, [rsp + 0x20]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x180006b60
lea rcx, [rbx + 0xb0]
lea rdx, [rsp + 0x20]
call fcn.180002310
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18001d7b0
add rsp, 0x240
pop rbx
ret
Function at 0x180007310
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x18005d3f0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.18001f6b0
xor r9d, r9d
lea rdx, [rsp + 0x20]
xor ecx, ecx
lea r8d, [r9 + 0x26]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [rsp + 0x20], 0
jne 0x180007361
xor r8d, r8d
jmp 0x18000737b
lea rax, [rsp + 0x20]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x180007370
add rbx, 0x150
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.180002310
mov r8d, 1
lea rdx, [0x18003ff24]
mov rcx, rbx
call fcn.180009960
cmp qword [rbx + 0x18], 8
jb 0x1800073b0
mov rcx, qword [rbx]
jmp 0x1800073b3
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1800073d0
lea r8d, [rax + 0x11]
mov rcx, rbx
lea rdx, str.C:Program_Files_
call fcn.180002310
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18001d7b0
add rsp, 0x240
pop rbx
ret
Function at 0x1800083d0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x248
mov rax, qword [0x18005d3f0]
xor rax, rsp
mov qword [rsp + 0x230], rax
movzx eax, byte [0x18005e3d0]
test al, al
jne 0x180008482
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.18001f6b0
mov r9d, 1
lea rdx, [rsp + 0x20]
xor ecx, ecx
lea r8d, [r9 + 0x19]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x18000847b
lea rcx, [rsp + 0x20]
call fcn.1800260ec
lea rdx, str.config_systemprofile
lea rcx, [rsp + 0x20]
call fcn.18001f4a0
test rax, rax
jne 0x18000845b
lea rdx, str.cocuments_and_settingslocalService
lea rcx, [rsp + 0x20]
call fcn.18001f4a0
test rax, rax
je 0x18000847b
mov al, 1
mov byte [0x18005e3d0], al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18001d7b0
add rsp, 0x248
ret
movzx eax, byte [0x18005e3d0]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18001d7b0
add rsp, 0x248
ret
Function at 0x18000a260
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x660
mov rax, qword [0x18005d3f0]
xor rax, rsp
mov qword [rsp + 0x650], rax
mov rdi, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x230]
mov r8d, 0x208
call fcn.18001f6b0
xor edx, edx
lea rcx, [rsp + 0x440]
mov r8d, 0x208
call fcn.18001f6b0
lea rcx, [rsp + 0x230]
mov rdx, rsi
sub rcx, rsi
nop dword [rax]
movzx eax, word [rdx]
mov word [rcx + rdx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x18000a2c0
lea rdx, [rsp + 0x440]
mov rcx, rdi
sub rdx, rdi
nop
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x18000a2e0
lea rcx, [rsp + 0x230]
call fcn.1800260ec
lea rcx, [rsp + 0x440]
call fcn.1800260ec
lea rax, [rsp + 0x230]
lea r8, [rsp + 0x440]
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x18000a334
add rax, 2
test ecx, ecx
jne 0x18000a320
test edx, edx
je 0x18000a3fb
mov qword [rsp + 0x680], rbx
xor ebx, ebx
nop word [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.18001f6b0
lea rcx, [rsp + 0x20]
mov r8, rdi
test ebx, ebx
jne 0x18000a37c
lea rdx, str._s.bak
call fcn.18000cb80
jmp 0x18000a38b
mov r9d, ebx
lea rdx, str._s.bak_d
call fcn.18000cb80
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000a3a5
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1800273bc
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 5]
test eax, eax
jne 0x18000a3ed
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp ebx, 0xa
jge 0x18000a3f3
inc ebx
jmp 0x18000a350
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rbx, qword [rsp + 0x680]
mov rcx, qword [rsp + 0x650]
xor rcx, rsp
call fcn.18001d7b0
mov rsi, qword [rsp + 0x688]
add rsp, 0x660
pop rdi
ret

Function at 0x18000a420
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rdi, rdx
mov dword [rsp + 0x20], 0x70
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 0x6c]
call fcn.18001f6b0
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x24], 0x200
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x40], rdi
call fcn.18000bf40
test eax, eax
lea rcx, str.runas
cmovne rcx, qword [rsp + 0x30]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, eax
test eax, eax
jne 0x18000a497
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
Function at 0x18000a4b0
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
or r8, 0xffffffffffffffff
mov rbx, rcx
mov rdi, r8
nop dword [rax]
inc rdi
cmp word [rcx + rdi*2], 0
jne 0x18000a4d0
lea eax, [rdi + 1]
movsxd rcx, eax
mov eax, 2
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.18001d7d4
mov rsi, rax
sub rax, rbx
nop word [rax + rax]
movzx ecx, word [rbx]
mov word [rax + rbx], cx
lea rbx, [rbx + 2]
test cx, cx
jne 0x18000a500
xor r14d, r14d
movsxd rdi, edi
mov ebx, r14d
lea ebp, [r14 + 1]
test rdi, rdi
js 0x18000a56f
mov qword [rsp + 0x40], r15
mov r15d, 0x5c
nop dword [rax]
cmp word [rsi + rbx*2], r15w
jne 0x18000a55d
mov rcx, rsi
mov word [rsi + rbx*2], r14w
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18000a558
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x18000a567
mov word [rsi + rbx*2], r15w
inc rbx
cmp rbx, rdi
jle 0x18000a530
jmp 0x18000a56a
mov ebp, r14d
mov r15, qword [rsp + 0x40]
mov rcx, rsi
call fcn.18001d6d4
mov rbx, qword [rsp + 0x48]
mov eax, ebp
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret