joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002344
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x150
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r10d, dword [rcx + r8 + 0x88]
add r10, r8
cmp r10, r8
je 0x1400023d2
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x1400023d2
mov edi, dword [r10 + 0x20]
dec r9d
mov r11d, 0xd7b1de1c
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r8]
add rdx, r8
mov cl, byte [rdx]
inc rdx
test cl, cl
je 0x1400023cd
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x1400023ae
cmp r11d, 0x6f40ccd4
je 0x1400023d7
test r9d, r9d
jne 0x140002391
mov rax, qword [rax]
jmp 0x14000236c
mov ecx, dword [r10 + 0x24]
add rcx, r8
movzx edx, word [rcx + r9*2]
mov ecx, dword [r10 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
xor edx, edx
add rax, r8
lea ecx, [rdx + 2]
call rax
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140002407
or eax, eax
jmp 0x140002574
xor edx, edx
mov dword [rsp + 0x20], 0x130
mov r8d, 0x12c
lea rcx, [rsp + 0x24]
call fcn.14000b160
mov rax, qword gs:[0x60]
xor ebx, ebx
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r10d, dword [rcx + r8 + 0x88]
add r10, r8
cmp r10, r8
je 0x14000249a
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x14000249a
mov esi, dword [r10 + 0x20]
dec r9d
mov r11d, 0x1babd557
lea rcx, [rsi + r9*4]
mov edx, dword [rcx + r8]
add rdx, r8
mov cl, byte [rdx]
inc rdx
test cl, cl
je 0x140002495
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x140002476
cmp r11d, 0xab37c3c1
je 0x14000249f
test r9d, r9d
jne 0x140002459
mov rax, qword [rax]
jmp 0x140002434
mov ecx, dword [r10 + 0x24]
add rcx, r8
movzx edx, word [rcx + r9*2]
mov ecx, dword [r10 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
lea rdx, [rsp + 0x20]
add rax, r8
mov rcx, rbp
call rax
jmp 0x14000256a
mov rax, qword gs:[0x60]
inc ebx
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov r9d, dword [rcx + r10 + 0x88]
add r9, r10
cmp r9, r10
je 0x140002540
mov r8d, dword [r9 + 0x18]
test r8d, r8d
je 0x140002540
mov esi, dword [r9 + 0x20]
dec r8d
mov r11d, 0x1aabd3c4
lea rcx, [rsi + r8*4]
mov edx, dword [rcx + r10]
add rdx, r10
mov cl, byte [rdx]
inc rdx
test cl, cl
je 0x14000253b
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x14000251c
cmp r11d, 0x407859fd
je 0x140002545
test r8d, r8d
jne 0x1400024ff
mov rax, qword [rax]
jmp 0x1400024da
mov ecx, dword [r9 + 0x24]
mov edx, dword [r9 + 0x1c]
add rcx, r10
add rdx, r10
movzx r8d, word [rcx + r8*2]
mov rcx, rbp
mov r9d, dword [rdx + r8*4]
lea rdx, [rsp + 0x20]
add r9, r10
call r9
test eax, eax
jne 0x1400024c7
mov eax, ebx
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140017db0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140017ba0
Function at 0x14001ea4c
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 0x14001ea7e
call fcn.140013e78
mov dword [rax], 0x16
call fcn.1400116a8
jmp 0x14001eb9d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001eb9d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14001eb9d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14001eaad
lock or dword [rcx + 0x14], 0x10
jmp 0x14001eb9d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14001eac1
call fcn.1400200b0
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14001c050
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14001f82c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14001eb8b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14001eb56
mov rcx, rsi
call fcn.14001c050
cmp eax, edi
je 0x14001eb41
mov rcx, rsi
call fcn.14001c050
cmp eax, 0xfffffffe
je 0x14001eb41
mov rcx, rsi
call fcn.14001c050
movsxd rbx, eax
lea r14, [0x140042860]
mov rcx, rsi
sar rbx, 6
call fcn.14001c050
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14001eb48
lea rdx, [0x1400403d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001eb56
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14001eb7a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14001eb7a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14001eb7a
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 0x14001eba0
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 0x14001eec8
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.1400092c0
sub rsp, rax
mov rax, qword [0x140040018]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001c050
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001ef17
mov rax, rbp
jmp 0x14001f01f
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x42860]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140020004
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x42860]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001f01b
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 0x14001f01b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140020004
test rax, rax
js 0x14001f01b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001f01b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001f00d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001f00d
cmp byte [rcx], 0xd
jne 0x14001eff3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001f002
cmp byte [rcx + 1], 0xa
jne 0x14001f002
inc rcx
jmp 0x14001f002
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x40420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001efd5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001f01f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140008fc0
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 0x14001f380
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, [0x140042860]
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 0x14001f3de
cmp word [rdx], r12w
jne 0x14001f3de
or byte [rax + r8*8 + 0x38], cl
jmp 0x14001f3e4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14001f53f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14001f51a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14001f41d
mov rcx, r9
jmp 0x14001f440
cmp r9, rdx
jae 0x14001f457
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 0x14001f401
jmp 0x14001f53f
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 0x14001f514
cmp dword [rsp + 0x80], edi
je 0x14001f514
mov rdx, r14
lea r11, [0x140042860]
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 0x14001f4ed
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14001f4c0
mov word [rbx], r12w
jmp 0x14001f53b
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 0x14001f4c9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14001f53b
cmp word [rsp + 0x70], r12w
jne 0x14001f4fa
cmp rbx, rsi
je 0x14001f4ba
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14002000c
cmp word [rsp + 0x70], r12w
je 0x14001f53f
mov word [rbx], r13w
jmp 0x14001f53b
lea r11, [0x140042860]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14001f537
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14001f53f
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 0x140023580
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 0x1400235b0
xor eax, eax
jmp 0x140023673
mov rbp, rbx
cmp word [rax], si
je 0x1400235d5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400235bc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400235b8
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.140021bac
movsxd r14, eax
test eax, eax
jne 0x140023613
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400235a9
mov rcx, r14
call fcn.14001add8
mov rdi, rax
test rax, rax
jne 0x14002362c
xor ecx, ecx
call fcn.14001ad9c
jmp 0x140023608
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.140021bac
test eax, eax
jne 0x14002365d
mov rcx, rdi
call fcn.14001ad9c
jmp 0x140023667
xor ecx, ecx
call fcn.14001ad9c
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 0x140029564
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140013ef0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400295ee
cmp byte [rbp - 0x21], r15b
je 0x1400295e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140029624
call fcn.14001d238
test eax, eax
jne 0x140029610
cmp byte [rbp - 0x21], r15b
je 0x140029608
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140029624
cmp byte [rbp - 0x21], r15b
je 0x140029621
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140016a5c
test eax, eax
jne 0x1400296c4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140013ef0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140029663
cmp byte [rbp - 0x21], r15b
je 0x140029698
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140029698
call fcn.14001d238
test eax, eax
jne 0x140029684
cmp byte [rbp - 0x21], r15b
je 0x14002967d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140029698
cmp byte [rbp - 0x21], r15b
je 0x140029695
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140016a5c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400296c4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400296c7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400296d5
mov rcx, rdi
call fcn.14001ad9c
cmp byte [rbp + 0x3f], r15b
je 0x1400296e4
mov rcx, qword [rbp + 0x27]
call fcn.14001ad9c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140001850
Capabilities:
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x40
movzx eax, byte [rcx + 0xa]
mov rbx, rcx
cmp al, 1
je 0x140001998
mov dword [rcx + 0x54], r8d
xor r9d, r9d
movups xmm0, xmmword [rdx]
movups xmmword [rcx + 0x40], xmm0
mov ecx, dword [rdx + 8]
lea r8d, [r9 + 4]
sub ecx, dword [rdx]
mov dword [rbx + 0xf0], ecx
mov eax, dword [rdx + 0xc]
sub eax, dword [rdx + 4]
xor edx, edx
mov dword [rbx + 0xf4], eax
imul eax, ecx
lea rcx, str.MagniShareMemory
mov qword [rsp + 0x28], rcx
lea rcx, [rdx - 1]
lea eax, [rax*4 + 0xa]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov rcx, rax
mov qword [rbx + 0x150], rax
xor r8d, r8d
mov edx, 0xf001f
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea r9, str.magni_wait_event
xor r8d, r8d
xor edx, edx
mov qword [rbx + 0x158], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea r9, str.magni_noti_event
xor r8d, r8d
xor edx, edx
mov qword [rbx + 0x160], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x168], rax
test rax, rax
je 0x1400019a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
xor edx, edx
lea r8, str.MagniMsgMemory
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
xor r9d, r9d
mov qword [rsp + 0x20], 0
xor r8d, r8d
mov qword [rbx + 0x170], rax
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, 1
mov dword [rsp + 0x34], 0xf4240
mov dword [rsp + 0x30], ecx
mov qword [rbx + 0x178], rax
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0xd8], rax
mov qword [rbx + 0xe0], 0
mov dword [rbx + 0xe8], 0x1c
xchg byte [rbx + 0xa], cl
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rbx + 0x158]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbx + 0x150]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x40
pop rbx
ret

Function at 0x1400019d0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140007008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
movzx eax, byte [rcx + 8]
cmp al, 1
je 0x140001a78
movzx eax, byte [rcx + 0xa]
test al, al
jne 0x140001a14
mov eax, 4
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140002640
add rsp, 0x60
pop rbx
ret
mov eax, 1
xchg byte [rcx + 8], al
mov ecx, 0x10
call fcn.140002660
lea rcx, [0x140001bf0]
mov qword [rax], rcx
mov qword [rax + 8], rbx
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400024e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140001a94
cmp dword [rbx + 0x18], 0
jne 0x140001a8d
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rbx + 0x10], xmm1
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140002640
add rsp, 0x60
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140002fcc
Capabilities:
Parse pe header

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

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

Disassembly:
jmp 0x1401582d0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax], 0
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_gethostname]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x48]
dec eax
cdqe
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax], 0
cmp dword [rsp + 0x20], 0
je 0x140158321
mov eax, dword [rsp + 0x20]
jmp 0x140158347
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, qword [rsp + 0x40]
call fcn.140077122
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140158345
mov rax, qword [rsp + 0x28]
mov byte [rax], 0
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x1400773f7
Capabilities:
Set socket configuration

Disassembly:
jmp 0x14014ee20
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rdi, [rsp + 0x20]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
cmp dword [rsp + 0x58], 0
je 0x14014ee55
mov dword [rsp + 0x34], 1
jmp 0x14014ee5d
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400781c6
mov rax, rdi
add rsp, 0x40
pop rdi
ret

Function at 0x1400776cc
Capabilities:
Move file

Disassembly:
jmp 0x1400e83b0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xd8
lea rdi, [rsp + 0x20]
mov ecx, reloc.WLDAP32.dll_Ordinal_46
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x1401a2d00]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x20], 0x3e8
lea rcx, [rsp + 0x78]
call fcn.14007836a
lea rcx, [rsp + 0x38]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.ucrtbased.dll__strdup]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.ucrtbased.dll__strdup]
mov qword [rsp + 0x60], rax
mov r8d, 1
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x1400e849b
cmp qword [rsp + 0x58], 0
je 0x1400e846e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ucrtbased.dll_free]
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x1400e8452
cmp qword [rsp + 0x60], 0
je 0x1400e8490
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ucrtbased.dll_free]
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x1400e8474
jmp 0x1400e8560
lea rax, [rsp + 0xb0]
lea rcx, [rsp + 0x38]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x88]
call fcn.14007836a
lea rcx, [rsp + 0xa0]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xa0]
call fcn.1400786e4
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jl 0x1400e8505
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + 0x68], rax
jle 0x1400e8550
cmp qword [rsp + 0x58], 0
je 0x1400e8521
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ucrtbased.dll_free]
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x1400e8505
cmp qword [rsp + 0x60], 0
je 0x1400e8543
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ucrtbased.dll_free]
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x1400e8527
mov eax, 1
jmp 0x1400e8562
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400e8438
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400781c6
mov rax, rdi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140077a55
add rsp, 0xd8
pop rdi
pop rsi
ret
Function at 0x140077bea
Capabilities:
Terminate process

Disassembly:
jmp 0x140160d00
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 0x140077c7b
Capabilities:
Get token membership

Disassembly:
jmp 0x14007a9e0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1c8
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, Ordinal_46
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1e8]
mov rax, qword [0x1401a2d00]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.14007856d
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov qword [rbp + 0x48], 0
mov byte [rbp + 0x64], 0
mov byte [rbp + 0x65], 0
mov byte [rbp + 0x66], 0
mov byte [rbp + 0x67], 0
mov byte [rbp + 0x68], 0
mov byte [rbp + 0x69], 5
lea rax, [rbp + 0x48]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, reloc.WLDAP32.dll_Ordinal_32
mov dl, 2
lea rcx, [rbp + 0x64]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x14007aab9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x24], eax
jmp 0x14007aad6
lea r8, [rbp + 4]
mov rdx, qword [rbp + 0x48]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x14007aad6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x24], eax
cmp qword [rbp + 0x48], 0
je 0x14007aaef
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rbp + 0x48], 0
cmp dword [rbp + 0x24], 0
je 0x14007ab11
mov eax, dword [rbp + 0x24]
mov dword [rbp + 0x144], eax
lea rdx, [0x14018fad8]
lea rcx, [rbp + 0x144]
call fcn.14007874d
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x60]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1400781c6
mov rax, rdi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.140077a55
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret