joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c860
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c818
test byte [rbx + 0x40], 0xc
jne 0x14001c7cf
mov eax, dword [0x140de9658]
test eax, eax
jne 0x14001c7e0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001a720
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001c803
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001c803
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001c82c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001aa10
call fcn.14001b550
test rax, rax
mov rbx, rax
jne 0x14001c7bf
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001c84a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001aa10
call fcn.14001c6c0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001c8d0
call fcn.14001d9b0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001c908
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c960
test esi, esi
je 0x14001c8e6
call fcn.14001c7a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c940
mov edx, edi
call fcn.14001da60
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c950
call fcn.14001c7a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x14001c8a5
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c8be
call fcn.14001b550
jmp 0x14001c8e6
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a1

Function at 0x14001c970
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c9e0
test esi, esi
je 0x14001c9c0
call fcn.14001c7a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c9f0
mov edx, esi
call fcn.14001da60
call fcn.14001c7a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001c7a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c7a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001b550
mov rbx, rax
jmp 0x14001c991
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c9aa
Function at 0x180005460
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 0x1800054a8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1800054a8
mov qword [rsi], rdi
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.1800030f0
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x88]
call fcn.180005630
nop
mov r8d, 0x20
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.180005440
nop
mov r8, rbp
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.180003410
nop
mov rcx, qword [rsp + 0x78]
call fcn.18001c770
nop
mov rcx, qword [rsp + 0x88]
call fcn.18001c770
nop
mov rcx, qword [rsp + 0x60]
call fcn.18001c770
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.180005600
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.18001c770
test ebx, ebx
jne 0x1800055b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1800055ce
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.18001c770
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 0x180006250
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov r11, rsp
push rsi
push rdi
sub rsp, 0x268
mov rax, qword [0x18005c800]
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.1800078b0
xor edi, edi
test al, al
je 0x1800062f0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
mov rcx, rbx
call fcn.1800068d0
test al, al
je 0x1800062f0
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 0x180006304
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 0x180006320
test eax, eax
je 0x1800063e0
lea rcx, [rsp + 0x40]
sub rcx, 2
nop word [rax + rax]
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x180006340
mov eax, dword [0x18003eef8]
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 0x180006360
mov ecx, dword [0x18003eee0]
movups xmm0, xmmword [str.WanNengZip]
movups xmmword [rdx], xmm0
mov dword [rdx + 0x10], ecx
movzx ecx, word [0x18003eee4]
mov word [rdx + 0x14], cx
lea rcx, [rsp + 0x40]
sub rcx, 2
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x180006391
mov dword [rcx], eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1800063b6
lea rcx, [rsp + 0x40]
call fcn.1800098d0
cmp word [rsp + 0x40], di
je 0x1800063d0
lea rax, [rsp + 0x40]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1800063c6
mov r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.180002540
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18001c850
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 [0x18005c800]
xor rax, rsp
mov qword [rbp + 0x780], rax
mov edi, r9d
mov r14, r8
mov rsi, rdx
mov rbx, rcx
lea r9, [rcx + 0xb0]
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, [0x18003e880]
lea rcx, [rsp + 0x38]
call fcn.180002540
nop
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x80]
call fcn.18001e750
mov r8d, edi
lea rdx, [0x18003f1bc]
lea rcx, [rbp - 0x80]
call fcn.1800093d0
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.180002690
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r15
mov word [rsp + 0x38], r15w
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.180008970
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.180002690
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r15
mov word [rsp + 0x38], r15w
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.180008970
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1800066e4
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.180002690
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call fcn.1800249dc
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.180002690
mov eax, ebx
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.18001c850
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 [0x18005c800]
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.18001e750
lea rax, [rbp + 0xb0]
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.180002540
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.180006120
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x1800068a8
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.180002690
mov rax, rbx
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.18001c850
add rsp, 0x888
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180006a80
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x18005c800]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp qword [rcx + 0x28], 8
lea r8, [rcx + 0x10]
mov rbx, rcx
jb 0x180006aac
mov r8, qword [r8]
lea r9, str.Config
lea rdx, str._s_s_
lea rcx, [rsp + 0x20]
call fcn.1800093d0
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180006add
lea rcx, [rsp + 0x20]
call fcn.1800098d0
lea rax, [rsp + 0x20]
sub rax, 2
nop word [rax + rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x180006af0
movups xmm0, xmmword [str.Related.ini]
movsd xmm1, qword [0x18003f110]
movups xmmword [rax], xmm0
movsd qword [rax + 0x10], xmm1
cmp word [rsp + 0x20], 0
jne 0x180006b1f
xor r8d, r8d
jmp 0x180006b3b
lea rax, [rsp + 0x20]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x180006b30
lea rcx, [rbx + 0x90]
lea rdx, [rsp + 0x20]
call fcn.180002540
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18001c850
add rsp, 0x240
pop rbx
ret
Function at 0x180006f80
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x18005c800]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.18001e750
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 0x180006fd1
xor r8d, r8d
jmp 0x180006feb
lea rax, [rsp + 0x20]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x180006fe0
add rbx, 0x130
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.180002540
mov r8d, 1
lea rdx, [0x18003eef8]
mov rcx, rbx
call fcn.180008dd0
cmp qword [rbx + 0x18], 8
jb 0x180007020
mov rcx, qword [rbx]
jmp 0x180007023
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180007040
lea r8d, [rax + 0x11]
mov rcx, rbx
lea rdx, str.C:Program_Files_
call fcn.180002540
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18001c850
add rsp, 0x240
pop rbx
ret
Function at 0x1800078b0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x248
mov rax, qword [0x18005c800]
xor rax, rsp
mov qword [rsp + 0x230], rax
movzx eax, byte [0x18005d7d0]
test al, al
jne 0x180007962
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.18001e750
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 0x18000795b
lea rcx, [rsp + 0x20]
call fcn.1800251a0
lea rdx, str.config_systemprofile
lea rcx, [rsp + 0x20]
call fcn.18001e540
test rax, rax
jne 0x18000793b
lea rdx, str.cocuments_and_settingslocalService
lea rcx, [rsp + 0x20]
call fcn.18001e540
test rax, rax
je 0x18000795b
mov al, 1
mov byte [0x18005d7d0], al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18001c850
add rsp, 0x248
ret
movzx eax, byte [0x18005d7d0]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18001c850
add rsp, 0x248
ret
Function at 0x1800085d0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [0x18005c800]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov qword [rsp + 0x490], rdi
xor edx, edx
mov rdi, rcx
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call fcn.18001e750
xor edx, edx
lea rcx, [rsp + 0x250]
mov r8d, 0x208
call fcn.18001e750
mov rcx, rdi
xor bl, bl
call fcn.1800078b0
test al, al
je 0x180008694
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], 0
mov rcx, rdi
call fcn.1800068d0
test al, al
je 0x180008694
mov r8, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x488], rsi
xor ecx, ecx
mov esi, 1
mov qword [rsp + 0x20], rax
mov r9d, esi
lea edx, [rsi + 0x2b]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
movzx ebx, bl
cmove ebx, esi
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x488]
test bl, bl
jne 0x1800086a8
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 0x2c]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rcx, [rsp + 0x40]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1800086b1
mov eax, dword [0x18003eef8]
mov dword [rcx], eax
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1800086d0
movups xmm1, xmmword [str.WanNengZip]
mov edx, dword [0x18003eee0]
movzx r8d, word [0x18003eee4]
movups xmmword [rcx], xmm1
mov dword [rcx + 0x10], edx
mov word [rcx + 0x14], r8w
lea rcx, [rsp + 0x40]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x180008704
mov dword [rcx], eax
lea rax, [rsp + 0x40]
sub rax, 2
nop word [rax + rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x180008720
movups xmmword [rax], xmm1
lea rcx, [rsp + 0x40]
mov dword [rax + 0x10], edx
mov word [rax + 0x14], r8w
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x180008740
cmp qword [rdi + 0x28], 8
lea rbx, [rdi + 0x10]
movsd xmm0, qword [str..ini]
movzx eax, word [0x18003ef08]
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
jb 0x180008772
mov r8, qword [rbx]
jmp 0x180008775
mov r8, rbx
lea r9, [rsp + 0x40]
lea rdx, str.CfgRootPath
lea rcx, str.Globals
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea r8, [rdi + 0x70]
mov rdi, qword [rsp + 0x490]
cmp qword [r8 + 0x18], 8
jb 0x1800087a4
mov r8, qword [r8]
lea r9, str.WanNengZip.ini
lea rdx, str._s_s
lea rcx, [rsp + 0x250]
call fcn.1800093d0
cmp qword [rbx + 0x18], 8
jb 0x1800087cb
mov r8, qword [rbx]
jmp 0x1800087ce
mov r8, rbx
lea r9, [rsp + 0x250]
lea rdx, str.CfgRootPath
lea rcx, str.AppInfo
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp qword [rbx + 0x18], 8
jb 0x1800087f4
mov rbx, qword [rbx]
mov r9, rbx
lea r8, str.CfgRootPath
lea rdx, str.AppInfo
lea rcx, str.WanNengZip
call fcn.18000b100
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.18001c850
add rsp, 0x470
pop rbx
ret
Function at 0x180009680
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 [0x18005c800]
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.18001e750
xor edx, edx
lea rcx, [rsp + 0x440]
mov r8d, 0x208
call fcn.18001e750
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 0x1800096e0
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 0x180009700
lea rcx, [rsp + 0x230]
call fcn.1800251a0
lea rcx, [rsp + 0x440]
call fcn.1800251a0
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 0x180009754
add rax, 2
test ecx, ecx
jne 0x180009740
test edx, edx
je 0x18000981b
mov qword [rsp + 0x680], rbx
xor ebx, ebx
nop word [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.18001e750
lea rcx, [rsp + 0x20]
mov r8, rdi
test ebx, ebx
jne 0x18000979c
lea rdx, str._s.bak
call fcn.18000bfb0
jmp 0x1800097ab
mov r9d, ebx
lea rdx, str._s.bak_d
call fcn.18000bfb0
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1800097c5
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1800264e4
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 0x18000980d
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp ebx, 0xa
jge 0x180009813
inc ebx
jmp 0x180009770
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rbx, qword [rsp + 0x680]
mov rcx, qword [rsp + 0x650]
xor rcx, rsp
call fcn.18001c850
mov rsi, qword [rsp + 0x688]
add rsp, 0x660
pop rdi
ret

Function at 0x180009840
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.18001e750
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x24], 0x200
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x40], rdi
call fcn.18000b370
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 0x1800098b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
Function at 0x1800098d0
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 0x1800098f0
lea eax, [rdi + 1]
movsxd rcx, eax
mov eax, 2
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.18001c874
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 0x180009920
xor r14d, r14d
movsxd rdi, edi
mov ebx, r14d
lea ebp, [r14 + 1]
test rdi, rdi
js 0x18000998f
mov qword [rsp + 0x40], r15
mov r15d, 0x5c
nop dword [rax]
cmp word [rsi + rbx*2], r15w
jne 0x18000997d
mov rcx, rsi
mov word [rsi + rbx*2], r14w
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180009978
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x180009987
mov word [rsi + rbx*2], r15w
inc rbx
cmp rbx, rdi
jle 0x180009950
jmp 0x18000998a
mov ebp, r14d
mov r15, qword [rsp + 0x40]
mov rcx, rsi
call fcn.18001c770
mov rbx, qword [rsp + 0x48]
mov eax, ebp
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x180009c10
Capabilities:
Create process on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x180], rbx
mov rax, qword [0x18005c800]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r15d, r9d
movzx r12d, r8b
mov rsi, rdx
mov rdi, rcx
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0x70]
call fcn.18001e750
mov dword [rsp + 0x70], 0x68
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rbp - 8], 7
xor r13d, r13d
mov qword [rbp - 0x10], r13
mov word [rbp - 0x20], r13w
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], r13
mov word [rbp], r13w
lea r14d, [rax + 1]
or rbx, 0xffffffffffffffff
test rsi, rsi
je 0x180009ae2
cmp word [rsi], r13w
jne 0x180009a5e
mov r8d, r13d
jmp 0x180009a6c
mov r8, rbx
inc r8
cmp word [rsi + r8*2], 0
jne 0x180009a61
mov rdx, rsi
lea rcx, [rbp]
call fcn.180002540
cmp qword [rbp + 0x10], 0
je 0x180009ae2
mov r8, r14
lea rdx, [0x18003f634]
lea rcx, [rbp - 0x20]
call fcn.180002540
cmp word [rdi], 0
jne 0x180009a9d
mov r8, r13
jmp 0x180009aab
mov r8, rbx
inc r8
cmp word [rdi + r8*2], 0
jne 0x180009aa0
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.180008dd0
mov r8d, 2
lea rdx, [0x18003f638]
lea rcx, [rbp - 0x20]
call fcn.180008dd0
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp]
lea rcx, [rbp - 0x20]
call fcn.180008ca0
jmp 0x180009b09
cmp word [rdi], 0
jne 0x180009af0
mov rbx, r13
jmp 0x180009afa
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x180009af0
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.180002540
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rdx, qword [rbp - 0x20]
lea rcx, str.CreateRunProcess__s_
call fcn.18000d1f0
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rdx, qword [rbp - 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x180009b70
mov r14d, r13d
jmp 0x180009ba1
test r12b, r12b
je 0x180009b8a
or edx, 0xffffffff
test r15d, r15d
cmovg edx, r15d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov r8, qword [rbp + 0x18]
cmp r8, 8
jb 0x180009bbb
inc r8
mov rdx, qword [rbp]
lea rcx, [rbp]
call fcn.180002690
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], r13
mov word [rbp], r13w
mov r8, qword [rbp - 8]
cmp r8, 8
jb 0x180009be6
inc r8
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x20]
call fcn.180002690
mov eax, r14d
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.18001c850
mov rbx, qword [rsp + 0x180]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x180009c14
test rax, rax
jne 0x180009c24
ret
xor r9d, r9d
xor r8d, r8d
xor edx, edx
jmp 0x1800099b0