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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14003e6b0
sub rsp, rax
mov rax, qword [0x140087048]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400568c4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14005b743
mov rax, rbp
jmp 0x14005b84b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, sym.MZ_k4_uZ_.T_pbek_uV_HSt08E_vG_FV_zk83
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x89b00]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14005c9dc
mov r13, rax
lea rax, sym.MZ_k4_uZ_.T_pbek_uV_HSt08E_vG_FV_zk83
mov rcx, qword [rax + rbx*8 + 0x89b00]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14005b847
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005b847
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14005c9dc
test rax, rax
js 0x14005b847
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14005b847
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14005b839
lea r8, sym.MZ_k4_uZ_.T_pbek_uV_HSt08E_vG_FV_zk83
cmp rcx, rdx
jae 0x14005b839
cmp byte [rcx], 0xd
jne 0x14005b81f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14005b82e
cmp byte [rcx + 1], 0xa
jne 0x14005b82e
inc rcx
jmp 0x14005b82e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x87440]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14005b801
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14005b84b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14003dd50
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14005bb68
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14005bb7e
mov al, 1
jmp 0x14005bbde
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14005bb8f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14005bbdc
mov ecx, dword [rcx + 0x18]
nop
call fcn.14005ea78
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005bbdc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14005bbdc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14005bbdc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14005bbde
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180003800
Capabilities:
Check os version

Disassembly:
mov r11, rsp
sub rsp, 0xd8
mov rax, qword [0x1800ccee8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x24], xmm0
movups xmmword [rsp + 0x34], xmm0
movups xmmword [rsp + 0x44], xmm0
movups xmmword [rsp + 0x54], xmm0
movups xmmword [rsp + 0x64], xmm0
movups xmmword [rsp + 0x74], xmm0
movups xmmword [r11 - 0x54], xmm0
movups xmmword [r11 - 0x44], xmm0
movups xmmword [r11 - 0x34], xmm0
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x180003892
mov eax, dword [rsp + 0x24]
cmp eax, 5
jae 0x180003878
cmp eax, 4
jne 0x180003892
cmp dword [rsp + 0x28], 0x5a
jb 0x180003892
xor al, al
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.180014190
add rsp, 0xd8
ret
mov al, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.180014190
add rsp, 0xd8
ret
Function at 0x180004930
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x10]
mov rdi, rdx
mov rsi, qword [rcx]
test rbx, rbx
je 0x1800049c5
cmp qword [rbx], 0
je 0x1800049aa
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1800049b0
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800049b0
mov rdx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rsi
mov rdx, rdi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rbx + 8], 0
jne 0x1800049c5
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
Function at 0x180007980
Capabilities:
Check os version

Disassembly:
mov r11, rsp
sub rsp, 0xd8
mov rax, qword [0x1800ccee8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x94
movups xmmword [rsp + 0x24], xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x34], xmm0
movups xmmword [rsp + 0x44], xmm0
movups xmmword [rsp + 0x54], xmm0
movups xmmword [rsp + 0x64], xmm0
movups xmmword [rsp + 0x74], xmm0
movups xmmword [r11 - 0x54], xmm0
movups xmmword [r11 - 0x44], xmm0
movups xmmword [r11 - 0x34], xmm0
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x180007a04
cmp dword [rsp + 0x24], 6
jb 0x180007a04
mov al, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.180014190
add rsp, 0xd8
ret
xor al, al
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.180014190
add rsp, 0xd8
ret
Function at 0x18000c430
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x180
mov rax, qword [0x1800ccee8]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r9d, dword [rcx + 8]
lea rax, [rsp + 0x60]
xor ebp, ebp
mov qword [rsp + 0x20], rax
mov rdi, rcx
mov qword [rsp + 0x48], rbp
mov rcx, qword [rcx]
or r9d, 0x2001f
xor r8d, r8d
mov dword [rsp + 0x50], ebp
mov rsi, rdx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test eax, eax
jne 0x18000c577
mov rcx, qword [rsp + 0x48]
mov ebx, ebp
test rcx, rcx
je 0x18000c4ab
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
test ebx, ebx
jne 0x18000c577
lea rax, [rsp + 0x68]
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x18000c551
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.18000c430
mov ebx, eax
test eax, eax
jne 0x18000c577
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x18000c500
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18000c566
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rdx, rsi
mov dword [rsp + 0x50], ebp
mov rcx, rdi
call fcn.180004930
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18000c587
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180014190
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x180
pop rdi
pop rsi
pop rbp
ret
Function at 0x180011040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x20], r9d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
movzx esi, r8b
mov rbx, rdx
mov rbp, rcx
mov rdi, qword [0x1800ce4e0]
mov r8d, 0xf1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x180011286
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180011286
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
test rax, rax
je 0x180011286
movzx r14d, word [rax + 6]
movzx r8d, word [rax + 4]
movzx edx, word [rax + 2]
mov rcx, rbp
call fcn.18000e710
mov rax, qword [rbp + 0x80]
mov r12d, 1
test rax, rax
jne 0x180011168
mov rdi, qword [0x1800ce4e0]
lea r8d, [rax + 2]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov edx, 0x20
cmp word [rax + 0xe], dx
cmove ecx, edx
movzx eax, byte [rbp + 0xf1]
and al, 0xdf
or cl, al
mov byte [rbp + 0xf1], cl
movzx r9d, word [r15 + 6]
test dl, cl
mov eax, 0x21
mov r8d, 0x19
cmovne r8d, eax
mov dword [rsp + 0x20], r12d
mov edx, dword [rbp + 0x100]
mov ecx, dword [rbp + 0xfc]
call qword [sym.imp.COMCTL32.dll_ImageList_Create]
mov qword [rbp + 0x80], rax
test rax, rax
je 0x180011286
mov rcx, rax
call qword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
mov r13d, eax
test sil, sil
je 0x1800111a7
movsx edx, bx
movzx r8d, word [rsp + 0x88]
mov ecx, dword [rsp + 0x98]
mov dword [rsp + 0x20], ecx
mov r9, qword [rsp + 0x90]
mov rcx, qword [0x1800ce4e0]
call qword [sym.imp.COMCTL32.dll_CreateMappedBitmap]
jmp 0x1800111de
mov rdx, rbx
mov rcx, qword [0x1800ce4e0]
test byte [rbp + 0xf1], 0x20
je 0x1800111d8
mov dword [rsp + 0x28], 0x2040
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.USER32.dll_LoadImageA]
jmp 0x1800111de
call qword [sym.imp.USER32.dll_LoadBitmapA]
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180011270
mov r8d, dword [rbp + 0x10c]
mov rdx, rax
mov rcx, qword [rbp + 0x80]
call qword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
cmp eax, 0xffffffff
je 0x180011270
xor esi, esi
test r14, r14
je 0x18001123d
xor edi, edi
cmp word [r15 + rdi*2 + 8], 0
je 0x180011233
mov eax, esi
add rax, 4
lea rdx, [r15 + rax*2]
lea rcx, [rbp + 0x88]
call fcn.180002b00
inc esi
inc rdi
cmp rdi, r14
jl 0x180011214
mov rcx, qword [rbp + 0x80]
call qword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
mov edi, eax
cmp eax, dword [rbp + 0x90]
jne 0x180011270
call fcn.180007980
test al, al
je 0x180011273
sub edi, r13d
mov r8d, edi
mov edx, r13d
mov rcx, rbp
call fcn.180010ca0
jmp 0x180011273
xor r12d, r12d
test rbx, rbx
je 0x180011281
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
mov eax, r12d
jmp 0x180011288
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180011b80
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x20
xor r14d, r14d
mov rbp, rcx
mov ebx, 0xdce618d4
cmp byte [rcx], r14b
je 0x180011c04
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
mov rdi, rcx
nop dword [rax]
lea rcx, [0x1800665d0]
call fcn.1800264d0
movzx edi, word [rdi]
lea rcx, [0x1800665c8]
sub di, ax
call fcn.1800264d0
lea rcx, [0x1800665c0]
lea esi, [rdi + rax]
call fcn.1800264d0
inc r14d
add ax, si
mov ecx, ebx
mov edi, r14d
ror ecx, 8
add rdi, rbp
movzx eax, ax
add ecx, eax
xor ebx, ecx
cmp byte [rdi], 0
jne 0x180011bb0
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x6da27d60
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6da495e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6da27ee8
mov rax, qword [0x6da495e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6da27dac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6da27e35
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6da27d90
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6da27f1d
mov rax, qword [0x6da495e8]
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 [0x6da495e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6da27f00
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6da27e2e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6da27e90
add dword [0x6da495e4], 1
cmp edi, 8
jae 0x6da27e63
test dil, 4
jne 0x6da27ed4
test edi, edi
je 0x6da27e58
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6da27eef
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 0x6da27e58
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 0x6da27e7c
jmp 0x6da27e58
add rsi, qword [0x6da495e8]
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 0x6da27e2e
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 0x6da27e58
xor esi, esi
jmp 0x6da27db7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6da27e58
mov rax, qword [0x6da495e8]
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 0x6da28670
Capabilities:
Get thread local storage value

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

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

Function at 0x6da28920
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 0x6da28961
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 0x6da28958
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6da28963
add rax, 0x28
cmp rax, r9
jne 0x6da28944
xor eax, eax
ret

Function at 0x6da28a00
Capabilities:
Enumerate pe sections

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

Function at 0x6da28b70
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6da461f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6da28b90
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da28b88
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 0x6da28bed
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 0x6da28be4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6da28bf4
add rax, 0x28
cmp rax, r9
jne 0x6da28bd0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6da28c10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6da461f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6da28c7e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da28c7e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6da28c7e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6da28c7e
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 0x6da28c75
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6da28c85
add rcx, 0x28
cmp rcx, rax
jne 0x6da28c60
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6da28c98
jmp 0x6da28c7e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6da28ca6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6da28c7e
test r9d, r9d
jg 0x6da28c90
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6da28fe0
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 0x14004a590
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
nop word [rax + rax]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x14004a5a0
test al, 1
je 0x14004a5bf
test al, 2
jne 0x14004a5d9
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1400b4168]
mov edx, 0x23
call fcn.1400ab010
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1400b4128]
mov edx, 0x25
call fcn.1400ab010
ud2

