joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140025d6c
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x24], 0xca
mov rbx, rcx
jne 0x140025d9f
call fcn.14002b804
cmp byte [rbx + 0x58], 0
je 0x140025d98
mov dword [rbx + 0x24], 0xcf
mov al, 1
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x24], VarI2FromI1
cmp dword [rbx + 0x24], 0xcb
jne 0x140025e1f
mov rax, qword [rbx + 0x238]
cmp byte [rax + 0x20], 0
je 0x140025e11
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140025dc3
mov rcx, rbx
call qword [rax]
mov rax, qword [rbx + 0x238]
mov rcx, rbx
call qword [rax]
test eax, eax
je 0x140025e09
cmp eax, 2
je 0x140025e11
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140025db5
dec eax
test eax, 0xfffffffd
jne 0x140025db5
inc dword [rcx + 8]
mov rdx, qword [rbx + 0x10]
mov r8d, dword [rdx + 0xc]
cmp dword [rcx + 8], r8d
jl 0x140025db5
mov ecx, dword [rbx + 0x188]
add ecx, r8d
mov dword [rdx + 0xc], ecx
jmp 0x140025db5
xor al, al
add rsp, 0x20
pop rbx
ret
mov eax, dword [rbx + 0x9c]
mov dword [rbx + 0xa4], eax
jmp 0x140025e43
cmp dword [rbx + 0x24], 0xcc
je 0x140025e43
mov rax, qword [rbx]
mov dword [rax + 0x28], socket
mov rcx, qword [rbx]
mov eax, dword [rbx + 0x24]
mov dword [rcx + 0x2c], eax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x140025e50
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, reloc.OLEAUT32.dll_VarI2FromI1
mov rdi, rcx
cmp dword [rcx + 0x24], ebx
je 0x140025e7f
mov rax, qword [rcx + 0x218]
call qword [rax]
and dword [rdi + 0x98], 0
mov dword [rdi + 0x24], ebx
mov rax, qword [rdi + 0x218]
cmp byte [rax + 0x10], 0
je 0x140025f01
lea rsi, [rdi + 0x98]
mov eax, dword [rsi]
jmp 0x140025ed3
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140025eb6
mov dword [rcx + 8], eax
mov rcx, qword [rdi + 0x10]
mov eax, dword [rdi + 0x78]
mov dword [rcx + 0xc], eax
mov rax, qword [rdi + 0x10]
mov rcx, rdi
call qword [rax]
mov rax, qword [rdi + 0x220]
mov ebx, dword [rsi]
xor r9d, r9d
mov r8, rsi
xor edx, edx
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, dword [rsi]
cmp eax, ebx
je 0x140025f25
cmp eax, dword [rdi + 0x78]
jb 0x140025e97
mov rax, qword [rdi + 0x218]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rdi + 0x218]
mov rcx, rdi
call qword [rax]
and dword [rsi], 0
mov rax, qword [rdi + 0x218]
cmp byte [rax + 0x10], 0
jne 0x140025e93
mov al, byte [rdi + 0x59]
neg al
mov al, 1
sbb ecx, ecx
neg ecx
add ecx, 0xcd
mov dword [rdi + 0x24], ecx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor al, al
jmp 0x140025f15
Function at 0x14002af14
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
and qword [rcx + 8], 0
mov rdi, rcx
mov ecx, 0x98
mov dword [rsp + 0x38], 0xf4240
call qword [sym.imp.MSVCR120.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x14002af59
mov rdx, qword [rdi]
mov dword [rdx + 0x28], reloc.WS2_32.dll_getservbyport
mov rcx, qword [rdi]
and dword [rcx + 0x2c], eax
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx]
lea rax, [fcn.14002a2a4]
mov dword [rbx + 0x5c], 0x3b9aca00
mov ecx, 1
mov qword [rbx], rax
lea rax, [fcn.14002a414]
mov qword [rbx + 8], rax
lea rax, [fcn.14002a4fc]
mov qword [rbx + 0x10], rax
lea rax, [fcn.14002a5cc]
mov qword [rbx + 0x18], rax
lea rax, [0x14002a6ac]
mov qword [rbx + 0x20], rax
lea rax, [0x14002a748]
mov qword [rbx + 0x28], rax
lea rax, [0x14002a7e4]
mov qword [rbx + 0x30], rax
lea rax, [0x14002ab10]
mov qword [rbx + 0x38], rax
lea rax, [0x14002ac68]
mov qword [rbx + 0x40], rax
lea rax, [fcn.14002adc4]
mov qword [rbx + 0x48], rax
lea rax, [0x14002aed8]
mov qword [rbx + 0x50], rax
mov eax, dword [rsp + 0x38]
mov dword [rbx + 0x58], eax
lea rax, [rbx + 0x78]
and qword [rax - 0x10], 0
and qword [rax], 0
dec rcx
lea rax, [rax - 8]
jns 0x14002afe8
and qword [rbx + 0x80], 0
and qword [rbx + 0x88], 0
mov dword [rbx + 0x90], 0x98
lea rcx, str.JPEGMEM
mov qword [rdi + 8], rbx
call qword [sym.imp.MSVCR120.dll_getenv]
test rax, rax
je 0x14002b06e
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, str._ld_c
mov rcx, rax
mov byte [rsp + 0x30], 0x78
call qword [sym.imp.MSVCR120.dll_sscanf]
test eax, eax
jle 0x14002b06e
mov al, byte [rsp + 0x30]
sub al, 0x4d
test al, 0xdf
jne 0x14002b061
imul eax, dword [rsp + 0x38], 0x3e8
jmp 0x14002b065
mov eax, dword [rsp + 0x38]
imul eax, eax, 0x3e8
mov dword [rbx + 0x58], eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004d844
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [0x1401080e0]
xor rax, rsp
mov qword [rsp + 0x10], rax
mov r11d, 3
mov r9, rdx
mov rdi, rcx
cmp byte [rcx + 8], r11b
je 0x14004d9e9
mov ebx, dword [rcx]
xor r10d, r10d
test byte [rcx + 8], 2
movzx esi, r10w
je 0x14004d8b0
movzx edx, byte [rcx + 9]
movzx eax, byte [r8]
mov ecx, edx
sub ecx, eax
movzx eax, byte [r8 + 1]
mov dword [rsp], ecx
mov ecx, edx
sub ecx, eax
movzx eax, byte [r8 + 2]
sub edx, eax
mov dword [rsp + 4], ecx
mov dword [rsp + 8], edx
jmp 0x14004d8c4
movzx eax, byte [r8 + 3]
movzx ecx, byte [rcx + 9]
mov r11d, 1
sub ecx, eax
mov dword [rsp], ecx
test byte [rdi + 8], 4
je 0x14004d8de
movzx eax, byte [r8 + 4]
movzx ecx, byte [rdi + 9]
movsxd rdx, r11d
sub ecx, eax
inc r11d
mov dword [rsp + rdx*4], ecx
mov rax, r10
movsxd rcx, r11d
test r11d, r11d
jle 0x14004d9e9
cmp dword [rsp + rax*4], r10d
jg 0x14004d8f9
mov dword [rsp + rax*4], r10d
jmp 0x14004d8fe
mov esi, 1
inc rax
cmp rax, rcx
jl 0x14004d8ed
test si, si
je 0x14004d9e9
mov al, byte [rdi + 9]
cmp al, 2
je 0x14004d9ce
cmp al, 4
je 0x14004d99a
cmp al, 8
je 0x14004d977
cmp al, 0x10
jne 0x14004d9e9
imul ebx, r11d
test ebx, ebx
je 0x14004d9e9
xor edx, edx
mov eax, r10d
inc r10d
div r11d
mov eax, 0x100
mov ecx, edx
movzx edx, byte [r9]
mov ecx, dword [rsp + rcx*4]
imul dx, ax
movzx eax, byte [r9 + 1]
add dx, ax
shr dx, cl
movzx eax, dx
shr ax, 8
mov byte [r9], al
mov byte [r9 + 1], dl
lea r9, [r9 + 2]
cmp r10d, ebx
jb 0x14004d936
jmp 0x14004d9e9
imul ebx, r11d
test ebx, ebx
je 0x14004d9e9
xor edx, edx
mov eax, r10d
inc r10d
div r11d
mov ecx, dword [rsp + rdx*4]
shr byte [r9], cl
inc r9
cmp r10d, ebx
jb 0x14004d97f
jmp 0x14004d9e9
mov ecx, dword [rsp]
mov edx, 0xf0
mov eax, reloc.WS2_32.dll_ntohs
sar edx, cl
sar eax, cl
and dl, 0xf0
or dl, al
cmp dword [rdi + 4], r10d
jbe 0x14004d9e9
mov r8d, dword [rdi + 4]
mov al, byte [r9]
shr al, cl
and al, dl
mov byte [r9], al
inc r9
dec r8
jne 0x14004d9ba
jmp 0x14004d9e9
cmp dword [rdi + 4], r10d
jbe 0x14004d9e9
mov ecx, dword [rdi + 4]
mov al, byte [r9]
shr al, 1
and al, 0x55
mov byte [r9], al
inc r9
dec rcx
jne 0x14004d9d7
mov rcx, qword [rsp + 0x10]
xor rcx, rsp
call fcn.1400bf530
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14005bd90
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
mov r10, rcx
mov ecx, 0x34567890
mov dword [rdx], 0x12345678
mov dword [rdx + 4], 0x23456789
mov dword [rdx + 8], ecx
mov al, byte [r10]
mov rbx, r8
mov r9, rdx
test al, al
je 0x14005be13
mov r8d, dword [rdx + 4]
mov r11d, ecx
mov edx, dword [r9]
inc r10
mov ecx, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
movzx eax, cl
mov dword [r9], ecx
mov ecx, r11d
add eax, r8d
shr ecx, 8
imul r8d, eax, 0x8088405
inc r8d
mov eax, r8d
mov dword [r9 + 4], r8d
shr eax, 0x18
xor rax, r11
movzx eax, al
mov eax, dword [rbx + rax*4]
xor eax, ecx
mov r11d, eax
mov dword [r9 + 8], eax
mov al, byte [r10]
test al, al
jne 0x14005bdc1
mov rbx, qword [rsp + 8]
ret
Function at 0x14005de88
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x10108], 0
mov rdi, rcx
je 0x14005df4b
xor r11d, r11d
cmp dword [rcx + 0xd4], r11d
jbe 0x14005df4b
movzx eax, byte [r11 + rdi + 0x100]
mov r8, qword [rdi + 0x10138]
mov edx, dword [rdi + 0x10128]
mov r10d, dword [rdi + 0x10130]
xor rax, rdx
shr edx, 8
movzx ecx, al
and r10d, 0xfffd
mov eax, dword [r8 + rcx*4]
or r10d, 2
xor eax, edx
mov edx, dword [rdi + 0x10130]
mov dword [rdi + 0x10128], eax
movzx eax, al
add eax, dword [rdi + 0x1012c]
imul eax, eax, 0x8088405
inc eax
mov ecx, eax
mov dword [rdi + 0x1012c], eax
shr ecx, 0x18
xor rcx, rdx
shr edx, 8
movzx eax, cl
mov eax, dword [r8 + rax*4]
xor eax, edx
mov dword [rdi + 0x10130], eax
mov eax, r10d
xor eax, 1
imul eax, r10d
shr eax, 8
xor byte [r11 + rdi + 0x100], al
inc r11d
cmp r11d, dword [rdi + 0xd4]
jb 0x14005deb2
mov r9d, dword [rdi + 0xd4]
mov rdx, qword [rdi + 0x58]
mov rcx, qword [rdi + 0x38]
mov ebx, dword [rdi + 0xd4]
lea r8, [rdi + 0x100]
call qword [rdi + reloc.WS2_32.dll_recv]
or ecx, 0xffffffff
xor edx, edx
cmp eax, ebx
cmovne edx, ecx
mov ecx, dword [rdi + 0x84]
add qword [rdi + 0x10118], rbx
and dword [rdi + 0x84], 0
add qword [rdi + 0x10120], rcx
mov rbx, qword [rsp + 0x30]
and dword [rdi + 0xd4], 0
mov eax, edx
add rsp, 0x20
pop rdi
ret
Function at 0x140062abc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, dword [rcx + 0x44]
mov rbx, rcx
mov edx, dword [rbx + 0x94]
mov esi, dword [rbx + 0x58]
mov ecx, dword [rbx + 0x44]
sub esi, dword [rbx + 0x9c]
add ecx, 0xfffffefa
add ecx, edi
sub esi, edx
cmp edx, ecx
jb 0x140062b70
mov rcx, qword [rbx + 0x50]
mov r8, rdi
lea rdx, [rcx + rdi]
call qword [sym.imp.MSVCR120.dll_memcpy]
mov r9d, dword [rbx + 0x74]
mov rax, qword [rbx + 0x68]
sub dword [rbx + 0x98], edi
sub dword [rbx + 0x94], edi
sub dword [rbx + 0x84], edi
lea r8, [rax + r9*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, di
cmp edx, edi
cmovae ax, cx
mov word [r8], ax
dec r9d
jne 0x140062b25
mov rax, qword [rbx + 0x60]
mov r9d, edi
lea r8, [rax + rdi*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, di
cmp edx, edi
cmovae ax, cx
mov word [r8], ax
dec r9d
jne 0x140062b4f
add esi, edi
mov rcx, qword [rbx]
cmp dword [rcx + 8], 0
je 0x140062c5f
mov edx, dword [rbx + 0x9c]
mov eax, dword [rbx + 0x94]
mov r8d, esi
add rdx, rax
add rdx, qword [rbx + 0x50]
call fcn.1400627dc
add dword [rbx + 0x9c], eax
mov r9d, dword [rbx + 0x9c]
cmp r9d, 3
jb 0x140062bd8
mov eax, dword [rbx + 0x94]
mov rdx, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rbx + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rbx + 0x7c]
mov dword [rbx + 0x70], r8d
cmp r9d, 0x106
jae 0x140062bee
mov rax, qword [rbx]
cmp dword [rax + 8], 0
jne 0x140062ad6
mov ecx, dword [rbx + 0x1718]
mov esi, dword [rbx + 0x58]
cmp ecx, esi
jae 0x140062c5f
mov edi, dword [rbx + 0x94]
add edi, r9d
cmp ecx, edi
jae 0x140062c30
sub esi, edi
mov eax, 0x102
mov ecx, edi
cmp esi, eax
cmova esi, eax
add rcx, qword [rbx + 0x50]
xor edx, edx
mov r8d, esi
call qword [sym.imp.MSVCR120.dll_memset]
lea eax, [rsi + rdi]
mov dword [rbx + 0x1718], eax
jmp 0x140062c5f
lea eax, [rdi + 0x102]
cmp ecx, eax
jae 0x140062c5f
sub edi, ecx
sub esi, ecx
mov eax, 0x102
add edi, eax
cmp edi, esi
cmova edi, esi
add rcx, qword [rbx + 0x50]
xor edx, edx
mov r8d, edi
call qword [sym.imp.MSVCR120.dll_memset]
add dword [rbx + 0x1718], edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140066ca8
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rdi, rcx
mov rax, qword [0x140108018]
mov qword [rcx], rax
lea rbx, [rcx + 0x20]
and qword [rbx], 0
and qword [rbx + 8], 0
mov rcx, rbx
call fcn.140067754
mov qword [rbx], rax
and qword [rdi + 0x18], 0
and qword [rdi + 8], 0
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x50]
mov dword [rdi + 0x10], eax
mov rax, rdi
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14006744c
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, edx
xor edx, edx
mov rsi, rcx
mov eax, ebx
mov r9d, ebx
div dword [rcx + 0x10]
mov rcx, qword [rcx + 8]
sub r9d, edx
sub ebx, r9d
lea edx, [rbx + r8]
xor r8d, r8d
mov qword [rsp + 0x20], rdx
lea edx, [r8 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea rcx, [rsi + 0x20]
lea rdx, [rsp + 0x40]
add rbx, rax
mov rdi, rax
mov qword [rsp + 0x40], rbx
call fcn.140066ed4
mov rsi, qword [rsp + 0x50]
mov qword [rax], rdi
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14006907c
Capabilities:
Create directory
Get file attributes

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rsi, rcx
mov rax, qword [0x140108018]
mov qword [r11 + 0x10], rax
mov rcx, qword [rcx]
or ebp, 0xffffffff
cmp dword [rcx - 8], 0
jg 0x1400690b4
mov edi, ebp
jmp 0x1400690d4
mov edx, 0x3a
call qword [sym.imp.MSVCR120.dll_wcschr]
mov rdi, rax
test rax, rax
je 0x1400690b0
sub rdi, qword [rsi]
sar rdi, 1
test edi, edi
js 0x1400690d4
add edi, 2
mov rcx, qword [rsi]
test edi, edi
js 0x140069105
cmp edi, dword [rcx - 8]
jge 0x140069105
movsxd rax, edi
lea rcx, [rcx + rax*2]
mov edx, VarDateFromDisp
call qword [sym.imp.MSVCR120.dll_wcschr]
test rax, rax
jne 0x1400690fb
mov edi, ebp
jmp 0x14006910b
sub rax, qword [rsi]
sar rax, 1
mov edi, eax
jmp 0x140069107
mov edi, ebp
test edi, edi
jns 0x14006911a
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.140068904
jmp 0x140069165
mov r8d, edi
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.14006a764
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140068904
nop
mov rcx, qword [rsp + 0x60]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x140069165
mov eax, ebp
lock xadd dword [rcx], eax
add eax, ebp
test eax, eax
jg 0x140069165
mov rcx, qword [rsp + 0x60]
add rcx, 0xfffffffffffffff4
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
xor edx, edx
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140069186
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400691ec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x1400691ec
cmp edi, ebp
je 0x14006919e
inc edi
jmp 0x1400690d4
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140108010]
je 0x1400691bd
mov eax, ebp
lock xadd dword [rcx], eax
add eax, ebp
test eax, eax
jg 0x1400691bd
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
nop
mov rax, qword [rsi]
add rax, 0xfffffffffffffff4
cmp rax, qword [0x140108010]
je 0x1400691e5
mov ecx, ebp
lock xadd dword [rax], ecx
add ecx, ebp
test ecx, ecx
jg 0x1400691e5
mov rcx, qword [rsi]
sub rcx, 0xc
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
mov eax, 1
jmp 0x140069235
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140108010]
je 0x14006920b
mov eax, ebp
lock xadd dword [rcx], eax
add eax, ebp
test eax, eax
jg 0x14006920b
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
nop
mov rcx, qword [rsi]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x140069233
mov eax, ebp
lock xadd dword [rcx], eax
add eax, ebp
test eax, eax
jg 0x140069233
mov rcx, qword [rsi]
sub rcx, 0xc
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006a024
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x868
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1401080e0]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x40], rcx
xor eax, eax
mov dword [rsp + 0x30], eax
mov word [rsp + 0x50], ax
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rsp + 0x52]
call sub.MSVCR120.dll_memset
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x50]
lea r8, [0x1400c7570]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [rsp + 0x50]
mov rcx, rbp
call fcn.14006874c
mov dword [rsp + 0x30], 1
lea r8, [0x1400c7768]
lea rdx, [0x1400c776c]
mov rcx, rbp
call fcn.14006ad44
mov rax, rbp
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.1400bf530
add rsp, 0x868
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14006aa24
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rdi, r9
mov rax, r8
mov rbx, rdx
test r9, r9
je 0x14006aade
mov rcx, qword [rcx]
mov qword [r11 - 0x10], r9
mov qword [r11 - 0x18], rdx
lea r9, [r11 + 0x20]
xor r8d, r8d
mov rdx, rax
mov dword [rsp + 0x58], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test eax, eax
jne 0x14006aacc
test rbx, rbx
je 0x14006aacc
cmp dword [rdi], esi
jbe 0x14006aac9
mov ecx, dword [rsp + 0x58]
test ecx, ecx
je 0x14006aabf
cmp ecx, 2
jbe 0x14006aaae
cmp ecx, 7
jne 0x14006aabf
test byte [rdi], 1
jne 0x14006aabf
mov eax, dword [rdi]
shr eax, 1
cmp eax, 1
jb 0x14006aabf
mov ecx, dword [rdi]
shr rcx, 1
cmp word [rbx + rcx*2 - 2], si
jne 0x14006aabf
cmp eax, 1
jbe 0x14006aacc
cmp word [rbx + rcx*2 - 4], si
jmp 0x14006aabd
test byte [rdi], 1
jne 0x14006aabf
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x14006aacc
mov word [rbx], si
mov eax, ntohs
jmp 0x14006aace
mov word [rbx], si
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x80004005
call fcn.140067430
int3
Function at 0x140075d98
Capabilities:
Get file size

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov r14, rcx
xor esi, esi
mov rax, qword [0x140108018]
mov qword [r11 + 0x18], rax
xor edi, edi
cmp dword [rcx + 0xf0], edi
jle 0x140075e7e
mov edx, edi
mov rcx, r14
call fcn.140076b24
lea rcx, [rax + 8]
xor edx, edx
call fcn.140069bfc
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.14006874c
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rbx, qword [rsp + 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140075e4f
lea rdx, [rsp + 0x88]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rbp
test eax, eax
je 0x140075e49
add rsi, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140108010]
je 0x140075e67
lock add dword [rcx], 0xffffffff
jg 0x140075e67
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
inc edi
cmp edi, dword [r14 + 0xf0]
jl 0x140075dcb
mov rax, qword [rsp + 0x90]
lea rcx, [rax - 0xc]
cmp rcx, qword [0x140108010]
je 0x140075e96
lock add dword [rcx], 0xffffffff
jg 0x140075e96
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
mov rax, rsi
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140076a0c
Capabilities:
Get file size
Get file system object information

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x320
mov rax, qword [0x1401080e0]
xor rax, rsp
mov qword [rsp + 0x310], rax
and qword [rdx], 0
mov rsi, rcx
lea rcx, str.Unknown
mov rdi, r9
mov rbp, r8
mov r14, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r8, str.Unknown
mov rcx, rbp
mov edx, eax
call fcn.140067304
and qword [rdi], 0
and qword [rsp + 0x30], 0
mov rcx, qword [rsi + 8]
and dword [rsp + 0x28], 0
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140076a94
xor eax, eax
jmp 0x140076b03
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140076aae
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
mov rcx, qword [rsi + 8]
lea r8, [rsp + 0x50]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], 0x701
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x268]
mov qword [r14], rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r8, [rsp + 0x268]
mov edx, eax
mov rcx, rbp
call fcn.140067304
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.1400bf530
add rsp, 0x320
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140077278
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rax - 0x38], 0xfffffffffffffffe
mov r14, rdx
xor ebp, ebp
mov rcx, qword [0x140108018]
mov qword [rax + 0x20], rcx
mov rax, qword [rdx + 0xe8]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140077391
lea rcx, [rbx + 0x30]
xor edx, edx
call fcn.140069bfc
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.14006874c
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rdi, qword [rsp + 0x88]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14007732a
lea rdx, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rsi
test eax, eax
je 0x140077324
add rbp, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rdi - 0xc]
cmp rcx, qword [0x140108010]
je 0x140077342
lock add dword [rcx], 0xffffffff
jg 0x140077342
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
cmp byte [rbx + 0x19], 0
jne 0x14007737c
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x140077360
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140077352
jmp 0x14007737c
mov rax, qword [rbx + 8]
jmp 0x140077373
cmp rbx, qword [rax + 0x10]
jne 0x140077379
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140077366
mov rbx, rax
cmp rbx, qword [r14 + 0xe8]
jne 0x1400772b0
mov rcx, qword [rsp + 0x98]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x1400773a9
lock add dword [rcx], 0xffffffff
jg 0x1400773a9
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
mov rax, rbp
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140080f04
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x140080f2a
mov r8, rdx
mov rdx, qword [rbx]
call fcn.140086d44
jmp 0x140080f91
cmp byte [0x1401097c0], 0
jne 0x140080f6e
lea rcx, [0x1400c7538]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140080f5e
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401097b8], rax
jmp 0x140080f65
mov rax, qword [0x1401097b8]
mov byte [0x1401097c0], 1
jmp 0x140080f75
mov rax, qword [0x1401097b8]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140080f8b
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x140080f91
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret