joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800073e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180007413
xor eax, eax
jmp 0x1800074eb
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x180007440
xor eax, eax
jmp 0x1800074eb
mov rax, qword [rsp + 8]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 8]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x10], rax
mov dword [rsp], 0
jmp 0x180007469
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
movzx eax, word [rax + 6]
cmp dword [rsp], eax
jge 0x1800074e9
movsxd rax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x10]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x40]
sub rax, rcx
movzx edx, byte [rcx]
cmp dl, byte [rcx + rax]
jne 0x1800074a5
inc rcx
test dl, dl
jne 0x180007492
xor eax, eax
jmp 0x1800074aa
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1800074e4
movsxd rax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x10]
mov eax, dword [rdx + rax + 8]
mov dword [rcx], eax
movsxd rax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x10]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
jmp 0x1800074eb
jmp 0x180007461
xor eax, eax
add rsp, 0x28
ret

Function at 0x180007520
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rsi
push rdi
mov eax, 0x316b8
call fcn.18000a0c0
sub rsp, rax
mov rax, qword [0x18006a0c0]
xor rax, rsp
mov qword [rsp + 0x316a0], rax
lea rax, [rsp + 0x30]
lea rcx, [0x180026a50]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x31668
rep movsb byte [rdi], byte [rsi]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x31668
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x30]
mov rdi, qword [rsp + 0x20]
mov rsi, rax
mov ecx, 0x31668
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
call qword [rsp + 0x28]
nop
mov rcx, qword [rsp + 0x316a0]
xor rcx, rsp
call fcn.18000a120
add rsp, 0x316b8
pop rdi
pop rsi
ret
Function at 0x1800080d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x18006a0c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x80], 0
jg 0x180008104
xor eax, eax
jmp 0x1800082b1
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x18000812c
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.1800082d0
jmp 0x1800082b1
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x70]
call fcn.180004ec0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x1800081c9
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.180001f90
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x70]
call fcn.180006690
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.180005f60
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
call fcn.1800065e0
nop
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x1800082a1
mov rcx, qword [rsp + 0x70]
call fcn.180005600
mov qword [rsp + 0x38], 0xfff
cmp qword [rsp + 0x40], 0xfff
jbe 0x180008269
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.180010d5c
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x28], 0xfff
je 0x180008267
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x1800082b1
jmp 0x1800081ef
cmp qword [rsp + 0x40], 0
jbe 0x1800082a1
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.180010d5c
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18000a120
add rsp, 0x68
ret
Function at 0x180008650
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x3c0
mov rax, qword [0x18006a0c0]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
mov eax, dword [rsp + 0x3d8]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 1
je 0x18000868f
jmp 0x180008857
call fcn.180004410
mov dword [rsp + 0x120], 0x68
lea rax, [rsp + 0x128]
mov rdi, rax
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x120]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.notepad.exe
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
xor edx, edx
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov r8d, 0x104
lea rdx, [rsp + 0x2a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
nop
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x88]
call fcn.1800028a0
mov qword [rsp + 0x58], rax
mov r8, 0xffffffffffffffff
lea rdx, [0x180058124]
mov rcx, qword [rsp + 0x58]
call fcn.180006550
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x88]
call fcn.1800037b0
nop
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0xa8]
call fcn.1800028a0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov r9, qword [rsp + 0x68]
xor r8d, r8d
lea rdx, [rsp + 0x100]
mov rcx, qword [rsp + 0x70]
call fcn.1800079f0
nop
lea rcx, [rsp + 0xa8]
call fcn.1800037b0
nop
mov edx, 0x108
lea rcx, [rsp + 0x190]
call fcn.180005ad0
lea r8, str._test.txt
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0xc8]
call fcn.180001160
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 2
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x190]
call fcn.180002380
nop
lea rcx, [rsp + 0xc8]
call fcn.1800037b0
nop
call fcn.180007520
nop
lea rcx, [rsp + 0x190]
call fcn.180003e30
nop
lea rcx, [rsp + 0x100]
call fcn.1800037b0
nop
mov eax, 1
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.18000a120
add rsp, 0x3c0
pop rdi
ret
Function at 0x1800131f8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180013267
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180013267
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180013267
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180013267
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180013267
cmp dword [rcx + 0x84], 0xe
jbe 0x180013267
cmp dword [rcx + 0xf8], 0
je 0x180013267
mov ecx, ebx
call fcn.180013324
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1800130f4
nop
cmp dword [rbp + 0x20], 0
je 0x1800132b5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800132c0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1800131f8
Function at 0x180018860
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x180018892
call fcn.180012844
mov dword [rax], 0x16
call fcn.18000ff28
jmp 0x1800189b1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800189b1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1800189b1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1800188c1
lock or dword [rcx + 0x14], 0x10
jmp 0x1800189b1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1800188d5
call fcn.18001a010
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.180017628
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.180019640
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x18001899f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x18001896a
mov rcx, rsi
call fcn.180017628
cmp eax, edi
je 0x180018955
mov rcx, rsi
call fcn.180017628
cmp eax, 0xfffffffe
je 0x180018955
mov rcx, rsi
call fcn.180017628
movsxd rbx, eax
lea r14, [0x18006c370]
mov rcx, rsi
sar rbx, 6
call fcn.180017628
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x18001895c
lea rdx, [0x18006a490]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18001896a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x18001898e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x18001898e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x18001898e
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1800189b4
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x180018cdc
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.18000a0c0
sub rsp, rax
mov rax, qword [0x18006a0c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180017628
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180018d2b
mov rax, rbp
jmp 0x180018e33
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x6c370]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180019e18
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x6c370]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180018e2f
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 0x180018e2f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180019e18
test rax, rax
js 0x180018e2f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180018e2f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180018e21
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180018e21
cmp byte [rcx], 0xd
jne 0x180018e07
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180018e16
cmp byte [rcx + 1], 0xa
jne 0x180018e16
inc rcx
jmp 0x180018e16
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x6a4e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180018de9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180018e33
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18000a120
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 0x180019194
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x18006c370]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1800191f2
cmp word [rdx], r12w
jne 0x1800191f2
or byte [rax + r8*8 + 0x38], cl
jmp 0x1800191f8
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x180019353
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x18001932e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x180019231
mov rcx, r9
jmp 0x180019254
cmp r9, rdx
jae 0x18001926b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x180019215
jmp 0x180019353
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180019328
cmp dword [rsp + 0x80], edi
je 0x180019328
mov rdx, r14
lea r11, [0x18006c370]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x180019301
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1800192d4
mov word [rbx], r12w
jmp 0x18001934f
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1800192dd
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x18001934f
cmp word [rsp + 0x70], r12w
jne 0x18001930e
cmp rbx, rsi
je 0x1800192ce
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.180019e20
cmp word [rsp + 0x70], r12w
je 0x180019353
mov word [rbx], r13w
jmp 0x18001934f
lea r11, [0x18006c370]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18001934b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x180019353
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18001dac8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18001daf8
xor eax, eax
jmp 0x18001dbbb
mov rbp, rbx
cmp word [rax], si
je 0x18001db1d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001db04
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001db00
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18001c210
movsxd r14, eax
test eax, eax
jne 0x18001db5b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001daf1
mov rcx, r14
call fcn.18001a07c
mov rdi, rax
test rax, rax
jne 0x18001db74
xor ecx, ecx
call fcn.1800168ac
jmp 0x18001db50
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18001c210
test eax, eax
jne 0x18001dba5
mov rcx, rdi
call fcn.1800168ac
jmp 0x18001dbaf
xor ecx, ecx
call fcn.1800168ac
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180023460
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180019e20
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180019e20
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800235b0
cmp rax, 0xffffffffffffffff
je 0x1800235b0
xor edi, edi
test rbp, rbp
jle 0x18002355b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800168e8
mov rbx, rax
test rax, rax
jne 0x1800234e8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180023551
mov edx, 0x8000
mov ecx, r14d
call fcn.1800232e8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180018550
cmp eax, 0xffffffff
je 0x180023531
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800234f8
mov edx, r15d
mov ecx, r14d
call fcn.1800232e8
jmp 0x180023551
cmp byte [rsi + 0x38], dil
je 0x180023548
cmp dword [rsi + 0x34], 5
jne 0x180023548
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180023551
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800168ac
jmp 0x1800235c4
jns 0x1800235c4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180019e20
cmp rax, 0xffffffffffffffff
jne 0x18002357c
cmp byte [rsi + 0x30], dil
je 0x1800235c4
mov edi, dword [rsi + 0x2c]
jmp 0x1800235c4
mov ecx, r14d
call fcn.180020e2c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800235c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1800235c4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800235bd
mov eax, dword [rsi + 0x2c]
jmp 0x1800235c2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180019e20
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180024090
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800240b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800240b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001450
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1e0
mov r12, rcx
mov ebx, edx
mov rbp, r8
mov rdi, r9
lea rdx, [rsp + 0x40]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140001490
xor eax, eax
add rsp, 0x1e0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400015e0
mov eax, 2
movzx ecx, bx
mov qword [rsp + 0x32], 0
mov word [rsp + 0x30], ax
mov qword [rsp + 0x38], 0
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, r12
mov word [rsp + 0x32], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x34], eax
cmp eax, 0xffffffff
je 0x1400015c8
lea rdx, [rsp + 0x30]
mov r8d, 0x10
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x1400015c8
mov rcx, rbp
call sub.msvcrt.dll_strlen
xor r9d, r9d
lea rdx, [rsp + 0x28]
mov rcx, rsi
mov rbx, qword [sym.imp.WS2_32.dll_send]
mov r8d, 8
mov qword [rsp + 0x28], rax
call rbx
xor r9d, r9d
mov rdx, rbp
mov r8d, dword [rsp + 0x28]
mov rcx, rsi
call rbx
xor r9d, r9d
mov rbp, qword [sym.imp.WS2_32.dll_recv]
mov rcx, rsi
lea rdx, [rsp + 0x24]
mov r8d, 4
call rbp
cmp eax, 4
jne 0x1400015c8
mov ecx, dword [rsp + 0x24]
xor ebx, ebx
call qword [sym.imp.WS2_32.dll_ntohl]
movsxd rcx, eax
mov dword [rsp + 0x24], eax
call fcn.140013dd0
mov r8d, dword [rsp + 0x24]
mov qword [rdi], rax
mov rdx, rax
test r8d, r8d
jne 0x1400015a5
jmp 0x1400015f0
cdqe
add rbx, rax
movsxd rax, dword [rsp + 0x24]
mov r8, rax
cmp rbx, rax
jae 0x1400015f0
mov rdx, qword [rdi]
add rdx, rbx
xor r9d, r9d
sub r8d, ebx
mov rcx, rsi
call rbp
test eax, eax
jg 0x140001590
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400015c8
call fcn.140013da0
nop dword [rax]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x14000147c
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x14000147c
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [rsp + 0x230]
mov qword [rax], rbx
mov eax, 1
jmp 0x14000147e
Function at 0x140001610
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
mov dword [rsp + 0x78], edx
mov rdi, rcx
mov rbx, r8
mov rsi, r9
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140001708
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140001708
xor r9d, r9d
mov rcx, qword [rsp + 0x40]
mov r8d, esi
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140001708
lea rax, [rsp + 0x48]
xor r9d, r9d
mov r8, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov edx, 0x6610
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x140001708
lea rax, [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x140001708
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor eax, eax
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
mov eax, 0xffffffff
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret

Function at 0x14000b5f0
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.140011f40
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.140011f40
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]