joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140135d28
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.140125018
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140135db2
cmp byte [rbp - 0x21], r15b
je 0x140135dad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140135de8
call fcn.14012ef78
test eax, eax
jne 0x140135dd4
cmp byte [rbp - 0x21], r15b
je 0x140135dcc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140135de8
cmp byte [rbp - 0x21], r15b
je 0x140135de5
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.1401258d8
test eax, eax
jne 0x140135e88
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140125018
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140135e27
cmp byte [rbp - 0x21], r15b
je 0x140135e5c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140135e5c
call fcn.14012ef78
test eax, eax
jne 0x140135e48
cmp byte [rbp - 0x21], r15b
je 0x140135e41
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140135e5c
cmp byte [rbp - 0x21], r15b
je 0x140135e59
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.1401258d8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140135e88
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140135e8b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140135e99
mov rcx, rdi
call fcn.14012cae4
cmp byte [rbp + 0x3f], r15b
je 0x140135ea8
mov rcx, qword [rbp + 0x27]
call fcn.14012cae4
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 0x1401375c0
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x1400a43c0], rdi
je 0x14008c2c8
cmp rax, rdi
jne 0x14008c2bb
mov r12d, 1
jmp 0x14008c2c8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14008c2a1
mov eax, dword [0x1400a43b8]
cmp eax, 1
jne 0x14008c2dd
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x14008c344
mov eax, dword [0x1400a43b8]
cmp eax, ebx
jne 0x14008c33a
mov dword [0x1400a43b8], 1
lea r13, [0x140001bd0]
lea rdi, [0x140001bb8]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x14008c32c
cmp eax, ebx
jne 0x14008c32c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x14008c321
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14008c30a
cmp eax, ebx
je 0x14008c344
mov eax, 0xff
jmp 0x14008c48c
mov dword [0x1400a36b4], 1
mov eax, dword [0x1400a43b8]
cmp eax, 1
jne 0x14008c36c
lea rdx, [0x140001bb0]
lea rcx, [0x140001b98]
call sub.msvcrt.dll__initterm
mov dword [0x1400a43b8], 2
cmp r12d, ebx
jne 0x14008c37b
mov rax, rbx
xchg qword [0x1400a43c0], rax
cmp qword [0x1400a43d8], rbx
je 0x14008c3a3
lea rcx, [0x1400a43d8]
call fcn.14008caac
cmp eax, ebx
je 0x14008c3a3
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x1400a43d8]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x14008c3b9
mov eax, 0xff
jmp 0x14008c48c
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x14008c43e
cmp word [rcx], bx
je 0x14008c3d4
cmp edx, ebx
jne 0x14008c43e
cmp word [rcx], bx
je 0x14008c3ea
cmp word [rcx], 0x20
ja 0x14008c3ea
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14008c3d4
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140030f14
mov dword [0x1400a36b0], eax
cmp dword [0x1400a3694], ebx
jne 0x14008c428
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400a36b4], ebx
jne 0x14008c43c
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400a36b0]
jmp 0x14008c48c
cmp word [rcx], 0x22
jne 0x14008c451
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14008c3c5
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.1401c5000
add rsp, 0x28
jmp 0x14008c268
Function at 0x1408ba7e0
Capabilities:
Terminate process

