joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b8d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400f7421], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x1400b8e18
lea rdx, [0x1400e2172]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400b8e80
mov rbx, qword [0x1400f72c0]
jmp 0x1400b8db5
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1400b8db0
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x1400b8e07
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.1400a8150
mov r8, rax
cmp rdi, rbx
jne 0x1400b8df0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1400f72c0], rax
mov ebx, dword [rax]
mov qword [0x1400f72c0], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400f72c0], rdx
call fcn.1400b7ea0
cmp eax, ebx
jne 0x1400b8ee8
mov byte [0x1400f7421], 1
jmp 0x1400b8d90
cmp byte [0x1400f7420], 0
jne 0x1400b8da7
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1400f7fc8], rax
call rbx
mov qword [0x1400f7fc0], rax
call rbx
mov qword [0x1400f7fb8], rax
call rbx
mov qword [0x1400f7fb0], rax
call rbx
mov qword [0x1400f7fa8], rax
call rbx
mov qword [0x1400f7fa0], rax
call rbx
mov qword [0x1400f7f98], rax
call rbx
mov byte [0x1400f7420], 1
mov qword [0x1400f7f90], rax
jmp 0x1400b8da7
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1400c1680
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1400d2e00
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400d2e00
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1400c2352
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400f8488]
test eax, eax
je 0x1400c23ea
lea rax, [0x1400f8460]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400f8490]
mov qword [rbp - 8], rax
jmp 0x1400c23ce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400c23c2
cmp qword [rbp - 0x10], 0
je 0x1400c23c2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400c2388
lea rax, [0x1400f8460]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400c23eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400c24f0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400c2518
mov eax, 0
jmp 0x1400c2566
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400c2541
mov eax, 0
jmp 0x1400c2566
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400c2561
mov eax, 0
jmp 0x1400c2566
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400c256c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400c25ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400c25e1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400c25e1
mov rax, qword [rbp - 8]
jmp 0x1400c25ff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400c25b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180002c98
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x4a0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1800754d0]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
cmp qword [rdx + 0x18], 0xc8
jbe 0x180002d03
mov qword [rcx + 0x20], 7
mov qword [rcx + 0x18], rsi
mov word [rcx + 8], si
xor r8d, r8d
lea rdx, [0x18005d374]
call fcn.180001df4
mov rax, rbx
jmp 0x180002e6d
mov word [rsp + 0x80], si
xor edx, edx
mov r8d, 0x40e
lea rcx, [rsp + 0x82]
call fcn.1800413a0
mov r9d, 0x208
lea r8, [rsp + 0x80]
lea rdx, str.cachekvstore
xor ecx, ecx
call fcn.180036964
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.180001248
cmp qword [rax + 0x20], 8
jb 0x180002d56
mov rdx, qword [rax + 8]
jmp 0x180002d5a
lea rdx, [rax + 8]
lea rcx, [rsp + 0x80]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp qword [rsp + 0x78], 8
jb 0x180002d7a
mov rcx, qword [rsp + 0x60]
call fcn.18003c1d8
lea rcx, [rsp + 0x80]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, esi
jne 0x180002e32
mov edx, 2
lea rcx, [rsp + 0x58]
call fcn.180002c74
nop
cmp qword [rsp + 0x70], rsi
je 0x180002e20
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
mov r8d, 0x208
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rdx, str.cachekvstore
lea rcx, [rsp + 0x80]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.180001248
cmp qword [rax + 0x20], 8
jb 0x180002dfb
mov rdx, qword [rax + 8]
jmp 0x180002dff
lea rdx, [rax + 8]
lea rcx, [rsp + 0x80]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp qword [rsp + 0x50], 8
jb 0x180002e20
mov rcx, qword [rsp + 0x38]
call fcn.18003c1d8
nop
cmp qword [rsp + 0x78], 8
jb 0x180002e32
mov rcx, qword [rsp + 0x60]
call fcn.18003c1d8
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], rsi
mov word [rbx + 8], si
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x80]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x80]
mov rcx, rbx
call fcn.180001df4
mov rax, rbx
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.18003c180
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180003218
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor r13d, r13d
mov r12, rdx
mov rbx, rcx
cmp r8d, r13d
mov dword [rsp + 0x50], r13d
mov esi, r13d
mov rdi, r13
jle 0x180003265
movsxd rbp, r8d
mov rcx, qword [r12 + rdi*8]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, r13d
jne 0x1800032a4
inc rdi
inc esi
cmp rdi, rbp
jl 0x18000324c
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r13
xor r8d, r8d
mov word [rbx + 8], r13w
lea rdx, [0x18005d374]
mov rcx, rbx
call fcn.180001df4
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
movsxd rax, esi
or rcx, 0xffffffffffffffff
mov rdx, qword [r12 + rax*8]
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r13
xor eax, eax
mov rdi, rdx
mov word [rbx + 8], r13w
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
jmp 0x180003280
Function at 0x180004a34
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
sub rsp, 0x480
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x1800754d0]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov edi, edx
mov rbx, rcx
xor esi, esi
mov word [rsp + 0x260], si
xor edx, edx
mov r8d, 0x206
lea rcx, [r11 - 0x236]
call fcn.1800413a0
lea rdx, [rsp + 0x260]
mov ecx, edi
call fcn.1800376f8
lea ebp, [rsi + 7]
or r12, 0xffffffffffffffff
cmp eax, esi
je 0x180004b2e
lea rdx, [0x18005d8e4]
lea rcx, [rsp + 0x260]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rsi
mov word [rsp + 0x28], si
lea r8d, [rsi + 0xa]
lea rdx, str._APPPATH
lea rcx, [rsp + 0x20]
call fcn.180001df4
nop
lea rcx, [rbx + 0x158]
lea rdx, [rsp + 0x20]
call fcn.180006cd4
mov r11, rax
xor eax, eax
mov rcx, r12
lea rdi, [rsp + 0x260]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x260]
mov rcx, r11
call fcn.180001df4
nop
cmp qword [rsp + 0x40], 8
jb 0x180004b2e
mov rcx, qword [rsp + 0x28]
call fcn.18003c1d8
mov word [rsp + 0x50], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.1800413a0
xor r9d, r9d
lea r8d, [r9 + 0x23]
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rsi
mov word [rsp + 0x28], si
mov r8d, 0x10
lea rdx, str._COMMONAPPDATA
lea rcx, [rsp + 0x20]
call fcn.180001df4
nop
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x158]
call fcn.180006cd4
mov r11, rax
xor eax, eax
mov rcx, r12
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x50]
mov rcx, r11
call fcn.180001df4
nop
cmp qword [rsp + 0x40], 8
jb 0x180004bc8
mov rcx, qword [rsp + 0x28]
call fcn.18003c1d8
mov word [rsp + 0x50], si
xor r9d, r9d
lea r8d, [r9 + 0x26]
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rsi
mov word [rsp + 0x28], si
mov r8d, 0xf
lea rdx, str._PROGRAMFILES
lea rcx, [rsp + 0x20]
call fcn.180001df4
nop
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x158]
call fcn.180006cd4
mov r11, rax
xor eax, eax
mov rcx, r12
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x50]
mov rcx, r11
call fcn.180001df4
nop
cmp qword [rsp + 0x40], 8
jb 0x180004c50
mov rcx, qword [rsp + 0x28]
call fcn.18003c1d8
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.18003c180
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x180004d70
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r12, rdx
mov rsi, rcx
xor edi, edi
mov dword [rsp + 0x90], edi
mov rbx, qword [rcx + 0x140]
cmp rbx, qword [rcx + 0x148]
jbe 0x180004db5
call fcn.18003c934
mov rax, qword [rsi + 0x128]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov r13, qword [rsi + 0x148]
cmp qword [rsi + 0x140], r13
jbe 0x180004df0
call fcn.18003c934
cmp rbp, rdi
je 0x180004dfe
cmp rbp, qword [rsi + 0x128]
je 0x180004e03
call fcn.18003c934
cmp rbx, r13
je 0x180004ec6
cmp rbp, rdi
jne 0x180004e1b
call fcn.18003c934
mov r11, rdi
jmp 0x180004e1f
mov r11, qword [rbp]
cmp rbx, qword [r11 + 0x20]
jb 0x180004e2a
call fcn.18003c934
cmp qword [rbx + 0x20], 8
jb 0x180004e37
mov rcx, qword [rbx + 8]
jmp 0x180004e3b
lea rcx, [rbx + 8]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
jne 0x180004e6c
cmp rbp, rdi
jne 0x180004e54
call fcn.18003c934
mov r11, rdi
jmp 0x180004e58
mov r11, qword [rbp]
cmp rbx, qword [r11 + 0x20]
jb 0x180004e63
call fcn.18003c934
add rbx, 0x28
jmp 0x180004ddb
cmp rbp, rdi
jne 0x180004e78
call fcn.18003c934
jmp 0x180004e7c
mov rdi, qword [rbp]
cmp rbx, qword [rdi + 0x20]
jb 0x180004e87
call fcn.18003c934
cmp qword [rbx + 0x20], 8
jb 0x180004e94
mov rdx, qword [rbx + 8]
jmp 0x180004e98
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x40]
call fcn.180036370
nop
mov rdx, rax
mov rcx, r12
call fcn.180001248
nop
cmp qword [rsp + 0x60], 0x10
jb 0x180004ec1
mov rcx, qword [rsp + 0x48]
call fcn.18003c1d8
mov rax, r12
jmp 0x180004f0c
cmp qword [rsi + 0x20], 8
jb 0x180004ed3
mov rdx, qword [rsi + 8]
jmp 0x180004ed7
lea rdx, [rsi + 8]
lea rcx, str.getSoftwareVersion_failed:_s
call fcn.18001f8fc
mov qword [r12 + 0x20], 7
mov qword [r12 + 0x18], rdi
mov word [r12 + 8], di
xor r8d, r8d
lea rdx, [0x18005d374]
mov rcx, r12
call fcn.180001df4
mov rax, r12
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x18000bb2c
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
xor ecx, ecx
mov rsi, r8
mov rdi, rdx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rcx, rbx
call fcn.18000bd3c
xor ebp, ebp
cmp al, bpl
je 0x18000bbf2
lea rax, [rsp + 0x30]
lea r9, [0x18005dd60]
lea r8d, [rbp + 1]
lea rcx, [0x18005dd50]
xor edx, edx
mov bl, bpl
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rbp
call qword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebp
jl 0x18000bbd9
mov rcx, qword [rsp + 0x30]
cmp rcx, rbp
je 0x18000bbee
mov word [rsp + 0x68], bp
mov word [rsp + 0x78], bp
mov rax, qword [rcx]
lea r8, [rsp + 0x68]
lea edx, [rbp + 2]
call qword [rax + 0x40]
cmp eax, ebp
jl 0x18000bbd9
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x78]
lea edx, [rbp + 4]
mov rax, qword [rcx]
call qword [rax + 0x40]
cmp eax, ebp
jl 0x18000bbd9
cmp word [rsp + 0x68], bp
jne 0x18000bbd7
cmp word [rsp + 0x78], bp
je 0x18000bbd9
mov bl, 1
mov rcx, qword [rsp + 0x30]
cmp rcx, rbp
je 0x18000bbe9
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp bl, bpl
jne 0x18000bbf2
mov dword [rdi], ebp
jmp 0x18000bbf8
mov dword [rdi], 1
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [rdi], ebp
jne 0x18000bc17
lea rdx, [0x18005dc50]
mov r8d, 8
mov rcx, rsi
call fcn.180001df4
mov al, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x18000bc28
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rcx, rbx
call fcn.18000bd3c
test al, al
je 0x18000bd2d
and qword [rsp + 0x30], 0
xor edx, edx
lea rax, [rsp + 0x30]
lea r9, [0x18005dd60]
lea rcx, [0x18005dd50]
lea r8d, [rdx + 1]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x18000bd11
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18000bd11
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
mov edx, 2
call qword [rax + 0x40]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x68]
mov r9, qword [rcx]
mov edx, 4
mov ebx, eax
call qword [r9 + 0x40]
lea rcx, str.h1:_d__0x_08x_h2:_d_0x_08x
mov edx, ebx
mov r8d, eax
call fcn.180039a28
lea rcx, str.open_firewall1
or ebx, 0xffffffff
mov word [rsp + 0x60], bx
call fcn.180039a28
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
movzx r8d, word [rsp + 0x60]
lea edx, [rbx + 3]
call qword [rax + 0x48]
lea rcx, str.open_firewall2
mov word [rsp + 0x68], bx
call fcn.180039a28
mov rcx, qword [rsp + 0x30]
movzx r8d, word [rsp + 0x68]
mov rax, qword [rcx]
lea edx, [rbx + 5]
call qword [rax + 0x48]
jmp 0x18000bd1d
lea rcx, str.CoCreateInstance_err
call fcn.180039a28
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18000bd2d
mov rdx, qword [rcx]
call qword [rdx + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov al, 1
add rsp, 0x40
pop rbx
ret
Function at 0x18000bd3c
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1800754d0]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x114
call fcn.1800413a0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 5
seta al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18003c180
add rsp, 0x158
ret
Function at 0x18000dcc8
Capabilities:
Delete file
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1800754d0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rdx
xor esi, esi
lea rdx, [rsp + 0x50]
mov ecx, 0x100
mov rdi, r8
mov dword [rsp + 0x20], esi
mov word [rsp + 0x50], si
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp qword [rdi + 0xc8], 8
jb 0x18000dd20
mov r8, qword [rdi + 0xb0]
jmp 0x18000dd27
lea r8, [rdi + 0xb0]
lea rdx, str.popatch_ls
lea rcx, [rsp + 0x28]
call fcn.1800380e4
cmp qword [rax + 0x20], 8
jb 0x18000dd45
mov rdx, qword [rax + 8]
jmp 0x18000dd49
lea rdx, [rax + 8]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp qword [rsp + 0x48], 8
jb 0x18000dd66
mov rcx, qword [rsp + 0x30]
call fcn.18003c1d8
lea rcx, [rsp + 0x50]
call fcn.1800361d0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
or rcx, 0xffffffffffffffff
xor eax, eax
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], rsi
mov word [rbx + 8], si
lea rdi, [rsp + 0x50]
lea rdx, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.180001df4
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18003c180
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18000e3b8
Capabilities:
Create process on windows
Delete file

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xd0
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x1800754d0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rdx
mov qword [r11 - 0x20], 7
xor edi, edi
mov qword [r11 - 0x28], rdi
mov word [r11 - 0x38], di
lea r8, [r11 - 0x40]
call fcn.18000dfcc
cmp al, dil
jne 0x18000e435
lea rcx, str.download_patch_err
call fcn.180039a28
nop
cmp qword [rsp + 0xb8], 8
jb 0x18000e42e
mov rcx, qword [rsp + 0xa0]
call fcn.18003c1d8
xor al, al
jmp 0x18000e57c
cmp qword [rbx + 0x148], 8
jb 0x18000e448
mov r8, qword [rbx + 0x130]
jmp 0x18000e44f
lea r8, [rbx + 0x130]
lea rdx, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 8
cmovae rdx, qword [rsp + 0xa0]
lea rcx, str.install_patch_file:_ls__argv:_ls
call fcn.180039a28
xor edx, edx
lea r8d, [rdx + 0x6c]
lea rcx, [rsp + 0x24]
call fcn.1800413a0
mov dword [rsp + 0x20], 0x70
mov dword [rsp + 0x24], 0x40
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 8
cmovae rax, qword [rsp + 0xa0]
mov qword [rsp + 0x38], rax
cmp qword [rbx + 0x148], 8
jb 0x18000e4d6
mov rax, qword [rbx + 0x130]
mov qword [rsp + 0x40], rax
jmp 0x18000e4e2
lea rax, [rbx + 0x130]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x58], rdi
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rcx, qword [rsp + 0x88]
cmp rcx, rdi
je 0x18000e52d
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.ShellExecuteW_success
call fcn.180039a28
jmp 0x18000e541
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ShellExecuteW_Err:_d
call fcn.180039a28
lea rcx, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 8
cmovae rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
cmp qword [rsp + 0xb8], 8
jb 0x18000e57a
mov rcx, qword [rsp + 0xa0]
call fcn.18003c1d8
mov al, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.18003c180
mov rbx, qword [rsp + 0xf0]
add rsp, 0xd0
pop rdi
ret
Function at 0x180013b40
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1800754d0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
and dword [rsp + 0x20], 0
cmp qword [rdx + 0x18], 0xc8
jbe 0x180013b98
mov qword [rcx + 0x20], 0xf
and qword [rcx + 0x18], 0
mov byte [rcx + 8], 0
xor r8d, r8d
lea rdx, [0x18005d3d1]
call fcn.180001b70
mov rax, rbx
jmp 0x180013c27
lea rcx, [rsp + 0x30]
call fcn.180002c98
nop
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180013bf8
mov qword [rbx + 0x20], 0xf
and qword [rbx + 0x18], 0
mov byte [rbx + 8], al
xor r8d, r8d
lea rdx, [0x18005d3d1]
mov rcx, rbx
call fcn.180001b70
nop
cmp qword [rsp + 0x50], 8
jb 0x180013bf3
mov rcx, qword [rsp + 0x38]
call fcn.18003c1d8
mov rax, rbx
jmp 0x180013c27
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.180013b24
nop
cmp qword [rsp + 0x50], 8
jb 0x180013c24
mov rcx, qword [rsp + 0x38]
call fcn.18003c1d8
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18003c180
add rsp, 0x60
pop rbx
ret
Function at 0x1800201a8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1800754d0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov rdi, r8
mov esi, edx
xor ebp, ebp
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov dword [rsp + 0x20], ebp
mov word [rsp + 0x30], bp
call fcn.1800413a0
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp esi, 1
jne 0x18002020c
lea rdx, str.projonepodlp
jmp 0x180020218
cmp esi, 2
jne 0x180020262
lea rdx, str.projonepotcm
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp rdi, rbp
je 0x180020236
lea rcx, [rsp + 0x30]
mov rdx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x30]
xor eax, eax
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], rbp
mov word [rbx + 8], bp
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x30]
not rcx
lea r8, [rcx - 1]
jmp 0x18002027c
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], rbp
xor r8d, r8d
mov word [rbx + 8], bp
lea rdx, [0x18005d374]
mov rcx, rbx
call fcn.180001df4
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18003c180
mov rbx, qword [rsp + 0x278]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret