joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4916b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], r8
mov qword [rbp - 0x18], r9
lea rax, [rbp - 0x28]
mov qword [rbp - 0x58], rax
mov ecx, 2
call fcn.004996e0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 0x58]
mov ecx, 2
call fcn.004996e0
mov r8, rbx
mov rdx, qword [rbp - 0x30]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x4922b6
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x004bb6c8]
test eax, eax
je 0x492344
lea rcx, [0x004bb6a0]
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x004bb6d0]
mov qword [rbp - 8], rax
jmp 0x49232b
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x49231f
cmp qword [rbp - 0x10], 0
je 0x49231f
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x4922e5
lea rcx, [0x004bb6a0]
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x492345
nop
add rsp, 0x30
pop rbp
ret

Function at 0x492450
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x492478
mov eax, 0
jmp 0x4924c6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x4924a1
mov eax, 0
jmp 0x4924c6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x4924c1
mov eax, 0
jmp 0x4924c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x4924cc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x49254a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x492541
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x492541
mov rax, qword [rbp - 8]
jmp 0x49255f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x492514
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14005b680
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x14033b620]
xor rax, rsp
mov qword [rsp + 0x180], rax
xor edi, edi
mov rsi, rdx
mov qword [rsp + 0x40], rdi
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x40]
lea edx, [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14005b7e6
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
lea r9d, [rdi + 4]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x4c]
mov dword [rsp + 0x48], 4
lea edx, [rdi + 0x14]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14005b7e6
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 3]
mov dword [rsp + 0x28], edi
lea rcx, str..injdrv
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
xor edx, edx
lea rcx, [rsp + 0x54]
mov r8d, Ordinal_301
mov qword [rbp + 8], rax
call fcn.140226af0
xor edx, edx
mov dword [rsp + 0x50], 0x130
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005b7c2
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x14005b7b9
lea r8, [rsp + 0x7c]
mov rax, rsi
sub r8, rsi
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14005b7a3
inc rax
test ecx, ecx
jne 0x14005b790
mov rcx, rbx
test edx, edx
je 0x14005b7cf
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x14005b781
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 8], 0xffffffffffffffff
mov dword [rbp + 0x10], edi
setne al
jmp 0x14005b7e8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 8], 0xffffffffffffffff
mov edi, dword [rsp + 0x58]
setne al
mov dword [rbp + 0x10], edi
jmp 0x14005b7e8
xor al, al
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140224090
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14005c400
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov r15, r8
mov r12, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
lea r13, [r9 + 0x10]
xor r10d, r10d
nop word [rax + rax]
mov ebp, dword [r13 - 4]
movzx ecx, word [r15 + 0x14]
add rcx, 0x18
add rcx, r15
mov r8d, r10d
movzx r9d, word [r15 + 6]
test r9d, r9d
je 0x14005c477
nop dword [rax]
mov eax, dword [rcx + 8]
test rax, rax
jne 0x14005c45b
mov eax, dword [rcx + 0x10]
mov edx, dword [rcx + 0xc]
cmp rbp, rdx
jb 0x14005c46b
add rax, rdx
cmp rbp, rax
jb 0x14005c488
inc r8d
add rcx, 0x28
cmp r8d, r9d
jl 0x14005c450
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
sub edx, dword [rcx + 0x14]
mov eax, edx
sub rbp, rax
add rbp, r12
je 0x14005c477
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14d, dword [r13]
movzx ecx, word [r15 + 0x14]
add rcx, 0x18
add rcx, r15
xor r10d, r10d
mov r8d, r10d
movzx r9d, word [r15 + 6]
test r9d, r9d
je 0x14005c4eb
nop
mov eax, dword [rcx + 8]
test rax, rax
jne 0x14005c4cb
mov eax, dword [rcx + 0x10]
mov edx, dword [rcx + 0xc]
cmp r14, rdx
jb 0x14005c4df
add rax, rdx
cmp r14, rax
jb 0x14005c630
inc r8d
add rcx, 0x28
cmp r8d, r9d
jl 0x14005c4c0
mov r14, r10
mov rdi, qword [r14]
test rdi, rdi
je 0x14005c627
nop word [rax + rax]
movzx eax, word [r15 + 0x14]
add rax, 0x18
add rax, r15
mov r8d, r10d
movzx r9d, word [r15 + 6]
test r9d, r9d
je 0x14005c54b
nop dword [rax]
mov ecx, dword [rax + 8]
test rcx, rcx
jne 0x14005c52b
mov ecx, dword [rax + 0x10]
mov edx, dword [rax + 0xc]
cmp rdi, rdx
jb 0x14005c53f
add rcx, rdx
cmp rdi, rcx
jb 0x14005c640
inc r8d
add rax, 0x28
cmp r8d, r9d
jl 0x14005c520
mov rdi, r10
mov rbx, qword [rbx]
mov rax, qword [rbx]
mov rsi, qword [rax + 0x18]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r10
mov qword [rsp + 0x38], r10
mov r8, 0xffffffffffffffff
inc r8
cmp byte [r8 + rbp], 0
jne 0x14005c571
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.14005cf80
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call rsi
mov rsi, rax
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x14005c5d3
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c5ce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005c650
call fcn.1402240ec
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x20], 0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
lea rdx, [rdi + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
sub rsi, rbx
add rax, rsi
mov qword [r14], rax
add r14, 8
mov rdi, qword [r14]
test rdi, rdi
mov rbx, qword [rsp + 0x40]
mov r10d, 0
jne 0x14005c500
add r13, 0x14
jmp 0x14005c430
sub edx, dword [rcx + 0x14]
mov eax, edx
sub r14, rax
add r14, r12
jmp 0x14005c4ee
sub edx, dword [rax + 0x14]
mov eax, edx
sub rdi, rax
add rdi, r12
jmp 0x14005c54e
call fcn.140233764
int3
Function at 0x14006d420
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
cmp byte [rdx + 0x50], 0
je 0x14006d443
xor eax, eax
nop dword [rax]
lea ecx, [rax - 0x1c]
xor byte [rax + rdx], cl
inc rax
cmp rax, 0x4f
jb 0x14006d430
mov byte [rdx + 0x50], 0
call fcn.140070dd0
lea rax, [0x140343b50]
add rsp, 0x28
ret

Function at 0x14006d460
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
cmp byte [rdx + 0x26], 0
je 0x14006d483
xor eax, eax
nop dword [rax]
lea ecx, [rax - 0x1c]
xor byte [rax + rdx], cl
inc rax
cmp rax, 0x25
jb 0x14006d470
mov byte [rdx + 0x26], 0
call fcn.140070dd0
lea rax, [0x140343b50]
add rsp, 0x28
ret

Function at 0x14006d4a0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
cmp byte [rdx + 0x5d], 0
je 0x14006d4c3
xor eax, eax
nop dword [rax]
lea ecx, [rax - 0x1c]
xor byte [rax + rdx], cl
inc rax
cmp rax, 0x5c
jb 0x14006d4b0
mov byte [rdx + 0x5d], 0
call fcn.140070dd0
lea rax, [0x140343b50]
add rsp, 0x28
ret

Function at 0x14006d4e0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
cmp byte [rdx + 0x2e], 0
je 0x14006d503
xor eax, eax
nop dword [rax]
lea ecx, [rax - 0x1c]
xor byte [rax + rdx], cl
inc rax
cmp rax, 0x2d
jb 0x14006d4f0
mov byte [rdx + 0x2e], 0
call fcn.140070dd0
lea rax, [0x140343b50]
add rsp, 0x28
ret

Function at 0x14006d520
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
cmp byte [rdx + 0x19], 0
je 0x14006d543
xor eax, eax
nop dword [rax]
lea ecx, [rax - 0x1c]
xor byte [rax + rdx], cl
inc rax
cmp rax, 0x18
jb 0x14006d530
mov byte [rdx + 0x19], 0
call fcn.140070dd0
lea rax, [0x140343b50]
add rsp, 0x28
ret
Function at 0x140081cd0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x14033b620]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rdi, rcx
mov qword [rsp + 0x68], rcx
xor r14d, r14d
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp - 0x50]
call fcn.140226af0
lea rdx, [rbp - 0x50]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x104
ja 0x140081d73
lea rcx, [rbp - 0x50]
mov rax, 0xffffffffffffffff
nop dword [rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], r14w
jne 0x140081d40
cmp word [rbp + rax*2 - 0x52], 0x5c
jne 0x140081d6d
lea rax, [rax*2 - 2]
cmp rax, 0x20a
jae 0x140081f57
mov word [rbp + rax - 0x50], r14w
lea rdx, [rbp - 0x50]
jmp 0x140081d7a
lea rdx, [0x14031086c]
lea rcx, [rbp - 0x70]
call fcn.1400852f0
nop
mov rbx, qword [rbp - 0x60]
test rbx, rbx
jne 0x140081de5
lea rdx, [0x14031086c]
mov rcx, rdi
call fcn.1400852f0
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140081f21
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140081f1c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140081f51
jmp 0x140081f1c
lea rcx, [rsp + 0x48]
call fcn.140081ab0
mov rsi, rax
movabs rcx, 0x7ffffffffffffffe
sub rcx, rbx
cmp rcx, 1
jb 0x140081f5d
lea r9, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae r9, qword [rbp - 0x70]
mov qword [rsp + 0x30], 1
lea rax, [0x140310868]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x70]
call fcn.140086e70
nop
mov r9, rsi
lea r8, [rsp + 0x70]
mov rcx, rdi
call fcn.140086c50
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140081e8f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140081e89
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140081f63
call fcn.1402240ec
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140081ed1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140081ecc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140081f69
call fcn.1402240ec
movdqa xmm0, xmmword [0x140310c00]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r14w
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140081f21
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140081f1c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140081f4b
call fcn.1402240ec
mov rax, rdi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140224090
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140233764
int3
call fcn.140233764
int3
call fcn.1402245b0
nop
call fcn.14005b5c0
nop
call fcn.140233764
nop
call fcn.140233764
int3
Function at 0x1400839b0
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
push r12
push r13
mov eax, 0x1070
call fcn.140224c70
sub rsp, rax
mov rax, qword [0x14033b620]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rdx, qword [rsp + 0x10b0]
xor ebp, ebp
mov qword [rsp + 0x38], r9
mov r12, r8
mov qword [rsp + 0x30], rdx
mov r13, rcx
test r8, r8
jne 0x1400839fc
mov rdx, rbp
jmp 0x140083b10
mov r9d, 0x1000
lea rdx, [rsp + 0x40]
call fcn.140082610
test al, al
je 0x1400839f4
mov qword [rsp + 0x1068], rsi
lea rdx, str.PAGE
mov qword [rsp + 0x1060], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x1058], r14
mov qword [rsp + 0x1050], r15
nop
inc rdi
cmp byte [rdx + rdi], bpl
jne 0x140083a40
movsxd rax, dword [rsp + 0x7c]
lea rcx, [rsp + 0x40]
add rcx, rax
mov qword [rsp + 0x1098], rbx
mov esi, ebp
movzx eax, word [rcx + 0x14]
lea r15, [rcx + 0x18]
movzx r14d, word [rcx + 6]
add r15, rax
test r14d, r14d
je 0x140083ae5
nop word [rax + rax]
mov eax, esi
mov r8, rdi
lea rcx, [rax + rax*4]
lea rbx, [r15 + rcx*8]
mov rcx, rbx
call fcn.140227570
test eax, eax
jne 0x140083aae
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], bpl
jne 0x140083aa0
cmp rdi, rax
je 0x140083abe
inc esi
cmp esi, r14d
jae 0x140083ae5
lea rdx, str.PAGE
jmp 0x140083a80
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x140083ae5
mov ecx, dword [rbx + 8]
lea rdx, [rsp + 0x40]
add rdx, rax
je 0x140083ae5
test ecx, ecx
je 0x140083ae5
lea rax, [rsp + 0x40]
mov ebp, ecx
sub rdx, rax
add rdx, r12
jmp 0x140083ae8
mov rdx, rbp
mov rbx, qword [rsp + 0x1098]
mov rdi, qword [rsp + 0x1060]
mov rsi, qword [rsp + 0x1068]
mov r14, qword [rsp + 0x1058]
mov r15, qword [rsp + 0x1050]
mov rax, qword [rsp + 0x30]
mov rcx, r13
mov r9, qword [rsp + 0x38]
mov r8d, ebp
mov qword [rsp + 0x20], rax
call fcn.1400838a0
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140224090
add rsp, 0x1070
pop r13
pop r12
pop rbp
ret
Function at 0x140084580
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1400845a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14008461c
mov rdi, r14
mov rcx, rbx
call fcn.14006fed0
test rax, rax
jle 0x1400845f4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140226450
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14008460c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x140084614
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400845b6
sub r14, rdi
jmp 0x1400846ff
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140084633
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140084635
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140084667
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140226450
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400846fc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400846a2
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x1400846dd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14023fd28
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400846fc
cmp rbp, rax
ja 0x1400846b0
test rbp, rbp
je 0x1400846fc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14023fd28
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x140087a70
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14033b620]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140087b82
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x140087b82
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], r8
mov ecx, dword [rax + rdx + 0xb0]
test ecx, ecx
jne 0x140087ae9
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x140087b8d
lea rbx, [rdx + rcx]
mov ebp, dword [rax + rdx + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x50]
cmp rbx, rbp
jae 0x140087b70
mov edx, dword [rbx + 4]
test edx, edx
je 0x140087b70
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [rdx - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, r8
je 0x140087b49
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x50], rcx
jmp 0x140087b65
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.1400882d0
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x140087b01
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x140087b8d
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140224090
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140089240
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
mov rax, qword [0x14033b620]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edx, edx
lea r9, [rsp + 0x20]
mov rsi, rcx
xor r14d, r14d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov ebx, r14d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400892ce
test rbx, rbx
je 0x140089296
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, ntohl
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140089280
test eax, eax
jns 0x1400892ef
test rbx, rbx
je 0x1400892f4
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x1400893f1
test rbx, rbx
jne 0x1400892fb
xor eax, eax
jmp 0x1400893f1
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rdi
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x1400893d1
mov eax, edi
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x28], xmm0
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rdx, 0x30
mov qword [rsp + 0x38], r14
add rdx, rcx
mov qword [rsp + 0x40], r14
add rdx, rbx
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], r14b
jne 0x140089350
lea rcx, [rsp + 0x28]
call fcn.14005cf80
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
jb 0x140089370
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0x10
lea rcx, [rsp + 0x28]
cmovae rcx, qword [rsp + 0x28]
call fcn.1402338b4
test eax, eax
je 0x140089407
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x1400893c7
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400893c2
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008945a
call fcn.1402240ec
inc edi
cmp edi, dword [rbx]
jb 0x140089314
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140224090
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140089455
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140089450
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008945a
call fcn.1402240ec
mov rax, rdi
jmp 0x1400893e4
call fcn.140233764
int3
Function at 0x1400b0700
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov rax, qword [0x14033b620]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r13, qword [rcx]
mov ebp, r8d
mov rsi, rcx
lea r8, [rsp + 0x20]
mov ebx, 2
xor r14d, r14d
mov ecx, ebx
mov r15, r9
mov r12, qword [r13 + 0x11b0]
mov rdi, rdx
mov dword [r9], r14d
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1400b076c
mov r9d, ebp
lea rdx, [rsp + 0x20]
mov r8, rdi
mov ecx, ebx
call fcn.1400cfd90
jmp 0x1400b084a
mov ebx, reloc.WS2_32.dll_socket
lea r8, [rsp + 0x58]
mov ecx, ebx
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1400b079c
mov r9d, ebp
lea rdx, [rsp + 0x58]
mov r8, rdi
mov ecx, ebx
call fcn.1400cfd90
jmp 0x1400b084a
mov ecx, dword [rsi + 0x440]
sub ecx, 1
je 0x1400b07c0
cmp ecx, 1
je 0x1400b07af
mov ebx, r14d
call fcn.1400b1230
test al, al
mov eax, 2
cmove ebx, eax
jmp 0x1400b07c5
mov ebx, 2
cmp dword [rsi + 0xbc], 3
lea r8, [0x14026e914]
xorps xmm0, xmm0
lea rcx, [rsp + 0x68]
movups xmmword [rsp + 0x28], xmm0
setne r14b
mov dword [rsp + 0x2c], ebx
inc r14d
mov r9d, ebp
mov edx, ntohl
mov dword [rsp + 0x30], r14d
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call fcn.1400c10a0
lea rcx, [rsp + 0x58]
call fcn.1400b0590
lea r9, [rsp + 0x28]
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
movups xmm0, xmmword [rax]
movups xmmword [r12], xmm0
call fcn.1400b0e90
test al, al
je 0x1400b0839
mov dword [r15], 1
jmp 0x1400b0848
lea rdx, str.getaddrinfo___thread_failed_to_start_n
mov rcx, r13
call fcn.1400bd090
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140224090
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
jmp 0x1400b0700