joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000bf54
Capabilities:
Check if file exists
Get common file path
Get file attributes
Read .ini file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
lea rbp, [rax - 0x818]
sub rsp, 0x910
mov rsi, rdx
mov r12, rcx
lea rcx, [rbp - 0x58]
lea rdx, str.MozillaFirefox
mov r8d, 0x20
call sub.msvcrt.dll_memcpy
xor r9d, r9d
lea r11, [rbp - 0x30]
lea edx, [r9 + 0x1a]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], r11
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x18000c14e
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x30]
call fcn.18001c34c
test eax, eax
je 0x18000c14e
mov rax, qword [str.profiles.ini]
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x58], rax
mov rax, qword [0x180023778]
lea rcx, [rbp + 0x1e0]
mov qword [rsp + 0x60], rax
mov rax, qword [0x180023780]
mov qword [rsp + 0x68], rax
movzx eax, word [0x180023788]
mov word [rsp + 0x70], ax
call fcn.18001c34c
test eax, eax
je 0x18000c14e
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18000c14e
mov rax, qword [str.IsRelative]
xor bl, bl
mov qword [rsp + 0x40], rax
mov rax, qword [0x180023760]
mov qword [rsp + 0x48], rax
mov eax, dword [0x180023768]
mov dword [rsp + 0x50], eax
movzx eax, word [0x18002376c]
mov word [rsp + 0x54], ax
mov rax, qword [str.Path]
mov qword [rsp + 0x30], rax
movzx eax, word [0x180023750]
mov word [rsp + 0x38], ax
lea r8, str.Profile_u
lea rcx, [rsp + 0x78]
movzx r9d, bl
mov edx, 0xf
call fcn.180019ab4
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x78]
mov r8d, 0x20
call fcn.18001a444
lea r9, [rbp + 0x1e0]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x78]
or r8d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
cmp eax, 0xffffffff
je 0x18000c14e
lea rax, [rbp + 0x1e0]
lea r9, [rbp + 0x3f0]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rcx, [rbp - 0x78]
xor r8d, r8d
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x18000c143
lea rcx, [rbp + 0x3f0]
call fcn.18001c384
cmp edi, 1
jne 0x18000c132
lea r8, [rbp + 0x3f0]
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x600]
call fcn.18001c34c
test eax, eax
je 0x18000c143
lea rcx, [rbp + 0x600]
jmp 0x18000c139
lea rcx, [rbp + 0x3f0]
mov rdx, rsi
call r12
test eax, eax
je 0x18000c14e
inc bl
cmp bl, 0xfa
jb 0x18000c079
lea r11, [rsp + 0x910]
mov dword [0x180031128], 1
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x18000da30
Capabilities:
Create thread

Disassembly:
mov rax, rsp
sub rsp, 0x78
mov rcx, qword [0x180032e30]
and qword [rax + 8], 0
call fcn.18001a340
mov r8d, dword [0x180032c1c]
lea rcx, [rsp + 0x48]
mov rdx, rax
mov qword [rsp + 0x80], rax
call fcn.18001cb5c
lea rcx, [rsp + 0x80]
or rdx, 0xffffffffffffffff
call fcn.180019590
lea rcx, [rsp + 0x30]
call fcn.18001c978
xor r8d, r8d
xor edx, edx
lea r9, [rsp + 0x48]
test eax, eax
jns 0x18000da91
xor ecx, ecx
jmp 0x18000da96
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x1800311a8], rax
test rax, rax
jne 0x18000daac
xor eax, eax
jmp 0x18000db1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x18000dae4
mov rcx, qword [0x1800311a8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x18000dad9
mov rcx, qword [0x1800311a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000daa8
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [0x180031184]
lea r8, [0x18000d9c4]
xor r9d, r9d
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x180031190], rax
test rax, rax
je 0x18000daca
mov eax, 1
add rsp, 0x78
ret

Function at 0x18000dbfc
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, r8
mov rdi, rcx
mov qword [0x1800330d8], rcx
cmp edx, 1
jne 0x18000dd26
cmp dword [r8 + 0x2fb], 0xe291a0f3
je 0x18000dc30
xor eax, eax
jmp 0x18000dd82
call fcn.180019540
mov ecx, 1
call fcn.180019f6c
test eax, eax
js 0x18000dc29
mov r8d, 5
mov rdx, rbx
mov rcx, rdi
call fcn.18001d4a0
test eax, eax
je 0x18000dc29
call fcn.18000dba8
test eax, eax
jne 0x18000dc29
call fcn.18000da30
test eax, eax
je 0x18000dc29
call fcn.18001afd0
call fcn.18001b700
mov ecx, 0x15f
call fcn.180019e7c
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18000dcad
lea r9, [0x180031180]
xor r8d, r8d
mov dl, 0x3b
mov rcx, rax
call fcn.18001a588
lea rcx, [rsp + 0x30]
mov qword [0x180031198], rax
call fcn.180019f60
call fcn.18000233c
mov rcx, qword [0x180032e30]
call fcn.18000db20
test eax, eax
je 0x18000dcc9
call fcn.180002574
jmp 0x18000dd1d
call fcn.180009ec4
call fcn.180009198
call fcn.180011e50
call fcn.18000e49c
call fcn.180001eb8
call fcn.180011f7c
call fcn.1800087dc
call fcn.18000e158
call fcn.180006480
call fcn.180002574
call fcn.18000254c
call fcn.180002560
call fcn.1800028e8
call fcn.180002860
call fcn.18000dd90
test eax, eax
je 0x18000dd1d
call fcn.180002588
xor ecx, ecx
call fcn.1800023a4
jmp 0x18000dd7d
test edx, edx
jne 0x18000dd7d
call fcn.1800023ac
call fcn.18000f028
call fcn.180009ef0
mov ecx, 1
call fcn.18001b660
call fcn.180001ef0
call fcn.18001ad44
call fcn.180008820
lea rdx, [0x180031180]
lea rcx, [0x180031198]
call fcn.18001a6c0
cmp dword [0x18002fb14], 0
je 0x18000dd7d
mov rcx, qword [0x180031190]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18000e000
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x180033148], 0
mov esi, r8d
mov edi, edx
mov rbx, rcx
jne 0x18000e024
xor eax, eax
jmp 0x18000e056
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, edi
je 0x18000e020
test esi, esi
jne 0x18000e03b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, edi
mov rcx, rbx
call fcn.18000df20
mov edi, eax
test esi, esi
jne 0x18000e054
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18000e068
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
xor ebx, ebx
mov r12d, ecx
cmp dword [0x180033148], ebx
mov esi, ebx
jne 0x18000e096
xor eax, eax
jmp 0x18000e13e
mov r13d, dword [0x180032c1c]
xor edx, edx
lea ecx, [rdx + 4]
call qword [0x180035f98]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x18000e08f
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x18000e133
cmp dword [rsp + 0x2c], r13d
jne 0x18000e120
mov r8d, dword [rsp + 0x28]
xor edx, edx
lea ecx, [rdx + 0x4a]
call qword [0x180035e78]
mov rdi, rax
test rax, rax
je 0x18000e120
mov edx, dword [rsp + 0x28]
xor r8d, r8d
mov rcx, rax
call fcn.18000e000
test eax, eax
je 0x18000e117
mov rcx, rdi
test r12d, r12d
je 0x18000e10c
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x18000e112
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov esi, 1
mov rcx, rdi
call qword [0x180035ed8]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x18000e0ca
mov ebx, esi
mov rcx, rbp
call qword [0x180035ed8]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret

Function at 0x18000e3e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [0x180036300]
mov rcx, qword [0x1800330d8]
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
jne 0x18000e418
xor eax, eax
jmp 0x18000e452
mov rcx, qword [0x1800330d8]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [0x1800330d8]
mov rdx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18000e414
mov r9d, 4
xor r8d, r8d
mov edx, edi
mov rcx, rax
call fcn.18001dab8
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18000e4c0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
and qword [0x180033168], 0
and qword [rbp + 0x30], 0
mov edi, 1
mov ecx, 0x2a34
mov dword [0x180033160], edi
call fcn.180019e7c
mov qword [rbp + 0x30], rax
test rax, rax
je 0x18000e59d
lea r8d, [rdi + 0x1e]
lea rdx, [rbp - 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x18000e594
and qword [rbp + 0x28], 0
and qword [rbp + 0x38], 0
mov ecx, 0x949
call fcn.180019d9c
lea rdx, [0x180023854]
lea rcx, [0x180032a10]
mov r8, rax
xor r9d, r9d
mov qword [rbp + 0x38], rax
call fcn.18001a508
lea rcx, [rbp + 0x38]
mov qword [rbp + 0x28], rax
call fcn.180019f60
mov rcx, qword [rbp + 0x28]
call fcn.18001c3bc
test eax, eax
jne 0x18000e584
lea rcx, [rbp + 0x30]
mov dword [0x180033164], edi
call fcn.180019f60
lea rcx, [rbp + 0x28]
mov rdx, 0xfffffffffffffffe
call fcn.180019590
xor eax, eax
jmp 0x18000e701
lea rcx, [rbp + 0x28]
mov rdx, 0xfffffffffffffffe
call fcn.180019590
lea rcx, [rbp + 0x30]
call fcn.180019f60
call fcn.18001b000
lea rsi, [0x180031254]
test eax, eax
jne 0x18000e5dd
mov edx, dword [0x1800330c0]
mov rcx, qword [0x1800330b8]
mov r9d, edi
mov r8, rsi
call fcn.18001b4a0
mov edx, dword [0x1800330d0]
mov rcx, qword [0x1800330c8]
xor r9d, r9d
mov r8, rsi
call fcn.18001b4a0
mov ecx, 0x14
call fcn.18001b410
test rax, rax
je 0x18000e5f1
cmp byte [rax], 0x31
je 0x18000e57d
mov edx, 0x3a98
xor ecx, ecx
call fcn.18001a9b4
mov qword [0x180033158], rax
test rax, rax
je 0x18000e57d
mov ecx, dword [0x18002fbc0]
imul rcx, rcx, 0xfc50
call fcn.180019560
mov qword [0x180033150], rax
test rax, rax
jne 0x18000e636
and dword [0x18002fbc0], eax
jmp 0x18000e57d
call fcn.18000e3e8
mov qword [rbp + 0x20], rax
test rax, rax
je 0x18000e657
mov rcx, rax
call fcn.18000fb18
lea rcx, [rbp + 0x20]
xor edx, edx
call fcn.18001db58
mov edx, dword [0x180033090]
mov rcx, qword [0x180033088]
mov r9d, edi
mov r8, rsi
call fcn.18001dab8
mov qword [rbp + 0x20], rax
test rax, rax
je 0x18000e68b
mov rcx, rax
call fcn.18000fb18
lea rcx, [rbp + 0x20]
xor edx, edx
call fcn.18001db58
mov edx, dword [0x1800330a0]
mov rcx, qword [0x180033098]
mov r9d, edi
mov r8, rsi
call fcn.18001dab8
mov qword [rbp + 0x20], rax
test rax, rax
je 0x18000e6bf
mov rcx, rax
call fcn.18000fb18
lea rcx, [rbp + 0x20]
xor edx, edx
call fcn.18001db58
mov edx, dword [0x1800330b0]
mov rcx, qword [0x1800330a8]
mov r9d, edi
mov r8, rsi
call fcn.18001dab8
mov qword [rbp + 0x20], rax
test rax, rax
je 0x18000e6f3
mov rcx, rax
call fcn.18000fb18
lea rcx, [rbp + 0x20]
xor edx, edx
call fcn.18001db58
mov rcx, qword [0x180033158]
call fcn.18001a99c
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180019d9c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor ebx, ebx
movsxd rsi, ecx
lea r12, str.4kM
cmp qword [0x180035e00], rbx
mov edi, ebx
jne 0x180019ded
mov edx, 0x2c6d
mov rcx, r12
call fcn.180019630
mov qword [0x180035e00], rax
test rax, rax
jne 0x180019ded
lea rax, [0x180035e14]
jmp 0x180019e62
mov r8d, 0x2c6c
mov ecx, esi
lea r13, [0x18002fc30]
cmp esi, r8d
jae 0x180019e22
lea rdx, [r12 + rsi]
mov eax, ecx
and eax, 0x3f
mov al, byte [rax + r13]
xor al, byte [rdx]
je 0x180019e1e
inc ecx
inc rdx
cmp ecx, r8d
jb 0x180019e05
jmp 0x180019e22
mov edi, ecx
sub edi, esi
lea ecx, [rdi + 1]
add rcx, rcx
call fcn.180019560
mov r11, rax
test rax, rax
je 0x180019de4
test edi, edi
je 0x180019e5f
lea rcx, [r12 + rsi]
mov rdx, rax
lea eax, [rbx + rsi]
inc ebx
and eax, 0x3f
mov al, byte [rax + r13]
xor al, byte [rcx]
inc rcx
movsx eax, al
mov word [rdx], ax
add rdx, 2
cmp ebx, edi
jb 0x180019e40
mov rax, r11
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x180019e7c
Capabilities:
Encode data using xor

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
sub rsp, 0x20
mov rax, qword [0x180035e00]
xor ebx, ebx
movsxd rsi, ecx
mov edi, ebx
test rax, rax
jne 0x180019ece
lea rcx, str.4kM
mov edx, 0x2c6d
call fcn.180019630
mov qword [0x180035e00], rax
test rax, rax
jne 0x180019ece
lea rax, [0x180035e10]
jmp 0x180019f45
mov r8d, 0x2c6c
mov ecx, esi
mov rbp, rsi
lea r12, [0x18002fc30]
cmp esi, r8d
jae 0x180019f06
lea rdx, [rax + rsi]
mov eax, ecx
and eax, 0x3f
mov al, byte [rax + r12]
xor al, byte [rdx]
je 0x180019f02
inc ecx
inc rdx
cmp ecx, r8d
jb 0x180019ee9
jmp 0x180019f06
mov edi, ecx
sub edi, esi
lea ecx, [rdi + 1]
call fcn.180019560
mov r11, rax
test rax, rax
je 0x180019ec5
test edi, edi
je 0x180019f42
mov rdx, qword [0x180035e00]
sub rbp, rax
mov rcx, rax
add rdx, rbp
lea eax, [rbx + rsi]
inc ebx
and eax, 0x3f
mov al, byte [rax + r12]
xor al, byte [rdx + rcx]
mov byte [rcx], al
inc rcx
cmp ebx, edi
jb 0x180019f2a
mov rax, r11
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x18001a758
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rdx], ecx
mov dword [rdx + 0x9c0], 1
movsxd rcx, dword [rdx + 0x9c0]
mov eax, dword [rdx + rcx*4 - 4]
shr eax, 0x1e
xor eax, dword [rdx + rcx*4 - 4]
imul eax, eax, 0x6c078965
add eax, ecx
mov dword [rdx + rcx*4], eax
inc dword [rdx + 0x9c0]
cmp dword [rdx + 0x9c0], 0x270
jl 0x18001a764
repz ret
Function at 0x18001a798
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [rcx + 0x9c0], 0x270
mov r8, rcx
jl 0x18001a85d
xor r9d, r9d
mov r10d, 0x7fffffff
lea r11, [0x18002fcc8]
mov edx, 0xe3
mov ecx, dword [r8 + r9*4 + 4]
xor ecx, dword [r8 + r9*4]
and ecx, r10d
xor ecx, dword [r8 + r9*4]
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [r11 + rax*4]
xor eax, ecx
xor eax, dword [r8 + r9*4 + 0x634]
mov dword [r8 + r9*4], eax
inc r9
cmp r9, rdx
jl 0x18001a7c0
mov ecx, dword [r8 + rdx*4 + 4]
xor ecx, dword [r8 + rdx*4]
and ecx, r10d
xor ecx, dword [r8 + rdx*4]
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [r11 + rax*4]
xor eax, ecx
xor eax, dword [r8 + rdx*4 - 0x38c]
mov dword [r8 + rdx*4], eax
inc rdx
cmp rdx, 0x26f
jl 0x18001a7f1
mov edx, dword [r8 + 0x9bc]
xor edx, dword [r8]
and edx, r10d
xor edx, dword [r8 + 0x9bc]
mov eax, edx
shr edx, 1
and eax, 1
mov ecx, dword [r11 + rax*4]
xor ecx, dword [r8 + 0x630]
xor ecx, edx
and dword [r8 + 0x9c0], 0
mov dword [r8 + 0x9bc], ecx
movsxd rcx, dword [r8 + 0x9c0]
mov edx, dword [r8 + rcx*4]
lea eax, [rcx + 1]
mov dword [r8 + 0x9c0], eax
mov eax, edx
shr eax, 0xb
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret

Function at 0x18001a934
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
not r8d
test edx, edx
jne 0x18001a941
xor eax, eax
ret
mov r9d, edx
lea rdx, [0x18002a5c0]
movzx eax, byte [r10]
inc r10
xor r8d, eax
mov eax, r8d
shr r8d, 4
and eax, 0xf
mov ecx, dword [rdx + rax*4]
xor ecx, r8d
mov eax, ecx
shr ecx, 4
and eax, 0xf
mov r8d, dword [rdx + rax*4]
xor r8d, ecx
dec r9
jne 0x18001a94b
not r8d
mov eax, r8d
ret

Function at 0x18001a9b4
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov r8, rcx
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
test rax, rax
je 0x18001aa01
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x18001a9fe
mov edx, edi
mov rcx, rbx
call fcn.18001a980
test eax, eax
jns 0x18001a9fe
mov rcx, rbx
call qword [0x180035ed8]
xor ebx, ebx
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18001c3a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x18001c3bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x18001c554
Capabilities:
Compare security identifiers

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
mov rbp, rsp
sub rsp, 0x68
xor r13d, r13d
mov word [rbp + 0x44], 0x500
lea ecx, [r13 + 8]
mov ebx, r13d
mov qword [rbp + 0x48], r13
mov dword [rbp + 0x40], r13d
call fcn.18001c3d8
mov rsi, rax
test rax, rax
je 0x18001c64b
mov edi, 2
lea r8, [rbp + 0x38]
mov rcx, rax
mov edx, edi
call fcn.18001c434
mov qword [rbp + 0x48], rax
test rax, rax
je 0x18001c62f
lea rax, [rbp + 0x50]
lea r8d, [rdi + 0x1e]
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov r9d, 0x220
mov edx, edi
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
call qword [0x180036020]
test eax, eax
je 0x18001c62f
mov rax, qword [rbp + 0x48]
mov edi, r13d
cmp dword [rax], r13d
jbe 0x18001c625
mov r12, r13
mov rdx, qword [rbp + 0x50]
mov rcx, qword [r12 + rax + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x18001c620
mov rax, qword [rbp + 0x48]
inc edi
add r12, 0x10
cmp edi, dword [rax]
jb 0x18001c5fd
jmp 0x18001c625
mov ebx, 1
mov rcx, qword [rbp + 0x50]
call qword [0x180035f60]
mov rcx, rsi
call qword [0x180035ed8]
cmp qword [rbp + 0x48], r13
je 0x18001c649
lea rcx, [rbp + 0x48]
xor edx, edx
call fcn.180019590
mov eax, ebx
add rsp, 0x68
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x18001c658
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x60
xor r9d, r9d
mov dword [rax + 0x10], 0
mov word [rax + 0x14], 0x500
lea rax, [rax + 0x18]
mov rbx, rcx
lea edx, [r9 + 1]
mov qword [rsp + 0x50], rax
and dword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8d, [r9 + 0x12]
lea rcx, [rsp + 0x78]
call qword [0x180036020]
test eax, eax
je 0x18001c6d4
mov rdx, qword [rsp + 0x80]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_EqualSid]
mov rcx, qword [rsp + 0x80]
mov ebx, eax
call qword [0x180035f60]
mov eax, ebx
add rsp, 0x60
pop rbx
ret

Function at 0x18001ceec
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
cmp dword [0x180031250], 0
je 0x18001cf00
mov eax, 9
jmp 0x18001cf10
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [rsp + 0x20]
add rsp, 0x58
ret
Function at 0x18001de5c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r9b, byte [r8 + 0x100]
mov r10b, byte [r8 + 0x101]
movsxd rdx, edx
mov r11, rcx
test rdx, rdx
jle 0x18001defd
movzx r9d, r9b
inc r9d
and r9d, 0x800000ff
jge 0x18001de9c
dec r9d
or r9d, 0xffffff00
inc r9d
movzx r10d, r10b
movzx ebx, r9b
movzx edi, byte [rbx + r8]
add r10d, edi
and r10d, 0x800000ff
jge 0x18001dec2
dec r10d
or r10d, 0xffffff00
inc r10d
movzx ecx, r10b
mov al, byte [rcx + r8]
mov byte [rbx + r8], al
mov byte [rcx + r8], dil
movzx ecx, byte [rbx + r8]
add ecx, edi
and ecx, 0x800000ff
jge 0x18001deeb
dec ecx
or ecx, 0xffffff00
inc ecx
movzx eax, cl
mov cl, byte [rax + r8]
xor byte [r11], cl
inc r11
dec rdx
jne 0x18001de7f
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov byte [r8 + 0x100], r9b
mov byte [r8 + 0x101], r10b
ret

