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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4f931a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4f9311
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4f9311
mov rax, qword [rbp - 8]
jmp 0x2fc4f932f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4f92e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x401827
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x0040d068]
jne 0x40102a
rol rcx, 0x10
test cx, 0xffff
jne 0x401026
repz ret
ror rcx, 0x10
jmp 0x401780
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x0040e240]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x0040e338]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x401805
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x0040e240]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x401827
mov rax, qword [rsp + 0x88]
mov qword [0x0040e338], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x0040e2d8], rax
mov rax, qword [0x0040e338]
mov qword [0x0040e1b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x0040e2c0], rax
mov dword [0x0040e1a0], 0xc0000409
mov dword [0x0040e1a4], 1
mov rax, qword [0x0040d068]
mov qword [rsp + 0x68], rax
mov rax, qword [0x0040d070]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x0040e238], eax
mov ecx, 1
call fcn.00403b70
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x004092c8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x0040e238], 0
jne 0x4018ae
mov ecx, 1
call fcn.00403b70
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x404b50
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.004034e0
xor ebx, ebx
cmp qword [0x0040ee70], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x404c81
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x404bb3
xor eax, eax
jmp 0x404d61
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x404bac
mov rcx, rax
call fcn.00403470
lea rdx, str.GetActiveWindow
mov rcx, rbp
mov qword [0x0040ee70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00403470
lea rdx, str.GetLastActivePopup
mov rcx, rbp
mov qword [0x0040ee78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00403470
lea rcx, [rsp + 0x30]
mov qword [0x0040ee80], rax
call fcn.00401f20
test eax, eax
je 0x404c37
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.00404380
cmp dword [rsp + 0x30], 2
jne 0x404c81
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00403470
test rax, rax
mov qword [0x0040ee90], rax
je 0x404c81
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00403470
mov qword [0x0040ee88], rax
mov rcx, qword [0x0040ee88]
cmp rcx, rsi
je 0x404d13
cmp qword [0x0040ee90], rsi
je 0x404d13
call fcn.00403540
call rax
test rax, rax
mov rbp, rax
je 0x404cde
mov rcx, qword [0x0040ee90]
call fcn.00403540
lea rcx, [rsp + 0x38]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x404cde
test byte [rsp + 0x48], 1
jne 0x404d13
lea rcx, [rsp + 0x34]
call fcn.00401f70
test eax, eax
je 0x404d00
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.00404380
cmp dword [rsp + 0x34], 4
jb 0x404d0d
bts edi, 0x15
jmp 0x404d47
bts edi, 0x12
jmp 0x404d47
mov rcx, qword [0x0040ee78]
cmp rcx, rsi
je 0x404d47
call fcn.00403540
call rax
test rax, rax
mov rbx, rax
je 0x404d47
mov rcx, qword [0x0040ee80]
cmp rcx, rsi
je 0x404d47
call fcn.00403540
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x0040ee70]
call fcn.00403540
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x140008f61
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
sub rsp, 0x268
mov rsi, rcx
call 0x140008f73
add al, ch
lea r8, [rsp + 0x2c]
mov dword [r8], 0x100
jge 0x140008f85
jl 0x140008f85
call 0x164551cd1
push 0x2b9
add al, ch
or al, 0x25
add eax, dword [rax]
lea rdx, [rsp + 0x68]
mov ecx, 2
call sub.Secur32.dll_GetUserNameExW
test al, 1
je 0x140009017
jp 0x140008f9d
jnp 0x140008f9d
call 0x16c24d42c
mov eax, dword [rsp + 0x2c]
jbe 0x140008fa6
ja 0x140008fa6
call 0x1644518f2
and byte [rax - 0x73], cl
jl 0x140008fd3
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x30]
lea r9, [rsp + 0x68]
xor byte [rbp + rcx*4 + 0x4c], cl
and al, 0x68
mov r8d, 0x100
mov rcx, rdi
mov rdx, rsi
call fcn.140009197
jbe 0x140008fcb
ja 0x140008fcb
call 0x188081b17
lea ecx, [rsp + 0x40]
mov rax, qword [rdi]
lea rcx, [rsp + 0x40]
mov qword [rcx], rsi
mov qword [rcx + 8], rax
jle 0x140008fdf
jg 0x140008fdf
call 0x10a059ff2
movsd dword [rdi], dword [rsi]
invalid
movups xmm0, xmmword [0x1400035b0]
movups xmmword [rcx + 0x10], xmm0
mov byte [rcx + 0x20], 0x5c
jae 0x140008ff3
jb 0x140008ff3
call 0x1413ec7df
add byte [rax - 0x77], cl
ror dword [rax - 0x77], 0xd0
call 0x14001ce2f
mov rcx, rax
mov rax, rdx
test rcx, rcx
mov edx, 6
cmovne rdx, rax
lea rax, [0x140002fd4]
cmovne rax, rcx
jmp 0x140009023
mov edx, 6
lea rax, [0x140002fd4]
js 0x140009028
jns 0x140009028
call 0x1a8c51174
add al, byte [rax]
add byte [rdi + 0x5e], bl
add rsp, 0x268
pop rdi
pop rsi
ret

Function at 0x140008f73
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
sub rsp, 0x268
mov rsi, rcx
call 0x140008f73
add al, ch
lea r8, [rsp + 0x2c]
mov dword [r8], 0x100
jge 0x140008f85
jl 0x140008f85
call 0x164551cd1
push 0x2b9
add al, ch
or al, 0x25
add eax, dword [rax]
lea rdx, [rsp + 0x68]
mov ecx, 2
call sub.Secur32.dll_GetUserNameExW
test al, 1
je 0x140009017
jp 0x140008f9d
jnp 0x140008f9d
call 0x16c24d42c
mov eax, dword [rsp + 0x2c]
jbe 0x140008fa6
ja 0x140008fa6
call 0x1644518f2
and byte [rax - 0x73], cl
jl 0x140008fd3
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x30]
lea r9, [rsp + 0x68]
xor byte [rbp + rcx*4 + 0x4c], cl
and al, 0x68
mov r8d, 0x100
mov rcx, rdi
mov rdx, rsi
call fcn.140009197
jbe 0x140008fcb
ja 0x140008fcb
call 0x188081b17
lea ecx, [rsp + 0x40]
mov rax, qword [rdi]
lea rcx, [rsp + 0x40]
mov qword [rcx], rsi
mov qword [rcx + 8], rax
jle 0x140008fdf
jg 0x140008fdf
call 0x10a059ff2
movsd dword [rdi], dword [rsi]
invalid
movups xmm0, xmmword [0x1400035b0]
movups xmmword [rcx + 0x10], xmm0
mov byte [rcx + 0x20], 0x5c
jae 0x140008ff3
jb 0x140008ff3
call 0x1413ec7df
add byte [rax - 0x77], cl
ror dword [rax - 0x77], 0xd0
call 0x14001ce2f
mov rcx, rax
mov rax, rdx
test rcx, rcx
mov edx, 6
cmovne rdx, rax
lea rax, [0x140002fd4]
cmovne rax, rcx
jmp 0x140009023
mov edx, 6
lea rax, [0x140002fd4]
js 0x140009028
jns 0x140009028
call 0x1a8c51174
add al, byte [rax]
add byte [rdi + 0x5e], bl
add rsp, 0x268
pop rdi
pop rsi
ret
Function at 0x140009032
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
sub rsp, 0x278
mov rsi, rcx
call 0x140009044
add al, ch
lea r8, [rsp + 0x34]
mov dword [r8], 0x100
jb 0x140009056
jae 0x140009056
call 0x164551da2
jbe 0x140009015
lea rdx, [rsp + 0x76]
mov ecx, 2
add al, byte [rax]
add byte [rax], al
call sub.Secur32.dll_GetUserNameExW
test al, 1
je 0x1400090fc
js 0x140009072
jns 0x140009072
call 0x17424d501
mov eax, dword [rsp + 0x34]
jbe 0x14000907b
ja 0x14000907b
call 0x1644519c7
and byte [rax - 0x73], cl
jl 0x1400090a8
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x38]
lea r9, [rsp + 0x76]
cmp byte [rbp + rcx*4 + 0x4c], cl
and al, 0x76
mov r8d, 0x100
mov rcx, rdi
mov rdx, rsi
call fcn.140009197
jae 0x1400090a0
jb 0x1400090a0
call 0x188081bec
lea edi, [rsp + 0x48]
mov rax, qword [rdi]
lea rdi, [rsp + 0x48]
mov qword [rdi], rsi
mov qword [rdi + 8], rax
jne 0x1400090b4
je 0x1400090b4
call 0x13505a0c7
movsb byte [rdi], byte [rsi]
invalid
movups xmm0, xmmword [0x1400035b0]
movups xmmword [rdi + 0x10], xmm0
mov byte [rdi + 0x20], 0x5c
jo 0x1400090c8
jno 0x1400090c8
call 0x128fa1a14
pop rdi
cmp eax, 0x3710001
mov rcx, rdi
call 0x14001ce2f
jno 0x1400090d5
jo 0x1400090d5
call 0x128fa1a21
push rdx
cmp eax, 0x89480001
mov rcx, rdi
call 0x14001ce2f
mov rcx, rax
ror dword [rax - 0x77], 0xd0
mov edx, 6
lea rax, [0x140002fd4]

Function at 0x140009044
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
sub rsp, 0x278
mov rsi, rcx
call 0x140009044
add al, ch
lea r8, [rsp + 0x34]
mov dword [r8], 0x100
jb 0x140009056
jae 0x140009056
call 0x164551da2
jbe 0x140009015
lea rdx, [rsp + 0x76]
mov ecx, 2
add al, byte [rax]
add byte [rax], al
call sub.Secur32.dll_GetUserNameExW
test al, 1
je 0x1400090fc
js 0x140009072
jns 0x140009072
call 0x17424d501
mov eax, dword [rsp + 0x34]
jbe 0x14000907b
ja 0x14000907b
call 0x1644519c7
and byte [rax - 0x73], cl
jl 0x1400090a8
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x38]
lea r9, [rsp + 0x76]
cmp byte [rbp + rcx*4 + 0x4c], cl
and al, 0x76
mov r8d, 0x100
mov rcx, rdi
mov rdx, rsi
call fcn.140009197
jae 0x1400090a0
jb 0x1400090a0
call 0x188081bec
lea edi, [rsp + 0x48]
mov rax, qword [rdi]
lea rdi, [rsp + 0x48]
mov qword [rdi], rsi
mov qword [rdi + 8], rax
jne 0x1400090b4
je 0x1400090b4
call 0x13505a0c7
movsb byte [rdi], byte [rsi]
invalid
movups xmm0, xmmword [0x1400035b0]
movups xmmword [rdi + 0x10], xmm0
mov byte [rdi + 0x20], 0x5c
jo 0x1400090c8
jno 0x1400090c8
call 0x128fa1a14
pop rdi
cmp eax, 0x3710001
mov rcx, rdi
call 0x14001ce2f
jno 0x1400090d5
jo 0x1400090d5
call 0x128fa1a21
push rdx
cmp eax, 0x89480001
mov rcx, rdi
call 0x14001ce2f
mov rcx, rax
ror dword [rax - 0x77], 0xd0
mov edx, 6
lea rax, [0x140002fd4]
Function at 0x14001045c
Capabilities:
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rcx
jo 0x14001046d
jno 0x14001046d
call 0x1bb0b8fb9
add edi, dword [rdx + 1]
mov rcx, qword [rdx]
jnp 0x140010475
jp 0x140010475
call 0x160254940
adc al, byte [rax]
add byte [rax], al
mov dword [rsp + 0x20], 0x12
lea rdx, [rsp + 0x98]
lea r8, [rsp + 0x30]
mov r9d, 0x68
call sub.ntdll.dll_NtQueryInformationFile
test eax, eax
je 0x1400104af
cmp eax, 0xc0000022
je 0x14001052a
cmp eax, 0x80000005
jne 0x140010540
ja 0x1400104b4
jbe 0x1400104b4
call 0x18868881e
add byte [rax - 0x75], cl
and al, 0x70
and word [rdi + 0x48], 0
mov rax, qword [rsp + 0x70]
mov qword [rdi], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 8], rax
xor eax, eax
cmp byte [rsp + 0x6d], 0
sete al
lea eax, [rax + rax*2]
add eax, 2
and al, 0xf
mov byte [rdi + 0x40], al
movabs rcx, 0xfe624e212ac18000
mov rax, qword [rsp + 0x38]
add rax, rcx
mov r8d, 0x64
imul r8
mov qword [rdi + 0x18], rdx
mov qword [rdi + 0x10], rax
mov rax, qword [rsp + 0x40]
add rax, rcx
imul r8
mov qword [rdi + 0x28], rdx
add rcx, qword [rsp + 0x30]
mov qword [rdi + 0x20], rax
mov rax, rcx
imul r8
mov qword [rdi + 0x38], rdx
mov qword [rdi + 0x30], rax
jmp 0x14001054b
js 0x14001052f
jns 0x14001052f
call 0xda36927b
sub edi, edi
lea rsi, [0x1400030d0]
mov ecx, 0xa
rep movsq qword [rdi], qword [rsi]
jmp 0x14001054b
js 0x140010545
jns 0x140010545
call 0x18848ccaf
invalid
mov word [rdi + 0x48], 0xe
jbe 0x140010550
ja 0x140010550
call 0xe8c5869c
add byte [rax], al
add byte [rdi + 0x5e], bl
add rsp, 0xa8
pop rdi
pop rsi
ret
Function at 0x1400127b4
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov al, byte [rsp + 0xb0]
and al, 0xf
js 0x1400127de
jns 0x1400127de
call 0x14f412a1e
xchg esp, eax
invalid
cmp al, 2
sete bpl
lea r15, [0x140012978]
lea r13, [rsp + 0x30]
lea r12, [0x140012904]
jb 0x1400127fc
jae 0x1400127fc
call 0x18007b349
test ch, 1
mov rax, qword [r14]
test bpl, 1
je 0x14001284d
jno 0x14001280a
jo 0x14001280a
call 0x16445b156
sub byte [rcx + 3], bh
mov qword [rsp + 0x28], rax
jns 0x140012814
js 0x140012814
call 0xc506b560
or eax, 0x8948ffff
and al, 0x20
lea rax, [0x1400035a0]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x28]
mov r8, rbx
mov r9, rdi
call fcn.14001116e
movzx eax, word [rsp + 0x40]
cmp rax, 0x1a
ja case.0x14001284b.1
movsxd rcx, dword [r15 + rax*4]
add rcx, r15
jmp rcx
jg 0x140012852
jle 0x140012852
call 0x16445b19e
xor byte [rdi + 3], bh
mov qword [rsp + 0x30], rax
jg 0x14001285c
jle 0x14001285c
call 0x188eab1ac
mov edx, ebx
mov rcx, r13
mov rdx, rbx
mov r8, rdi
call fcn.140012a86
movzx ecx, ax
cmp ax, 0x1c
ja case.default.0x14001287a
movsxd rcx, dword [r12 + rcx*4]
add rcx, r12
jmp rcx
jnp 0x140012881
jp 0x140012881
call 0x141f6a8c5
xor bpl, 1
jmp 0x1400127f7
jl 0x14001288f
jge 0x14001288f
call 0x15047b1f9
mov word [rsi + 0x10], ax
jmp 0x1400128a8
cmp ecx, 0x2c
je case.0x14001287a.9
cmp ecx, 0x41
jne case.0x14001287a.1
jns 0x1400128a4
js 0x1400128a4
call 0x15047b20e
mov word [rsi + 0x10], ax
js 0x1400128ad
jns 0x1400128ad
call 0x188c5abf9
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ja 0x1400128c3
jbe 0x1400128c3
call 0x143734fb2
jmp 0x1400128eb
jb 0x1400128ca
jae 0x1400128ca
call 0x141e948b9
add byte [rax], al
add byte [rax], al
call 0x16445b41f
cmp byte [rax - 0x77], cl
invalid
jmp 0x1400128eb
call 0x1400128d2
add al, ch
mov rax, qword [rsp + 0x38]
mov qword [rsi], rax
mov byte [rsi + 8], 1
and word [rsi + 0x10], 0
jmp 0x1400128a8
jle 0x1400128eb
jg 0x1400128eb
call 0x14fc17ffe
adc dword [rsi], eax
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
and qword [rsi + 0x10], 0
jmp 0x1400128a8
jne case.0x14001287a.1
je case.0x14001287a.1
call 0x1417e2c7d
jl 0x140012902
jge 0x140012902
call 0x13fc2b9d2
invalid
int3

Function at 0x140017a96
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
jnp 0x140017a9f
jp 0x140017a9f
call 0x1400cf68b
add ah, cl
call 0x14001861f
int3
Function at 0x1400193c1
Capabilities:
Create pipe

Disassembly:
mov ecx, 1
call sub.KERNEL32.dll_CreateNamedPipeW
cmp rax, 0xffffffffffffffff
je 0x14001946e
mov rbx, rax
jno 0x1400193dd
jo 0x1400193dd
call 0x144071f29
cmpsb byte [rsi], byte [rdi]
invalid
mov rax, qword [0x1400039e8]
lea r9, [rsp + 0x90]
mov qword [r9 + 0x10], rax
movups xmm0, xmmword [0x1400039d8]
movaps xmmword [r9], xmm0
jno 0x140019400
jo 0x140019400
call 0x16466174c
xor byte [rax], al
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0xb0]
mov edx, 0x40000000
xor r8d, r8d
call sub.KERNEL32.dll_CreateFileW
jle 0x140019430
jg 0x140019430
call 0x13ffa177c
cmp rax, 0xffffffffffffffff
je 0x14001947a
mov r14, rax
mov rcx, rbx
call fcn.14001917a
test ax, ax
je 0x1400194ac
mov ebp, eax
jo 0x14001944d
jno 0x14001944d
call 0x128f31d9d
imul ebx, dword [rdi], 2
add byte [rcx + 3], bh
mov rcx, r14
call sub.ntdll.dll_NtClose
jns 0x14001945a
js 0x14001945a
call 0x1417e97da
jl 0x14001945f
jge 0x14001945f
call 0x128db1dab
pop rcx
invalid
mov rcx, rbx
call sub.ntdll.dll_NtClose
jno 0x14001946c
jo 0x14001946c
call 0x1437cbe5b
jmp 0x140019497
jnp 0x140019473
jp 0x140019473
call 0x1421edd5f
add bl, ch
sbb eax, ebp
sbb eax, 0x3770002
call sub.KERNEL32.dll_GetLastError
jmp 0x140019493
call sub.KERNEL32.dll_GetLastError
ja 0x140019484
jbe 0x140019484
call 0x128db1dd0
xor al, 0x1f
add al, byte [rax]
mov rcx, rbx
call sub.ntdll.dll_NtClose
call 0x140019492
add al, ch
mov bp, 0xe
js 0x14001949c
jns 0x14001949c
call 0xc14a7d29
invalid
mov eax, ebp
add rsp, 0x230
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
jle 0x1400194b1
jg 0x1400194b1
call 0x18c211dfd
mov dword [rsi], esi
mov qword [rdi], rbx
mov qword [rsi], r14
xor ebp, ebp
jmp 0x140019497
Function at 0x14001b1a8
Capabilities:
Create process on windows