Function at 0x14004f230
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov qword [rbp + 0x20], rcx
mov rax, qword [rcx]
nop
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x14004f250
test al, 1
je 0x14004f2e1
test al, 2
jne 0x14004f2fb
xor rax, 3
mov qword [rbp], rax
mov rcx, rbp
lea rdx, [rbp + 0x20]
call fcn.14006acd0
test rax, rax
je 0x14004f2aa
mov qword [rbp + 0x10], rax
mov rcx, rax
mov qword [rbp + 0x18], rdx
call qword [rdx]
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax + 8]
test rdx, rdx
mov rcx, qword [rbp + 0x10]
je 0x14004f2aa
mov r8, qword [rax + 0x10]
call fcn.140037a30
mov rcx, qword [rbp + 0x20]
mov qword [rbp + 8], 1
mov rax, 0xffffffffffffffc0
lock xadd qword [rcx], rax
shr rax, 6
cmp rax, qword [rbp + 8]
jb 0x14004f315
jne 0x14004f2d7
mov rcx, qword [rbp + 0x20]
call fcn.14004ebe0
nop
add rsp, 0xb0
pop rbp
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1400b4168]
mov edx, 0x23
call fcn.1400ab010
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1400b4128]
mov edx, 0x25
call fcn.1400ab010
ud2
mov qword [rbp - 8], rax
lea rax, [rbp - 8]
mov qword [rbp - 0x28], rax
lea rax, [fcn.140096c20]
mov qword [rbp - 0x20], rax
lea rcx, [rbp + 8]
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], rax
lea rax, str.current:___sub:
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 2
mov qword [rbp - 0x38], 0
lea rax, [rbp - 0x28]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 2
lea rdx, [0x1400b41b0]
lea rcx, [rbp - 0x58]
call fcn.1400aaf70
ud2
Function at 0x14004f3b0
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov qword [rbp + 0x20], rcx
mov rax, qword [rcx]
nop
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x14004f3d0
test al, 1
je 0x14004f461
test al, 2
jne 0x14004f47b
xor rax, 3
mov qword [rbp], rax
mov rcx, rbp
lea rdx, [rbp + 0x20]
call fcn.14006ae10
test rax, rax
je 0x14004f42a
mov qword [rbp + 0x10], rax
mov rcx, rax
mov qword [rbp + 0x18], rdx
call qword [rdx]
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax + 8]
test rdx, rdx
mov rcx, qword [rbp + 0x10]
je 0x14004f42a
mov r8, qword [rax + 0x10]
call fcn.140037a30
mov rcx, qword [rbp + 0x20]
mov qword [rbp + 8], 1
mov rax, 0xffffffffffffffc0
lock xadd qword [rcx], rax
shr rax, 6
cmp rax, qword [rbp + 8]
jb 0x14004f495
jne 0x14004f457
mov rcx, qword [rbp + 0x20]
call fcn.14004eaf0
nop
add rsp, 0xb0
pop rbp
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1400b4168]
mov edx, 0x23
call fcn.1400ab010
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1400b4128]
mov edx, 0x25
call fcn.1400ab010
ud2
mov qword [rbp - 8], rax
lea rax, [rbp - 8]
mov qword [rbp - 0x28], rax
lea rax, [fcn.140096c20]
mov qword [rbp - 0x20], rax
lea rcx, [rbp + 8]
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], rax
lea rax, str.current:___sub:
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 2
mov qword [rbp - 0x38], 0
lea rax, [rbp - 0x28]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 2
lea rdx, [0x1400b41b0]
lea rcx, [rbp - 0x58]
call fcn.1400aaf70
ud2

Function at 0x14006b050
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.KERNEL32.DLL_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x14006c710
Capabilities:
Connect socket

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rbx, rdx
mov rsi, rcx
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movaps xmmword [rbp - 0x50], xmm1
movaps xmmword [rbp - 0x60], xmm0
lea rdi, [rbp - 0x40]
lea rdx, [rbp - 0x60]
mov rcx, rdi
mov r8d, 1
call fcn.140070750
cmp qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
je 0x14006c773
mov qword [rsi + 8], rcx
mov qword [rsi], 0xffffffffffffffff
jmp 0x14006c837
call fcn.14007bb50
mov rcx, rax
call fcn.14007bb50
mov rcx, rax
call fcn.14007bb50
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 0
movzx eax, word [rbx + 0x12]
cmp word [rbx], 0
mov word [rbp - 0x30], ax
movups xmm0, xmmword [rbx + 2]
movaps xmmword [rbp - 0x40], xmm0
mov eax, dword [rbx + 0x18]
je 0x14006c7c8
movzx ecx, word [rbx + 0x1c]
add rbx, 0x14
mov r14d, 0x1c
mov dx, 0x17
movups xmm0, xmmword [rbp - 0x3e]
mov rdi, rbx
jmp 0x14006c7d9
mov r14d, 0x10
mov dx, 2
xorps xmm0, xmm0
movzx ecx, word [rbp - 0x3c]
rol cx, 8
mov r8d, dword [rdi]
mov word [rbp - 0x60], dx
mov word [rbp - 0x5e], cx
mov dword [rbp - 0x5c], r8d
movups xmmword [rbp - 0x58], xmm0
mov dword [rbp - 0x48], eax
lea rcx, [rbp - 0x20]
call fcn.1400823e0
lea rdx, [rbp - 0x60]
mov rcx, rax
mov r8d, r14d
call qword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14006c830
call sub.KERNEL32.DLL_GetLastError
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rbp - 0x10], rcx
mov ecx, eax
call fcn.140084580
cmp al, 0xd
jne 0x14006c848
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rsi], xmm0
mov rax, rsi
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov rax, qword [rbp - 0x10]
mov qword [rsi + 8], rax
mov qword [rsi], 0xffffffffffffffff
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x10], rax
mov rcx, qword [rbp - 0x18]
call fcn.14006c3a0
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ws2_32.dll_closesocket]
jmp 0x14006c837