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

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140017840
mov ecx, dword [0x1400b3158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018bb8
test byte [rbx + 0x40], 0xc
jne 0x140018b6f
mov eax, dword [0x1400e1d68]
test eax, eax
jne 0x140018b80
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140016a50
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140018ba3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140018ba3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140018bcc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140016d40
call fcn.1400178f0
test rax, rax
mov rbx, rax
jne 0x140018b5f
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 0x140018bea
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140016d40
call fcn.140018a60
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140018c70
call fcn.140016810
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140018ca8
call fcn.140017840
mov ecx, dword [0x1400b3158]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018d00
test esi, esi
je 0x140018c86
call fcn.140018b40
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140018ce0
mov edx, edi
call fcn.1400168c0
call fcn.140018b40
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017840
mov ecx, dword [0x1400b3158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018cf0
call fcn.140018b40
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018b40
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017840
mov ecx, dword [0x1400b3158]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x140018c45
call fcn.1400178f0
mov rbx, rax
jmp 0x140018c45
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140018c5e
call fcn.1400178f0
jmp 0x140018c86
call fcn.1400178f0
mov rbx, rax
jmp 0x140018c41

Function at 0x140018d10
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140017840
mov ecx, dword [0x1400b3158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018d80
test esi, esi
je 0x140018d60
call fcn.140018b40
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140018d90
mov edx, esi
call fcn.1400168c0
call fcn.140018b40
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140018b40
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018b40
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400178f0
mov rbx, rax
jmp 0x140018d31
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140018d4a
Function at 0x1400773d0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x1400773f7
call rbp
cmp dword [rax], 4
jne 0x140077414
mov rcx, rdi
call fcn.140077200
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
movsxd r12, eax
je 0x1400773f0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14074a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14074a1df
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 0x14074a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14074a06f
add dl, dl
jne 0x14074a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14074a0f6
xor eax, eax
add dl, dl
jne 0x14074a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14074a1ad
add dl, dl
jne 0x14074a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14074a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14074a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14074a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14074a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14074a07e
mov eax, 1
add dl, dl
jne 0x14074a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14074a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14074a0fb
sub eax, ebx
mov ebx, 1
jne 0x14074a14c
mov ecx, 1
add dl, dl
jne 0x14074a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14074a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14074a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14074a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14074a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14074a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14074a15d
cmp eax, 0x7d00
jae 0x14074a19b
cmp eax, 0x500
jb 0x14074a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14074a07e
cmp eax, 0x7f
ja 0x14074a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14074a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14074a1d2
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 0x14074a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1800019e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
push rsi
push rdi
sub rsp, 0x38
xor edi, edi
mov rsi, rdx
mov r10, rcx
test rcx, rcx
jne 0x180001a01
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
movsxd rax, dword [rcx + 0x3c]
add rcx, 0x88
mov qword [rsp + 0x58], rbx
add rax, rcx
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x50], rax
mov ecx, dword [rax]
mov ebp, dword [rcx + r10 + 0x1c]
mov r9d, dword [rcx + r10 + 0x20]
mov ebx, dword [rcx + r10 + 0x24]
add rbp, r10
add r9, r10
add rbx, r10
test edx, 0xffff0000
jne 0x180001a54
movzx eax, dx
sub eax, dword [rcx + r10 + 0x10]
mov edi, dword [rbp + rax*4]
add rdi, r10
jmp 0x180001bdb
mov r11d, dword [rcx + r10 + 0x18]
test r11d, r11d
je 0x180001bdb
nop dword [rax]
nop word [rax + rax]
mov eax, dword [r9]
mov r8, rsi
dec r11d
add rax, r10
sub r8, rax
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180001a93
inc rax
test ecx, ecx
jne 0x180001a80
test edx, edx
je 0x180001aa9
add r9, 4
add rbx, 2
test r11d, r11d
jne 0x180001a70
jmp 0x180001bdb
movzx eax, word [rbx]
mov ecx, dword [rbp + rax*4]
mov rax, qword [rsp + 0x50]
mov edx, dword [rax]
cmp rdx, rcx
ja 0x180001bd3
mov eax, dword [rax + 4]
add eax, edx
cmp rcx, rax
jae 0x180001bd3
lea rsi, [rcx + r10]
lea rdx, [0x18000f580]
mov rcx, rsi
call fcn.180002b2c
mov edx, 2
lea rdi, [rax + 1]
mov rbp, rax
sub rdi, rsi
lea rcx, [rdi + 4]
call fcn.180002d0c
mov rbx, rax
test rax, rax
je 0x180001bd9
lea r8, [rdi + 1]
mov r9, rsi
mov rdx, rax
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000309c
mov eax, dword [0x18000f588]
lea rdx, str.api_
mov dword [rbx + rdi*2], eax
movzx eax, word [0x18000f58c]
mov r8d, 4
mov rcx, rbx
mov word [rbx + rdi*2 + 4], ax
call fcn.1800028e8
test eax, eax
je 0x180001b62
lea rdx, str.ext_
mov r8d, 4
mov rcx, rbx
call fcn.1800028e8
test eax, eax
jne 0x180001bae
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rdx, rbx
call fcn.180001030
mov rdi, rax
test rax, rax
je 0x180001bae
mov rcx, rbx
call fcn.180002d50
mov rsi, qword [rsp + 0x50]
mov edx, 2
lea rcx, [rsi + 1]
call fcn.180002d0c
mov rbx, rax
test rax, rax
je 0x180001bd9
lea r8, [rsi + rsi]
mov rdx, rdi
mov rcx, rax
call fcn.1800031d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [rbp + 1]
mov r8, rbx
mov rcx, rax
call fcn.1800019e0
mov rcx, rbx
mov rdi, rax
call fcn.180002d50
jmp 0x180001bdb
lea rdi, [rcx + r10]
jmp 0x180001bdb
xor edi, edi
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x180001d20
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
mov r8, r9
mov rdx, rdi
mov rcx, rsi
mov rbx, r9
call fcn.1800030f0
test eax, eax
je 0x180001dbc
lea rcx, str._REFRESH__Found_modification_in:__s
mov rdx, rbp
call fcn.180001de0
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180001dbc
lea rcx, str._REFRESH__Copying_known_good_section_into_memory.
call fcn.180001de0
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.1800031d0
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180001dbc
lea rcx, str._REFRESH__Unable_to_reset_memory_permissions
call fcn.180001de0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180001de0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x438
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, 0x400
lea r9, str.__04x_
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], eax
call fcn.1800030bc
lea rcx, [rsp + 0x30]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x180001e30
lea r9, [rsp + 0x448]
lea rcx, [rsp + 0x30]
mov r8d, 0x3fd
mov qword [rsp + 0x20], r9
mov r9, qword [rsp + 0x440]
mov edx, 0x400
sub r8, rax
sub rdx, rax
add rcx, rax
call fcn.1800053cc
lea r8, [0x18000f2d8]
lea rcx, [rsp + 0x30]
mov edx, 0x400
call fcn.180002a98
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x30]
call fcn.180002710
add rsp, 0x438
ret
Function at 0x180002710
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [0x180017758], 0
mov rbx, rcx
je 0x180002770
mov rcx, qword [0x180017750]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
or r8, 0xffffffffffffffff
mov dword [rsp + 0x48], eax
nop dword [rax]
inc r8
cmp byte [rbx + r8], al
jne 0x180002740
mov rcx, qword [0x180017758]
lea r9, [rsp + 0x48]
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x180017750]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
add rsp, 0x30
pop rbx
ret

Function at 0x180002780
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x438
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, 0x400
lea r9, str.__04x_
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], eax
call fcn.1800030bc
lea rcx, [rsp + 0x30]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1800027d0
lea r9, [rsp + 0x448]
lea rcx, [rsp + 0x30]
mov r8d, 0x3fd
mov qword [rsp + 0x20], r9
mov r9, qword [rsp + 0x440]
mov edx, 0x400
sub r8, rax
sub rdx, rax
add rcx, rax
call fcn.1800053cc
lea r8, [0x18000f2d8]
lea rcx, [rsp + 0x30]
mov edx, 0x400
call fcn.180002a98
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x30]
call fcn.180002710
add rsp, 0x438
ret
Function at 0x1800010d0
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 0x18000120c
mov rsi, rcx
lea r12, [0x18003b5a0]
neg rsi
mov rdx, rcx
movzx eax, byte [rdx]
cmp al, 0x3d
jne 0x180001126
inc r11d
cmp r11d, 2
jg 0x180001179
cmp al, 0x7f
ja 0x180001179
movzx eax, al
movzx ecx, byte [rax + r12]
cmp cl, 0x7f
je 0x180001179
cmp cl, 0x40
jae 0x180001141
test r11d, r11d
jne 0x180001179
inc rdx
inc ebx
inc r10d
lea rax, [rsi + rdx]
cmp rax, rbp
jl 0x180001116
test ebx, ebx
je 0x18000120c
lea eax, [rbx + rbx*2]
lea eax, [rax*2 + 7]
sar eax, 3
cmp dword [r9], eax
jge 0x180001183
mov dword [r9], eax
mov eax, 0xfffffff0
jmp 0x18000120e
mov eax, 0xffffffee
jmp 0x18000120e
xor r8d, r8d
xor r11d, r11d
mov r9d, 3
mov rax, r15
test r10d, r10d
jle 0x180001206
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 0x1800011fb
xor r11d, r11d
test r9d, r9d
jle 0x1800011de
mov ecx, r8d
shr ecx, 0x10
mov byte [rax], cl
inc rax
cmp r9d, 1
jle 0x1800011ef
mov ecx, r8d
shr ecx, 8
mov byte [rax], cl
inc rax
cmp r9d, 2
jle 0x1800011fb
mov byte [rax], r8b
inc rax
dec r10d
inc rdi
test r10d, r10d
jg 0x1800011a0
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 0x180001230
Capabilities:
Encode data using base64

