joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028eec
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, [0x140816460]
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 0x140028f4a
cmp word [rdx], r12w
jne 0x140028f4a
or byte [rax + r8*8 + 0x38], cl
jmp 0x140028f50
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400290ab
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140029086
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140028f89
mov rcx, r9
jmp 0x140028fac
cmp r9, rdx
jae 0x140028fc3
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 0x140028f6d
jmp 0x1400290ab
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 0x140029080
cmp dword [rsp + 0x80], edi
je 0x140029080
mov rdx, r14
lea r11, [0x140816460]
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 0x140029059
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14002902c
mov word [rbx], r12w
jmp 0x1400290a7
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 0x140029035
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400290a7
cmp word [rsp + 0x70], r12w
jne 0x140029066
cmp rbx, rsi
je 0x140029026
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140029b78
cmp word [rsp + 0x70], r12w
je 0x1400290ab
mov word [rbx], r13w
jmp 0x1400290a7
lea r11, [0x140816460]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400290a3
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400290ab
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 0x14002c2b8
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 0x14002c2e8
xor eax, eax
jmp 0x14002c3ab
mov rbp, rbx
cmp word [rax], si
je 0x14002c30d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002c2f4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002c2f0
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.14002ad94
movsxd r14, eax
test eax, eax
jne 0x14002c34b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002c2e1
mov rcx, r14
call fcn.140022690
mov rdi, rax
test rax, rax
jne 0x14002c364
xor ecx, ecx
call fcn.140022654
jmp 0x14002c340
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.14002ad94
test eax, eax
jne 0x14002c395
mov rcx, rdi
call fcn.140022654
jmp 0x14002c39f
xor ecx, ecx
call fcn.140022654
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 0x14002c3c8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14002c44f
mov rsi, rbx
cmp word [rax], bp
je 0x14002c40e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002c3f8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002c3f4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140022690
mov rdi, rax
test rax, rax
je 0x14002c43c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140012290
mov rbp, rdi
xor ecx, ecx
call fcn.140022654
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140033738
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.140019108
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400337c2
cmp byte [rbp - 0x21], r15b
je 0x1400337bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400337f8
call fcn.140023970
test eax, eax
jne 0x1400337e4
cmp byte [rbp - 0x21], r15b
je 0x1400337dc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400337f8
cmp byte [rbp - 0x21], r15b
je 0x1400337f5
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.14001e898
test eax, eax
jne 0x140033898
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140019108
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140033837
cmp byte [rbp - 0x21], r15b
je 0x14003386c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14003386c
call fcn.140023970
test eax, eax
jne 0x140033858
cmp byte [rbp - 0x21], r15b
je 0x140033851
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14003386c
cmp byte [rbp - 0x21], r15b
je 0x140033869
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.14001e898
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140033898
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003389b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400338a9
mov rcx, rdi
call fcn.140022654
cmp byte [rbp + 0x3f], r15b
je 0x1400338b8
mov rcx, qword [rbp + 0x27]
call fcn.140022654
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 0x14003497c
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.140029b78
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140029b78
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140034acc
cmp rax, 0xffffffffffffffff
je 0x140034acc
xor edi, edi
test rbp, rbp
jle 0x140034a77
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400225dc
mov rbx, rax
test rax, rax
jne 0x140034a04
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140034a6d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001fcbc
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.1400282a8
cmp eax, 0xffffffff
je 0x140034a4d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140034a14
mov edx, r15d
mov ecx, r14d
call fcn.14001fcbc
jmp 0x140034a6d
cmp byte [rsi + 0x38], dil
je 0x140034a64
cmp dword [rsi + 0x34], 5
jne 0x140034a64
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140034a6d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140022654
jmp 0x140034ae0
jns 0x140034ae0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140029b78
cmp rax, 0xffffffffffffffff
jne 0x140034a98
cmp byte [rsi + 0x30], dil
je 0x140034ae0
mov edi, dword [rsi + 0x2c]
jmp 0x140034ae0
mov ecx, r14d
call fcn.14002cd94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140034ae0
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 0x140034ae0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140034ad9
mov eax, dword [rsi + 0x2c]
jmp 0x140034ade
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140029b78
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 0x1400350e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140035108
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140035108
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001f80
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140002011
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140002011
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002011
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140001ff5
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140001fef
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140001ff7
add rdx, 0x28
jmp 0x140001fd4
xor edx, edx
test rdx, rdx
jne 0x140002000
xor al, al
jmp 0x140002017
test dword [rdx + 0x24], 0x80000000
je 0x14000200d
xor al, al
jmp 0x140002017
mov al, 1
jmp 0x140002017
xor al, al
jmp 0x140002017
add rsp, 0x18
ret
Function at 0x140001500
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0xf60]
mov eax, 0x1060
call fcn.1400142e0
sub rsp, rax
mov rax, qword [0x140020008]
xor rax, rsp
mov qword [rbp + 0xf50], rax
xor edi, edi
mov rbx, rcx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x34], edi
cmp dword [rcx + 0x10], edi
je 0x140001684
mov dword [rcx + 0x10], edi
cmp dword [rcx + 0xc], edi
jne 0x140001684
movzx eax, word [rcx + 0x814]
lea r9, [rsp + 0x30]
add ax, 0x18
mov word [rsp + 0x3e], dx
mov word [rsp + 0x48], ax
lea r8d, [rdi + 0x10]
mov eax, dword [rcx + 8]
lea rdx, [rsp + 0x40]
mov rcx, qword [rcx]
mov dword [rsp + 0x40], 0x3000005
mov dword [rsp + 0x44], 0x10
mov word [rsp + 0x4a], di
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x38], edi
mov word [rsp + 0x3c], di
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140001684
mov rcx, qword [rbx]
lea r9, [rsp + 0x30]
lea r8d, [rdi + 8]
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140001684
mov r8d, dword [rbx + 0x814]
lea rdx, [rbx + 0x14]
mov rcx, qword [rbx]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140001684
inc dword [rbx + 8]
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x1000
call fcn.1400039b0
mov rcx, qword [rbx]
lea r9, [rsp + 0x34]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001684
cmp word [rsp + 0x50], 5
jne 0x140001684
cmp byte [rsp + 0x52], 2
jne 0x140001684
cmp byte [rsp + 0x53], 3
jne 0x140001684
movzx edi, word [rsp + 0x58]
cmp edi, dword [rsp + 0x34]
jne 0x140001684
cmp word [rsp + 0x64], 0
jne 0x140001684
add edi, 0xffffffe8
cmp edi, 0x800
ja 0x140001684
mov r8d, edi
lea rcx, [rbx + 0x818]
lea rdx, [rsp + 0x68]
call fcn.1400040a0
xor eax, eax
mov dword [rbx + 0x1018], edi
jmp 0x140001689
mov eax, 1
mov rcx, qword [rbp + 0xf50]
xor rcx, rsp
call fcn.1400029b0
lea r11, [rsp + 0x1060]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140006df8
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140006c8b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006c8b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006c8b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006c8b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006c8b
cmp dword [rcx + 0x84], 0xe
jbe 0x140006c8b
cmp dword [rcx + 0xf8], 0
je 0x140006c8b
mov ecx, ebx
call fcn.140006d2c
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140006b1c
cmp dword [rbp + 0x20], 0
je 0x140006cd8
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140006ce0
int3
xor r8d, r8d
xor edx, edx
jmp 0x140006c24
Function at 0x14005fe6c
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov dword [rax + 8], ecx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rdi, rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
xor esi, esi
mov qword [rbp - 0x10], rsi
mov dword [rbp + 0x30], esi
lea r8, [rbp + 0x30]
xor edx, edx
lea ecx, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x14005feb4
lea ebx, [rsi + 0xd]
jmp 0x14005ff1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xea
jne 0x14005ff1f
mov word [rbp + 0x20], si
mov edx, dword [rbp + 0x30]
lea rax, [rbp - 0x20]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call fcn.14003cffc
lea r8, [rbp + 0x30]
mov rdx, qword [rbp - 0x20]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x14005ff11
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14005ff1f
mov rdx, qword [rbp - 0x20]
mov rcx, rdi
call fcn.1400033fc
mov ebx, esi
lea rcx, [rbp - 0x20]
call fcn.1400174fc
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x140060260
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push r14
push r15
sub r12, r12
add r12, 0x60
mov r14, qword gs:[r12]
push r11

Function at 0x140060a48
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400bd0c0], eax
call fcn.140060cf8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400bd0c0], 0
jne case.default.0x140060a9e
mov ecx, 1
call fcn.140060cf8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, 0xcf2c58b8
sbb byte [rsi], dl
push rbp
invalid
Function at 0x140005020
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1400dd900]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], al
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x30], 0x80
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov rcx, qword [rdi + 0x18]
test eax, eax
je 0x1400050de
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400050a0
cmp rbx, rcx
ja 0x1400050d4
mov rsi, rdi
cmp rcx, 0x10
jb 0x1400050ba
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rbx
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14007a730
mov byte [rsi + rbx], 0
jmp 0x140005127
lea r9, [rsp + 0x40]
mov rdx, rbx
jmp 0x14000511f
cmp rcx, 5
jb 0x140005113
mov rbx, rdi
cmp rcx, 0x10
jb 0x1400050f0
mov rbx, qword [rdi]
mov qword [rdi + 0x10], 5
mov r8d, 5
lea rdx, str.error
mov rcx, rbx
call fcn.14007a730
mov byte [rbx + 5], 0
jmp 0x140005127
lea r9, str.error
mov edx, 5
mov rcx, rdi
call fcn.14000b640
mov rax, rdi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400784c0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400132a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rax, qword [rcx + 0x28]
nop
cmp rax, qword [rcx + 0x10]
jb 0x1400132cf
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400784e0
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14001332b
mov ecx, 8
call fcn.1400784e0
test rax, rax
je 0x1400132f8
mov qword [rax], rdi
mov qword [rsp + 0x48], rax
lea rsi, [rbx + 8]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400126a0]
xor edx, edx
xor ecx, ecx
call fcn.140082110
mov qword [rbx], rax
test rax, rax
je 0x14001334a
jmp 0x14001332d
xor ebx, ebx
mov rdx, rbx
mov rcx, rdi
call fcn.140013100
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov dword [rsi], 0
mov ecx, 6
call fcn.1400761a0
int3
Function at 0x1400134f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, rcx
xor r15d, r15d
mov eax, dword [rcx + 0x20]
nop
test eax, eax
je 0x140013523
lea eax, [r15 - 1]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov eax, 1
xchg dword [rcx + 0x20], eax
cmp rdx, qword [rcx + 8]
cmovb rdx, qword [rcx + 8]
mov rbp, qword [rcx + 0x10]
cmp rdx, rbp
cmovbe rbp, rdx
mov rsi, r15
test rbp, rbp
je 0x1400135cf
nop dword [rax + rax]
mov rax, qword [rdi + 0x28]
nop
cmp rax, qword [rdi + 0x10]
jae 0x1400135c7
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400784e0
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1400135b9
mov ecx, 8
call fcn.1400784e0
test rax, rax
je 0x140013586
mov qword [rax], rdi
jmp 0x140013589
mov rax, r15
mov qword [rsp + 0x70], rax
lea r14, [rbx + 8]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x1400126a0]
xor edx, edx
xor ecx, ecx
call fcn.140082110
mov qword [rbx], rax
test rax, rax
je 0x1400135e2
jmp 0x1400135bc
mov rbx, r15
mov rdx, rbx
mov rcx, rdi
call fcn.140013100
inc rsi
cmp rsi, rbp
jb 0x140013550
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov dword [r14], r15d
mov ecx, 6
call fcn.1400761a0
int3
Function at 0x14001e1c0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.140096c58
cdqe
add rsp, 0x28
ret

Function at 0x14001e4c0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, 0x2b
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x14001e58b
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.1400220e0
cmp eax, 4
jne 0x14001e53c
cmp byte [0x1400e0794], r14b
jne 0x14001e548
lea r9d, [rax - 2]
mov dword [rsp + 0x50], r14d
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov edx, eax
test eax, eax
jne 0x14001e58d
mov eax, dword [rsp + 0x50]
jmp 0x14001e567
imul eax, dword [0x1400e0790], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x1400e0790], eax
rol eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x14001e582
sub rsi, rdi
nop
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x14001e570
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x14001e4f0
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14001e5a0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov r11, rsp
push rsi
push r12
push r14
push r15
sub rsp, 0xd8
mov rax, qword [0x1400dd900]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, r8
lea r15, [rsp + 0x30]
and rax, 0xfffffffffffffffe
mov r14, r8
mov rsi, rdx
mov r12, rcx
cmp rax, 0x100
jae 0x14001e74c
test r14b, 1
je 0x14001e74c
mov qword [r11 - 0x28], rbp
dec r14
mov qword [r11 - 0x30], rdi
mov rbp, r14
shr rbp, 1
lea rdi, [rsp + 0x30]
mov qword [r11 + 0x18], rbx
mov ecx, 0x2b
mov qword [r11 - 0x38], r13
je 0x14001e6cb
xor r13d, r13d
nop word [rax + rax]
mov ebx, 4
lea rdx, [rsp + 0x20]
cmp rbp, rbx
mov r8d, 4
mov rcx, r12
cmovb rbx, rbp
call fcn.1400220e0
cmp eax, 4
jne 0x14001e66c
cmp byte [0x1400e0794], r13b
jne 0x14001e67c
lea r9d, [rax - 2]
mov dword [rsp + 0x20], r13d
mov r8d, eax
lea rdx, [rsp + 0x20]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x14001e70d
mov eax, dword [rsp + 0x20]
jmp 0x14001e69b
imul eax, dword [0x1400e0790], 0x41c64e6d
mov ecx, r13d
add eax, 0x3039
mov dword [0x1400e0790], eax
rol eax, 0x10
mov dword [rsp + 0x20], eax
test rbx, rbx
je 0x14001e6c2
sub rbp, rbx
nop dword [rax]
nop word [rax + rax]
mov byte [rdi], al
inc rdi
shr eax, 8
sub rbx, 1
jne 0x14001e6b0
mov dword [rsp + 0x20], eax
test rbp, rbp
jne 0x14001e620
mov eax, ecx
test ecx, ecx
jne 0x14001e70d
test r14, r14
je 0x14001e708
lea rdx, [0x1400ada40]
nop dword [rax]
movzx ecx, byte [r15]
lea r15, [r15 + 1]
mov eax, ecx
and ecx, 0xf
shr rax, 4
movzx eax, byte [rax + rdx]
mov byte [rsi], al
movzx eax, byte [rcx + rdx]
mov byte [rsi + 1], al
add rsi, 2
sub r14, 2
jne 0x14001e6e0
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x110]
mov r13, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400784c0
add rsp, 0xd8
pop r15
pop r14
pop r12
pop rsi
ret
mov eax, 0x2b
jmp 0x14001e72d