joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400922f0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd r8, dword [0x14000003c]
lea rbx, [0x140000000]
add r8, rbx
mov rsi, rdx
mov ebp, ecx
cmp dword [r8 + 0x84], 0xd
jbe 0x140092371
mov r9d, dword [r8 + 0xf0]
test r9d, r9d
je 0x140092371
movzx eax, word [r8 + 0x14]
lea rcx, [r8 + 0x18]
movzx r11d, word [r8 + 6]
add rcx, rax
mov r10d, dword [r9 + rbx + 0xc]
xor edx, edx
test r11d, r11d
je 0x140092371
nop dword [rax]
mov r8d, dword [rcx + 0xc]
cmp r10d, r8d
jb 0x140092366
mov r9d, dword [rcx + 8]
lea eax, [r9 + r8]
cmp r10d, eax
jb 0x14009238c
inc edx
add rcx, 0x28
cmp edx, r11d
jb 0x140092350
mov dword [rsi], 4
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rcx + 0x24]
mov rdi, r8
add rdi, rbx
je 0x140092371
cmp dword [0x1401113c0], 0
jne 0x1400923c5
mov dword [0x1401113c0], 1
test eax, eax
js 0x1400923b5
mov ecx, 0x19
int 0x29
mov rdx, r9
mov rcx, rdi
mov rbx, r9
call fcn.140092230
jmp 0x1400923c8
mov rbx, r9
mov r9, rsi
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140092377
mov ecx, 0x19
int 0x29
jmp 0x140092377

Function at 0x14009f210
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14010c1f0]
xor rax, rsp
mov qword [rsp + 0x50], rax
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x14009f305
nop dword [rax]
cmp rbx, qword [0x14010c1c0]
jb 0x14009f26e
cmp rbx, qword [0x14010c1c8]
ja 0x14009f26e
sub rbx, 0x8000000
jmp 0x14009f2fc
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x14009f305
cmp dword [rsp + 0x40], 0x10000
jne 0x14009f2e0
cmp qword [rsp + 0x38], 0x10000
jb 0x14009f2e0
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call sub.KERNEL32.dll_VirtualAlloc
test rax, rax
jne 0x14009f307
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x14009f305
sub rbx, 0x10000
jmp 0x14009f2fc
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x14009f250
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400a3640
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14009f320
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14010c1f0]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x14009f351
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x14009f417
nop word [rax + rax]
cmp rbx, qword [0x14010c1c0]
jb 0x14009f37e
cmp rbx, qword [0x14010c1c8]
ja 0x14009f37e
add rbx, 0x8000000
jmp 0x14009f40e
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x14009f417
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x14009f3f3
cmp rcx, 0x10000
jb 0x14009f3f3
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call sub.KERNEL32.dll_VirtualAlloc
test rax, rax
jne 0x14009f419
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x14009f417
add rbx, 0x10000
jmp 0x14009f40e
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x14009f40e
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x14009f360
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400a3640
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14009f440
Capabilities:
Hook routines via microsoft detours

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [rcx - 0x7ff80000]
mov r9, rcx
cmp rcx, 0x7ff80000
ja 0x14009f45e
mov ebx, 0x80000
mov qword [rsp + 0x30], rdi
lea rdi, [rcx + 0x7ff80000]
cmp r9, 0xffffffff80000000
jb 0x14009f47a
mov rdi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x14009f491
cmp byte [rcx + 1], 0x25
jne 0x14009f4d5
movsxd rax, dword [rcx + 2]
add rcx, 6
jmp 0x14009f49d
cmp al, 0xe9
jne 0x14009f4d5
movsxd rax, dword [rcx + 1]
add rcx, 5
add rcx, rax
cmp rcx, r9
jae 0x14009f4c0
cmp rcx, 0xffffffff80000000
jae 0x14009f4b7
lea rdi, [rcx + 0x7ff80000]
jmp 0x14009f4d5
mov rdi, 0xfffffffffff80000
jmp 0x14009f4d5
lea rbx, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x14009f4d5
mov ebx, 0x80000
mov rax, qword [0x1401113d0]
mov rcx, qword [0x1401113c8]
test rax, rax
jne 0x14009f4f7
test rcx, rcx
je 0x14009f50e
mov rax, rcx
mov qword [0x1401113d0], rcx
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x14009f50e
cmp rdx, rbx
jb 0x14009f50e
cmp rdx, rdi
jbe 0x14009f5b9
mov qword [0x1401113d0], rcx
mov rax, rcx
test rcx, rcx
je 0x14009f549
test rcx, rcx
je 0x14009f539
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x14009f539
cmp rcx, rbx
jb 0x14009f539
cmp rcx, rdi
jbe 0x14009f5b9
mov rax, qword [rax + 8]
mov qword [0x1401113d0], rax
test rax, rax
jne 0x14009f522
movzx eax, r9w
mov r8, rdi
sub r9, rax
mov rdx, rbx
mov rcx, r9
call fcn.14009f610
test rax, rax
je 0x14009f5fc
mov dword [rax], 0x52727464
lea rdx, [rax + 0xffa8]
xor r8d, r8d
mov qword [0x1401113d0], rax
mov qword [rax + 0x10], r8
mov r9d, 0x2a7
mov rcx, qword [0x1401113c8]
mov qword [rax + 8], rcx
lea rcx, [rax + 0xff60]
mov qword [0x1401113c8], rax
mov qword [rdx], r8
lea rdx, [rdx - 0x60]
mov r8, rcx
sub rcx, 0x60
sub r9, 1
jne 0x14009f5a1
mov qword [rax + 0x10], r8
mov rdx, qword [rax + 0x10]
cmp rdx, rbx
jb 0x14009f5fc
cmp rdx, rdi
ja 0x14009f5fc
mov rcx, qword [rdx + 0x48]
movdqa xmm0, xmmword [0x1400e08c0]
mov qword [rax + 0x10], rcx
mov rax, rdx
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14009f930
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14010c1f0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x14009f96c
xor al, al
jmp 0x14009f9bb
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x14009f97d
xor al, al
jmp 0x14009f9bb
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x14009f9a4
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x14009f9a4
mov al, 1
jmp 0x14009f9bb
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400a3640
add rsp, 0x60
pop rbx
ret
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400a3640
add rsp, 0x60
pop rbx
ret
Function at 0x14009ff20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
sub rsp, 0x38
mov rax, qword [0x14010c1f0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbp, rdx
mov rsi, rcx
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1401113e0], eax
je 0x14009ff53
mov eax, 0x10dd
jmp 0x1400a007c
mov eax, dword [0x1401113e4]
test eax, eax
jne 0x1400a007c
test rbp, rbp
jne 0x14009ff6e
lea eax, [rbp + 0x57]
jmp 0x1400a007c
test rsi, rsi
je 0x14009ff8a
cmp qword [rsi], 0
jne 0x14009ff94
mov dword [0x1401113e4], 6
mov qword [0x1401113e8], rsi
mov eax, 6
jmp 0x1400a007c
mov qword [rsp + 0x60], rbx
mov ecx, 0x30
mov qword [rsp + 0x30], rdi
call fcn.1400a36b0
mov rbx, rax
test rax, rax
jne 0x14009ffb8
lea edi, [rax + 8]
jmp 0x1400a0051
mov rcx, qword [rsi]
xor edx, edx
call fcn.14009fe70
xor edx, edx
mov rcx, rbp
mov rdi, rax
call fcn.14009fe70
movzx ecx, byte [rdi + 0x3e]
mov rbp, qword [rdi + 0x48]
sub rbp, rcx
test cl, cl
je 0x1400a0043
mov edx, ecx
cmp rcx, 0x1e
ja 0x1400a0043
cmp qword [rdi + 0x50], rax
jne 0x1400a0043
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov r8d, 0x40
mov rcx, rbp
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1400a0014
call sub.KERNEL32.dll_GetLastError
mov edi, eax
jmp 0x1400a0051
mov dword [rbx + 8], 1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x18], rbp
mov eax, dword [rsp + 0x20]
mov dword [rbx + 0x28], eax
mov rax, qword [0x1401113f8]
mov qword [rbx], rax
xor eax, eax
mov qword [0x1401113f8], rbx
jmp 0x1400a0072
cmp dword [0x1401113d8], 0
mov edi, 9
jne 0x1400a005c
mov dword [0x1401113e4], edi
test rbx, rbx
je 0x1400a0069
mov edx, 0x30
mov rcx, rbx
call fcn.1400a36a0
mov qword [0x1401113e8], rsi
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400a3640
add rsp, 0x38
pop rsi
pop rbp
ret
Function at 0x1400a0090
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14010c1f0]
xor rax, rsp
mov qword [rsp + 0x28], rax
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1401113e0], eax
je 0x1400a00c7
mov eax, 0x10dd
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400a3640
add rsp, 0x38
ret
mov qword [rsp + 0x40], rbx
mov rbx, qword [0x1401113f8]
mov qword [rsp + 0x48], rsi
xor esi, esi
mov qword [rsp + 0x30], rdi
test rbx, rbx
je 0x1400a0164
nop dword [rax + rax]
mov rax, qword [rbx + 0x20]
lea r9, [rsp + 0x20]
mov r8d, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x18]
movzx edx, byte [rax + 0x3e]
call sub.KERNEL32.dll_VirtualProtect
cmp dword [rbx + 8], esi
jne 0x1400a014c
mov rdx, qword [rbx + 0x20]
test rdx, rdx
je 0x1400a014c
xorps xmm0, xmm0
mov rcx, rdx
movups xmmword [rdx], xmm0
and rcx, 0xffffffffffff0000
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x48], rax
mov qword [rcx + 0x10], rdx
mov qword [rbx + 0x20], rsi
mov rdi, qword [rbx]
mov edx, 0x30
mov rcx, rbx
call fcn.1400a36a0
mov rbx, rdi
test rdi, rdi
jne 0x1400a00f0
mov qword [0x1401113f8], rsi
call fcn.14009f9d0
mov rdi, qword [0x1401113f0]
test rdi, rdi
je 0x1400a01a1
nop dword [rax]
mov rcx, qword [rdi + 8]
call sub.KERNEL32.dll_ResumeThread
mov rbx, qword [rdi]
mov edx, 0x10
mov rcx, rdi
call fcn.1400a36a0
mov rdi, rbx
test rbx, rbx
jne 0x1400a0180
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov qword [0x1401113f0], rsi
mov dword [0x1401113e0], esi
mov rsi, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400a3640
add rsp, 0x38
ret

Function at 0x1400a01e0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14010c1f0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp dword [0x1401113e0], 0
jne 0x1400a02a2
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x1401113e0], ecx
jne 0x1400a02a2
mov qword [rsp + 0x40], rbx
mov rbx, qword [0x1401113c8]
mov qword [rsp + 0x30], rdi
xor edi, edi
mov qword [0x1401113f8], rdi
mov qword [0x1401113f0], rdi
mov qword [0x1401113e8], rdi
test rbx, rbx
je 0x1400a027e
nop dword [rax]
nop dword [rax + rax]
lea r9, [rsp + 0x20]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1400a0277
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400a0250
jmp 0x1400a027e
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov dword [0x1401113e4], edi
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400a3640
add rsp, 0x38
ret
mov eax, 0x10dd
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400a3640
add rsp, 0x38
ret
Function at 0x1400a0860
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x1401113e4]
mov rdi, rcx
test eax, eax
jne 0x1400a0900
call sub.KERNEL32.dll_GetCurrentThread
cmp rdi, rax
jne 0x1400a0889
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rbx
call fcn.1400a36b0
mov rbx, rax
test rax, rax
jne 0x1400a08a5
lea edi, [rax + 8]
jmp 0x1400a08c6
mov rcx, rdi
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1400a08e4
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov edx, 0x10
mov rcx, rbx
call fcn.1400a36a0
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x1401113e4], edi
mov qword [0x1401113e8], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x1401113f0]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x1401113f0], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400bd68c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400bd4b8
Function at 0x140022070
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400220a4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140022090
ret
Function at 0x140028ab0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140028b7c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140028b7c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140028b95
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x140028b6c
cmp byte [rax], 0x5c
jne 0x140028b66
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140028b66
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140028b52
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140028b63
test r8b, 0x10
jne 0x140028b66
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140028b66
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400244d0
test edi, edi
jne 0x140028ad0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.1400244c0
int3
Function at 0x14002b430
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14002b461
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x14002b4db
mov rdi, r14
mov rcx, rbx
call fcn.14001f460
test rax, rax
jle 0x14002b4b3
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1400a0dd0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14002b4cb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14002b4d3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14002b475
sub r14, rdi
jmp 0x14002b5bf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14002b4f2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14002b4f4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14002b526
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400a0dd0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14002b5bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14002b561
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14002b59d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14008b78c
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14002b5bc
cmp rbp, rax
ja 0x14002b570
test rbp, rbp
je 0x14002b5bc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14008b78c
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140030190
Capabilities:
Load windows common language runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
cmp qword [0x1400e4c20], 0
jne 0x140030282
xor ebx, ebx
lea r8, [rsp + 0x48]
lea rdx, [0x1400c9ff8]
mov qword [rsp + 0x48], rbx
lea rcx, [0x1400c9fe8]
call qword [sym.imp.mscoree.dll_CLRCreateInstance]
lea rdi, [0x1400e4c20]
test eax, eax
js 0x140030245
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
lea r8, [0x1400c9fd8]
lea rdx, str.v4.0.30319
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, eax
test eax, eax
js 0x140030236
mov rcx, qword [rsp + 0x40]
lea r8, [0x1400c9fc8]
mov r9, rdi
lea rdx, [0x1400c9fb8]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x14003022b
mov rcx, qword [0x1400e4c20]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
jns 0x140030282
cmp qword [0x1400e4c20], 0
jne 0x140030282
lea r9, [0x1400c9fc8]
mov qword [rsp + 0x20], rdi
lea r8, [0x1400c9fb8]
xor edx, edx
lea rcx, str.v2.0.50727
call qword [sym.imp.mscoree.dll_CorBindToRuntime]
test eax, eax
js 0x14003028f
mov rcx, qword [0x1400e4c20]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor r9d, r9d
lea r8, [0x1400c9908]
lea rdx, [0x1400c9920]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rbx, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x140031920
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [rsp + 0x30]
xor esi, esi
mov dword [rsp + 0x34], eax
mov rbx, rdx
mov dword [rsp + 0x30], esi
mov rdi, rcx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x34]
lea r8d, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x18], 0xf
mov rdx, rbx
jbe 0x14003196c
mov rdx, qword [rbx]
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x30]
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x1400319ba
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400319b5
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400319d9
mov rcx, r8
call fcn.140079670
mov qword [rbx + 0x10], rsi
mov byte [rbx], sil
mov rsi, qword [rsp + 0x68]
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.140080760
int3

Function at 0x1400319e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [rsp + 0x30]
xor esi, esi
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x30], esi
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x34]
add eax, eax
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 4]
mov dword [rsp + 0x34], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rbx + 0x10]
mov rdx, rbx
add r8d, r8d
cmp qword [rbx + 0x18], 7
jbe 0x140031a35
mov rdx, qword [rbx]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x140031a84
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140031a7f
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140031aa3
mov rcx, r8
call fcn.140079670
mov qword [rbx + 0x10], rsi
mov word [rbx], si
mov rsi, qword [rsp + 0x68]
mov qword [rbx + 0x18], 7
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.140080760
int3
Function at 0x140033e50
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 [0x1400e10c0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r12, r9
mov r13, r8
mov rbp, rdx
mov qword [rsp + 0x38], rdx
mov r14, rcx
mov qword [rsp + 0x40], rdx
mov rdi, qword [rsp + 0xe0]
xor ebx, ebx
cmp qword [rcx + 0x18], 7
jbe 0x140033e9a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140033ece
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x18], rbx
mov r8d, 0x19
lea rdx, str.Error:_Ini_File_Not_Exist
mov rcx, rbp
call fcn.1400056c0
jmp 0x14003403d
mov ebp, 1
mov ecx, 0x208
call fcn.140079b18
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], bx
mov rbx, 0xffffffffffffffff
mov r15d, 0x104
nop dword [rax + rax]
mov rax, r14
cmp qword [r14 + 0x18], 7
jbe 0x140033f1d
mov rax, qword [r14]
mov r8, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140033f2a
mov r8, qword [rdi]
mov rdx, r12
cmp qword [r12 + 0x18], 7
jbe 0x140033f39
mov rdx, qword [r12]
mov rcx, r13
cmp qword [r13 + 0x18], 7
jbe 0x140033f47
mov rcx, qword [r13]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [r15 - 1]
cmp eax, ecx
jb 0x140033fc8
mov r8, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140033f6f
mov r8, qword [rdi]
mov rax, rsi
sub r8, rsi
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140033f94
add rax, 2
test ecx, ecx
jne 0x140033f80
test edx, edx
je 0x140033fc8
mov rcx, rsi
call fcn.140079670
inc ebp
imul r15d, ebp, 0x104
mov ecx, r15d
mov eax, 2
mul rcx
cmovo rax, rbx
mov rcx, rax
call fcn.140079b18
mov rsi, rax
jmp 0x140033f10
mov rbp, qword [rsp + 0x38]
nop dword [rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x140033fd0
mov rax, qword [rsp + 0x60]
cmp rbx, rax
ja 0x140034013
lea rdi, [rsp + 0x48]
cmp rax, 7
cmova rdi, qword [rsp + 0x48]
mov qword [rsp + 0x58], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.1400a0dd0
xor r14d, r14d
mov word [rbx + rdi], r14w
jmp 0x140034023
mov r9, rsi
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400215e0
mov rcx, rsi
call fcn.140079670
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rbp + 0x10], xmm1
mov rax, rbp
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140079650
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140034cd0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x8f8
mov rax, qword [0x1400e10c0]
xor rax, rsp
mov qword [rsp + 0x8e0], rax
call fcn.140055b70
xor edx, edx
lea rcx, [rsp + 0xe0]
mov r8d, 0x800
call fcn.1400a1470
mov r8d, 0x400
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm1, xmm1
mov dword [rsp + 0x70], 0x68
xor eax, eax
lea rcx, [rsp + 0xe0]
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
mov dword [rsp + 0xd4], eax
xor r9d, r9d
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor edx, edx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x74], xmm1
movups xmmword [rsp + 0x84], xmm1
movups xmmword [rsp + 0x94], xmm1
movups xmmword [rsp + 0xa4], xmm1
movups xmmword [rsp + 0xb4], xmm1
movups xmmword [rsp + 0xc4], xmm1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140034dbf
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.14008c7ec
int3