joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005bba0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14008f080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x14005bc35
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x14005bc96
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400364c0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14006ed40
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x14005bd51
sub ecx, 1
je 0x14005bdc4
sub ecx, 1
je 0x14005bd00
cmp ecx, 1
je 0x14005bce3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x14007ad50]
call fcn.1400364c0
jmp 0x14005bdc4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14005b8d0
test eax, eax
je 0x14005bdc4
jmp 0x14005bc6a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14005bdc4
sub rax, rsi
cmp rax, rbp
jae 0x14005bdc4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140036640
jmp 0x14005bdc4
cmp r8d, 4
jle 0x14005bdc4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x14005bdc4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400363e0
mov esi, eax
test eax, eax
je 0x14005bda3
mov edx, 5
mov rcx, rbx
call fcn.14005c890
mov eax, esi
jmp 0x14005bc6a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140044cc0
mov rcx, r14
call fcn.140044fa0
test eax, eax
je 0x14005bc68
mov edx, 5
mov rcx, rbx
call fcn.14005c890
mov eax, Ordinal_46
jmp 0x14005bc6a
Function at 0x14006eb60
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14006eba2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14006ebe9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14006ec42
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14006ec00
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14006ec83
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400804da]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400804db]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14006ec50
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14006fb8c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006fbd6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006fbd6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006fbd6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006fbd6
cmp dword [rcx + 0x84], 0xe
jbe 0x14006fbd6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14006fbd8
xor al, al
add rsp, 0x28
ret
Function at 0x1400011e0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140003668], rbx
je 0x14000122c
cmp rax, rbx
jne 0x14000121f
mov ebx, 1
mov esi, ebx
jmp 0x140001231
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001204
mov ebx, 1
mov eax, dword [0x140003670]
cmp eax, ebx
jne 0x140001247
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400012b6
mov eax, dword [0x140003670]
test eax, eax
jne 0x1400012b0
mov dword [0x140003670], ebx
lea r15, [0x140002348]
lea rdi, [0x140002330]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400012a2
test eax, eax
jne 0x1400012a6
cmp qword [rdi], 0
je 0x140001297
movabs r10, 0xd30527475e523070
mov rax, qword [rdi]
mov rcx, qword [0x1400022f0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000126e
test eax, eax
je 0x1400012b6
mov eax, 0xff
jmp 0x14000139c
mov dword [0x140003084], ebx
mov eax, dword [0x140003670]
cmp eax, ebx
jne 0x1400012dd
lea rdx, [0x140002328]
lea rcx, [0x140002308]
call sub.msvcrt.dll__initterm
mov dword [0x140003670], 2
test esi, esi
jne 0x1400012ea
xor eax, eax
xchg qword [0x140003668], rax
cmp qword [0x140003678], 0
je 0x140001328
lea rcx, [0x140003678]
call fcn.1400015c0
test eax, eax
je 0x140001328
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140003678]
mov r9, qword [0x1400022f0]
call r9
mov r8, qword [0x140003098]
mov rdx, qword [0x140003090]
mov ecx, dword [0x140003088]
call sub.MQQM.dll_QMMain
mov dword [0x140003080], eax
cmp dword [0x1400030a0], 0
jne 0x140001358
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140003084], 0
jne 0x14000136d
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140003080]
jmp 0x14000139c
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140098000
add rsp, 0x28
jmp 0x1400011e0

Function at 0x1400014ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400014f8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400014f0
cmp dword [rcx + 0x3c], edx
jl 0x1400014f0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400014f0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400014f8
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140001620
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001648
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140001648
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1415f4058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1415f41df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1415f4089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415f406f
add dl, dl
jne 0x1415f4096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415f40f6
xor eax, eax
add dl, dl
jne 0x1415f40a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415f41ad
add dl, dl
jne 0x1415f40b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415f40c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415f40d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415f40dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1415f40ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1415f407e
mov eax, 1
add dl, dl
jne 0x1415f4106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415f4113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415f40fb
sub eax, ebx
mov ebx, 1
jne 0x1415f414c
mov ecx, 1
add dl, dl
jne 0x1415f412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1415f413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415f4123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415f407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1415f4168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1415f4175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415f415d
cmp eax, 0x7d00
jae 0x1415f419b
cmp eax, 0x500
jb 0x1415f4196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415f407e
cmp eax, 0x7f
ja 0x1415f419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415f407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1415f41d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1415f407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1800041d0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
xor ebx, ebx
movsxd rbp, edx
xor r11d, r11d
xor r10d, r10d
mov r14, r9
mov r15, r8
mov rdi, rcx
test edx, edx
jle 0x18000430c
mov rsi, rcx
lea r12, [0x1800567b0]
neg rsi
mov rdx, rcx
movzx eax, byte [rdx]
cmp al, 0x3d
jne 0x180004226
inc r11d
cmp r11d, 2
jg 0x180004279
cmp al, 0x7f
ja 0x180004279
movzx eax, al
movzx ecx, byte [rax + r12]
cmp cl, 0x7f
je 0x180004279
cmp cl, 0x40
jae 0x180004241
test r11d, r11d
jne 0x180004279
inc rdx
inc ebx
inc r10d
lea rax, [rsi + rdx]
cmp rax, rbp
jl 0x180004216
test ebx, ebx
je 0x18000430c
lea eax, [rbx + rbx*2]
lea eax, [rax*2 + 7]
sar eax, 3
cmp dword [r9], eax
jge 0x180004283
mov dword [r9], eax
mov eax, 0xfffffff0
jmp 0x18000430e
mov eax, 0xffffffee
jmp 0x18000430e
xor r8d, r8d
xor r11d, r11d
mov r9d, 3
mov rax, r15
test r10d, r10d
jle 0x180004306
nop word [rax + rax]
movzx ecx, byte [rdi]
movzx edx, byte [rcx + r12]
xor ecx, ecx
cmp dl, 0x40
sete cl
and edx, 0x3f
sub r9d, ecx
inc r11d
mov ecx, r8d
mov r8d, edx
shl ecx, 6
or r8d, ecx
cmp r11d, 4
jne 0x1800042fb
xor r11d, r11d
test r9d, r9d
jle 0x1800042de
mov ecx, r8d
shr ecx, 0x10
mov byte [rax], cl
inc rax
cmp r9d, 1
jle 0x1800042ef
mov ecx, r8d
shr ecx, 8
mov byte [rax], cl
inc rax
cmp r9d, 2
jle 0x1800042fb
mov byte [rax], r8b
inc rax
dec r10d
inc rdi
test r10d, r10d
jg 0x1800042a0
sub eax, r15d
mov dword [r14], eax
xor eax, eax
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret

Function at 0x180004330
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0x20
mov byte [rcx + 0x89], 0
xor eax, eax
mov qword [rcx + 0x10], rax
mov rbx, rcx
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
cmp qword [rdx + 0x18], 0x10
mov r8, qword [rdx + 0x10]
jb 0x18000436f
mov rdx, qword [rdx]
call fcn.180005f80
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x180006a70
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 [0x180079370]
xor rax, rsp
mov qword [rbp + 0x780], rax
mov edi, r9d
mov r14, r8
mov rsi, rdx
mov rbx, rcx
lea r9, [rcx + 0xc0]
cmp qword [r9 + 0x18], 8
jb 0x180006abf
mov r9, qword [r9]
mov r8d, edi
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, edi
jne 0x180006c3b
mov qword [rsp + 0x50], 7
xor r15d, r15d
mov qword [rsp + 0x48], r15
mov word [rsp + 0x38], r15w
xor r8d, r8d
lea rdx, [0x180056c38]
lea rcx, [rsp + 0x38]
call fcn.180009bb0
nop
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x80]
call fcn.18003c5d0
mov r8d, edi
lea rdx, [0x180056e70]
lea rcx, [rbp - 0x80]
call fcn.180009f80
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 + 9], r15b
je 0x180006b96
call fcn.180006930
mov rbx, rax
lea rax, [rsp + 0x38]
cmp rax, rbx
je 0x180006b94
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x180006b72
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.180009d00
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r15
mov word [rsp + 0x38], r15w
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.180009510
nop
jmp 0x180006be7
call fcn.180006a30
mov rbx, rax
lea rax, [rsp + 0x38]
cmp rax, rbx
je 0x180006be7
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x180006bc5
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.180009d00
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r15
mov word [rsp + 0x38], r15w
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.180009510
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x180006c04
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.180009d00
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call fcn.180041804
mov ebx, eax
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x180006c39
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.180009d00
mov eax, ebx
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.18001b720
add rsp, 0x898
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180006c60
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 [0x180079370]
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.18003c5d0
lea rax, [rbp + 0xc0]
cmp qword [rax + 0x18], 8
jb 0x180006ccd
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 0x180006d06
mov rax, qword [rbx]
jmp 0x180006d09
mov rax, rbx
mov word [rax], di
cmp word [rsp + 0x70], di
je 0x180006d2a
lea rax, [rsp + 0x70]
or rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x180006d20
mov r8, rdi
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.180009bb0
mov dword [rsp + 0x30], 1
cmp qword [rbx + 0x18], 8
jb 0x180006d4e
mov rax, qword [rbx]
jmp 0x180006d51
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 0x180006d76
add rax, 2
test edx, edx
jne 0x180006d60
test r10d, r10d
jne 0x180006dc8
mov qword [rsp + 0x20], rsi
mov r9, r15
mov r8, r14
lea rdx, [rsp + 0x48]
mov rcx, rbp
cmp byte [rbp + 9], r10b
je 0x180006d9b
call fcn.180006930
jmp 0x180006da0
call fcn.180006a30
mov rdx, rax
mov rcx, rbx
call fcn.1800067b0
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x180006dc8
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.180009d00
mov rax, rbx
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.18001b720
add rsp, 0x888
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180007e70
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x9a0]
sub rsp, 0xaa0
mov rax, qword [0x180079370]
xor rax, rsp
mov qword [rbp + 0x990], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.18003c5d0
cmp qword [rdi + 0x58], 8
lea r8, [rdi + 0x40]
jb 0x180007ebe
mov r8, qword [r8]
lea r9, str.Config
lea rdx, [0x180056d88]
lea rcx, [rsp + 0x40]
call fcn.180009f80
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180007eef
lea rcx, [rsp + 0x40]
call fcn.18000e820
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x208
call fcn.18003c5d0
lea r9, str.UseVestige.ini
lea r8, [rsp + 0x40]
lea rdx, str._s_s
lea rcx, [rbp + 0x150]
call fcn.180009f80
xor ebx, ebx
cmp word [rbp + 0x150], bx
jne 0x180007f32
mov r8d, ebx
jmp 0x180007f4a
lea rax, [rbp + 0x150]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180007f40
lea rcx, [rdi + 0xc0]
lea rdx, [rbp + 0x150]
call fcn.180009bb0
xor edx, edx
lea rcx, [rbp + 0x360]
mov r8d, 0x208
call fcn.18003c5d0
lea r9, str.UseCache.ini
lea r8, [rsp + 0x40]
lea rdx, str._s_s
lea rcx, [rbp + 0x360]
call fcn.180009f80
cmp word [rbp + 0x360], bx
jne 0x180007f9e
mov r8, rbx
jmp 0x180007fba
lea rax, [rbp + 0x360]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180007fb0
lea rcx, [rdi + 0xe0]
lea rdx, [rbp + 0x360]
call fcn.180009bb0
xor edx, edx
lea rcx, [rbp + 0x570]
mov r8d, 0x208
call fcn.18003c5d0
lea rdx, str.DSKXRoad
lea rcx, [rsp + 0x20]
call fcn.18000ff30
cmp qword [rax + 0x18], 8
jb 0x180007ffc
mov rax, qword [rax]
mov r8, rax
lea rdx, [0x180056dec]
lea rcx, [rbp + 0x570]
call fcn.180009f80
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x18000802f
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
inc r8
call fcn.180009d00
lea rcx, [rbp + 0x570]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18000804c
lea rcx, [rbp + 0x570]
call fcn.18000e820
xor edx, edx
lea rcx, [rbp + 0x780]
mov r8d, 0x208
call fcn.18003c5d0
lea r9, str.UseCache.ini
lea r8, [rbp + 0x570]
lea rdx, str._s_s
lea rcx, [rbp + 0x780]
call fcn.180009f80
cmp word [rbp + 0x780], bx
je 0x18000809f
lea rax, [rbp + 0x780]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180008095
lea rcx, [rdi + 0x100]
mov r8, rbx
lea rdx, [rbp + 0x780]
call fcn.180009bb0
mov rcx, qword [rbp + 0x990]
xor rcx, rsp
call fcn.18001b720
lea r11, [rsp + 0xaa0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x18000c660
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rbx, r8
mov rcx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsi]
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x18000e820
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 0x18000e840
lea eax, [rdi + 1]
movsxd rcx, eax
mov eax, 2
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.18001b7d4
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 0x18000e870
xor r14d, r14d
movsxd rdi, edi
mov ebx, r14d
lea ebp, [r14 + 1]
test rdi, rdi
js 0x18000e8df
mov qword [rsp + 0x40], r15
mov r15d, 0x5c
nop dword [rax]
cmp word [rsi + rbx*2], r15w
jne 0x18000e8cd
mov rcx, rsi
mov word [rsi + rbx*2], r14w
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18000e8c8
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x18000e8d7
mov word [rsi + rbx*2], r15w
inc rbx
cmp rbx, rdi
jle 0x18000e8a0
jmp 0x18000e8da
mov ebp, r14d
mov r15, qword [rsp + 0x40]
mov rcx, rsi
call fcn.18001b224
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 0x18000e900
Capabilities:
Check if file exists
Get common file path

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x180079370]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x290], rbx
mov rsi, rdx
xor bl, bl
mov rbp, rcx
call fcn.18000fbb0
xor edi, edi
test al, al
je 0x18000e99c
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
call fcn.18000fac0
test al, al
je 0x18000e99c
mov r8, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x298], r14
lea edx, [rdi + 0x1a]
mov r14d, 1
mov qword [rsp + 0x20], rax
mov r9d, r14d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
movzx ebx, bl
cmove ebx, r14d
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x298]
test bl, bl
jne 0x18000e9b0
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov rbx, qword [rsp + 0x290]
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x18000e9c1
test eax, eax
je 0x18000ea7f
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x18000e9e0
mov eax, dword [0x180056ccc]
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 0x18000ea00
xor r8d, r8d
nop dword [rax]
movzx ecx, word [rsi + r8*2]
mov word [rdx + r8*2], cx
lea r8, [r8 + 1]
test cx, cx
jne 0x18000ea10
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x18000ea30
mov dword [rcx], eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18000ea55
lea rcx, [rsp + 0x40]
call fcn.18000e820
cmp word [rsp + 0x40], di
je 0x18000ea6f
lea rax, [rsp + 0x40]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x18000ea65
mov r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.180009bb0
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18001b720
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000fbb0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x248
mov rax, qword [0x180079370]
xor rax, rsp
mov qword [rsp + 0x230], rax
movzx eax, byte [0x18007c010]
test al, al
jne 0x18000fc62
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.18003c5d0
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 0x18000fc5b
lea rcx, [rsp + 0x20]
call fcn.18004219c
lea rdx, [0x1800596f8]
lea rcx, [rsp + 0x20]
call fcn.18003c918
test rax, rax
jne 0x18000fc3b
lea rdx, str.documents_and_settingslocalservice
lea rcx, [rsp + 0x20]
call fcn.18003c918
test rax, rax
je 0x18000fc5b
mov al, 1
mov byte [0x18007c010], al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18001b720
add rsp, 0x248
ret
movzx eax, byte [0x18007c010]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18001b720
add rsp, 0x248
ret