joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d886a90
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8a75e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d886c18
mov rax, qword [0x6d8a75e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d886adc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d886b65
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d886ac0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d886c4d
mov rax, qword [0x6d8a75e8]
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 [0x6d8a75e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d886c30
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d886b5e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d886bc0
add dword [0x6d8a75e4], 1
cmp edi, 8
jae 0x6d886b93
test dil, 4
jne 0x6d886c04
test edi, edi
je 0x6d886b88
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d886c1f
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 0x6d886b88
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 0x6d886bac
jmp 0x6d886b88
add rsi, qword [0x6d8a75e8]
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 0x6d886b5e
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 0x6d886b88
xor esi, esi
jmp 0x6d886ae7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d886b88
mov rax, qword [0x6d8a75e8]
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 0x6d8873a0
Capabilities:
Get thread local storage value

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

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

Function at 0x6d887650
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 0x6d887691
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 0x6d887688
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d887693
add rax, 0x28
cmp rax, r9
jne 0x6d887674
xor eax, eax
ret

Function at 0x6d887730
Capabilities:
Enumerate pe sections

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

Function at 0x6d8878a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8a41f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8878c0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8878b8
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 0x6d88791d
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 0x6d887914
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d887924
add rax, 0x28
cmp rax, r9
jne 0x6d887900
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d887940
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8a41f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8879ae
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8879ae
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8879ae
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8879ae
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 0x6d8879a5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8879b5
add rcx, 0x28
cmp rcx, rax
jne 0x6d887990
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8879c8
jmp 0x6d8879ae
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8879d6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8879ae
test r9d, r9d
jg 0x6d8879c0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d887d40
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 0x14000af80
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002cd28]
test rcx, rcx
je 0x14000afbb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000afae
mov rcx, qword [0x14002cd28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002cd28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140030d78], 0
je 0x14000b0ae
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140025950]
mov qword [rsp + 0x80], rsi
lea rsi, [0x14002cd50]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b08f
test al, 0x10
je 0x14000b08f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b035
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x140011357
Capabilities:
Terminate process

Disassembly:
jmp 0x1400171c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001142e
Capabilities:
Enumerate threads

Disassembly:
jmp 0x140015700
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x140023018]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x14002a0fc]
call fcn.1400115b9
mov dword [rbp + 8], 0x1c
xor edx, edx
mov ecx, 4
call fcn.1400112c1
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xffffffffffffffff
jne 0x14001576f
xor eax, eax
jmp 0x1400157c5
lea rdx, [rbp + 8]
mov rcx, qword [rbp + 0x48]
call fcn.1400113c0
test eax, eax
jne 0x14001578e
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400157c5
mov eax, dword [rbp + 0x148]
cmp dword [rbp + 0x14], eax
jne 0x1400157a8
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x10]
jmp 0x1400157c5
lea rdx, [rbp + 8]
mov rcx, qword [rbp + 0x48]
call fcn.1400110b9
test eax, eax
jne 0x14001578e
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ec80]
call fcn.140011500
mov rax, rdi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.1400112e4
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x14001143d
Capabilities:
Parse pe header

Disassembly:
jmp 0x140018510
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140018530
xor al, al
jmp 0x1400185b1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140018543
xor al, al
jmp 0x1400185b1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001856d
xor al, al
jmp 0x1400185b1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140018581
xor al, al
jmp 0x1400185b1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140018593
xor al, al
jmp 0x1400185b1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400185af
xor al, al
jmp 0x1400185b1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400114a6
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140014c00
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x258
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x5e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x278]
mov rax, qword [0x140023018]
xor rax, rbp
mov qword [rbp + 0x228], rax
lea rcx, [0x14002a0fc]
call fcn.1400115b9
mov dword [rbp + 0x10], 0x130
xor edx, edx
mov ecx, 2
call fcn.1400112c1
mov qword [rbp + 0x158], rax
cmp qword [rbp + 0x158], 0xffffffffffffffff
jne 0x140014c7e
xor eax, eax
jmp 0x140014d03
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x158]
call fcn.1400114f1
test eax, eax
jne 0x140014ca3
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140014d03
mov rdx, qword [rbp + 0x258]
lea rcx, [rbp + 0x3c]
call qword [sym.imp.ucrtbased.dll__stricmp]
test eax, eax
jne 0x140014ce0
mov r8d, 0x130
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x260]
call fcn.1400112e9
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x18]
jmp 0x140014d03
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x158]
call fcn.1400115c3
test eax, eax
jne 0x140014ca3
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ec00]
call fcn.140011500
mov rax, rdi
mov rcx, qword [rbp + 0x228]
xor rcx, rbp
call fcn.1400112e4
lea rsp, [rbp + 0x238]
pop rdi
pop rbp
ret

Function at 0x140011555
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x140014ec0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x448
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xaa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x468]
mov rax, qword [0x140023018]
xor rax, rbp
mov qword [rbp + 0x418], rax
lea rcx, [0x14002a0fc]
call fcn.1400115b9
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
mov edx, dword [rbp + 0x450]
mov ecx, 8
call fcn.1400112c1
mov qword [rbp + 0x268], rax
cmp qword [rbp + 0x268], 0
jne 0x140014f48
xor eax, eax
jmp 0x140014fbb
mov dword [rbp + 0x10], 0x238
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x268]
call fcn.140011087
mov dword [rbp + 0x284], eax
cmp dword [rbp + 0x284], 0
je 0x140014fac
mov rdx, qword [rbp + 0x448]
lea rcx, [rbp + 0x40]
call fcn.140011645
test eax, eax
jne 0x140014f94
mov rcx, qword [rbp + 0x268]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x28]
jmp 0x140014fbb
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x268]
call fcn.1400111c2
mov dword [rbp + 0x284], eax
jmp 0x140014f65
mov rcx, qword [rbp + 0x268]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ed00]
call fcn.140011500
mov rax, rdi
mov rcx, qword [rbp + 0x418]
xor rcx, rbp
call fcn.1400112e4
lea rsp, [rbp + 0x428]
pop rdi
pop rbp
ret
Function at 0x140001214
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x4c], 0
jmp 0x14000121c
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x50]
mov dl, al
mov r8b, byte [rsp + 0xf]
add r8b, 0x86
mov byte [rsp + 0x7f], r8b
mov r9, qword [rsp + 0x70]
sub r9, qword [rsp + 0x70]
mov qword [rsp + 0x70], r9
mov r9, qword [rsp + 0x60]
add r9, 0xffffffffd9bf8484
mov r10, qword [rsp + 0x10]
mov byte [r10 + rcx], dl
mov r11, qword [rsp + 0x70]
xor r11, 0x9319c93
add rcx, r9
mov qword [rsp + 0x70], r11
add eax, 1
mov qword [rsp + 0x50], rcx
mov si, word [rsp + 0xc]
or si, 0x6a40
mov word [rsp + 0x6e], si
mov dword [rsp + 0x38], eax
cmp rcx, 0x100
je 0x14000118e
jmp 0x1400011a1
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x60]
add rcx, 0x36cfc65a
mov dx, word [rsp + 0xc]
mov word [rsp + 0x6e], dx
mov r8b, byte [rsp + 0x7e]
add r8b, 5
mov r9, qword [rsp + 0x70]
xor r9, 0x3368d3c6
mov qword [rsp + 0x70], r9
mov r10b, byte [rsp + 0x7e]
add r10b, 0xa
mov dword [rsp + 0x28], eax
mov r9, qword [rsp + 0x40]
mov qword [rsp + 0x58], r9
mov byte [rsp + 0x2f], r10b
mov r9, qword [rsp + 0x10]
add r9, qword [rsp + 0x58]
mov r10b, byte [rsp + 0x2f]
mov qword [rsp + 0x30], r9
mov r9, qword [rsp + 0x30]
mov r11b, byte [r9]
mov byte [rsp + 0x3f], r11b
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x68], eax
mov r9, qword [rsp + 0x70]
or r9, qword [rsp + 0x70]
mov qword [rsp + 0x70], r9
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x4c], 0x30461c6d
cmp r8b, r10b
jae 0x14000121c
mov eax, 0x100
mov cl, byte [rsp + 0x3f]
mov qword [rsp + 0x70], 0x5155d8a4
mov edx, dword [rsp + 0x68]
and edx, dword [rsp + 0x68]
movzx r8d, cl
mov r9d, dword [rsp + 0x28]
mov dword [rsp + 0x68], edx
add r9d, r8d
mov byte [rsp + 0x7f], 0xae
mov edx, dword [rsp + 0x68]
or edx, dword [rsp + 0x68]
mov r10, qword [rsp + 0x58]
mov r8d, r10d
mov dword [rsp + 8], eax
mov eax, r8d
xor r8d, r8d
mov dword [rsp + 4], edx
mov edx, r8d
mov r8d, dword [rsp + 0x1c]
div r8d
mov r11d, dword [rsp + 4]
mov dword [rsp + 0x68], r11d
mov edx, edx
mov r10d, edx
mov byte [rsp + 0x7f], 0x20
mov rsi, qword [rsp + 0x20]
movzx edx, byte [rsi + r10]
add r9d, edx
mov cl, byte [rsp + 0xf]
and cl, cl
mov byte [rsp + 0x7f], cl
mov eax, r9d
cdq
mov r9d, dword [rsp + 8]
idiv r9d
movsxd r10, edx
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x10]
mov cl, byte [rbx + r10]
mov byte [rdi], cl
mov r11d, dword [rsp + 0x68]
xor r11d, 0x3e054c21
mov dword [rsp + 0x68], r11d
mov cl, byte [rsp + 0x3f]
mov byte [rbx + r10], cl
mov r10, qword [rsp + 0x58]
add r10, 1
mov qword [rsp + 0x40], r10
imul rdi, qword [rsp + 0x70], 0x7f5b351a
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x4c], edx
cmp r10, 0x100
jne 0x14000121c
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret

Function at 0x14004e820
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x30
lea rax, [fcn.14004e820]
mov qword [rsp + 0x28], 0x4f1db680
mov qword [rsp + 8], rax
jmp 0x14004e89f

Function at 0x14004ec8c
Capabilities:
Encode data using xor

Disassembly:
add byte [rax], al
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x1400021dc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140004650], rbx
je 0x140002228
cmp rax, rbx
jne 0x14000221b
mov ebx, 1
mov esi, ebx
jmp 0x14000222d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002200
mov ebx, 1
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x140002243
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400022a8
mov eax, dword [0x140004658]
test eax, eax
jne 0x1400022a2
mov dword [0x140004658], ebx
lea r15, [0x1400033b0]
lea rdi, [0x140003398]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140002294
test eax, eax
jne 0x140002298
cmp qword [rdi], 0
je 0x140002289
mov rax, qword [rdi]
mov rcx, qword [0x140003378]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000226a
test eax, eax
je 0x1400022a8
mov eax, 0xff
jmp 0x140002384
mov dword [0x140004064], ebx
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x1400022cf
lea rdx, [0x140003390]
lea rcx, [0x140003380]
call sub.msvcrt.dll__initterm
mov dword [0x140004658], 2
test esi, esi
jne 0x1400022dc
xor eax, eax
xchg qword [0x140004650], rax
cmp qword [0x140004660], 0
je 0x140002310
lea rcx, [0x140004660]
call fcn.140002540
test eax, eax
je 0x140002310
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140004660]
mov r9, qword [0x140003378]
call r9
mov r8, qword [0x140004078]
mov rdx, qword [0x140004070]
mov ecx, dword [0x140004068]
call fcn.140001800
mov dword [0x140004060], eax
cmp dword [0x140004080], 0
jne 0x140002340
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140004064], 0
jne 0x140002355
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140004060]
jmp 0x140002384
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140118000
add rsp, 0x28
jmp 0x1400021dc

Function at 0x140002450
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000249c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002494
cmp dword [rcx + 0x3c], edx
jl 0x140002494
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002494
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000249c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001001
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14007b3e0]
mov rcx, qword [0x14007b380]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x14007b3f0]
cmp word [rcx], 0x5a4d
mov dword [rax], 1
mov rax, qword [0x14007b400]
mov dword [rax], 1
jne 0x140001083
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001083
mov ecx, dword [rax + 0x18]
cmp cx, 0x10b
je 0x14000105e
cmp cx, 0x20b
je 0x14000106d
jmp 0x140001083
cmp dword [rax + 0x74], 0xe
jbe 0x140001083
cmp dword [rax + 0xe8], 0
jmp 0x14000107d
cmp dword [rax + 0x84], 0xe
jbe 0x140001083
cmp dword [rax + 0xf8], 0
setne dl
movzx edx, dl
mov rax, qword [0x14007b3d0]
mov dword [0x1400a1020], edx
mov ecx, 2
cmp dword [rax], 0
jne 0x14000109f
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14007b4c0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14007b4a0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14007a8a0]
cmp dword [rax], 1
jne 0x1400010e1
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001400
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push rbp
sub rsp, 0x5d0
lea rbp, [rsp + 0x80]
call sym.__main
lea rax, [rbp + 0x3a0]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WSOCK32.dll_WSAStartup]
call rax
mov dword [rbp + 0x548], eax
mov dword [rbp + 0x54c], 0
jmp 0x140001453
mov eax, dword [rbp + 0x54c]
cdqe
mov byte [rbp + rax - 0x60], 0
add dword [rbp + 0x54c], 1
cmp dword [rbp + 0x54c], 0x3ff
jle 0x14000143f
lea rax, [rbp - 0x60]
mov edx, 0x400
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_gethostname]
call rax
lea rax, [rbp - 0x60]
mov rdx, rax
mov rax, qword [0x14007aea0]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_gethostbyname]
call rax
mov qword [rbp + 0x540], rax
mov eax, 0
add rsp, 0x5d0
pop rbp
ret