joyce8/EMBER2024-capa huggingface dataset:
Function at 0x13fadc264
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x13fb019f0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x13fadc2bb
cmp word [rdx], r13w
jne 0x13fadc2bb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x13fadc2c0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x13fadc3e5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x13fadc406
lea r9, [rdx + 2]
cmp cx, r11w
je 0x13fadc2f9
mov rdx, r9
mov word [rbx], cx
jmp 0x13fadc320
cmp r9, r8
jae 0x13fadc330
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x13fadc2da
jmp 0x13fadc3e5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x13fadc3da
cmp dword [rsp + 0x80], esi
je 0x13fadc3da
lea r8, [0x13fb019f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x13fadc3b2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x13fadc382
mov word [rbx], r13w
jmp 0x13fadc3e2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x13fadc38f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x13fadc3e2
cmp word [rsp + 0x70], r13w
jne 0x13fadc3bf
cmp rbx, r14
je 0x13fadc37c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.13fadd034
cmp word [rsp + 0x70], r13w
je 0x13fadc3e5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x13fb019f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x13fadc3df
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x13fadc3e5
Function at 0x13fade110
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x13fade126
mov al, 1
jmp 0x13fade186
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x13fade137
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x13fade184
mov ecx, dword [rcx + 0x18]
nop
call fcn.13fad8e54
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x13fade184
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x13fade184
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x13fade184
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x13fade186
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x13fae1594
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x13faff040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x13fae15de
call fcn.13fad5c94
mov dword [rax], 0xf
call fcn.13fad5cb4
mov dword [rax], 0xd
call fcn.13fadb698
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.13facc010
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x13fae15e9
lea eax, [rbx + 1]
jmp 0x13fae15cb
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x13fae15c9
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x13fae15cb
Function at 0x13fae377c
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x13fae37ac
xor eax, eax
jmp 0x13fae386f
mov rbp, rbx
cmp word [rax], si
je 0x13fae37d1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x13fae37b8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x13fae37b4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.13fae1640
movsxd r14, eax
test eax, eax
jne 0x13fae380f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x13fae37a5
mov rcx, r14
call fcn.13fade3ac
mov rdi, rax
test rax, rax
jne 0x13fae3828
xor ecx, ecx
call fcn.13fadb700
jmp 0x13fae3804
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.13fae1640
test eax, eax
jne 0x13fae3859
mov rcx, rdi
call fcn.13fadb700
jmp 0x13fae3863
xor ecx, ecx
call fcn.13fadb700
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x13fae388c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x13fae3913
mov rsi, rbx
cmp word [rax], bp
je 0x13fae38d2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x13fae38bc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x13fae38b8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.13fade3ac
mov rdi, rax
test rax, rax
je 0x13fae3900
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.13faeaee0
mov rbp, rdi
xor ecx, ecx
call fcn.13fadb700
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x13fae82f4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.13fad5788
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x13fae837e
cmp byte [rbp - 0x21], r15b
je 0x13fae8379
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x13fae83b4
call fcn.13fadfbd4
test eax, eax
jne 0x13fae83a0
cmp byte [rbp - 0x21], r15b
je 0x13fae8398
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x13fae83b4
cmp byte [rbp - 0x21], r15b
je 0x13fae83b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.13fad5d74
test eax, eax
jne 0x13fae8454
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.13fad5788
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x13fae83f3
cmp byte [rbp - 0x21], r15b
je 0x13fae8428
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x13fae8428
call fcn.13fadfbd4
test eax, eax
jne 0x13fae8414
cmp byte [rbp - 0x21], r15b
je 0x13fae840d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x13fae8428
cmp byte [rbp - 0x21], r15b
je 0x13fae8425
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.13fad5d74
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x13fae8454
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x13fae8457
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x13fae8465
mov rcx, rdi
call fcn.13fadb700
cmp byte [rbp + 0x3f], r15b
je 0x13fae8474
mov rcx, qword [rbp + 0x27]
call fcn.13fadb700
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x13fae9a2c
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.13fadd034
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.13fadd034
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x13fae9b7c
cmp rax, 0xffffffffffffffff
je 0x13fae9b7c
xor edi, edi
test rbp, rbp
jle 0x13fae9b27
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.13fadf948
mov rbx, rax
test rax, rax
jne 0x13fae9ab4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x13fae9b1d
mov edx, 0x8000
mov ecx, r14d
call fcn.13fada99c
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.13faddd10
cmp eax, 0xffffffff
je 0x13fae9afd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x13fae9ac4
mov edx, r15d
mov ecx, r14d
call fcn.13fada99c
jmp 0x13fae9b1d
cmp byte [rsi + 0x38], dil
je 0x13fae9b14
cmp dword [rsi + 0x34], 5
jne 0x13fae9b14
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x13fae9b1d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.13fadb700
jmp 0x13fae9b90
jns 0x13fae9b90
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.13fadd034
cmp rax, 0xffffffffffffffff
jne 0x13fae9b48
cmp byte [rsi + 0x30], dil
je 0x13fae9b90
mov edi, dword [rsi + 0x2c]
jmp 0x13fae9b90
mov ecx, r14d
call fcn.13fad8e54
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x13fae9b90
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 0x13fae9b90
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x13fae9b89
mov eax, dword [rsi + 0x2c]
jmp 0x13fae9b8e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.13fadd034
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 0x13faeac80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x13faeaca8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x13faeaca8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14001102d
Capabilities:
Create thread

Disassembly:
jmp 0x1400117f0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
sub rsp, 0x6d0
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x118
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x6f8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x698], rax
lea rcx, [0x14002309f]
call fcn.140011389
nop
mov dword [rbp + 4], 0
lea rax, [rbp + 0x90]
lea rcx, [0x14001acf0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x37d
rep movsb byte [rdi], byte [rsi]
mov dword [rbp + 4], 0x37d
mov dword [rbp + 0x424], 0
jmp 0x140011881
mov eax, dword [rbp + 0x424]
inc eax
mov dword [rbp + 0x424], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0x424], eax
jge 0x1400118ae
movsxd rax, dword [rbp + 0x424]
movzx eax, byte [rbp + rax + 0x90]
xor eax, 0xa
movsxd rcx, dword [rbp + 0x424]
mov byte [rbp + rcx + 0x90], al
jmp 0x140011873
movsxd rax, dword [rbp + 4]
mov r9d, 4
mov r8d, 0x1000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x448], rax
movsxd rax, dword [rbp + 4]
mov r8, rax
lea rdx, [rbp + 0x90]
mov rcx, qword [rbp + 0x448]
call fcn.1400111bd
nop
movsxd rax, dword [rbp + 4]
lea r9, [rbp + 0x64]
mov r8d, 0x10
mov rdx, rax
mov rcx, qword [rbp + 0x448]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
lea rax, [rbp + 0x24]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x448]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x48], rax
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001aca0]
call fcn.140011316
mov eax, edi
mov rcx, qword [rbp + 0x698]
xor rcx, rbp
call fcn.1400111b8
lea rsp, [rbp + 0x6a0]
pop rdi
pop rsi
pop rbp
ret

Function at 0x140011203
Capabilities:
Terminate process

Disassembly:
jmp 0x140012e40
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x140011285
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400141d0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400141f0
xor al, al
jmp 0x140014271
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014203
xor al, al
jmp 0x140014271
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001422d
xor al, al
jmp 0x140014271
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014241
xor al, al
jmp 0x140014271
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014253
xor al, al
jmp 0x140014271
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001426f
xor al, al
jmp 0x140014271
mov al, 1
add rsp, 0x38
ret
Function at 0x140012070
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113b1
movzx eax, al
test eax, eax
jne 0x140012090
mov ecx, 7
call fcn.140011320
nop
mov byte [rsp + 0x20], 0
call fcn.140011339
mov byte [rsp + 0x21], al
cmp dword [0x14001e868], 1
jne 0x1400120b4
mov ecx, 7
call fcn.140011320
nop
jmp 0x14001210c
cmp dword [0x14001e868], 0
jne 0x140012107
mov dword [0x14001e868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.14001119f
test eax, eax
je 0x1400120e8
mov eax, 0xff
jmp 0x140012211
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.14001132f
mov dword [0x14001e868], 2
jmp 0x14001210c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001130c
call fcn.1400112a8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012169
mov rcx, qword [rsp + 0x30]
call fcn.14001115e
movzx eax, al
test eax, eax
je 0x140012169
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140024020]
nop
call fcn.1400112da
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001219d
mov rcx, qword [rsp + 0x38]
call fcn.14001115e
movzx eax, al
test eax, eax
je 0x14001219d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14001136b
nop
call fcn.1400122c0
mov dword [rsp + 0x28], eax
call fcn.140011285
movzx eax, al
test eax, eax
jne 0x1400121bc
mov ecx, dword [rsp + 0x28]
call fcn.14001105a
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400121cb
call fcn.140011375
nop
xor edx, edx
mov cl, 1
call fcn.14001114f
mov eax, dword [rsp + 0x28]
jmp 0x140012211
add rsp, 0x68
ret
Function at 0x1400406d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140080040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov byte [rsp], 0x4e
mov byte [rsp + 1], 0x3e
mov byte [rsp + 2], 0x21
mov byte [rsp + 3], 0x39
mov byte [rsp + 4], 0x2b
mov byte [rsp + 5], 0x3c
mov byte [rsp + 6], 0x3d
mov byte [rsp + 7], 0x26
mov byte [rsp + 8], 0x2b
mov byte [rsp + 9], 0x22
mov byte [rsp + 0xa], 0x22
mov byte [rsp + 0xb], 0x60
mov byte [rsp + 0xc], 0x2b
mov byte [rsp + 0xd], 0x36
mov byte [rsp + 0xe], 0x2b
mov byte [rsp + 0xf], 0x6e
mov byte [rsp + 0x10], 0x63
mov byte [rsp + 0x11], 0xb
mov byte [rsp + 0x12], 0x20
mov byte [rsp + 0x13], 0x2d
mov byte [rsp + 0x14], 0x21
mov byte [rsp + 0x15], 0x2a
mov byte [rsp + 0x16], 0x2b
mov byte [rsp + 0x17], 0x2a
mov byte [rsp + 0x18], 0xd
mov byte [rsp + 0x19], 0x21
mov byte [rsp + 0x1a], 0x23
mov byte [rsp + 0x1b], 0x23
mov byte [rsp + 0x1c], 0x2f
mov byte [rsp + 0x1d], 0x20
mov byte [rsp + 0x1e], 0x2a
mov byte [rsp + 0x1f], 0x6e
mov byte [rsp + 0x20], 0
lea rax, [rsp]
mov rdi, qword [rsp + 0x58]
mov rsi, rax
mov ecx, 0x21
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14004bb20
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x1400407d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x28
mov rax, qword [0x140080040]
xor rax, rsp
mov qword [rsp + 0x18], rax
mov byte [rsp], 0x54
mov byte [rsp + 1], 0x17
mov byte [rsp + 2], 0x26
mov byte [rsp + 3], 0x31
mov byte [rsp + 4], 0x35
mov byte [rsp + 5], 0x20
mov byte [rsp + 6], 0x31
mov byte [rsp + 7], 4
mov byte [rsp + 8], 0x26
mov byte [rsp + 9], 0x3b
mov byte [rsp + 0xa], 0x37
mov byte [rsp + 0xb], 0x31
mov byte [rsp + 0xc], 0x27
mov byte [rsp + 0xd], 0x27
mov byte [rsp + 0xe], 0x74
mov byte [rsp + 0xf], 0x32
mov byte [rsp + 0x10], 0x35
mov byte [rsp + 0x11], 0x3d
mov byte [rsp + 0x12], 0x38
mov byte [rsp + 0x13], 0x31
mov byte [rsp + 0x14], 0x30
mov byte [rsp + 0x15], 0x74
mov byte [rsp + 0x16], 0x7c
mov byte [rsp + 0x17], 0
lea rax, [rsp]
mov rdi, qword [rsp + 0x48]
mov rsi, rax
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x18]
xor rcx, rsp
call fcn.14004bb20
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x401c40
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov eax, 1
xchg byte [0x00e83980], al
test al, al
je 0x401c5f
lea rcx, [0x00e83980]
call fcn.00438d60
movzx eax, byte [0x00e83981]
test al, al
je 0x401c80
mov byte [0x00e83980], 0
add rsp, 0x58
ret
lea rdx, [0x00f049c8]
lea rcx, [0x00f049f0]
mov rax, rdx
mov byte [rax], 0
add rax, 1
cmp rax, rcx
jne 0x401c91
lea rax, [0x00f049c8]
xor ecx, ecx
pxor xmm0, xmm0
mov qword [0x00f049c8], rax
mov qword [0x00f049d0], rax
lea rax, [0x00e839c0]
mov r8, rax
add rcx, 1
movaps xmmword [r8], xmm0
add r8, 0x10
cmp rcx, 0x4000
jne 0x401cc2
mov byte [0x00ec39c0], 0
xor ecx, ecx
pxor xmm0, xmm0
add rcx, 1
movaps xmmword [rax + 0x40040], xmm0
add rax, 0x10
cmp rcx, 0xd8
jne 0x401ce4
lea rax, [0x00ec4780]
mov byte [rax], 0
add rax, 1
cmp rax, rdx
jne 0x401d03
mov rax, qword [0x0064b978]
test rax, rax
jne 0x401d31
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov qword [0x0064b978], rax
mov qword [0x00ec4780], rax
lea rax, [0x00ec4790]
mov qword [0x00ec4788], rax
mov byte [0x00e83981], 1
mov byte [0x00e83980], 0
add rsp, 0x58
ret
Function at 0x40d6b0
Capabilities:
Get system information on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rax, qword [0x005ebce0]
mov rsi, rcx
lea rcx, [rax - 1]
test rax, rcx
jne 0x40d784
lea rbx, [rdx + rcx]
neg rax
mov rdx, qword [rsi]
and rbx, rax
mov rax, qword [rsi + 8]
sub rdx, rax
cmp rdx, rbx
jge 0x40d74b
mov rax, qword [0x0064b978]
test rax, rax
je 0x40d790
lea rdi, [rax - 1]
test rdi, rax
jne 0x40d784
lea rdx, str.Allocate
neg rax
add rdi, rbx
and rdi, rax
mov rcx, rdi
call fcn.0040d590
mov r8, qword [0x00e76150]
lea rdx, [rax + rdi]
mov qword [rsi + 8], rax
mov qword [rsi], rdx
test r8, r8
je 0x40d743
mov rdx, rdi
mov rcx, rax
call r8
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
sub rdx, rax
cmp rbx, rdx
jg 0x40d760
add rbx, rax
mov qword [rsi + 8], rbx
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
lea r8, str.__allocated_end____allocated_current_____sptr_size______0_
xor r9d, r9d
mov edx, 0x1b33
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
call fcn.00406990
call fcn.0040b4c0
nop dword [rax]
lea rcx, [rsp + 0x30]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x34]
mov qword [0x0064b978], rax
jmp 0x40d6f7
Function at 0x40e930
Capabilities:
Get system information on windows
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov rbx, qword [0x0064b978]
mov r12, qword [rsp + 0xf0]
test rbx, rbx
mov qword [rsp + 0xd0], rcx
mov rbp, rdx
mov rsi, r9
mov qword [rsp + 0xe0], r8
je 0x40eb30
mov r13, qword [sym.imp.kernel32.dll_ReadFile]
lea r14, [rsp + 0x50]
cmp r12, rbx
cmovbe rbx, r12
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rbp]
mov rdx, qword [rax]
call fcn.0040e7f0
xor ecx, ecx
mov r9d, 4
mov rdx, rbx
mov r8d, 0x3000
call qword [sym.imp.kernel32.dll_VirtualAlloc]
test rax, rax
je 0x40ebb7
mov qword [rbp], rax
mov rax, qword [rsp + 0xe0]
xor r9d, r9d
mov r8d, 7
mov edx, 0x80000000
mov rcx, qword [rsp + 0xd0]
mov qword [rax], rbx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.kernel32.dll_CreateFileA]
cmp rax, 1
mov rdi, rax
je 0x40eb50
cmp rax, 2
je 0x40eb74
cmp qword [rsp + 0xf8], 0
setne r15b
cmp rax, 0xffffffffffffffff
sete al
test al, r15b
jne 0x40eae1
cmp rdi, 0xffffffffffffffff
je 0x40eaf1
mov qword [rsi], 0
xor ecx, ecx
jmp 0x40ea6b
test eax, eax
mov r8d, dword [rsp + 0x50]
je 0x40eaac
mov rcx, r8
add rcx, qword [rsi]
cmp r12, rcx
mov qword [rsi], rcx
sete dl
test r8, r8
sete al
or al, dl
jne 0x40eba0
cmp rbx, rcx
jbe 0x40eb10
mov r8d, ebx
mov rdx, rcx
mov r9, r14
add rdx, qword [rbp]
mov qword [rsp + 0x20], 0
sub r8d, ecx
mov rcx, rdi
call r13
test eax, eax
jne 0x40ea45
test r15b, r15b
je 0x40ea45
call qword [sym.imp.kernel32.dll_GetLastError]
mov rsi, qword [rsp + 0xf8]
mov dword [rsi], eax
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rbp]
mov rdx, qword [rax]
call fcn.0040e7f0
mov rcx, rdi
call qword [sym.imp.kernel32.dll_CloseHandle]
xor edx, edx
mov eax, edx
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.kernel32.dll_GetLastError]
mov rdi, qword [rsp + 0xf8]
mov dword [rdi], eax
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rbp]
mov rdx, qword [rax]
call fcn.0040e7f0
xor edx, edx
jmp 0x40eacb
add rbx, rbx
mov rcx, rdi
call qword [sym.imp.kernel32.dll_CloseHandle]
cmp r12, rbx
cmovbe rbx, r12
jmp 0x40e984
lea rcx, [rsp + 0x50]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov ebx, dword [rsp + 0x54]
mov qword [0x0064b978], rbx
jmp 0x40e971
lea r8, str.__res_____fd_t_1_____fd_t_1_____fd_t__1_______0_
xor r9d, r9d
mov edx, 0x2564
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
call fcn.00406990
lea r8, str.__res_____fd_t_2_____fd_t_2_____fd_t__1_______0_
xor r9d, r9d
mov edx, 0x2565
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
call fcn.00406990
nop dword [rax + rax]
mov byte [rsp + 0x4f], al
mov rcx, rdi
call qword [sym.imp.kernel32.dll_CloseHandle]
movzx edx, byte [rsp + 0x4f]
jmp 0x40eacb
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rsp + 0x20], 0
lea r8, str.allocate
mov rcx, rbx
lea rdx, str.ReadFileToBuffer
mov r9d, eax
call fcn.0040d4f0
nop
nop