Disassembly:
push rcx
invalid
cld
pop r11
jmp 0x1408ba7ed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1408ba7fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1408ba7e5
lea eax, [rcx + 1]
jmp 0x1408ba80b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1408ba81e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1408ba804
sub eax, 3
jb 0x1408ba83e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1408ba88d
sar eax, 1
movsxd rbp, eax
jb 0x1408ba874
jmp 0x1408ba84c
add ebx, ebx
jne 0x1408ba84a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1408ba874
inc ecx
add ebx, ebx
jne 0x1408ba85a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1408ba874
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1408ba86d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1408ba85c
add ecx, 2
jmp 0x1408ba879
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1408ba7a2
jmp 0x1408ba7ed
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x8b7000]
mov eax, dword [rdi]
or eax, eax
je 0x1408ba8f9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x8ba1e4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1408ba89d
jns 0x1408ba8d2
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1408ba8dc
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1408ba8f3
mov qword [rbx], rax
add rbx, 8
jmp 0x1408ba8bd
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1408ba93d
cmp al, 0xef
ja 0x1408ba925
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1408ba905
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1408ba914
mov eax, dword [rdi]
add rdi, 4
jmp 0x1408ba914
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x24f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1408ba991
sub rsp, 0xffffffffffffff80
jmp 0x140894378
Function at 0x6da1e8f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6da3f5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6da1ea78
mov rax, qword [0x6da3f5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6da1e93c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6da1e9c5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6da1e920
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6da1eaad
mov rax, qword [0x6da3f5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6da3f5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6da1ea90
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6da1e9be
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6da1ea20
add dword [0x6da3f5e4], 1
cmp edi, 8
jae 0x6da1e9f3
test dil, 4
jne 0x6da1ea64
test edi, edi
je 0x6da1e9e8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6da1ea7f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6da1e9e8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6da1ea0c
jmp 0x6da1e9e8
add rsi, qword [0x6da3f5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6da1e9be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6da1e9e8
xor esi, esi
jmp 0x6da1e947
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6da1e9e8
mov rax, qword [0x6da3f5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6da1f200
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6da3f8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6da3f8a0]
test rbx, rbx
je 0x6da1f254
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 0x6da1f24b
test rsi, rsi
je 0x6da1f24b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6da1f230
lea rcx, [0x6da3f8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6da1f490
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6da1f4a0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6da1f4b0
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 0x6da1f4f1
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 0x6da1f4e8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6da1f4f3
add rax, 0x28
cmp rax, r9
jne 0x6da1f4d4
xor eax, eax
ret

Function at 0x6da1f590
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6da3c1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6da1f5fd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da1f5fd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6da1f5fd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6da1f5f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6da1f5ff
add rax, 0x28
cmp rax, r9
jne 0x6da1f5e0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6da1f700
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6da3c1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6da1f720
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da1f718
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6da1f77d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6da1f774
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6da1f784
add rax, 0x28
cmp rax, r9
jne 0x6da1f760
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6da1f7a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6da3c1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6da1f80e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da1f80e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6da1f80e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6da1f80e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6da1f805
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6da1f815
add rcx, 0x28
cmp rcx, rax
jne 0x6da1f7f0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6da1f828
jmp 0x6da1f80e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6da1f836
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6da1f80e
test r9d, r9d
jg 0x6da1f820
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6da1fb70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x2eff460
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x2eff46d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x2eff47d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x2eff465
lea eax, [rcx + 1]
jmp 0x2eff48b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x2eff49e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x2eff484
sub eax, 3
jb 0x2eff4be
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x2eff50d
sar eax, 1
movsxd rbp, eax
jb 0x2eff4f4
jmp 0x2eff4cc
add ebx, ebx
jne 0x2eff4ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x2eff4f4
inc ecx
add ebx, ebx
jne 0x2eff4da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x2eff4f4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x2eff4ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x2eff4dc
add ecx, 2
jmp 0x2eff4f9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.02eff422
jmp 0x2eff46d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x30e400
mov dl, 0x35
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x2eff559
cmp rsi, rcx
jae 0x2eff561
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x2eff540
cmp al, 0x8f
ja 0x2eff540
cmp byte [rsi - 2], 0xf
je 0x2eff546
sub al, 0xe8
cmp al, 1
ja 0x2eff52a
cmp rsi, rcx
jae 0x2eff561
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x2eff530
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x2eff561
lodsb al, byte [rsi]
jmp 0x2eff540
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2ae8000]
mov eax, dword [rdi]
or eax, eax
je 0x2eff5be
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2b0c6c8]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x2eff56e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x2eff5b8
mov qword [rbx], rax
add rbx, 8
jmp 0x2eff58e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x2eff5f8
cmp al, 0xef
ja 0x2eff5ea
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x2eff5ca
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x2eff5d9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x2eff64c
sub rsp, 0xffffffffffffff80
jmp 0x6ff720
Function at 0x1c44b13a0
Capabilities:
Execute command
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
cmp dword [rbp + 0x18], 1
jne 0x1c44b13eb
lea rcx, str.reg_save_hklm_system_C:_system
call sym.system
lea rcx, str.reg_save_hklm_sam_C:_sam
call sym.system
lea rcx, str.reg_save_hklm_security__C:_security
call sym.system
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1c44b15a0
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x1c44b1610
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1c44b7054]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x1c44b17c0
mov rax, qword [0x1c44b7058]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1c44b165c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1c44b16e7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x1c44b1640
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x1c44b181d
mov rax, qword [0x1c44b7058]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1c44b7058]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1c44b1802
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1c44b16e0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1c44b1770
add dword [0x1c44b7054], 1
cmp ebx, 8
jae 0x1c44b1718
test bl, 4
jne 0x1c44b17d0
test ebx, ebx
je 0x1c44b1709
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1c44b17f0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x1c44b1709
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x1c44b174a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
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 rdi, qword [0x1c44b7058]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1c44b16e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x1c44b1667
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1c44b1709
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1c44b1709
mov rax, qword [0x1c44b7058]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x1c44b1b20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1c44b7080]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1c44b7060]
test rbx, rbx
je 0x1c44b1b74
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 0x1c44b1b6b
test r12, r12
je 0x1c44b1b6b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1c44b1b50
lea rcx, [0x1c44b7080]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1c44b1da0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x1c44b1db0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x1c44b1dc0
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 0x1c44b1e05
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x1c44b1dfc
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1c44b1e07
add rax, 0x28
cmp rax, r9
jne 0x1c44b1de8
xor eax, eax
ret

Function at 0x1c44b1eb0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1c44b4220]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1c44b1f29
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1c44b1f29
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1c44b1f26
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1c44b1f1d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1c44b1f29
add r8, 0x28
cmp r8, r9
jne 0x1c44b1f08
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x1c44b2010
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1c44b4220]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1c44b207f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1c44b207f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x1c44b207d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1c44b2074
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1c44b2088
add rax, 0x28
cmp rax, r9
jne 0x1c44b2060
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret