joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180025210
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
movzx r10d, byte [rcx + 0x2dc]
dec r10d
je 0x180025279
sub r10d, 3
je 0x180025265
sub r10d, 2
je 0x180025251
cmp r10d, 6
je 0x18002523d
mov eax, 0xfffffec8
add rsp, 0x28
ret
mov rcx, qword [rcx + 0xf0]
movzx r9d, r9w
add rsp, 0x28
jmp fcn.18001a2e0
mov rcx, qword [rcx + 0xe0]
movzx r9d, r9w
add rsp, 0x28
jmp fcn.180005030
mov rcx, qword [rcx + 0xd8]
movzx r9d, r9w
add rsp, 0x28
jmp fcn.18000c8f0
mov rcx, qword [rcx + 0xd0]
movzx r9d, r9w
call fcn.1800051d0
xor eax, eax
add rsp, 0x28
ret
Function at 0x180025310
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1800ac030]
xor rax, rsp
mov qword [rsp + 0x60], rax
movsxd r13, edx
mov r14, rcx
movsxd r15, r8d
movzx eax, byte [r13 + rcx - 1]
mov r12d, r13d
xor edi, edi
sub r12d, r15d
mov ecx, r13d
xor bpl, bpl
sub ecx, eax
sub r12d, 0x100
mov qword [rsp + 0x38], r9
dec ecx
mov eax, r12d
mov ebx, edi
shr eax, 0x1f
mov dword [rsp + 0x30], ecx
sub ecx, r15d
dec eax
and r12d, eax
mov eax, ecx
shr eax, 0x1f
dec eax
and ecx, eax
lea eax, [r15 - 1]
mov edx, eax
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x28], eax
and edx, r15d
mov dword [rsp + 0x24], edx
jne 0x1800253a8
mov ebx, r15d
sub ebx, r12d
add ebx, ecx
and ebx, eax
jmp 0x1800253cf
cmp r15d, 0x14
jne 0x1800253cf
mov ebx, ecx
mov eax, 0x66666667
sub ebx, r12d
add ebx, r15d
imul ebx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub ebx, eax
lea rcx, [rsp + 0x40]
mov r8, r15
xor edx, edx
call fcn.180037c60
movsxd r11, r12d
mov rcx, r13
cmp r11, r13
jge 0x18002546c
mov ebp, dword [rsp + 0x20]
mov r10d, r12d
mov eax, r15d
neg r10d
add r14, r11
neg eax
mov dword [rsp + 0x2c], eax
mov r9, rdi
test r15d, r15d
jle 0x180025458
mov r8d, ebp
mov ebp, dword [rsp + 0x30]
mov edx, r12d
neg r8d
cmp edx, r13d
jge 0x18002544d
lea eax, [r8 + rdx]
mov ecx, ebp
inc r9
sub ecx, r10d
shr eax, 0x1f
sub ecx, edx
dec al
inc edx
sub ecx, r12d
dec ecx
shr ecx, 0x1f
dec cl
and cl, al
and cl, byte [r14 + r9 - 1]
or byte [rsp + r9 + 0x3f], cl
cmp r9, r15
jl 0x180025418
mov eax, dword [rsp + 0x2c]
mov ebp, dword [rsp + 0x20]
mov rcx, r13
add r11, r15
add r12d, r15d
add r10d, eax
add r14, r15
cmp r11, rcx
jl 0x180025403
xor bpl, bpl
cmp dword [rsp + 0x24], edi
jne 0x1800254af
test r15d, r15d
jle 0x1800254f5
movsxd rax, dword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
nop word [rax + rax]
movsxd rcx, ebx
inc rdi
inc ebx
and rcx, rax
movzx ecx, byte [rsp + rcx + 0x40]
xor cl, byte [rdi + r8 - 1]
or bpl, cl
cmp rdi, r15
jl 0x180025490
jmp 0x1800254f5
cmp r15d, 0x14
jne 0x1800254f5
test r15d, r15d
jle 0x1800254f5
mov r8, qword [rsp + 0x38]
nop
mov eax, 0x66666667
inc rdi
imul ebx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ebx
inc ebx
lea ecx, [rdx + rdx*4]
shl ecx, 2
sub eax, ecx
movsxd rcx, eax
movzx eax, byte [rsp + rcx + 0x40]
xor al, byte [rdi + r8 - 1]
or bpl, al
cmp rdi, r15
jl 0x1800254c0
movzx eax, bpl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800334b0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180025530
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x70
mov rax, qword [0x1800ac030]
xor rax, rsp
mov qword [rsp + 0x60], rax
movsxd rsi, dword [rsp + 0xd0]
mov rbp, rdx
mov r12d, r9d
movzx r11d, byte [rsi + rbp - 1]
lea edx, [rsi - 1]
mov eax, 0xff
lea r9, [rsi + rbp - 1]
mov edi, r11d
mov r14d, r8d
sub edi, esi
mov r13, rcx
mov ebx, r11d
add edi, r12d
shr edi, 0x1f
dec dil
cmp edx, eax
cmovg edx, eax
xor r8d, r8d
movsxd r10, edx
test edx, edx
jle 0x1800255c1
nop word [rax + rax]
movzx eax, byte [r9]
mov ecx, ebx
dec r9
sub ecx, r8d
xor al, r11b
inc r8d
shr ecx, 0x1f
dec cl
and cl, al
or dil, cl
dec r10
jne 0x1800255a0
mov eax, dword [rsp + 0xd8]
mov r9d, esi
mov dword [rsp + 0x30], 1
sub r9d, r12d
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x40]
sub r9d, r14d
mov r8, rbp
mov rcx, r13
dec r9d
mov dword [rsp + 0x20], r14d
call qword [r13 + 0x98]
movzx r8d, byte [r13 + 0x2e1]
lea r9, [rsp + 0x40]
mov edx, esi
mov rcx, rbp
mov ebx, eax
call fcn.180025310
or al, dil
not al
movzx ecx, al
shr cl, 4
and al, cl
movzx ecx, al
shr cl, 2
and al, cl
movzx eax, al
mov ecx, eax
shr ecx, 1
and ecx, eax
lea eax, [rbx + rcx - 1]
mov ecx, 0xfffffecf
test eax, eax
cmovne eax, ecx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800334b0
add rsp, 0x70
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180025990
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov rax, qword [0x1800ac030]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor ebx, ebx
mov rsi, rcx
mov rcx, qword [rsp + 0xf0]
movzx eax, byte [rsi + 0x2dd]
movzx r12d, byte [rsi + 0x2e1]
mov r13, rdx
mov r10d, r9d
mov qword [rsp + 0x40], rcx
mov edx, ebx
mov ebp, ebx
mov r14d, ebx
movsxd r15, r12d
movsxd rdi, r8d
cmp al, 1
jne 0x180025af0
movzx r9d, word [rsi + 0x3a4]
mov eax, 0x4000
test ax, r9w
je 0x180025a09
movzx edx, word [rsi + 0x2d8]
movsxd rax, edx
mov ecx, r8d
mov r14d, 1
sub rcx, rax
mov eax, 0x2000
mov dword [rsp + 0x48], r14d
movzx ebp, byte [rcx + r13 - 1]
test ax, r9w
je 0x180025a59
sub r8d, edx
mov dword [rsp + 0x28], r10d
mov r9d, r12d
mov dword [rsp + 0x20], r8d
mov rdx, r13
mov rcx, rsi
mov r8d, ebp
call fcn.180025530
test eax, eax
je 0x180025b7d
jmp 0x180025b9e
sub r8d, r12d
mov r14d, ebx
lea eax, [r8 - 1]
cmp ebp, eax
jbe 0x180025a6f
mov ebp, ebx
mov r14d, 1
sub r8d, ebp
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], r10d
lea r9d, [r8 - 1]
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov r8, r13
mov dword [rsp + 0x20], ebp
call qword [rsi + 0x98]
mov r11d, eax
test r12d, r12d
jle 0x180025ad8
mov ecx, ebp
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x50]
sub rdi, rcx
mov r8, r12
sub rdi, r15
sub rdi, rax
lea r9, [rdi + r13 - 1]
nop dword [rax]
movzx ecx, byte [r9 + rdx]
movzx eax, byte [rdx]
inc rdx
xor ecx, eax
or ebx, ecx
dec r8
jne 0x180025ac0
test ebx, ebx
jne 0x180025ae6
test r11d, r11d
jne 0x180025ae6
test r14d, r14d
je 0x180025b78
mov eax, 0xfffffecf
jmp 0x180025b9e
test al, al
jne 0x180025b82
sub r8d, r12d
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], r9d
mov r9d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov r8, r13
mov dword [rsp + 0x20], 0xffffffff
call qword [rsi + 0x98]
mov r11d, eax
test r12d, r12d
jle 0x180025b6c
lea rax, [rsp + 0x50]
sub rdi, r15
lea rdx, [rsp + 0x50]
sub rdi, rax
mov r8, r12
lea r9, [rdi + r13]
nop word [rax + rax]
movzx ecx, byte [r9 + rdx]
movzx eax, byte [rdx]
inc rdx
xor ecx, eax
or ebx, ecx
dec r8
jne 0x180025b50
test ebx, ebx
jne 0x180025ae6
test r11d, r11d
je 0x180025b7d
mov eax, 0xfffffecf
jmp 0x180025b9e
mov r14d, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
cmp byte [rsi + 0x2dd], 2
jne 0x180025b94
movzx eax, word [rsi + 0x2da]
jmp 0x180025b9a
lea eax, [r12 + r14]
add eax, ebp
mov dword [rcx], eax
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1800334b0
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18002eac0
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4c0]
sub rsp, 0x5c0
mov rax, qword [0x1800ac030]
xor rax, rsp
mov qword [rbp + 0x4b0], rax
mov rdx, qword [rcx + 0x10]
xor edi, edi
mov r14, rcx
movsxd rbx, dword [rdx + 0x10]
mov rdx, qword [rdx + 8]
lea rcx, [rbp + 0x40]
mov eax, ebx
mov r8d, ebx
mov qword [rbp + 0x30], rdi
mov dword [rbp + 0x1c], 0x67452301
mov dword [rbp + 0x20], 0xefcdab89
mov dword [rbp + 0x24], 0x98badcfe
mov qword [rsp + 0x28], rax
mov dword [rbp + 0x28], 0x10325476
mov qword [rbp - 0x30], rdi
mov dword [rbp - 0x28], edi
mov qword [rbp - 0x40], rdi
mov dword [rbp - 0x54], 0x67452301
mov dword [rbp - 0x50], 0xefcdab89
mov dword [rbp - 0x4c], 0x98badcfe
mov dword [rbp - 0x48], 0x10325476
mov dword [rbp - 0x44], 0xc3d2e1f0
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], edi
call fcn.180033ff0
lea eax, [rbx + 0x40]
mov r15d, edi
mov r12, rbx
mov esi, edi
lea r13, [rbp + rbx + 0x261]
mov dword [rsp + 0x24], eax
nop word [rax + rax]
cmp esi, 0x80
ja 0x18002ecd3
lea rcx, [rsp + 0x30]
mov edx, r15d
call fcn.18002dcf0
test eax, eax
je 0x18002ecd3
inc r15d
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x260]
movsxd r8, r15d
call fcn.180033ff0
mov rbx, qword [r14 + 0x10]
mov r8, qword [rsp + 0x28]
mov rdx, qword [rbx + 8]
lea rcx, [rbp + r15 + 0x260]
call fcn.180033ff0
mov rax, qword [rbx + 0x1c]
mov qword [r13], rax
mov rax, qword [rbx + 0x24]
mov qword [r13 + 8], rax
mov rax, qword [rbx + 0x2c]
mov qword [r13 + 0x10], rax
mov rax, qword [rbx + 0x34]
mov qword [r13 + 0x18], rax
mov rax, qword [rbx + 0x3c]
mov qword [r13 + 0x20], rax
mov rax, qword [rbx + 0x44]
mov qword [r13 + 0x28], rax
mov rax, qword [rbx + 0x4c]
mov qword [r13 + 0x30], rax
mov rax, qword [rbx + 0x54]
mov qword [r13 + 0x38], rax
test edi, edi
jne 0x18002ec56
mov r8d, dword [rsp + 0x24]
lea rdx, [rbp + 0x260]
lea rcx, [rsp + 0x60]
add r8d, r15d
call fcn.18001da30
mov edi, eax
test eax, eax
jne 0x18002ec56
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.18001dd00
mov edi, eax
mov rax, qword [rsp + 0x40]
mov qword [rbp + r12 + 0x40], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp + r12 + 0x48], rax
mov eax, dword [rsp + 0x50]
mov dword [rbp + r12 + 0x50], eax
test edi, edi
jne 0x18002eca8
mov r8d, r12d
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x30]
add r8d, 0x14
call fcn.1800182d0
mov edi, eax
test eax, eax
jne 0x18002eca8
mov rax, qword [r14 + 0x10]
movsxd rcx, esi
lea rdx, [rcx + rax + 0x7d]
lea rcx, [rbp - 0x30]
call fcn.180018470
mov edi, eax
add esi, 0x10
inc r13
cmp esi, 0x30
jl 0x18002eb90
test edi, edi
jne 0x18002ecd8
mov rcx, r14
call fcn.18002e5f0
mov edi, eax
test eax, eax
jne 0x18002ecd8
mov rcx, r14
call fcn.18002ea00
jmp 0x18002ece2
mov edi, 0xfffffed2
mov rcx, r14
call fcn.18002ea00
mov eax, edi
mov rcx, qword [rbp + 0x4b0]
xor rcx, rsp
call fcn.1800334b0
lea r11, [rsp + 0x5c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x180030870
Capabilities:
Hash data with md5

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x1800ac030]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor edi, edi
mov dword [r11 - 0x3c], 0x67452301
mov dword [r11 - 0x38], 0xefcdab89
mov dword [r11 - 0x34], 0x98badcfe
mov dword [r11 - 0x30], 0x10325476
mov qword [r11 - 0x28], rdi
mov rbx, r8
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x48], edi
call fcn.1800182d0
test eax, eax
jne 0x1800308e6
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.180018470
mov dword [rbx], eax
test eax, eax
jne 0x180030911
movzx eax, byte [rsp + 0x21]
movzx ecx, byte [rsp + 0x20]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x22]
shl eax, 8
shl ecx, 0x10
or ecx, eax
movzx eax, byte [rsp + 0x23]
or eax, ecx
jmp 0x180030913
mov eax, edi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1800334b0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret

Function at 0x180032a40
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1800ac030]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, Ordinal_41
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x180032a85
or eax, 0xffffffff
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800334b0
add rsp, 0x68
ret
lea r8, [rsp + 0x38]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x180032ad9
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x44], rax
xor eax, eax
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9d, [rax + 0x10]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800334b0
add rsp, 0x68
ret

Function at 0x180032f50
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, [0x180032de0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x180032f86
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret
Function at 0x1800332f0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x8f0
mov rax, qword [0x1800ac030]
xor rax, rsp
mov qword [rsp + 0x8e0], rax
xor edi, edi
mov rbx, rcx
lea rcx, [rsp + 0x78]
lea r8d, [rdi + 0x60]
xor edx, edx
mov dword [rsp + 0x70], edi
call fcn.180037c60
xor eax, eax
lea rcx, [rsp + 0xe2]
xor edx, edx
mov r8d, 0x7fe
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0xac], 1
mov word [rsp + 0xb0], di
mov word [rsp + 0xe0], di
call fcn.180037c60
lea r8, str.rundll32.exe__s_2
lea rcx, [rsp + 0xe0]
mov r9, rbx
mov edx, 0x400
call fcn.180033868
lea r11, [rsp + 0x50]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
lea rdx, [rsp + 0xe0]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x8e0]
xor rcx, rsp
call fcn.1800334b0
mov rbx, qword [rsp + 0x908]
add rsp, 0x8f0
pop rdi
ret

Function at 0x180035cc3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800ac030]
jne 0x1800334ca
rol rcx, 0x10
test cx, 0xffff
jne 0x1800334c6
repz ret
ror rcx, 0x10
jmp 0x180035c1c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800aede0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1800aeed8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call fcn.1800831ce
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180035ca1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1800aede0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call fcn.1800831c8
jmp 0x180035cc3
mov rax, qword [rsp + 0x88]
mov qword [0x1800aeed8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800aee78], rax
mov rax, qword [0x1800aeed8]
mov qword [0x1800aed50], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800aee60], rax
mov dword [0x1800aed40], 0xc0000409
mov dword [0x1800aed44], 1
mov rax, qword [0x1800ac030]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800ac038]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800aedd8], eax
mov ecx, 1
call fcn.18003e718
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18008d608]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800aedd8], 0
jne 0x180035d4a
mov ecx, 1
call fcn.18003e718
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x180040bd4
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1800ac030]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18003692c
xor ebx, ebx
cmp qword [0x1800afde8], rbx
mov rdi, rax
jne 0x180040ce7
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180040dbe
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180040dbe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800afde8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800afdf0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1800afdf8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1800afe08], rax
test rax, rax
je 0x180040cde
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1800afe00], rax
jmp 0x180040cee
mov rax, qword [0x1800afe00]
jmp 0x180040cf5
mov rax, qword [0x1800afe00]
mov r11, qword [0x1800afe08]
cmp rax, rdi
je 0x180040d5c
cmp r11, rdi
je 0x180040d5c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1800afe08]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180040d5c
test rax, rax
je 0x180040d5c
call rsi
test rax, rax
je 0x180040d56
lea rcx, [rsp + 0x30]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180040d56
test byte [rsp + 0x40], 1
jne 0x180040d5c
bts ebp, 0x15
jmp 0x180040d9c
mov rcx, qword [0x1800afdf0]
cmp rcx, rdi
je 0x180040d9c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180040d9c
call rax
mov rbx, rax
test rax, rax
je 0x180040d9c
mov rcx, qword [0x1800afdf8]
cmp rcx, rdi
je 0x180040d9c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180040d9c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800afde8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180040dbe
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180040dc0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800334b0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18004ca00
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rsi, [rcx + rdx]
mov rbx, rcx
mov edi, 0x1505
cmp rcx, rsi
jae 0x18004c9eb
movzx ecx, byte [rbx]
call fcn.18004e5e0
inc rbx
movsx rdx, al
imul rdi, rdi, 0x21
xor rdi, rdx
cmp rbx, rsi
jb 0x18004c9d0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
movzx eax, dil
add rsp, 0x20
pop rdi
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x18004ca36
call fcn.18004c790
test eax, eax
jne 0x18004ca36
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.18004c910
mov rdx, qword [rsp + 0x30]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x18004c9b0
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x18004ee50
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov r9d, ecx
mov rcx, r8
call fcn.18004ee20
mov ecx, r9d
mov r8d, eax
call fcn.18003ccb8
cdqe
add rsp, 0x28
ret
Function at 0x1800502e0
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.kernel32
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x18005030a
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
lea rdx, str.LoadLibraryExW
mov rcx, rax
mov qword [rsp + 0x40], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x180090cc0]
mov rcx, rbx
mov rbp, rax
call fcn.180083c28
test rax, rax
je 0x18005036c
mov rcx, rbx
test rbp, rbp
je 0x180050356
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rbp, qword [rsp + 0x40]
mov rsi, rax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, qword [rsp + 0x40]
mov rsi, rax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
test rbp, rbp
je 0x1800503a3
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800503a3
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rbp, qword [rsp + 0x40]
mov rsi, rax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x50], r13
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r13d, eax
test eax, eax
je 0x18005049a
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
lea edx, [r13 + 1]
mov qword [rsp + 0x48], r12
not rcx
dec rcx
add rdx, rcx
lea rcx, [rdx + rdx]
call qword [fcn.1800339ec]
mov r12, rax
test rax, rax
je 0x18005048c
mov edx, r13d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x18005048c
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
repne scasw ax, word [rdi]
lea rdx, [0x180099798]
not rcx
dec rcx
add rcx, rcx
sub rcx, rdx
add rcx, r12
nop word [rax + rax]
movzx eax, word [rdx]
add rdx, 2
mov word [rcx + rdx - 2], ax
test ax, ax
jne 0x180050430
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea rdx, [rcx + rcx - 2]
sub rdx, rbx
add rdx, r12
nop dword [rax + rax]
movzx eax, word [rbx]
add rbx, 2
mov word [rdx + rbx - 2], ax
test ax, ax
jne 0x180050460
mov rcx, r12
test rbp, rbp
je 0x180050483
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x180050489
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, r12
call qword [fcn.1800337e4]
mov r12, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x40]
mov rax, rsi
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800504b0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1800ac030]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
test cl, 2
je 0x180050516
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1800504f9
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x1800504f3
shr ax, 8
cmp al, 2
je 0x180050516
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800334b0
add rsp, 0x1d8
ret
lea rcx, str.iphlpapi.dll
call fcn.1800502e0
mov qword [0x1800affb0], rax
test rax, rax
je 0x180050553
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800affb8]
test rax, rax
cmovne rcx, rax
mov qword [0x1800affb8], rcx
xor edx, edx
lea r9d, [rdx + 3]
lea r8d, [rdx + 2]
lea ecx, [rdx + 6]
call fcn.180050170
test eax, eax
je 0x180050582
lea rcx, [0x1800b3430]
mov dword [0x1800b3438], 1
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
jmp 0x18005058c
mov dword [0x1800b3438], 0
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800334b0
add rsp, 0x1d8
ret