joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404a00
Capabilities:
Create directory

Disassembly:
push rdi
push rsi
mov eax, 0x2050
push rbx
call fcn.0040a7e0
sub rsp, rax
lea rbx, [rsp + 0x50]
mov rsi, rdx
mov rdx, rcx
lea rdi, [rsp + 0x20]
mov rcx, rbx
call sub.msvcrt.dll_strcpy
lea r8, [rsp + 0x1050]
mov rdx, rsi
mov rcx, r8
call sub.msvcrt.dll_strcpy
lea rdx, [0x0040d441]
mov rcx, rax
call sub.msvcrt.dll_strtok
test rax, rax
mov rsi, rax
je 0x404ad0
mov rdx, rbx
mov ecx, dword [rdx]
add rdx, 4
lea eax, [rcx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x404a55
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea rcx, [rdx + 2]
cmove rdx, rcx
add al, al
sbb rdx, 3
sub rdx, rbx
lea rcx, [rbx + rdx + 1]
mov byte [rbx + rdx], 0x5c
mov rdx, rsi
call sub.msvcrt.dll_strcpy
lea rdx, [0x0040d441]
xor ecx, ecx
call sub.msvcrt.dll_strtok
test rax, rax
mov rsi, rax
je 0x404ad0
mov rdx, rdi
mov rcx, rbx
call fcn.0040a820
test eax, eax
jns 0x404a52
mov rcx, rbx
call sub.msvcrt.dll__mkdir
jmp 0x404a52
mov rdx, rdi
mov rcx, rbx
call fcn.0040a820
test eax, eax
jne 0x404aee
lea rcx, str.WARNING:_file_already_exists_but_should_not:__s_n
mov rdx, rbx
call fcn.00401e30
lea rdx, [0x0040d479]
mov rcx, rbx
call fcn.00402e60
add rsp, 0x2050
pop rbx
pop rsi
pop rdi
ret

Function at 0x404b10
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push rdi
mov eax, 0x1028
push rsi
push rbx
call fcn.0040a7e0
sub rsp, rax
mov rsi, rdx
lea rdx, [0x0040d47c]
mov rdi, r8
call fcn.00402e60
mov rdx, rdi
mov rbx, rax
mov rcx, rsi
call fcn.00404a00
test rbx, rbx
mov rbp, rax
je 0x404c04
test rax, rax
je 0x404c04
lea rdi, [rsp + 0x20]
nop dword [rax + rax]
mov rcx, rbx
call sub.msvcrt.dll_feof
test eax, eax
jne 0x404c00
mov r9, rbx
mov r8d, 1
mov edx, 0x1000
mov rcx, rdi
call sub.msvcrt.dll_fread
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x404be0
mov r9, rbp
mov r8d, 1
mov edx, 0x1000
mov rcx, rdi
call sub.msvcrt.dll_fwrite
mov rcx, rbp
call sub.msvcrt.dll_ferror
test eax, eax
je 0x404b60
mov rcx, rbp
mov esi, 0xffffffff
call sub.msvcrt.dll_clearerr
mov rcx, rbx
call sub.msvcrt.dll_fclose
mov rcx, rbp
call sub.msvcrt.dll_fclose
mov eax, esi
add rsp, 0x1028
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x404b60
mov rcx, rbx
call sub.msvcrt.dll_clearerr
jmp 0x404bbe
xor esi, esi
jmp 0x404bbe
mov eax, 0xffffffff
jmp 0x404bd0
Function at 0x404c60
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push rbp
push rdi
mov eax, 0x2118
push rsi
push rbx
call fcn.0040a7e0
sub rsp, rax
mov r8d, 0x1000
lea rdi, [rsp + 0x110]
mov rdx, rcx
mov dword [rsp + 0x5c], 0
lea rbp, [rsp + 0xa0]
mov rcx, rdi
call fcn.004051d0
mov edx, 1
mov ecx, 0x16
call sub.msvcrt.dll_signal
mov edx, 1
mov ecx, 2
call sub.msvcrt.dll_signal
mov edx, 1
mov ecx, 0xf
call sub.msvcrt.dll_signal
mov edx, 1
mov ecx, 0x15
call sub.msvcrt.dll_signal
mov rcx, rbp
mov dword [rsp + 0x60], 0x18
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
mov rsi, qword [sym.imp.msvcrt.dll___iob_func]
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xdc], 0x101
mov word [rsp + 0xe0], ax
call rsi
mov rcx, rax
call sub.msvcrt.dll__fileno
mov rbx, qword [sym.imp.msvcrt.dll__get_osfhandle]
mov ecx, eax
call rbx
mov qword [rsp + 0xf0], rax
call rsi
lea rcx, [rax + 0x30]
call sub.msvcrt.dll__fileno
mov ecx, eax
call rbx
mov qword [rsp + 0xf8], rax
call rsi
lea rcx, [rax + 0x60]
call sub.msvcrt.dll__fileno
mov ecx, eax
call rbx
mov qword [rsp + 0x100], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x80]
xor r9d, r9d
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea r8, [rsp + 0x60]
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x28], 0
mov rdx, rax
mov dword [rsp + 0x20], 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x404df5
lea rcx, str.Error_creating_child_process__n
call fcn.00401dc0
mov eax, 0xffffffff
add rsp, 0x2118
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x5c]
add rsp, 0x2118
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x409900
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x00420904]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x409a1a
mov rax, qword [0x00420908]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x40994e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x409a00
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x409932
mov rcx, rbx
call fcn.0040a570
test rax, rax
mov r12, rax
je 0x409a52
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x00420908]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.0040a690
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x00420908]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x409a35
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4099f9
sub eax, 0x40
and eax, 0xffffffbf
je 0x4099f9
mov r9, rbp
add r9, qword [0x00420908]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x409a21
add dword [0x00420904], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebp, ebp
jmp 0x40995b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00409890
mov rax, qword [0x00420908]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call fcn.00409890
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00409890
nop
nop word cs:[rax + rax]

Function at 0x40a1d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00420c20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00420c00]
test rbx, rbx
je 0x40a224
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40a21b
test rsi, rsi
je 0x40a21b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40a200
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x00420c20]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x40a480
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x40a4c1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x40a4b8
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x40a4c3
add rax, 0x28
cmp rax, r9
jne 0x40a4a4
xor eax, eax
repz ret
Function at 0x40a570
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x004108a0]
cmp word [rbx], 0x5a4d
je 0x40a590
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call fcn.0040a440
test eax, eax
je 0x40a584
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.0040a480
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rsi, qword [rdx + 0x50]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
push r9
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
push rax
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
xor r9, r9
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
pop r8
pop rsi
pop rcx
add rax, rdx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140001120
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x88
mov r13d, 0x1e04f53f
movabs r14, 0x140001180
xor r15, r15
xor dword [r14 + r15*4], r13d
mov eax, r13d
shl eax, 0xd
xor r13d, eax
mov eax, r13d
shr eax, 0x11
xor r13d, eax
mov eax, r13d
shl eax, 5
xor r13d, eax
inc r15
cmp r15, 0x90e
jb 0x14000113a
lea rcx, [0x1400035b8]
call r14
lea rcx, [0x1400035be]
lea rdx, [0x1400035c4]
jmp rax
Function at 0x14002934c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001ca14
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001ca14
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002949c
cmp rax, 0xffffffffffffffff
je 0x14002949c
xor edi, edi
test rbp, rbp
jle 0x140029447
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f340
mov rbx, rax
test rax, rax
jne 0x1400293d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002943d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a348
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d6f0
cmp eax, 0xffffffff
je 0x14002941d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400293e4
mov edx, r15d
mov ecx, r14d
call fcn.14001a348
jmp 0x14002943d
cmp byte [rsi + 0x38], dil
je 0x140029434
cmp dword [rsi + 0x34], 5
jne 0x140029434
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002943d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b0dc
jmp 0x1400294b0
jns 0x1400294b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001ca14
cmp rax, 0xffffffffffffffff
jne 0x140029468
cmp byte [rsi + 0x30], dil
je 0x1400294b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400294b0
mov ecx, r14d
call fcn.140018804
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400294b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400294b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400294a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400294ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001ca14
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140ad265a
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], 0xfffffffff292618f
push 0x169c30cb
mov qword [rsp], 0x1d30678d
push rbx
pushfq
neg word [rsp + 0x10]
movabs rbx, 0x6756257573f43952
xor dword [rsp + 0x10], ebx
jl 0x140ad2671
mov rbx, qword [rsp + 8]
cmp qword [rsp + 0x10], 0x78807875
call fcn.140815f42
Function at 0x1400022e5
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rdi, qword [fcn.1400192f0]
xor r12d, r12d
mov rsi, rcx
lea rbp, [rdx - 1]
lea r13, [rsp + 0x28]
mov rbx, rdx
cmp r12, rbx
jl 0x14000234f
mov ecx, 1
call rdi
mov r8d, 1
mov edx, 1
lea rcx, [0x14001b17c]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rdi
mov rcx, rax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp 0x140019900
test r12, r12
jns 0x14000235f
mov rdx, rbp
mov rcx, r12
call fcn.14000543e
mov r14, qword [rsi + r12*8]
mov ecx, 1
call rdi
xor r8d, r8d
mov rcx, rax
mov rdx, r14
call fcn.1400021c2
mov r8, r13
mov edx, 1
mov rcx, r12
call fcn.1400020c0
test al, al
je 0x140002391
call fcn.1400040d2
mov r12, qword [rsp + 0x28]
jmp 0x14000230c

Function at 0x14000279c
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x1400027bd
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp 0x140019900
jmp qword [sym.imp.msvcrt.dll_fflush]

Function at 0x14000408f
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov r13, rcx
mov ecx, 2
call qword [fcn.1400192f0]
mov r8, qword [rsp + 0x28]
mov rcx, r13
mov edx, 1
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x38
pop r12
pop r13
jmp 0x140019900
Function at 0x140008028
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x50
movups xmmword [rsp + 0x40], xmm6
mov rbx, rcx
mov rsi, rdx
mov r13, r8
test rcx, rcx
je 0x140008058
mov r12, r8
cmp r8, qword [rcx]
jl 0x14000827e
jmp 0x140008078
test r8, r8
jns 0x14000807d
or rdx, 0xffffffffffffffff
mov rcx, r13
call fcn.14000543e
cmp byte [rbx + r13 + 0x10], 0x2b
mov r12, r13
je 0x140008259
cmp r12, qword [rbx]
jl 0x140008084
xor eax, eax
jmp 0x140008293
test r12, r12
jns 0x1400080a1
or rdx, 0xffffffffffffffff
test rbx, rbx
je 0x140008099
mov rax, qword [rbx]
lea rdx, [rax - 1]
mov rcx, r12
call fcn.14000543e
mov al, byte [rbx + r12 + 0x10]
sub eax, 0x30
cmp al, 9
ja 0x14000807d
mov qword [rsi], 0
movq xmm6, qword [0x14001bff0]
mov rdx, qword [rbx]
cmp r12, rdx
jl 0x1400080e6
lea r8, [rsp + 0x38]
mov rdx, r13
mov rcx, r12
call fcn.14000800b
test al, al
je 0x140008252
call fcn.1400040d2
jmp 0x140008252
test r12, r12
jns 0x1400080f6
dec rdx
mov rcx, r12
call fcn.14000543e
mov al, byte [rbx + r12 + 0x10]
sub eax, 0x30
cmp al, 9
ja 0x1400080c4
mov rdx, qword [rbx]
test r12, r12
js 0x14000810f
cmp r12, rdx
jl 0x14000811a
dec rdx
mov rcx, r12
call fcn.14000543e
movzx ecx, byte [rbx + r12 + 0x10]
lea r8, [rsp + 0x28]
mov edx, 0x30
call fcn.14000800b
test al, al
je 0x140008138
call fcn.1400040d2
mov r14, qword [rsp + 0x28]
lea rdi, [rsp + 0x30]
movabs rcx, 0x7fffffffffffffff
mov r8, rdi
mov rdx, r14
call fcn.14000800b
test al, al
je 0x140008160
call fcn.1400040d2
mov rax, qword [rsp + 0x30]
mov r8d, 0xa
mov rcx, qword [rsi]
cqo
idiv r8
cmp rcx, rax
jle 0x140008184
movabs rax, 0x7fffffffffffffff
jmp 0x1400081e4
imul r15, rcx, 0xa
cvtsi2sd xmm1, rcx
mulsd xmm1, qword [0x14001bfe0]
cvtsi2sd xmm0, r15
ucomisd xmm1, xmm0
jp 0x1400081a6
comisd xmm1, xmm0
je 0x1400081c6
subsd xmm0, xmm1
movups xmm2, xmm1
andps xmm2, xmm6
andps xmm0, xmm6
mulsd xmm0, qword [0x14001c000]
comisd xmm2, xmm0
jae 0x1400081c6
call fcn.1400040d2
lea r8, [rsp + 0x38]
mov rdx, r14
mov rcx, r15
call fcn.140007ff0
test al, al
je 0x1400081df
call fcn.1400040d2
mov rax, qword [rsp + 0x38]
mov qword [rsi], rax
mov r8, rdi
mov edx, 1
mov rcx, r12
call fcn.140007ff0
test al, al
je 0x140008200
call fcn.1400040d2
mov r12, qword [rsp + 0x30]
lea rdi, [rsp + 0x38]
mov rdx, qword [rbx]
cmp r12, rdx
jge 0x1400080bc
test r12, r12
jns 0x140008226
dec rdx
mov rcx, r12
call fcn.14000543e
cmp byte [rbx + r12 + 0x10], 0x5f
jne 0x1400080bc
mov r8, rdi
mov edx, 1
mov rcx, r12
call fcn.140007ff0
test al, al
je 0x14000824b
call fcn.1400040d2
mov r12, qword [rsp + 0x38]
jmp 0x14000820a
mov rax, qword [rsp + 0x38]
jmp 0x140008293
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, r13
call fcn.140007ff0
test al, al
je 0x140008274
call fcn.1400040d2
mov r12, qword [rsp + 0x38]
jmp 0x140008078
test r8, r8
jns 0x140008069
mov rax, qword [rbx]
lea rdx, [rax - 1]
jmp 0x140008061
movups xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140010f6d
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140010f96
cmp word [rcx], 0x5a4d
jne 0x140010f96
movsxd rdx, dword [rcx + 0x3c]
cmp edx, 0x400
jg 0x140010f96
call fcn.140009108
cmp dword [rax], 0x4550
je 0x140010f98
xor eax, eax
add rsp, 0x28
ret

Function at 0x140013540
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400192f0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400192f0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1400135b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400954f4]
mov r12, rcx
test ebx, ebx
jle 0x1400136e0
mov rax, qword [0x1400954f8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1400135fc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140013683
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1400135e0
mov rcx, r12
call fcn.140014010
mov rsi, rax
test rax, rax
je 0x140013702
mov rax, qword [0x1400954f8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140014140
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400954f8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400136e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001367c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140013690
add dword [0x1400954f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400954f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001367c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140013540
nop dword [rax]
xor ebx, ebx
jmp 0x140013607
mov rax, qword [0x1400954f8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140013540
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140013540
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140013c80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140095560]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140095540]
test rbx, rbx
je 0x140013cd4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140013ccb
test r12, r12
je 0x140013ccb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140013cb0
lea rcx, [0x140095560]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140014010
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14007dd20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140014030
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140014038
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140014030
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140014085
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14001407c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140014030
add rax, 0x28
cmp rax, r9
jne 0x140014068
xor eax, eax
ret

Function at 0x140014090
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14007dd20]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400140b0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400140b8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400140b0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140014140
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14007dd20]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140014160
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140014168
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00406920]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00406930]
mov dword [rax], 1
mov rax, qword [0x00406940]
mov dword [rax], 1
mov rax, qword [0x00406910]
mov dword [rax], 1
mov rax, qword [0x00406800]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00406900]
mov dword [0x00409008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x004068c0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x004067b0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x402843
Capabilities:
Get system information on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
call sym.__main
lea rcx, str.Loading...
call sym.printf
lea rax, [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov qword [rbp - 8], 0
lea rcx, str._0_2
call sym.printf
lea rax, [0x00409998]
mov rdx, rax
lea rcx, str.Exanima.exe
call sym.GetProcessByName
mov qword [0x00409030], rax
lea rcx, str._b_b_b_b_1_2
call sym.printf
mov rax, qword [0x00409030]
test rax, rax
jne 0x4028c3
lea rcx, str.Process_not_found
call sym.puts
jmp 0x4028e7
lea rcx, str._b_b_b_b_2_2
call sym.printf
lea rcx, str._nMod_loaded._If_you_have_any_questions_or_suggestions:_discord.gg_DfBCe3rvWk
call sym.puts
call sym.settings
call sym.mod
jmp 0x4028e0
add rsp, 0x60
pop rbp
ret