Disassembly:
push rsi
sub rsp, 0x50
movaps xmm0, xmmword [rsp + 0x80]
jo 0x14001b1ba
jno 0x14001b1ba
call 0x16445c2cd
mov qword [rsp + 0x38], r9
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x30], r8
mov dword [rsp + 0x28], 0x8000400
mov dword [rsp + 0x20], 1
xor esi, esi
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_CreateProcessW
test eax, eax
jne 0x14001b20b
jbe 0x14001b1ef
ja 0x14001b1ef
call 0x142017edb
add byte [rdi], cl
mov bh, 0xc0
call sub.KERNEL32.dll_GetLastError
movzx eax, ax
lea ecx, [rax - 0xbc]
cmp ecx, 0xf
jae 0x14001b218
jp 0x14001b207
jnp 0x14001b207
call 0x1406f7071
mov si, 0x6d
jge 0x14001b210
jl 0x14001b210
call 0xc34aa29d
invalid
mov eax, esi
add rsp, 0x50
pop rsi
ret
lea ecx, [rax - 2]
cmp ecx, 2
jb 0x14001b248
cmp eax, 5
je 0x14001b24e
cmp eax, 0xb
je 0x14001b202
cmp eax, 0x7b
je 0x14001b259
cmp eax, 0xce
je 0x14001b264
cmp eax, 0xd8
je 0x14001b202
js 0x14001b242
jns 0x14001b242
call 0x1401070ac
mov si, 0xe
jmp 0x14001b20b
mov si, 8
jmp 0x14001b20b
jge 0x14001b253
jl 0x14001b253
call 0x1400b70bd
mov si, 9
jmp 0x14001b20b
jle 0x14001b25e
jg 0x14001b25e
call 0x1407270c8
mov si, 0x70
jmp 0x14001b20b
jns 0x14001b269
js 0x14001b269
call 0x1400d70d3
mov si, 0xb
jmp 0x14001b20b
Function at 0x140038960
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov eax, dword [0x140043114]
test eax, eax
jle 0x1400389be
mov rcx, qword [0x140043150]
lea rdx, [rax*8]
lea rdx, [rdx + rdx*4]
xor r8d, r8d
mov r9, qword [rcx + r8 + 0x18]
cmp r9, rsi
ja 0x1400389b3
mov r10, qword [rcx + r8 + 0x20]
mov r10d, dword [r10 + 8]
add r9, r10
cmp r9, rsi
ja 0x140038ad2
add r8, 0x28
cmp rdx, r8
jne 0x140038994
jmp 0x1400389c0
xor eax, eax
mov rcx, qword [0x14003c010]
movzx edx, word [rcx]
cmp edx, 0x5a4d
jne 0x140038a2a
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140038a2a
add rcx, rdx
movzx edx, word [rcx + 0x18]
cmp edx, 0x20b
jne 0x140038a2a
movzx edx, word [rcx + 6]
test edx, edx
je 0x140038a2a
mov r8, rsi
sub r8, qword [0x14003c010]
movzx r9d, word [rcx + 0x14]
lea r15, [rcx + r9]
add r15, 0x18
mov ecx, dword [r15 + 0xc]
cmp r8, rcx
jb 0x140038a22
mov r9d, dword [r15 + 8]
add r9d, ecx
cmp r8, r9
jb 0x140038a39
add r15, 0x28
dec edx
jne 0x140038a0d
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.140038b1d
mov rdx, qword [0x140043150]
lea r14, [rax + rax*4]
mov qword [rdx + r14*8 + 0x20], r15
mov dword [rdx + r14*8], 0
add rcx, qword [0x14003c010]
mov qword [rdx + r14*8 + 0x18], rcx
lea rdx, [rsp + 0x20]
mov r8d, 0x30
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140038aed
mov eax, dword [rsp + 0x44]
cmp eax, 7
jle 0x140038a8f
cmp eax, 8
je 0x140038acc
cmp eax, 0x40
je 0x140038acc
cmp eax, 0x80
je 0x140038acc
jmp 0x140038a9f
mov r8d, 4
cmp eax, 2
je 0x140038aa5
cmp eax, 4
je 0x140038acc
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rax, qword [0x140043150]
lea r9, [rax + r14*8]
mov qword [r9 + 8], rcx
mov rdx, qword [rsp + 0x38]
mov qword [r9 + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140038b09
inc dword [0x140043114]
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.1400027aa
nop
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov edx, dword [r15 + 8]
mov rax, qword [0x140043150]
mov r8, qword [rax + r14*8 + 0x18]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.140038b1d
call sub.KERNEL32.dll_GetLastError
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140038b1d
int3
Function at 0x14000a7f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.140014bb0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140014bb0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14000a860
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400e30b4]
mov rbx, rcx
test esi, esi
jle 0x14000a990
mov rax, qword [0x1400e30b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000a8ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000a935
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000a890
mov rcx, rbx
call fcn.14000b2b0
mov rdi, rax
test rax, rax
je 0x14000a9b2
mov rax, qword [0x1400e30b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000b3f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400e30b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000a997
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000a92e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000a940
add dword [0x1400e30b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400e30b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000a92e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000a7f0
nop dword [rax]
xor esi, esi
jmp 0x14000a8b8
mov rax, qword [0x1400e30b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000a7f0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000a7f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000af20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400e3120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e3100]
test rbx, rbx
je 0x14000af7c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000af73
test rsi, rsi
je 0x14000af73
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000af58
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]