Function at 0x18001e134
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
movsxd rax, dword [rcx + 0x5c]
cmp dword [rcx + 0x5c], 0x37
mov rbx, rcx
mov byte [rax + rcx + 0x1c], 0x80
jle 0x18001e182
jmp 0x18001e155
cdqe
mov byte [rax + rcx + 0x1c], 0
inc dword [rcx + 0x5c]
mov eax, dword [rcx + 0x5c]
cmp eax, 0x40
jl 0x18001e14e
call fcn.18001df48
jmp 0x18001e173
movsxd rax, dword [rbx + 0x5c]
mov byte [rax + rbx + 0x1c], 0
inc dword [rbx + 0x5c]
cmp dword [rbx + 0x5c], 0x38
jl 0x18001e167
jmp 0x18001e18d
cdqe
mov byte [rax + rcx + 0x1c], 0
inc dword [rcx + 0x5c]
mov eax, dword [rcx + 0x5c]
cmp eax, 0x38
jl 0x18001e17b
mov al, byte [rbx + 0x1b]
mov rcx, rbx
mov byte [rbx + 0x54], al
mov al, byte [rbx + 0x1a]
mov byte [rbx + 0x55], al
mov al, byte [rbx + 0x19]
mov byte [rbx + 0x56], al
mov al, byte [rbx + 0x18]
mov byte [rbx + 0x57], al
mov al, byte [rbx + 0x17]
mov byte [rbx + 0x58], al
mov al, byte [rbx + 0x16]
mov byte [rbx + 0x59], al
mov al, byte [rbx + 0x15]
mov byte [rbx + 0x5a], al
mov al, byte [rbx + 0x14]
mov byte [rbx + 0x5b], al
add rsp, 0x20
pop rbx
jmp fcn.18001df48
Function at 0x140001350
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140003638], rbx
je 0x14000139c
cmp rax, rbx
jne 0x14000138f
mov ebx, 1
mov esi, ebx
jmp 0x1400013a1
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140001374
mov ebx, 1
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x1400013b7
mov ecx, 0x1f
call fcn.14011f000
jmp 0x14000141c
mov eax, dword [0x140003640]
test eax, eax
jne 0x140001416
mov dword [0x140003640], ebx
lea r15, [0x1400022d8]
lea rdi, [0x1400022c0]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140001408
test eax, eax
jne 0x14000140c
cmp qword [rdi], 0
je 0x1400013fd
mov rax, qword [rdi]
mov rcx, qword [0x1400022a0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400013de
test eax, eax
je 0x14000141c
mov eax, 0xff
jmp 0x1400014f8
mov dword [0x140003044], ebx
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x140001443
lea rdx, [0x1400022b8]
lea rcx, [0x1400022a8]
call sub.msvcrt.dll__initterm
mov dword [0x140003640], 2
test esi, esi
jne 0x140001450
xor eax, eax
xchg qword [0x140003638], rax
cmp qword [0x140003648], 0
je 0x140001484
lea rcx, [0x140003648]
call fcn.140001700
test eax, eax
je 0x140001484
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140003648]
mov r9, qword [0x1400022a0]
call r9
mov r8, qword [0x140003058]
mov rdx, qword [0x140003050]
mov ecx, dword [0x140003048]
call fcn.1400011ec
mov dword [0x140003040], eax
cmp dword [0x140003060], 0
jne 0x1400014b4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140003044], 0
jne 0x1400014c9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140003040]
jmp 0x1400014f8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140001794
add rsp, 0x28
jmp 0x140001350

Function at 0x1400015ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001638
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001630
cmp dword [rcx + 0x3c], edx
jl 0x140001630
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001630
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140001638
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140004b50
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140004630
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140004b8f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1400442d8]
jmp 0x140004b99
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret