joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002f538
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x238]
sub rsp, 0x338
mov rax, qword [0x14007c6d0]
xor edx, edx
lea ecx, [rdx + 2]
call rax
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002f795
mov r8, qword [0x14007c6a8]
lea rdx, [rbp - 0x10]
xor r14d, r14d
mov dword [rbp - 0x10], 0x238
mov rcx, rax
mov edi, r14d
call r8
lea esi, [r14 + 1]
jmp 0x14002f5f9
mov eax, 0x5a
mov dword [rsp + 0x30], 0x11000a
lea rcx, [rsp + 0x30]
mov word [rsp + 0x48], ax
mov dword [rsp + 0x34], 0x2d0034
mov dword [rsp + 0x38], 0x3f0004
mov dword [rsp + 0x3c], 0x1a002f
mov dword [rsp + 0x40], 0x8005c
mov dword [rsp + 0x44], 0x31003d
call fcn.140002068
lea rcx, [rbp + 0x1c]
mov rdx, qword [rax]
call fcn.140010c48
test eax, eax
jne 0x14002f5e9
add edi, esi
mov rax, qword [0x14007c6b8]
lea rdx, [rbp - 0x10]
mov rcx, rbx
call rax
test eax, eax
jne 0x14002f593
mov rcx, rbx
call qword [0x14007c6a0]
cmp edi, esi
jg 0x14002f795
lea rcx, [rbp - 0x80]
mov dword [rbp - 0x80], 0x40
call qword [0x14007c690]
mov eax, 0x80000000
cmp qword [rbp - 0x78], rax
jae 0x14002f795
call qword [0x14007c6c0]
mov edi, 0x3e8
mov rbx, rax
mov ecx, edi
call qword [0x14007c6c8]
call qword [0x14007c6c0]
sub rax, rbx
cmp rax, rdi
jb 0x14002f715
lea rcx, [rbp - 0x40]
call qword [0x14007c698]
cmp dword [rbp - 0x20], 2
jb 0x14002f715
mov rbx, qword [0x14007c6d8]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x6003c
mov dword [rsp + 0x34], 0x350022
mov dword [rsp + 0x38], 0x2c001c
mov dword [rsp + 0x3c], 0xd0038
mov dword [rsp + 0x40], 0x3e002e
mov dword [rsp + 0x44], 0x3a0024
mov dword [rsp + 0x48], 0x23003e
mov dword [rsp + 0x4c], 0x3f
mov dword [rsp + 0x50], 0x1002c
mov dword [rsp + 0x54], 0x130015
mov dword [rsp + 0x58], 0x19000c
mov dword [rsp + 0x5c], 0x23002c
mov dword [rsp + 0x60], 0x760008
call fcn.140001fec
lea rcx, [rbp + 0x298]
mov r9d, 0x20019
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov rdx, qword [rax]
call rbx
test eax, eax
jne 0x14002f71a
mov rcx, qword [rbp + 0x298]
call qword [0x14007c688]
mov al, sil
jmp 0x14002f797
lea rcx, [rbp + 0x290]
call qword [0x14007c6e0]
mov ecx, edi
call qword [0x14007c6c8]
lea rcx, [rbp + 0x288]
call qword [0x14007c6e0]
mov eax, dword [rbp + 0x288]
cmp dword [rbp + 0x290], eax
jne 0x14002f758
mov eax, dword [rbp + 0x28c]
cmp dword [rbp + 0x294], eax
je 0x14002f715
mov rbx, qword [0x14007c6b0]
lea rcx, [rbp + 0x280]
mov dword [rbp + 0x280], 0x53002c
mov dword [rbp + 0x284], 0x410018
call fcn.140001f70
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x78]
mov rcx, qword [rax]
call rbx
jmp 0x14002f715
xor al, al
add rsp, 0x338
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14002fff8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rbx, qword [0x14007c768]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x1003c
mov dword [rbp - 0x1c], 0x2d0021
mov dword [rbp - 0x18], 0x7e0007
mov dword [rbp - 0x14], 0x460078
mov dword [rbp - 0x10], 0x10016
mov dword [rbp - 0xc], 0x540029
call fcn.1400072f8
mov rcx, qword [rax]
call rbx
mov rbx, qword [0x14007c768]
lea rcx, [rbp - 0x20]
mov qword [0x14007c748], rax
mov dword [rbp - 0x20], 0x38
mov dword [rbp - 0x1c], 0x28002a
mov dword [rbp - 0x18], 0x280005
mov dword [rbp - 0x14], 0x46003e
mov dword [rbp - 0x10], 0x10016
mov dword [rbp - 0xc], 0x540029
call fcn.1400072f8
mov rcx, qword [rax]
call rbx
movdqa xmm0, xmmword [0x140043170]
lea rcx, [rbp - 0x20]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x14007c758], rax
mov word [rbp - 0x10], 0x3813
mov byte [rbp - 0xe], 0x71
call fcn.1400078d0
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x2d21013c
mov dword [rbp - 0x1c], 0xd320807
mov dword [rbp - 0x18], 0x31311811
mov word [rbp - 0x14], 0x410d
call fcn.14000741c
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x24300726
mov dword [rbp - 0x1c], 0x1c2f2319
mov dword [rbp - 0x18], 0x3a201d3d
mov word [rbp - 0x14], 0x411b
call fcn.14000741c
mov rcx, qword [0x14007c758]
mov rdx, qword [rax]
call fcn.140031564
movdqa xmm0, xmmword [0x1400431a0]
lea rcx, [rbp - 0x20]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x14007c670], rax
mov byte [rbp - 0x10], 0x65
call fcn.140007824
mov rcx, qword [0x14007c758]
mov rdx, qword [rax]
call fcn.140031564
movdqa xmm0, xmmword [0x140043100]
lea rcx, [rbp - 0x20]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x14007c678], rax
mov dword [rbp - 0x10], 0x7a140301
call fcn.140007100
mov rcx, qword [0x14007c758]
mov rdx, qword [rax]
call fcn.140031564
movdqa xmm0, xmmword [str._a0_]
lea rcx, [rbp - 0x20]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x14007c668], rax
mov byte [rbp - 0x10], 0x65
call fcn.140007824
mov rcx, qword [0x14007c758]
mov rdx, qword [rax]
call fcn.140031564
movdqa xmm0, xmmword [0x1400430b0]
lea rcx, [rbp - 0x20]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x14007c660], rax
mov dword [rbp - 0x10], 0x3b1f000c
mov byte [rbp - 0xc], 0x6f
call fcn.1400074c8
movdqa xmm0, xmmword [0x140043120]
movdqu xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov word [rbp - 0x10], 0x2e0b
mov byte [rbp - 0xe], 0x71
call fcn.1400078d0
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140030214
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov eax, 0x45
mov dword [rbp - 0x20], 0x2c0024
lea rcx, [rbp - 0x20]
mov word [rbp - 0xc], ax
mov dword [rbp - 0x1c], 0xf0016
mov dword [rbp - 0x18], 0x1002e
mov dword [rbp - 0x14], 0x290008
mov dword [rbp - 0x10], 0x280021
call fcn.140007aa8
mov rcx, qword [rax]
call fcn.1400316a0
mov qword [0x14007c760], rax
lea rcx, [rbp - 0x20]
mov eax, 0x72
mov dword [rbp - 0x20], 0x2c0024
mov word [rbp - 0x10], ax
mov dword [rbp - 0x1c], 0xf0016
mov dword [rbp - 0x18], 0x1002e
mov dword [rbp - 0x14], 0x5a0079
call fcn.1400065a0
mov rcx, qword [rax]
call fcn.1400316a0
lea rcx, [rbp - 0x20]
mov qword [0x14007c750], rax
mov dword [rbp - 0x20], 0x1d0001
mov dword [rbp - 0x1c], 0x2d0020
mov dword [rbp - 0x18], 0x4d0007
call fcn.140007a2c
mov rcx, qword [rax]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
jmp fcn.1400316a0
Function at 0x140031564
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r10, rdx
mov r9, rcx
test rcx, rcx
je 0x1400315e5
test rdx, rdx
je 0x1400315e5
movsxd rax, dword [rcx + 0x3c]
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov edi, dword [r8 + 0x1c]
mov edx, dword [r8 + 0x20]
add rdi, rcx
mov esi, dword [r8 + 0x24]
add rdx, rcx
mov ebp, dword [r8 + 0x18]
add rsi, rcx
xor ecx, ecx
test ebp, ebp
je 0x1400315e5
mov eax, dword [rdx]
mov rbx, r10
add rax, r9
sub rbx, rax
movzx r8d, byte [rax]
movzx r11d, byte [rax + rbx]
sub r8d, r11d
jne 0x1400315d6
inc rax
test r11d, r11d
jne 0x1400315c0
test r8d, r8d
je 0x1400315fc
inc ecx
add rdx, 4
cmp ecx, ebp
jb 0x1400315b5
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
movzx ecx, word [rsi + rcx*2]
mov eax, dword [rdi + rcx*4]
add rax, r9
jmp 0x1400315e7

Function at 0x140031608
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov r13, rdx
mov rsi, rcx
mov edi, dword [rax + rcx + 0x88]
add rdi, rcx
mov r14d, dword [rdi + 0x1c]
mov r15d, dword [rdi + 0x20]
add r14, rcx
mov r12d, dword [rdi + 0x24]
add r15, rcx
add r12, rcx
cmp dword [rdi + 0x18], ebx
jbe 0x14003167b
movzx eax, word [r12 + rbx*2]
mov rdx, r13
mov ecx, dword [r15 + rbx*4]
add rcx, rsi
mov ebp, dword [r14 + rax*4]
add rbp, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x14003169a
inc ebx
cmp ebx, dword [rdi + 0x18]
jb 0x140031654
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, rbp
jmp 0x14003167d

Function at 0x1400316a0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
jmp 0x1400316dc
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
call fcn.14000b21c
test rax, rax
jne 0x1400316f3
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x1400316c8
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
jmp 0x1400316e3
Function at 0x140009ff0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140061028]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000a01d
xor eax, eax
jmp 0x14000a189
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000a057
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000a057
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14000a189
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000a17c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000a09a
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000a0c5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000a181
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000a134
sub eax, 1
je 0x14000a134
cmp eax, 2
jne 0x14000a17c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000a181
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000a162
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000a17c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000a181
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140031050
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000c7a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140061028]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000c873
cmp byte [rcx + 0x71], 0
je 0x14000c873
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000c86f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000c834
sub eax, 1
je 0x14000c838
cmp eax, 2
jne 0x14000c86f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140031050
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000c866
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000c86f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000c81c
xor al, al
jmp 0x14000c81c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140031050
add rsp, 0x60
pop rbx
ret
Function at 0x140030878
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400308fc
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140034850]
cmp byte [rcx + rax], 0
je 0x1400308fc
dec r8
sub rdx, 1
jne 0x1400308e2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140030c3c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14003098c
mov ebx, eax
test eax, eax
jne 0x140030c6c
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140030ccf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140030cc6
test al, 0x10
je 0x140030cc6
bt eax, 0xa
jae 0x140030cbf
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140030ce0
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140030cbb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140030cbb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x140030cc6
and dword [rsp + 0x3c], 0
jmp 0x140030ccb
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140031d34
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140031d7e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140031d7e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140031d7e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140031d7e
cmp dword [rcx + 0x84], 0xe
jbe 0x140031d7e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140031d80
xor al, al
add rsp, 0x28
ret
Function at 0x140018420
Capabilities:
Set console window title

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rdi, rdx
mov r14, rcx
xor esi, esi
lea rax, vtable.xmrig::ConsoleLog.0
mov qword [rcx], rax
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
lea ecx, [rsi + 1]
call fcn.14009dec0
cmp eax, 0xe
je 0x140018461
cmp eax, 7
jne 0x14001848d
mov ecx, 0x158
call fcn.1400b3dd0
mov rbx, rax
mov qword [r14 + 8], rax
call fcn.14009e5a0
mov rcx, rax
xor r9d, r9d
lea r8d, [r9 + 1]
mov rdx, rbx
call fcn.1400a1f80
test eax, eax
jns 0x140018499
mov byte [0x14010bd60], sil
jmp 0x140018611
xor edx, edx
mov rcx, qword [r14 + 8]
call fcn.1400a2490
mov rax, qword [r14 + 8]
mov qword [r14 + 0x10], rax
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400184ee
mov dword [rsp + 0x40], esi
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x1400184ee
mov edx, dword [rsp + 0x40]
and edx, 0xffffffbf
mov dword [rsp + 0x40], edx
bts edx, 7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
cmp byte [rdi], sil
je 0x140018611
cmp qword [rdi + 8], rsi
jne 0x14001852f
mov ecx, select
call fcn.1400b41b0
mov rsi, rax
movsd xmm0, qword [str.Athing_7.18.1]
movsd qword [rax], xmm0
mov eax, dword [0x1400f7c50]
mov dword [rsi + 8], eax
movzx eax, word [0x1400f7c54]
mov word [rsi + 0xc], ax
jmp 0x140018600
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rsi
mov ecx, 0x40
call fcn.1400b3dd0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0x20], rax
mov rdi, qword [rdi + 8]
test rdi, rdi
je 0x14001859a
mov rbx, 0xffffffffffffffff
nop dword [rax]
lea rbx, [rbx + 1]
cmp byte [rdi + rbx], 0
jne 0x140018570
lea rcx, [rbx + 1]
call fcn.1400b41b0
mov rsi, rax
lea r8, [rbx + 1]
mov rdx, rdi
mov rcx, rax
call fcn.1400b61c0
mov rax, qword [rsp + 0x20]
mov rdi, qword [rax + 8]
cmp byte [rdi + 0x19], 0
jne 0x1400185f3
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rdi + 0x10]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.140018ab0
mov rbx, rdi
mov rdi, qword [rdi]
mov rcx, qword [rbx + 0x30]
call fcn.1400b3e0c
mov rcx, qword [rbx + 0x20]
call fcn.1400b3e0c
mov edx, 0x40
mov rcx, rbx
call fcn.1400b3e0c
cmp byte [rdi + 0x19], 0
je 0x1400185b0
mov rax, qword [rsp + 0x20]
mov edx, 0x40
mov rcx, rax
call fcn.1400b3e0c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, rsi
call fcn.1400b3e0c
mov rax, r14
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14004a450
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 0x14004a481
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 0x14004a4fb
mov rdi, r14
mov rcx, rbx
call fcn.1400152d0
test rax, rax
jle 0x14004a4d3
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.1400b61c0
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 0x14004a4eb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14004a4f3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14004a495
sub r14, rdi
jmp 0x14004a5df
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14004a512
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14004a514
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14004a546
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400b61c0
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 0x14004a5dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14004a581
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 0x14004a5bd
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400c3e1c
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14004a5dc
cmp rbp, rax
ja 0x14004a590
test rbp, rbp
je 0x14004a5dc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400c3e1c
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 0x140052ef0
Capabilities:
Allocate or change rwx memory

Disassembly:
test r9, r9
je 0x140052fa6
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
xor r12d, r12d
mov qword [rsp + 0x40], rbx
mov edi, r12d
mov rbp, r9
mov r14, r8
mov rsi, rdx
mov r15, rcx
nop dword [rax]
mov edx, 0x1000
mov ecx, 0x1c0
call fcn.1400c42a4
xor ecx, ecx
mov edx, 0x4000
mov r8d, 0x3000
mov rbx, rax
mov qword [rax + 0xe0], rsi
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [rbx + 0x120], r12d
add rsi, r14
mov qword [rbx + 0x118], rax
mov qword [rbx + 0x128], 0xffffffffffffffff
mov qword [r15 + rdi*8], rbx
inc rdi
cmp rdi, rbp
jb 0x140052f30
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14009cf30
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x10
mov r11, rcx
movaps xmmword [rsp], xmm6
movdqu xmm6, xmmword [rdx]
lea rdi, str.cw
pshufd xmm0, xmm6, 0x55
mov rbx, rdx
movd eax, xmm0
movdqu xmm5, xmmword [r11]
pshufd xmm0, xmm6, 0xff
mov r9d, eax
shr rax, 0x10
movzx r8d, al
mov eax, r9d
shr rax, 0x18
pslldq xmm5, 4
movdqa xmm4, xmm5
pslldq xmm5, 4
movzx r10d, byte [r8 + rdi]
movzx eax, byte [rax + rdi]
xorps xmm4, xmmword [r11]
shl eax, 8
or r10d, eax
mov eax, r9d
shr rax, 8
movzx ecx, al
shl r10d, 8
movzx eax, byte [rcx + rdi]
or r10d, eax
movzx eax, r9b
shl r10d, 8
movzx ecx, byte [rax + rdi]
or r10d, ecx
movd eax, xmm0
mov edx, eax
shr rax, 0x10
movzx ecx, al
mov eax, edx
shr rax, 0x18
movd xmm3, r10d
movzx r8d, byte [rcx + rdi]
movzx eax, byte [rax + rdi]
shl eax, 8
or r8d, eax
mov eax, edx
shr rax, 8
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + rdi]
or r8d, eax
movzx eax, dl
shl r8d, 8
movzx ecx, byte [rax + rdi]
mov eax, r10d
or r8d, ecx
ror eax, 8
xor eax, 1
mov ecx, r8d
ror ecx, 8
xor ecx, 1
movd xmm2, r8d
movd xmm0, eax
punpckldq xmm3, xmm0
movdqa xmm0, xmm5
movd xmm1, ecx
xorps xmm0, xmm4
punpckldq xmm2, xmm1
punpcklqdq xmm3, xmm2
pslldq xmm5, 4
xorps xmm0, xmm5
pshufd xmm1, xmm3, 0xff
xorps xmm1, xmm0
pshufd xmm0, xmm1, 0x55
movd eax, xmm0
movdqu xmmword [r11], xmm1
mov edx, eax
shr rax, 0x10
movzx ecx, al
mov eax, edx
shr rax, 0x18
movzx r9d, byte [rcx + rdi]
movzx eax, byte [rax + rdi]
shl eax, 8
movdqa xmm5, xmm6
or r9d, eax
pshufd xmm0, xmm1, 0xff
shl r9d, 8
mov eax, edx
shr rax, 8
movzx ecx, al
pslldq xmm5, 4
movdqa xmm4, xmm5
pslldq xmm5, 4
xorps xmm4, xmm6
movaps xmm6, xmmword [rsp]
movzx eax, byte [rcx + rdi]
or r9d, eax
movzx eax, dl
shl r9d, 8
movzx ecx, byte [rax + rdi]
movd eax, xmm0
or r9d, ecx
mov edx, eax
shr rax, 0x10
movzx ecx, al
mov eax, edx
shr rax, 0x18
movd xmm3, r9d
movzx r8d, byte [rcx + rdi]
movzx eax, byte [rax + rdi]
shl eax, 8
or r8d, eax
mov eax, edx
shr rax, 8
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + rdi]
or r8d, eax
movzx eax, dl
shl r8d, 8
movzx ecx, byte [rax + rdi]
or r8d, ecx
mov ecx, r9d
mov eax, r8d
ror eax, 8
ror ecx, 8
movd xmm2, r8d
movd xmm1, eax
punpckldq xmm2, xmm1
movd xmm0, ecx
punpckldq xmm3, xmm0
movdqa xmm0, xmm5
xorps xmm0, xmm4
punpcklqdq xmm3, xmm2
pslldq xmm5, 4
xorps xmm0, xmm5
pshufd xmm1, xmm3, 0xaa
xorps xmm1, xmm0
movdqu xmmword [rbx], xmm1
mov rbx, qword [rsp + 0x20]
add rsp, 0x10
pop rdi
ret