Disassembly:
push rdi
push r14
push r15
mov r14, r9
mov r15, r8
mov edi, edx
mov r11, rcx
test edx, edx
je 0x1800013bc
lea ecx, [rdx*8]
mov eax, 0x2aaaaaab
imul ecx
lea ecx, [rdi*8]
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
cmp ecx, 2
je 0x18000127b
cmp ecx, 4
jne 0x18000127e
add edx, 2
jmp 0x18000127e
add edx, 3
inc edx
cmp dword [r9], edx
jge 0x180001293
mov dword [r9], edx
mov eax, 0xfffffff0
pop r15
pop r14
pop rdi
ret
mov qword [rsp + 0x20], rbx
mov eax, 0x55555556
imul edi
xor ebx, ebx
mov qword [rsp + 0x28], rbp
mov eax, edx
mov qword [rsp + 0x38], r12
shr eax, 0x1f
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
add edx, eax
mov ebp, ebx
mov rcx, r15
lea edx, [rdx + rdx*2]
test edx, edx
jle 0x180001348
dec edx
mov qword [rsp + 0x30], rsi
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
mov esi, edx
lea ebp, [rdx + rdx*2]
movzx r10d, byte [r11 + 2]
movzx r9d, byte [r11 + 1]
movzx r8d, byte [r11]
mov edx, r9d
shr edx, 4
mov eax, r8d
shr rax, 2
add r11, 3
shl r8d, 4
add edx, r8d
and edx, 0x3f
movzx eax, byte [rax + r12]
mov byte [rcx], al
movzx eax, byte [rdx + r12]
mov byte [rcx + 1], al
mov eax, r10d
shr eax, 6
and r10d, 0x3f
lea edx, [rax + r9*4]
and edx, 0x3f
movzx eax, byte [rdx + r12]
mov byte [rcx + 2], al
movzx eax, byte [r10 + r12]
mov byte [rcx + 3], al
add rcx, 4
sub rsi, 1
jne 0x1800012e0
mov rsi, qword [rsp + 0x30]
cmp ebp, edi
jge 0x1800013a2
movzx r8d, byte [r11]
inc ebp
cmp ebp, edi
jge 0x18000135b
movzx ebx, byte [r11 + 1]
mov edx, ebx
mov rax, r8
shr edx, 4
shr rax, 2
shl r8d, 4
add edx, r8d
and edx, 0x3f
movzx eax, byte [rax + r12]
mov byte [rcx], al
movzx eax, byte [rdx + r12]
mov byte [rcx + 1], al
cmp ebp, edi
jge 0x180001394
and ebx, 0xf
shl ebx, 2
movzx eax, byte [rbx + r12]
mov byte [rcx + 2], al
jmp 0x180001398
mov byte [rcx + 2], 0x3d
add rcx, 3
mov byte [rcx], 0x3d
inc rcx
mov r12, qword [rsp + 0x38]
mov eax, ecx
mov rbp, qword [rsp + 0x28]
sub eax, r15d
mov rbx, qword [rsp + 0x20]
mov dword [r14], eax
mov byte [rcx], 0
xor eax, eax
pop r15
pop r14
pop rdi
ret

Function at 0x1800013d0
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0x20
mov byte [rcx + 0x68], 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 0x18000140c
mov rdx, qword [rdx]
call fcn.180003690
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x180004810
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 [0x1800560e0]
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 0x18000485f
mov r9, qword [r9]
mov r8d, edi
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, edi
jne 0x1800049db
mov qword [rsp + 0x50], 7
xor r15d, r15d
mov qword [rsp + 0x48], r15
mov word [rsp + 0x38], r15w
xor r8d, r8d
lea rdx, [0x18003bba8]
lea rcx, [rsp + 0x38]
call fcn.180003d60
nop
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x80]
call fcn.18001be70
mov r8d, edi
lea rdx, [0x18003ba4c]
lea rcx, [rbp - 0x80]
call fcn.180003fe0
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 0x180004936
call fcn.1800046d0
mov rbx, rax
lea rax, [rsp + 0x38]
cmp rax, rbx
je 0x180004934
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x180004912
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.180003eb0
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r15
mov word [rsp + 0x38], r15w
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.1800038c0
nop
jmp 0x180004987
call fcn.1800047d0
mov rbx, rax
lea rax, [rsp + 0x38]
cmp rax, rbx
je 0x180004987
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x180004965
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.180003eb0
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r15
mov word [rsp + 0x38], r15w
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.1800038c0
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1800049a4
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.180003eb0
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call fcn.18001e240
mov ebx, eax
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x1800049d9
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.180003eb0
mov eax, ebx
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.180018f70
add rsp, 0x898
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180004a00
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 [0x1800560e0]
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.18001be70
lea rax, [rbp + 0xc0]
cmp qword [rax + 0x18], 8
jb 0x180004a6d
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 0x180004aa6
mov rax, qword [rbx]
jmp 0x180004aa9
mov rax, rbx
mov word [rax], di
cmp word [rsp + 0x70], di
je 0x180004aca
lea rax, [rsp + 0x70]
or rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x180004ac0
mov r8, rdi
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.180003d60
mov dword [rsp + 0x30], 1
cmp qword [rbx + 0x18], 8
jb 0x180004aee
mov rax, qword [rbx]
jmp 0x180004af1
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 0x180004b16
add rax, 2
test edx, edx
jne 0x180004b00
test r10d, r10d
jne 0x180004b68
mov qword [rsp + 0x20], rsi
mov r9, r15
mov r8, r14
lea rdx, [rsp + 0x48]
mov rcx, rbp
cmp byte [rbp + 9], r10b
je 0x180004b3b
call fcn.1800046d0
jmp 0x180004b40
call fcn.1800047d0
mov rdx, rax
mov rcx, rbx
call fcn.180003810
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x180004b68
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.180003eb0
mov rax, rbx
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.180018f70
add rsp, 0x888
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180005c50
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 [0x1800560e0]
xor rax, rsp
mov qword [rbp + 0x990], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.18001be70
cmp qword [rdi + 0x58], 8
lea r8, [rdi + 0x40]
jb 0x180005c9e
mov r8, qword [r8]
lea r9, str.CfgPath
lea rdx, [0x18003bc68]
lea rcx, [rsp + 0x40]
call fcn.180003fe0
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180005ccf
lea rcx, [rsp + 0x40]
call fcn.18000bba0
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x208
call fcn.18001be70
lea r9, str.Use.ini
lea r8, [rsp + 0x40]
lea rdx, str._s_s
lea rcx, [rbp + 0x150]
call fcn.180003fe0
xor ebx, ebx
cmp word [rbp + 0x150], bx
jne 0x180005d12
mov r8d, ebx
jmp 0x180005d2a
lea rax, [rbp + 0x150]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180005d20
lea rcx, [rdi + 0xc0]
lea rdx, [rbp + 0x150]
call fcn.180003d60
xor edx, edx
lea rcx, [rbp + 0x360]
mov r8d, 0x208
call fcn.18001be70
lea r9, str.UseCache.ini
lea r8, [rsp + 0x40]
lea rdx, str._s_s
lea rcx, [rbp + 0x360]
call fcn.180003fe0
cmp word [rbp + 0x360], bx
jne 0x180005d7e
mov r8, rbx
jmp 0x180005d9a
lea rax, [rbp + 0x360]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180005d90
lea rcx, [rdi + 0xe0]
lea rdx, [rbp + 0x360]
call fcn.180003d60
xor edx, edx
lea rcx, [rbp + 0x570]
mov r8d, 0x208
call fcn.18001be70
lea rdx, str.CCYSPath
lea rcx, [rsp + 0x20]
call fcn.18000c0c0
cmp qword [rax + 0x18], 8
jb 0x180005ddc
mov rax, qword [rax]
mov r8, rax
lea rdx, [0x18003bcbc]
lea rcx, [rbp + 0x570]
call fcn.180003fe0
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x180005e0f
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
inc r8
call fcn.180003eb0
lea rcx, [rbp + 0x570]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180005e2c
lea rcx, [rbp + 0x570]
call fcn.18000bba0
xor edx, edx
lea rcx, [rbp + 0x780]
mov r8d, 0x208
call fcn.18001be70
lea r9, str.UseCache.ini
lea r8, [rbp + 0x570]
lea rdx, str._s_s
lea rcx, [rbp + 0x780]
call fcn.180003fe0
cmp word [rbp + 0x780], bx
je 0x180005e7f
lea rax, [rbp + 0x780]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180005e75
lea rcx, [rdi + 0x100]
mov r8, rbx
lea rdx, [rbp + 0x780]
call fcn.180003d60
mov rcx, qword [rbp + 0x990]
xor rcx, rsp
call fcn.180018f70
lea r11, [rsp + 0xaa0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x180009b50
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