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

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x24], 0xca
mov rbx, rcx
jne 0x140029b89
call fcn.14002f75c
cmp byte [rbx + 0x58], 0
je 0x140029b80
mov dword [rbx + 0x24], 0xcf
mov al, 1
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x24], VarI2FromI1
jmp 0x140029b92
cmp dword [rcx + 0x24], 0xcb
jne 0x140029c0a
mov rax, qword [rbx + 0x238]
cmp byte [rax + 0x20], 0
je 0x140029bfc
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140029bad
mov rcx, rbx
call qword [rax]
mov rax, qword [rbx + 0x238]
mov rcx, rbx
call qword [rax]
test eax, eax
je 0x140029bf4
cmp eax, 2
je 0x140029bfc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140029b9f
cmp eax, 3
je 0x140029bd5
cmp eax, 1
jne 0x140029b9f
inc dword [rcx + 8]
mov rdx, qword [rbx + 0x10]
mov r8d, dword [rdx + 0xc]
cmp dword [rcx + 8], r8d
jl 0x140029b9f
mov ecx, dword [rbx + 0x188]
add ecx, r8d
mov dword [rdx + 0xc], ecx
jmp 0x140029b9f
xor al, al
add rsp, 0x20
pop rbx
ret
mov eax, dword [rbx + 0x9c]
mov dword [rbx + 0xa4], eax
jmp 0x140029c2e
cmp dword [rcx + 0x24], 0xcc
je 0x140029c2e
mov rax, qword [rcx]
mov dword [rax + 0x28], socket
mov rcx, qword [rcx]
mov eax, dword [rbx + 0x24]
mov dword [rcx + 0x2c], eax
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x140029c3c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, reloc.OLEAUT32.dll_VarI2FromI1
mov rbx, rcx
cmp dword [rcx + 0x24], edi
je 0x140029c6b
mov rax, qword [rcx + 0x218]
call qword [rax]
and dword [rbx + 0x98], 0
mov dword [rbx + 0x24], edi
mov rax, qword [rbx + 0x218]
cmp byte [rax + 0x10], 0
je 0x140029cf0
lea rdi, [rbx + 0x98]
mov ecx, dword [rdi]
jmp 0x140029cc1
mov rax, qword [rbx + 0x10]
mov esi, ecx
test rax, rax
je 0x140029ca6
mov dword [rax + 8], ecx
mov rcx, qword [rbx + 0x10]
mov eax, dword [rbx + 0x78]
mov dword [rcx + 0xc], eax
mov rcx, rbx
mov rax, qword [rbx + 0x10]
call qword [rax]
mov esi, dword [rdi]
mov rax, qword [rbx + 0x220]
xor r9d, r9d
mov r8, rdi
xor edx, edx
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov ecx, dword [rdi]
cmp ecx, esi
je 0x140029d14
cmp ecx, dword [rbx + 0x78]
jb 0x140029c83
mov rax, qword [rbx + 0x218]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rbx + 0x218]
mov rcx, rbx
call qword [rax]
and dword [rdi], 0
xor ecx, ecx
mov rax, qword [rbx + 0x218]
cmp byte [rax + 0x10], cl
jne 0x140029cc1
mov al, byte [rbx + 0x59]
neg al
mov al, 1
sbb ecx, ecx
neg ecx
add ecx, 0xcd
mov dword [rbx + 0x24], ecx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor al, al
jmp 0x140029d04
Function at 0x14002c1b8
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.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x14002c1fd
mov rdx, qword [rdi]
mov dword [rdx + 0x28], reloc.WS2_32.dll_getservbyport
mov rcx, qword [rdi]
and dword [rcx + 0x2c], eax
mov rcx, rdi
mov rdx, qword [rdi]
call qword [rdx]
lea rax, [fcn.14002b530]
mov dword [rbx + 0x5c], 0x3b9aca00
mov qword [rbx], rax
mov ecx, 1
lea rax, [fcn.14002b69c]
mov qword [rbx + 8], rax
lea rax, [fcn.14002b784]
mov qword [rbx + 0x10], rax
lea rax, [fcn.14002b858]
mov qword [rbx + 0x18], rax
lea rax, [0x14002b93c]
mov qword [rbx + 0x20], rax
lea rax, [0x14002b9d8]
mov qword [rbx + 0x28], rax
lea rax, [0x14002ba74]
mov qword [rbx + 0x30], rax
lea rax, [0x14002bda8]
mov qword [rbx + 0x38], rax
lea rax, [0x14002bf04]
mov qword [rbx + 0x40], rax
lea rax, [fcn.14002c064]
mov qword [rbx + 0x48], rax
lea rax, [0x14002c17c]
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
lea rax, [rax - 8]
sub rcx, 1
jns 0x14002c28c
and qword [rbx + 0x80], 0
lea rcx, str.JPEGMEM
and qword [rbx + 0x88], 0
mov dword [rbx + 0x90], 0x98
mov qword [rdi + 8], rbx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14002c312
lea r9, [rsp + 0x30]
mov byte [rsp + 0x30], 0x78
lea r8, [rsp + 0x38]
mov rcx, rax
lea rdx, str._ld_c
call fcn.14002b4cc
test eax, eax
jle 0x14002c312
mov al, byte [rsp + 0x30]
sub al, 0x4d
test al, 0xdf
jne 0x14002c305
imul eax, dword [rsp + 0x38], 0x3e8
jmp 0x14002c309
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 0x1400309d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12d, dword [rcx + 0x64]
mov rdi, rcx
mov rbx, qword [rcx + 0x268]
cmp r12d, 1
mov r8d, 0x2fe
mov edx, 1
sete al
mov byte [rbx + 0x38], al
mov rax, qword [rcx + 8]
mov ecx, 0x100
mov r9d, dword [rdi + 0x7c]
cmovne r8d, ecx
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
mov r13d, dword [rbx + 0x28]
xor esi, esi
mov qword [rbx + 0x30], rax
cmp dword [rdi + 0x7c], esi
jle 0x140030b11
xor r8d, r8d
lea r10, [rbx + 0x3c]
mov r11d, dword [r10]
mov eax, r13d
cdq
idiv r11d
mov r13d, eax
cmp r12d, 1
jne 0x140030a5f
mov rax, qword [rbx + 0x30]
add qword [r8 + rax], 0xff
mov rax, qword [rbx + 0x30]
lea ecx, [r11*2 - 2]
xor r14d, r14d
mov dword [rsp + 0x50], ecx
xor ebp, ebp
mov r9, qword [r8 + rax]
lea eax, [r11 + 0xfe]
cdq
idiv ecx
xor r15d, r15d
mov edx, eax
cmp ebp, edx
jle 0x140030ab1
imul eax, r14d, 0x1fe
lea ecx, [r11 + 0xfe]
add ecx, eax
add ecx, 0x1fe
inc r14d
mov eax, ecx
cdq
idiv dword [rsp + 0x50]
mov edx, eax
cmp ebp, eax
jg 0x140030a9b
movzx eax, r14b
inc ebp
movzx ecx, r13b
imul ecx, eax
mov byte [r15 + r9], cl
inc r15
cmp r15, 0xff
jle 0x140030a87
cmp r12d, 1
jne 0x140030afe
mov ecx, r12d
lea rdx, [r9 - 1]
mov al, byte [r9]
mov byte [rdx], al
dec rdx
mov al, byte [r9 + 0xff]
mov byte [r9 + rcx + 0xff], al
inc rcx
cmp rcx, 0xff
jle 0x140030adb
inc esi
add r10, 4
add r8, 8
cmp esi, dword [rdi + 0x7c]
jl 0x140030a40
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140051ef4
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 [0x1400ef0c8]
xor rax, rsp
mov qword [rsp + 0x10], rax
mov ebx, 3
mov r10, rdx
mov r9, rcx
cmp byte [rcx + 8], bl
je 0x140052092
movzx edx, byte [rcx + 9]
xor r11d, r11d
test byte [rcx + 8], 2
movzx esi, r11w
mov edi, dword [rcx]
mov ecx, edx
je 0x140051f60
movzx eax, byte [r8]
sub ecx, eax
movzx eax, byte [r8 + 1]
mov dword [rsp], ecx
mov ecx, edx
sub ecx, eax
movzx eax, byte [r8 + 2]
mov dword [rsp + 4], ecx
mov ecx, edx
sub ecx, eax
mov dword [rsp + 8], ecx
jmp 0x140051f6f
movzx eax, byte [r8 + 3]
mov ebx, 1
sub ecx, eax
mov dword [rsp], ecx
test byte [r9 + 8], 4
je 0x140051f86
movzx eax, byte [r8 + 4]
mov ecx, edx
sub ecx, eax
mov eax, ebx
inc ebx
mov dword [rsp + rax*4], ecx
mov ecx, ebx
test ebx, ebx
je 0x140052092
mov rax, r11
cmp dword [rsp + rax*4], r11d
jg 0x140051f9f
mov dword [rsp + rax*4], r11d
jmp 0x140051fa4
mov esi, 1
inc rax
cmp rax, rcx
jl 0x140051f93
test si, si
je 0x140052092
cmp dl, 2
je 0x140052075
cmp dl, 4
je 0x140052040
cmp dl, 8
je 0x14005201f
cmp dl, 0x10
jne 0x140052092
imul edi, ebx
test edi, edi
je 0x140052092
movzx r8d, byte [r10]
xor edx, edx
mov eax, r11d
inc r11d
div ebx
movzx eax, byte [r10 + 1]
mov ecx, edx
mov edx, 0x100
imul r8d, edx
mov ecx, dword [rsp + rcx*4]
add r8w, ax
shr r8w, cl
movzx eax, r8w
mov byte [r10 + 1], r8b
shr ax, 8
mov byte [r10], al
lea r10, [r10 + 2]
cmp r11d, edi
jb 0x140051fdc
jmp 0x140052092
imul edi, ebx
test edi, edi
je 0x140052092
xor edx, edx
mov eax, r11d
div ebx
inc r11d
mov ecx, dword [rsp + rdx*4]
shr byte [r10], cl
inc r10
cmp r11d, edi
jb 0x140052026
jmp 0x140052092
mov ecx, dword [rsp]
mov edx, 0xf0
sar edx, cl
mov eax, reloc.WS2_32.dll_ntohs
and dl, 0xf0
sar eax, cl
or dl, al
cmp dword [r9 + 4], r11d
jbe 0x140052092
mov r8d, dword [r9 + 4]
mov al, byte [r10]
shr al, cl
and al, dl
mov byte [r10], al
inc r10
sub r8, 1
jne 0x140052060
jmp 0x140052092
cmp dword [r9 + 4], r11d
jbe 0x140052092
mov ecx, dword [r9 + 4]
mov al, byte [r10]
shr al, 1
and al, 0x55
mov byte [r10], al
inc r10
sub rcx, 1
jne 0x14005207f
mov rcx, qword [rsp + 0x10]
xor rcx, rsp
call fcn.1400b0f60
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140060a04
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r11, rcx
mov r9, rdx
mov ecx, 0x12345678
mov r10d, 0x23456789
mov dword [rdx], ecx
mov rdi, r8
mov dword [rdx + 4], r10d
mov edx, 0x34567890
mov dword [r9 + 8], edx
mov al, byte [r11]
test al, al
je 0x140060a92
mov r8d, ecx
mov ebx, edx
mov rcx, r8
inc r11
xor rcx, rax
movzx eax, cl
mov ecx, r8d
shr ecx, 8
mov edx, dword [rdi + rax*4]
xor edx, ecx
mov ecx, ebx
movzx eax, dl
mov r8d, edx
add eax, r10d
mov dword [r9], edx
imul r10d, eax, 0x8088405
shr ecx, 8
inc r10d
mov dword [r9 + 4], r10d
mov eax, r10d
shr rax, 0x18
xor rax, rbx
movzx eax, al
mov eax, dword [rdi + rax*4]
xor eax, ecx
mov ebx, eax
mov dword [r9 + 8], eax
mov al, byte [r11]
test al, al
jne 0x140060a3d
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
Function at 0x140062a5c
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 0x140062b20
xor r11d, r11d
cmp dword [rcx + 0xd4], r11d
jbe 0x140062b20
movzx eax, byte [r11 + rdi + 0x100]
mov edx, dword [rdi + 0x10128]
mov ecx, edx
mov r8, qword [rdi + 0x10138]
xor rcx, rax
mov r10d, dword [rdi + 0x10130]
movzx eax, cl
and r10d, 0xfffd
or r10d, 2
shr edx, 8
mov ecx, dword [r8 + rax*4]
xor ecx, edx
mov dword [rdi + 0x10128], ecx
movzx eax, cl
add eax, dword [rdi + 0x1012c]
mov ecx, dword [rdi + 0x10130]
imul eax, eax, 0x8088405
inc eax
mov dword [rdi + 0x1012c], eax
shr rax, 0x18
xor rax, rcx
shr ecx, 8
movzx eax, al
mov eax, dword [r8 + rax*4]
xor eax, ecx
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 0x140062a86
mov r9d, dword [rdi + 0xd4]
lea r8, [rdi + 0x100]
mov rdx, qword [rdi + 0x58]
mov rcx, qword [rdi + 0x38]
mov ebx, dword [rdi + 0xd4]
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
mov eax, edx
add qword [rdi + 0x10120], rcx
and dword [rdi + 0x84], 0
and dword [rdi + 0xd4], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14006769c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov ebx, dword [rcx + 0x44]
mov rdi, rcx
mov r9d, dword [rcx + 0x9c]
mov edx, dword [rdi + 0x94]
mov esi, dword [rdi + 0x58]
mov ecx, dword [rdi + 0x44]
sub esi, edx
add ecx, 0xfffffefa
sub esi, r9d
add ecx, ebx
cmp edx, ecx
jb 0x140067757
mov rcx, qword [rdi + 0x50]
mov r8, rbx
lea rdx, [rbx + rcx]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov r9d, dword [rdi + 0x74]
mov rax, qword [rdi + 0x68]
sub dword [rdi + 0x98], ebx
sub dword [rdi + 0x94], ebx
sub dword [rdi + 0x84], ebx
lea r8, [rax + r9*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, bx
cmp edx, ebx
cmovae ax, cx
mov word [r8], ax
add r9d, 0xffffffff
jne 0x14006770a
mov rax, qword [rdi + 0x60]
mov r9d, ebx
lea r8, [rax + rbx*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, bx
cmp edx, ebx
cmovae ax, cx
mov word [r8], ax
add r9d, 0xffffffff
jne 0x140067735
add esi, ebx
mov rcx, qword [rdi]
cmp dword [rcx + 8], 0
je 0x140067845
mov edx, dword [rdi + 0x9c]
mov r8d, esi
mov eax, dword [rdi + 0x94]
add rdx, rax
add rdx, qword [rdi + 0x50]
call fcn.1400673ac
add dword [rdi + 0x9c], eax
mov r9d, dword [rdi + 0x9c]
cmp r9d, 3
jb 0x1400677bf
mov eax, dword [rdi + 0x94]
mov rdx, qword [rdi + 0x50]
mov ecx, dword [rdi + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rdi + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rdi + 0x7c]
mov dword [rdi + 0x70], r8d
cmp r9d, 0x106
jae 0x1400677d5
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x1400676be
mov ecx, dword [rdi + 0x1718]
mov ebx, dword [rdi + 0x58]
cmp ecx, ebx
jae 0x140067845
mov esi, dword [rdi + 0x94]
add esi, r9d
cmp ecx, esi
jae 0x140067817
sub ebx, esi
mov ecx, esi
mov eax, 0x102
cmp ebx, eax
cmova ebx, eax
add rcx, qword [rdi + 0x50]
mov r8d, ebx
xor edx, edx
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea eax, [rbx + rsi]
mov dword [rdi + 0x1718], eax
jmp 0x140067845
lea eax, [rsi + 0x102]
cmp ecx, eax
jae 0x140067845
sub ebx, ecx
sub esi, ecx
lea eax, [rsi + 0x102]
cmp eax, ebx
cmovbe ebx, eax
add rcx, qword [rdi + 0x50]
mov r8d, ebx
xor edx, edx
call qword [sym.imp.VCRUNTIME140.dll_memset]
add dword [rdi + 0x1718], ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14006b244
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rdi, rcx
mov rax, qword [0x1400ef018]
mov qword [rcx], rax
lea rbx, [rcx + 0x20]
mov qword [rsp + 0x68], rbx
and qword [rbx], 0
and qword [rbx + 8], 0
mov ecx, gethostbyaddr
call fcn.1400b0a08
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
and qword [rdi + 0x18], 0
and qword [rdi + 8], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x48]
mov dword [rdi + 0x10], eax
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x14006b710
Capabilities:
Read file via mapping

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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x38
mov rsi, rcx
xor r14d, r14d
mov dword [rbp + 0x40], r14d
mov rax, qword [0x1400ef018]
mov qword [rbp + 0x50], rax
mov rcx, qword [rcx]
or r15d, 0xffffffff
cmp dword [rcx - 8], r14d
jle 0x14006d040
lea edx, [r14 + 0x3a]
call sub.VCRUNTIME140.dll_wcschr
test rax, rax
jne 0x14006d045
mov eax, r15d
jmp 0x14006d04b
sub rax, qword [rsi]
sar rax, 1
lea edi, [rax + 2]
test eax, eax
cmovs edi, eax
mov rcx, qword [rsi]
test edi, edi
js 0x14006d104
cmp edi, dword [rcx - 8]
jge 0x14006d104
movsxd rax, edi
lea rcx, [rcx + rax*2]
mov edx, VarDateFromDisp
call sub.VCRUNTIME140.dll_wcschr
mov rbx, rax
test rax, rax
je 0x14006d104
mov rax, qword [rsi]
sub rbx, rax
sar rbx, 1
mov edi, ebx
test ebx, ebx
js 0x14006d107
mov r8d, ebx
cmp ebx, dword [rax - 8]
cmovg r8d, dword [rax - 8]
mov rax, qword [0x1400ef018]
mov qword [rbp + 0x48], rax
or r14d, 1
mov dword [rbp + 0x40], r14d
and dword [rsp + 0x20], 0
xor r9d, r9d
lea rdx, [rbp + 0x48]
mov rcx, rsi
call fcn.14006cbf0
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x50]
call fcn.14006c8f4
and r14d, 0xfffffffe
mov dword [rbp + 0x40], r14d
mov rcx, qword [rbp + 0x48]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x1400ef010]
je 0x14006d113
mov eax, r15d
lock xadd dword [rcx], eax
add eax, r15d
test eax, eax
jg 0x14006d0fe
call fcn.1400b0a54
mov r14d, dword [rbp + 0x40]
jmp 0x14006d113
mov edi, r15d
mov rdx, rsi
lea rcx, [rbp + 0x50]
call fcn.14006c8f4
xor edx, edx
mov rbx, qword [rbp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14006d133
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14006d19e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x14006d19e
cmp edi, r15d
je 0x14006d14c
inc edi
jmp 0x14006d053
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x1400ef010]
je 0x14006d16d
mov eax, r15d
lock xadd dword [rcx], eax
add eax, r15d
test eax, eax
jg 0x14006d16d
call fcn.1400b0a54
nop
mov rax, qword [rsi]
add rax, 0xfffffffffffffff4
cmp rax, qword [0x1400ef010]
je 0x14006d197
mov ecx, r15d
lock xadd dword [rax], ecx
add ecx, r15d
test ecx, ecx
jg 0x14006d197
mov rcx, qword [rsi]
sub rcx, 0xc
call fcn.1400b0a54
mov eax, 1
jmp 0x14006d1eb
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x1400ef010]
je 0x14006d1bf
mov eax, r15d
lock xadd dword [rcx], eax
add eax, r15d
test eax, eax
jg 0x14006d1bf
call fcn.1400b0a54
nop
mov rcx, qword [rsi]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x1400ef010]
je 0x14006d1e9
mov eax, r15d
lock xadd dword [rcx], eax
add eax, r15d
test eax, eax
jg 0x14006d1e9
mov rcx, qword [rsi]
sub rcx, 0xc
call fcn.1400b0a54
xor eax, eax
add rsp, 0x38
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14006e20c
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x858
mov rax, qword [0x1400ef0c8]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x38], rcx
and dword [rsp + 0x30], 0
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x40]
lea r8, [0x1400b8074]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.14006c728
mov dword [rsp + 0x30], 1
lea r8, [0x1400b82b8]
lea rdx, [0x1400b82bc]
mov rcx, rbp
call fcn.14006ed1c
mov rax, rbp
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.1400b0f60
add rsp, 0x858
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14006eb18
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 0x14006ebd4
mov rcx, qword [rcx]
xor r8d, r8d
mov qword [r11 - 0x10], r9
lea r9, [r11 + 0x20]
mov qword [r11 - 0x18], rdx
mov rdx, rax
mov dword [rsp + 0x58], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test eax, eax
jne 0x14006ebc2
test rbx, rbx
je 0x14006ebc2
cmp dword [rdi], esi
jbe 0x14006ebbf
mov ecx, dword [rsp + 0x58]
test ecx, ecx
je 0x14006ebb5
cmp ecx, 2
jbe 0x14006eba4
cmp ecx, 7
jne 0x14006ebb5
test byte [rdi], 1
jne 0x14006ebb5
mov eax, dword [rdi]
shr eax, 1
cmp eax, 1
jb 0x14006ebb5
mov ecx, dword [rdi]
shr rcx, 1
cmp word [rbx + rcx*2 - 2], si
jne 0x14006ebb5
cmp eax, 1
jbe 0x14006ebc2
cmp word [rbx + rcx*2 - 4], si
jne 0x14006ebb5
jmp 0x14006ebc2
test byte [rdi], 1
jne 0x14006ebb5
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x14006ebc2
mov word [rbx], si
mov eax, ntohs
jmp 0x14006ebc4
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.14006b6ec
int3
Function at 0x140075294
Capabilities:
Get file size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, rcx
xor esi, esi
mov rax, qword [0x1400ef018]
mov qword [rsp + 0x80], rax
xor edi, edi
cmp dword [rcx + 0xf0], edi
jle 0x14007536e
mov edx, edi
mov rcx, r14
call fcn.140075f98
lea rcx, [rax + 8]
xor edx, edx
call fcn.14006dda4
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14006c728
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 + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140075339
lea rdx, [rsp + 0x78]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rbp
test eax, eax
je 0x140075333
add rsi, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x1400ef010]
je 0x140075357
or eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jg 0x140075357
call fcn.1400b0a54
inc edi
cmp edi, dword [r14 + 0xf0]
jl 0x1400752c1
mov rax, qword [rsp + 0x80]
lea rcx, [rax - 0xc]
cmp rcx, qword [0x1400ef010]
je 0x14007538c
or edx, 0xffffffff
lock xadd dword [rcx], edx
sub edx, 1
jg 0x14007538c
call fcn.1400b0a54
mov rax, rsi
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140075e80
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 [0x1400ef0c8]
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.14006b5e4
and qword [rdi], 0
xor r9d, r9d
and qword [rsp + 0x30], 0
mov edx, 0x80000000
and dword [rsp + 0x28], 0
mov rcx, qword [rsi + 8]
lea r8d, [r9 + 1]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140075f08
xor eax, eax
jmp 0x140075f77
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140075f22
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
mov rcx, qword [rsi + 8]
lea r8, [rsp + 0x50]
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x701
xor edx, edx
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 rcx, rbp
mov edx, eax
call fcn.14006b5e4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.1400b0f60
add rsp, 0x320
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140076694
Capabilities:
Get file size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov r14, rdx
xor ebp, ebp
mov rax, qword [0x1400ef018]
mov qword [rsp + 0x98], rax
mov rcx, qword [rdx + 0xe8]
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x1400767be
lea rcx, [rbx + 0x30]
xor edx, edx
call fcn.14006dda4
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.14006c728
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 0x140076740
lea rdx, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rsi
test eax, eax
je 0x14007673a
add rbp, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rdi - 0xc]
cmp rcx, qword [0x1400ef010]
je 0x14007675e
or eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14007675e
call fcn.1400b0a54
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x140076786
mov rax, qword [rbx + 8]
jmp 0x14007677b
cmp rbx, qword [rax + 0x10]
jne 0x140076781
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x14007676e
mov rbx, rax
jmp 0x1400767a1
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x1400767a1
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140076792
mov rax, qword [r14 + 0xe8]
mov qword [rsp + 0x40], rax
cmp rbx, rax
jne 0x1400766c6
mov rax, qword [rsp + 0x98]
lea rcx, [rax - 0xc]
cmp rcx, qword [0x1400ef010]
je 0x1400767dc
or edx, 0xffffffff
lock xadd dword [rcx], edx
sub edx, 1
jg 0x1400767dc
call fcn.1400b0a54
mov rax, rbp
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret