joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4526a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x452818
movzx edx, byte [rax]
nop
test edx, edx
jne 0x4526dc
test r8b, r8b
jne 0x4526dc
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
bt edx, 7
jae 0x4526ef
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x4527d8
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
cmp rbx, r8
jb 0x4527c6
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rcx
sar rcx, 0x3f
and r8, rcx
lea rsi, [rax + r8]
test rbx, rbx
jbe 0x4527bc
movzx r8d, byte [rax + r8]
bt r8d, 7
jae 0x452743
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x452786
mov eax, 1
cmp rax, rbx
ja 0x452775
add qword [rdi], r8
sub rdx, rax
sub rbx, rax
mov rcx, rdx
neg rdx
sar rdx, 0x3f
and rax, rdx
add rax, rsi
mov edi, 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rbx
call fcn.00466540
lea r8d, [rcx + 7]
mov ecx, eax
mov eax, r10d
cmp rax, rbx
jae 0x4527b4
movzx r9d, byte [rax + rsi]
lea r10d, [rax + 1]
mov r11d, r9d
and r9d, 0x7f
mov eax, ecx
mov ecx, r8d
shl r9d, cl
or eax, r9d
test r11b, 0x80
jne 0x45277d
mov r8d, eax
mov eax, r10d
jmp 0x452748
mov rcx, rbx
call fcn.00466480
xor eax, eax
mov rcx, rax
call fcn.00466480
mov eax, r8d
mov rcx, rbx
call fcn.00466540
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x45280e
movzx r10d, byte [rdx + rax]
inc edx
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
or r8d, r10d
test r11b, 0x80
jne 0x4527d1
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x4526f5
mov eax, edx
mov rcx, rbx
call fcn.00466480
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.00466480
nop
int3
Function at 0x45a320
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45a3d9
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rdx, [0x0045a420]
mov qword [rsp + 0x10], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x18], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x28], rdx
mov rdx, r14
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00463ce0
xorps xmm15, xmm15
mov r14, qword [0x00a38990]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00463e20
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.0045a320
Function at 0x465f20
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00a38da0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x00a38726], 0
je 0x465f56
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00a39120]
aesenc xmm0, xmmword [0x00a39130]
aesenc xmm0, xmmword [0x00a39140]
movq rax, xmm0
ret
jmp 0x40a120
Function at 0x14001c4c4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
xor r9d, r9d
movabs r8, 0xcbf29ce484222325
test rdx, rdx
je 0x14001c4f4
movzx eax, byte [rcx + r9]
movabs r10, 0x100000001b3
xor r8, rax
inc r9
imul r8, r10
cmp r9, rdx
jb 0x14001c4d6
mov rax, r8
ret

Function at 0x14001e07c
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor al, al
mov ecx, dword [rcx + 0x7c]
jmp 0x14001e0ee
cmp ecx, 0x7c
je 0x14001e0f3
cmp ecx, 0x29
jne 0x14001e0fe
cmp dword [rbx + 0x1c], 0
jne 0x14001e0f3
test dword [rbx + 0x80], 0x10000000
je 0x14001e239
cmp ecx, 0x5d
jne 0x14001e0c5
test dword [rbx + 0x80], 0x10000000
je 0x14001e202
mov dl, byte [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.14001f474
mov dil, 1
mov rcx, rbx
call fcn.14001e030
test dil, dil
je 0x14001e0e9
mov rcx, rbx
call fcn.14001f32c
mov ecx, dword [rbx + 0x7c]
mov al, 1
cmp ecx, 0xffffffff
jne 0x14001e090
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp ecx, 0x2e
jne 0x14001e11b
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.14001e338
mov rcx, rbx
call fcn.14001e030
jmp 0x14001e0e1
cmp ecx, 0x5c
jne 0x14001e179
mov rcx, rbx
call fcn.14001e030
test byte [rbx + 0x80], 0x80
je 0x14001e16c
mov al, byte [rbx + 0x78]
cmp al, 0x62
jne 0x14001e150
mov edx, 4
lea rcx, [rbx + 0x40]
call fcn.14001e338
mov rcx, rbx
call fcn.14001e030
jmp 0x14001e0e9
cmp al, 0x42
jne 0x14001e16c
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.14001e338
mov rax, qword [rbx + 0x48]
xor dword [rax + 0xc], 1
jmp 0x14001e146
mov rcx, rbx
call fcn.14001f0e8
jmp 0x14001e0e1
cmp ecx, 0x5b
jne 0x14001e199
mov rcx, rbx
call fcn.14001e030
mov rcx, rbx
call fcn.14001ef88
cmp dword [rbx + 0x7c], 0x5d
jne 0x14001e20d
jmp 0x14001e111
cmp ecx, 0x28
jne 0x14001e1bc
mov rcx, rbx
call fcn.14001e030
mov rcx, rbx
call fcn.14001f230
cmp dword [rbx + 0x7c], 0x29
mov dil, al
jne 0x14001e218
jmp 0x14001e0d4
cmp ecx, 0x5e
jne 0x14001e1c9
lea edx, [rcx - 0x5c]
jmp 0x14001e13d
cmp ecx, 0x24
jne 0x14001e1d6
lea edx, [rcx - 0x21]
jmp 0x14001e13d
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x14001e22e
cmp ecx, 0x3f
je 0x14001e22e
cmp ecx, 0x7b
je 0x14001e22e
cmp ecx, 0x7d
jne 0x14001e0b0
test dword [rbx + 0x80], 0x10000000
je 0x14001e223
jmp 0x14001e0c5
mov edx, 4
call fcn.14001cb9c
int3
mov edx, 4
call fcn.14001cb9c
int3
mov edx, 5
call fcn.14001cb9c
int3
mov edx, 6
call fcn.14001cb9c
int3
mov edx, 0xa
call fcn.14001cb9c
int3
mov edx, 5
call fcn.14001cb9c
int3
Function at 0x140031594
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rsi, rcx
add rdx, 1
mov rbx, qword [rcx + 0x38]
xorps xmm0, xmm0
js 0x1400315c4
cvtsi2ss xmm0, rdx
jmp 0x1400315d9
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call fcn.1400add48
movss xmm1, dword [0x1400fb6a4]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x140031607
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140031607
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x140031635
cmp rbx, 0x200
jae 0x140031632
shl rbx, 3
cmp rbx, rcx
jae 0x140031635
mov rbx, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rbx, rax
ja 0x1400317a3
lea rax, [rbx - 1]
mov edi, 1
mov rbx, qword [rsi + 8]
or rax, 1
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.1400257f0
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140031767
mov rcx, qword [rcx]
movabs r8, 0xcbf29ce484222325
xor r9d, r9d
movzx edx, byte [rax + r9 + 0x10]
movabs r10, 0x100000001b3
xor r8, rdx
inc r9
imul r8, r10
cmp r9, 8
jb 0x1400316ad
mov r11, qword [rsi + 0x30]
mov rdi, qword [rsi + 0x18]
and r11, r8
add r11, r11
cmp qword [rdi + r11*8], rbx
jne 0x1400316ec
mov qword [rdi + r11*8], rax
mov qword [rdi + r11*8 + 8], rax
jmp 0x14003175b
mov r10, qword [rdi + r11*8 + 8]
mov rdx, qword [rax + 0x10]
cmp rdx, qword [r10 + 0x10]
jne 0x140031730
mov r10, qword [r10]
cmp r10, rax
je 0x1400316e5
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x1400316e5
mov r10, qword [r10 + 8]
cmp rdx, qword [r10 + 0x10]
je 0x14003177d
cmp qword [rdi + r11*8], r10
jne 0x140031726
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [rdi + r11*8], rax
mov rax, rcx
cmp rcx, rbx
jne 0x14003169d
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov r10, qword [r10]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14003175b
lea rcx, str.invalid_hash_bucket_count
call fcn.140081010
int3

Function at 0x140035cd0
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x28
test r8, r8
je 0x140035cfc
movsx rax, byte [rdx]
movabs r9, 0x100000001b3
imul rcx, r9
dec r8
xor rcx, rax
inc rdx
call fcn.140035cd0
mov rcx, rax
mov rax, rcx
add rsp, 0x28
ret
Function at 0x14003d570
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14003d59e
xor eax, eax
jmp 0x14003d684
cmp qword [rcx + 0x68], 0
je 0x14003d5af
call fcn.140016f00
jmp 0x14003d684
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14003d5c6
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003d5c8
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14003d5fa
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400adf20
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14003d67e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14003d631
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14003d65a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140096710
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14003d67e
cmp rsi, rbx
ja 0x14003d638
test rsi, rsi
je 0x14003d67e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140096710
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140040c70
Capabilities:
Load windows common language runtime

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
cmp qword [0x14011f510], rbx
jne 0x140040d1c
and qword [rsp + 0x38], rbx
lea r8, [rsp + 0x38]
lea rdx, [0x1400f62c8]
lea rcx, [0x1400f62b8]
call qword [sym.imp.mscoree.dll_CLRCreateInstance]
mov ebx, eax
test eax, eax
js 0x140040d1c
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
and qword [rsp + 0x30], 0
lea r8, [0x1400f62a8]
lea rdx, str.v4.0.30319
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, eax
test eax, eax
js 0x140040d11
mov rcx, qword [rsp + 0x30]
lea r9, [0x14011f510]
lea r8, [0x1400f6298]
lea rdx, [0x1400f6288]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x140040d06
mov rcx, qword [0x14011f510]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140040d24
Capabilities:
Load windows common language runtime

Disassembly:
sub rsp, 0x38
cmp qword [0x14011f510], 0
jne 0x140040d7f
call fcn.140040c70
test eax, eax
jns 0x140040d7f
cmp qword [0x14011f510], 0
jne 0x140040d7f
lea rax, [0x14011f510]
xor edx, edx
lea r9, [0x1400f6298]
mov qword [rsp + 0x20], rax
lea r8, [0x1400f6288]
lea rcx, str.v2.0.50727
call qword [sym.imp.mscoree.dll_CorBindToRuntime]
test eax, eax
js 0x140040d86
mov rcx, qword [0x14011f510]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov al, 1
add rsp, 0x38
ret
xor r9d, r9d
lea r8, [0x1400f5bd8]
lea rdx, [0x1400f5bf0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x140040d81
Function at 0x140041ac0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x14010b0c0]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov esi, r8d
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x48], rdx
xor r15d, r15d
mov edi, 0x2710
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140041b0b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x80
lea rcx, [rbp - 0x70]
call fcn.1400ae5c0
mov r8d, esi
lea rdx, [0x1400f27e8]
lea rcx, [rbp - 0x70]
call fcn.14003e0f4
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 9
jb 0x140041cd8
mov rax, rbx
mov esi, 7
cmp qword [rbx + 0x18], rsi
jbe 0x140041b5b
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 9
lea r9, str..pipe_
lea rcx, [rsp + 0x70]
call fcn.14003e654
nop
lea rax, [rbp - 0x70]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x140041b88
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.14003e76c
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], rsi
mov word [rax], r15w
lea rcx, [rsp + 0x70]
call fcn.140018728
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
sub edi, 0xa
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], rsi
cmova rcx, qword [rsp + 0x50]
mov edx, 0xa
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x140041c15
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140041c15
test edi, edi
jg 0x140041bd9
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], rsi
cmova rcx, qword [rsp + 0x50]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [r14 + 8], rax
cmp rax, 0xffffffffffffffff
setne dil
mov rdx, qword [rsp + 0x68]
cmp rdx, rsi
jbe 0x140041c94
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041c8f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041cd2
call fcn.140083110
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], rsi
mov word [rsp + 0x50], r15w
mov rcx, rbx
call fcn.140018728
mov al, dil
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400830f0
mov rbx, qword [rsp + 0x168]
add rsp, 0x120
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14008a200
nop
call fcn.140001844
int3
Function at 0x140041ce0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [r11 - 0x18]
and dword [rsp + 0x30], 0
mov rbx, rdx
and qword [r11 - 0x28], 0
lea rdx, [r11 - 0x14]
mov rdi, rcx
mov dword [rsp + 0x34], eax
mov rcx, qword [rcx + 8]
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x18], 0xf
mov rdx, rbx
jbe 0x140041d28
mov rdx, qword [rbx]
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x30]
mov rcx, qword [rdi + 8]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140041d77
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140041d72
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140041d92
mov rcx, r8
call fcn.140083110
and qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx], 0
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.14008a200
int3

Function at 0x140041d98
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [r11 - 0x18]
and dword [rsp + 0x30], 0
add eax, eax
and qword [r11 - 0x28], 0
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x34], eax
mov rcx, qword [rcx + 8]
lea rdx, [r11 - 0x14]
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rbx + 0x10]
mov rdx, rbx
add r8d, r8d
cmp qword [rbx + 0x18], 7
jbe 0x140041de9
mov rdx, qword [rbx]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call fcn.140018728
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140041e84
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0xc8]
sub rsp, 0x1c0
mov rax, qword [0x14010b0c0]
xor rax, rsp
mov qword [rbp + 0xb0], rax
xor esi, esi
mov edi, esi
mov dword [rsp + 0x30], esi
lea rcx, [rbp + 0x70]
call fcn.140050db0
nop
lea r8d, [rsi + 0xe]
lea rdx, str.debug_log.txt
mov rcx, rax
call fcn.14003e76c
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x60], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
or edi, 2
lea rcx, [rbp + 0x70]
call fcn.140018728
lea rdx, [rbp + 0x90]
lea rcx, [0x14011fec0]
call fcn.14004a3cc
mov rbx, rax
or edi, 1
mov dword [rsp + 0x30], edi
lea rdx, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova rdx, qword [rbp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.14004a56c
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x3c], edx
cmp qword [rbp - 0x38], rsi
jne 0x140041f95
lea rcx, [rbp - 0x18]
call fcn.14003dcc4
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
call fcn.140081df8
nop
jmp 0x140041ffe
lea rcx, [rsp + 0x40]
call fcn.14003e1ac
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140041fc4
lea r8, [rax + rax]
cmp qword [rbx + 0x18], 7
jbe 0x140041fb6
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.14004a280
nop
lea rcx, [rbp - 0x18]
call fcn.14003dcc4
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
call fcn.140081df8
nop
lea rcx, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova rcx, qword [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov bl, 1
jne 0x140042001
mov bl, sil
test dil, 1
je 0x140042013
lea rcx, [rbp + 0x90]
call fcn.140018728
test bl, bl
je 0x140042045
lea r8, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova r8, qword [rbp + 0x50]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
mov rdx, qword [rbp + 0x68]
cmp rdx, 7
jbe 0x140042081
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004207c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400420a9
call fcn.140083110
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1400830f0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.14008a200
int3
Function at 0x140043d8c
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x14010b0c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, r9
mov r15, r8
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x38], rdx
xor r12d, r12d
mov rdi, qword [rcx]
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140043dd0
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140043e03
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
mov r8d, 0x19
lea rdx, str.Error:_Ini_File_Not_Exist
mov rcx, rbx
call fcn.140003dfc
jmp 0x140043f18
mov ecx, 0x208
mov r13d, 1
call fcn.140083764
mov rbp, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r12w
lea r12, [r14 + 8]
mov r14d, 0x104
mov rax, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140043e49
mov rax, qword [rdi]
mov r8, rsi
cmp qword [rsi + 0x18], 7
jbe 0x140043e56
mov r8, qword [rsi]
mov rdx, r15
cmp qword [r15 + 0x18], 7
jbe 0x140043e63
mov rdx, qword [r15]
mov rcx, r12
cmp qword [r12 + 0x18], 7
jbe 0x140043e72
mov rcx, qword [r12]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
mov r9, rbp
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [r14 - 1]
cmp eax, ecx
jb 0x140043ef2
mov rcx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x140043e9a
mov rcx, qword [rsi]
mov rax, rbp
sub rcx, rbp
movzx edx, word [rax]
movzx r8d, word [rax + rcx]
sub edx, r8d
jne 0x140043eb6
add rax, 2
test r8d, r8d
jne 0x140043ea0
test edx, edx
je 0x140043ef2
mov rcx, rbp
call fcn.140083110
inc r13d
imul r14d, r13d, 0x104
mov ecx, r14d
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140083764
mov rbp, rax
jmp 0x140043e3c
mov rdx, rbp
lea rcx, [rsp + 0x40]
call fcn.140017ca8
mov rcx, rbp
call fcn.140083110
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbx + 0x10], xmm1
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400830f0
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140044118
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x8f8
mov rax, qword [0x14010b0c0]
xor rax, rsp
mov qword [rsp + 0x8e0], rax
call fcn.14005d26c
xor edx, edx
lea rcx, [rsp + 0xe0]
mov r8d, 0x800
call fcn.1400ae5c0
mov r8d, 0x400
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
lea rcx, [rsp + 0x74]
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
xor edx, edx
movups xmmword [rsp + 0x50], xmm0
lea r8d, [rax + 0x64]
call fcn.1400ae5c0
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0xe0]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
and qword [rsp + 0x38], 0
xor edx, edx
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400441e2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call fcn.14009776c
int3