joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000159e
Capabilities:
Encode data using base64

Disassembly:
push rdi
push rsi
push rbx
mov rbx, rcx
mov rsi, rdx
lea r11d, [r8 - 2]
test r11d, r11d
jle 0x1400016b4
mov r10d, 0
lea r9, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movzx eax, byte [rdx]
shr al, 2
movsx rax, al
movzx eax, byte [r9 + rax]
mov byte [rcx], al
movsx eax, byte [rdx]
shl eax, 4
and eax, 0x30
movsx edi, byte [rdx + 1]
sar edi, 4
and edi, 0xf
or eax, edi
cdqe
movzx eax, byte [r9 + rax]
mov byte [rcx + 1], al
movsx eax, byte [rdx + 1]
shl eax, 2
and eax, 0x3c
movsx edi, byte [rdx + 2]
sar edi, 6
and edi, 3
or eax, edi
cdqe
movzx eax, byte [r9 + rax]
mov byte [rcx + 2], al
add rcx, 4
movzx eax, byte [rdx + 2]
and eax, 0x3f
movzx eax, byte [r9 + rax]
mov byte [rcx - 1], al
add r10d, 3
add rdx, 3
cmp r10d, r11d
jl 0x1400015c1
cmp r8d, r10d
jle 0x1400016a6
movsxd r9, r10d
lea rdx, [rsi + r9]
movzx eax, byte [rdx]
shr al, 2
movsx rax, al
lea r11, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movzx eax, byte [r11 + rax]
mov byte [rcx], al
sub r8d, 1
cmp r8d, r10d
je 0x1400016bf
lea r9, [rsi + r9 + 1]
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movsx eax, byte [rdx]
shl eax, 4
and eax, 0x30
movsx edx, byte [r9]
sar edx, 4
and edx, 0xf
or eax, edx
cdqe
movzx eax, byte [r8 + rax]
mov byte [rcx + 1], al
lea rdx, [rcx + 3]
movsx eax, byte [r9]
shl eax, 2
and eax, 0x3c
movzx eax, byte [r8 + rax]
mov byte [rcx + 2], al
lea rcx, [rdx + 1]
mov byte [rdx], 0x3d
mov byte [rcx], 0
lea rax, [rcx + 1]
sub rax, rbx
pop rbx
pop rsi
pop rdi
ret
mov r10d, 0
jmp 0x140001631
movsx eax, byte [rdx]
shl eax, 4
and eax, 0x30
movzx eax, byte [r11 + rax]
mov byte [rcx + 1], al
lea rdx, [rcx + 3]
mov byte [rcx + 2], 0x3d
jmp 0x14000169f

Function at 0x140001ad2
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x248
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0x1a
mov ecx, 0
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, eax
mov eax, 0
test edx, edx
jns 0x140001b12
add rsp, 0x248
ret
lea rcx, [rsp + 0x30]
call fcn.14000182d
jmp 0x140001b0a
Function at 0x140001b1e
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x270
lea rcx, [0x140018188]
call fcn.140005cd5
mov rdi, rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x108
mov r8d, 0
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
je 0x140001b8b
mov esi, 0
mov rcx, rdi
call fcn.140005d5c
mov eax, esi
add rsp, 0x270
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rcx, [0x1400181f8]
call fcn.140005cd5
mov r13, rax
mov ebx, 0
mov rbp, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov r12, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r14, qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x140001bb9
add ebx, 1
mov dword [rsp + 0x4c], 0x104
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x60]
mov edx, ebx
mov rcx, qword [rsp + 0x58]
call rbp
test eax, eax
jne 0x140001c62
lea rdx, [rsp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x101
mov r8d, 0
mov rcx, qword [rsp + 0x58]
call r12
test eax, eax
jne 0x140001bb6
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, r13
mov rcx, qword [rsp + 0x50]
call r14
cmp eax, 1
adc esi, 0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140001bb6
mov rcx, r13
call fcn.140005d5c
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140001b6f

Function at 0x140001cec
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x58
lea rcx, [0x140018260]
call fcn.140005cd5
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, rax
mov rcx, rbx
call fcn.140005d5c
lea rcx, [0x140018281]
call fcn.140005c50
mov rbx, rax
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov rcx, rbx
call fcn.140005d5c
test rsi, rsi
je 0x140001d52
lea rcx, [rsp + 0x20]
call rsi
mov eax, dword [rsp + 0x40]
add rsp, 0x58
pop rbx
pop rsi
ret
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x140001d47
Function at 0x140001dd0
Capabilities:
Link many functions at runtime

Disassembly:
push rsi
push rbx
sub rsp, 0x48
cmp qword [0x14001c0b8], 0
je 0x140001f10
cmp qword [0x14001c0b0], 0
je 0x140001f3c
cmp qword [0x14001c0a8], 0
je 0x140001f6f
cmp qword [0x14001c0a0], 0
je 0x140001fa2
cmp qword [0x14001c098], 0
je 0x140001fce
cmp qword [0x14001c090], 0
je 0x140002001
cmp qword [0x14001c088], 0
je 0x140002034
cmp qword [0x14001c080], 0
je 0x140002067
mov rbx, qword [0x14001c098]
call qword [0x14001c0b0]
mov rcx, rax
lea r8, [rsp + 0x38]
mov edx, 0x18
call rbx
mov esi, 0
test eax, eax
je 0x140001f07
mov dword [rsp + 0x34], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0x19
mov rcx, qword [rsp + 0x38]
call qword [0x14001c090]
mov ecx, dword [rsp + 0x34]
call fcn.140004e20
mov rbx, rax
test rax, rax
je 0x140001efc
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
mov r8, rbx
mov edx, 0x19
mov rcx, qword [rsp + 0x38]
call qword [0x14001c090]
test eax, eax
je 0x140001ef4
mov rsi, qword [0x14001c080]
mov rcx, qword [rbx]
call qword [0x14001c088]
movzx edx, byte [rax]
sub edx, 1
movzx edx, dl
mov rcx, qword [rbx]
call rsi
mov esi, dword [rax]
mov rcx, rbx
call fcn.140004e72
mov rcx, qword [rsp + 0x38]
call qword [0x14001c0a8]
mov eax, esi
add rsp, 0x48
pop rbx
pop rsi
ret
lea rcx, [0x1400182a0]
call fcn.140005cd5
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14001c0b8], rax
mov rcx, rbx
call fcn.140005d5c
jmp 0x140001de4
lea rcx, [0x1400182c1]
call fcn.140005c50
mov rbx, rax
mov rdx, rax
mov rcx, qword [0x14001c0b8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001c0b0], rax
mov rcx, rbx
call fcn.140005d5c
jmp 0x140001df2
lea rcx, [0x1400182db]
call fcn.140005c50
mov rbx, rax
mov rdx, rax
mov rcx, qword [0x14001c0b8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001c0a8], rax
mov rcx, rbx
call fcn.140005d5c
jmp 0x140001e00
lea rcx, [0x1400182f0]
call fcn.140005cd5
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14001c0a0], rax
mov rcx, rbx
call fcn.140005d5c
jmp 0x140001e0e
lea rcx, [0x140018311]
call fcn.140005c50
mov rbx, rax
mov rdx, rax
mov rcx, qword [0x14001c0a0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001c098], rax
mov rcx, rbx
call fcn.140005d5c
jmp 0x140001e1c
lea rcx, [0x14001832a]
call fcn.140005c50
mov rbx, rax
mov rdx, rax
mov rcx, qword [0x14001c0a0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001c090], rax
mov rcx, rbx
call fcn.140005d5c
jmp 0x140001e2a
lea rcx, [0x140018348]
call fcn.140005c50
mov rbx, rax
mov rdx, rax
mov rcx, qword [0x14001c0a0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001c088], rax
mov rcx, rbx
call fcn.140005d5c
jmp 0x140001e38
lea rcx, [0x140018368]
call fcn.140005c50
mov rbx, rax
mov rdx, rax
mov rcx, qword [0x14001c0a0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001c080], rax
mov rcx, rbx
call fcn.140005d5c
jmp 0x140001e46
Function at 0x1400020b3
Capabilities:
Accept command line arguments

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp qword [0x14001c078], 0
je 0x140002103
cmp qword [0x14001c070], 0
je 0x14000212c
mov rbx, qword [0x14001c070]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x2c]
call rbx
mov rsi, rax
mov ebx, 0
test rax, rax
je 0x1400020f9
cmp dword [rsp + 0x2c], 1
jg 0x14000215f
mov eax, ebx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rcx, [0x140018388]
call fcn.140005cd5
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14001c078], rax
mov rcx, rbx
call fcn.140005d5c
jmp 0x1400020c4
lea rcx, [0x1400183a7]
call fcn.140005c50
mov rbx, rax
mov rdx, rax
mov rcx, qword [0x14001c078]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001c070], rax
mov rcx, rbx
call fcn.140005d5c
jmp 0x1400020ce
lea rcx, [0x1400183c2]
call fcn.140005cd5
mov rdi, rax
cmp dword [rsp + 0x2c], 1
jle 0x14000219b
mov ebx, 1
mov rcx, qword [rsi + rbx*8]
mov rdx, rdi
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400021a2
add rbx, 1
cmp dword [rsp + 0x2c], ebx
jg 0x14000217a
mov ebx, 0
jmp 0x1400021a7
mov ebx, 0
jmp 0x1400021a7
mov ebx, 1
mov rcx, rdi
call fcn.140005d5c
jmp 0x1400020f9

Function at 0x1400021d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rcx
not r8d
lea eax, [rdx - 1]
test edx, edx
je 0x140002218
mov eax, eax
lea r10, [rcx + rax + 1]
mov ecx, 0xedb88320
jmp 0x1400021f0
cmp r9, r10
je 0x140002218
add r9, 1
movzx eax, byte [r9 - 1]
xor r8d, eax
mov eax, 8
mov edx, r8d
shr edx, 1
and r8d, 1
cmovne r8d, ecx
xor r8d, edx
sub eax, 1
jne 0x140002201
jmp 0x1400021eb
mov eax, r8d
not eax
ret
Function at 0x1400036f8
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r12, rdx
mov ebp, r8d
call fcn.1400029fd
mov rbx, rax
mov esi, 0
test rax, rax
je 0x1400037d2
mov rcx, rax
call fcn.1400028ad
mov rdi, rax
test rax, rax
je 0x1400037ca
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
mov r9d, 0
mov r8d, 0
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x1400037c2
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov r8d, ebp
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test eax, eax
je 0x1400037b9
cmp dword [rsp + 0x4c], ebp
sete sil
movzx esi, sil
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.140004e72
mov rcx, rbx
call fcn.140004e72
mov eax, esi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x1400038ff
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbp, rdx
call fcn.1400029fd
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400039b4
mov rcx, rax
call fcn.1400028ad
mov rsi, rax
test rax, rax
je 0x1400039ac
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 7
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov r12d, 0
cmp rax, 0xffffffffffffffff
je 0x1400039a1
mov r9d, 2
mov r8d, 0
mov edx, 0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r13d, eax
cmp eax, 0x40000000
jbe 0x1400039c4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.140004e72
mov rsi, r12
mov rcx, rbx
call fcn.140004e72
mov rax, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov ecx, eax
call fcn.140004e20
mov r12, rax
test rax, rax
je 0x140003998
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov r8d, r13d
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140003a15
cmp dword [rsp + 0x4c], r13d
je 0x140003a28
mov rcx, r12
call fcn.140004e72
mov r12d, 0
jmp 0x140003998
test rbp, rbp
je 0x140003998
mov dword [rbp], r13d
jmp 0x140003998
Function at 0x140003bf0
Capabilities:
Set current directory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x230
call fcn.1400029cd
mov rbx, rax
mov rcx, rax
call sub.msvcrt.dll_wcslen
mov esi, 0
cmp rax, 1
ja 0x140003c22
mov eax, esi
add rsp, 0x230
pop rbx
pop rsi
pop rdi
ret
lea rcx, [0x1400186f8]
call fcn.140005cd5
mov rdi, rax
mov r8d, 2
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
mov esi, eax
test eax, eax
je 0x140003c58
mov esi, 0
mov rcx, rdi
call fcn.140005d5c
jmp 0x140003c15
lea rcx, [rbx + 4]
call fcn.1400029cd
mov rbx, rax
mov rcx, rax
call sub.msvcrt.dll_wcslen
test rax, rax
je 0x140003c4e
mov word [rsp + 0x20], 0
movzx edx, word [rbx]
cmp dx, 0x22
je 0x140003ca0
cmp dx, 0x20
ja 0x140003cd1
mov eax, 1
movabs rcx, 0x100002601
bt rcx, rdx
jae 0x140003cd6
mov ecx, esi
jmp 0x140003d05
movzx edx, word [rbx + 2]
test dx, dx
je 0x140003ce2
cmp dx, 0x22
je 0x140003ce2
mov eax, 1
mov word [rsp + rax*2 + 0x1e], dx
mov ecx, eax
movzx edx, word [rbx + rax*2 + 2]
add rax, 1
test dx, dx
je 0x140003d05
cmp dx, 0x22
jne 0x140003cb4
jmp 0x140003d05
mov eax, 1
movabs r8, 0x100002601
jmp 0x140003cea
mov ecx, esi
jmp 0x140003d05
add rax, 1
mov word [rsp + rax*2 + 0x1e], dx
mov ecx, eax
movzx edx, word [rbx + rax*2]
cmp dx, 0x20
ja 0x140003ce6
add rax, 1
bt r8, rdx
jae 0x140003cea
movsxd rcx, ecx
mov word [rsp + rcx*2 + 0x20], 0
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcslen
test rax, rax
je 0x140003c4e
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, eax
jmp 0x140003c4e
Function at 0x140004a67
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x660
mov rdi, rcx
mov rbx, rdx
lea rdx, [rsp + 0x450]
mov r8d, 0x104
mov rcx, qword [0x14001c118]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rbp, [rsp + 0x240]
mov r8d, 0x104
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [0x1400187a0]
call fcn.140005cd5
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, rbx
call fcn.140005d5c
lea rcx, [0x1400187bf]
call fcn.140005c50
mov rbx, rax
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov rcx, rbx
call fcn.140005d5c
mov rdx, rbp
mov ecx, 0
call rsi
test eax, eax
je 0x140004b22
mov ebx, 0
cmp eax, 0xb7
je 0x140004b22
mov eax, ebx
add rsp, 0x660
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rcx, [0x1400187e0]
call fcn.140005cd5
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, rbx
call fcn.140005d5c
lea rcx, [0x140018801]
call fcn.140005c50
mov rbx, rax
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
mov rcx, rbx
call fcn.140005d5c
lea rcx, [0x140018813]
call fcn.140005cd5
mov rbx, rax
lea rcx, [0x140018830]
call fcn.140005cd5
mov rsi, rax
lea rcx, [rsp + 0x240]
lea rdx, [0x14001884e]
call sub.msvcrt.dll_wcscat
cmp dword [0x14001c110], 0
mov rdx, rbx
cmovne rdx, rsi
lea r12, [rsp + 0x240]
mov rcx, r12
call sub.msvcrt.dll_wcscat
mov rcx, rsi
call fcn.140005d5c
mov rcx, rbx
call fcn.140005d5c
lea rcx, [rsp + 0x450]
mov r8d, 0
mov rdx, r12
call rbp
mov ebx, eax
test eax, eax
je 0x140004b12
lea rcx, [0x140018852]
call fcn.140005cd5
mov rsi, rax
cmp dword [0x14001c110], 0
je 0x140004c76
lea rcx, [0x14001885f]
call fcn.140005cd5
mov rbx, rax
lea r12, [rsp + 0x30]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x240]
lea r8, str.__ls___ls__ls
mov edx, 0x104
mov rcx, r12
call fcn.1400027f0
mov rcx, rbx
call fcn.140005d5c
lea rcx, [0x140018890]
call fcn.140005cd5
mov rbp, rax
mov r8, r12
mov rdx, rax
mov rcx, rdi
call fcn.140005f9a
mov ebx, eax
mov rcx, rbp
call fcn.140005d5c
mov rcx, rsi
call fcn.140005d5c
jmp 0x140004b12
lea rdx, [rsp + 0x240]
mov r8, rax
mov rcx, rdi
call fcn.140005f9a
mov ebx, eax
jmp 0x140004c69
Function at 0x140004d6b
Capabilities:
Check mutex on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r12, rcx
lea rcx, [0x140017040]
call fcn.140005cd5
mov rsi, rax
mov ecx, 0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8, rsi
mov edx, 0
mov ecx, 0
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
test rax, rax
je 0x140004dc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140004ddb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.140005d5c
nop
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.KERNEL32.dll_GetTickCount]
and eax, 0x89
mov ebp, eax
je 0x140004dbc
mov ebx, 0
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x64
call r13
add ebx, 1
cmp ebp, ebx
jne 0x140004df6
mov rdx, rsi
mov rcx, r12
call fcn.140004d2a
jmp 0x140004dbc

Function at 0x140005210
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbx
mov r9, rcx
mov rbx, rdx
mov byte [rcx], 0
mov byte [rcx + 1], 0
mov eax, 0
mov byte [r9 + rax + 2], al
add rax, 1
cmp rax, 0x100
jne 0x140005223
mov r10d, 0
mov ecx, 0
movzx r11d, byte [r9 + rcx + 2]
mov rax, rcx
mov edx, 0
div r8
mov eax, r11d
add al, byte [rbx + rdx]
add r10d, eax
movzx eax, r10b
movzx edx, byte [r9 + rax + 2]
mov byte [r9 + rcx + 2], dl
mov byte [r9 + rax + 2], r11b
add rcx, 1
cmp rcx, 0x100
jne 0x14000523f
pop rbx
ret

Function at 0x14000527c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rsi
push rbx
mov rbx, rdx
test r9, r9
je 0x1400052d8
mov r11d, 0
movzx eax, byte [rcx]
add eax, 1
mov byte [rcx], al
movzx eax, al
movzx edx, byte [rcx + rax + 2]
mov r10d, edx
add r10b, byte [rcx + 1]
mov byte [rcx + 1], r10b
movzx r10d, r10b
movzx esi, byte [rcx + r10 + 2]
mov byte [rcx + rax + 2], sil
mov byte [rcx + r10 + 2], dl
add dl, byte [rcx + rax + 2]
movzx edx, dl
movzx eax, byte [rcx + rdx + 2]
xor al, byte [rbx + r11]
mov byte [r8 + r11], al
add r11, 1
cmp r9, r11
jne 0x14000528c
pop rbx
pop rsi
ret
Function at 0x140005d90
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x14001c250], 0
jne 0x140005e11
cmp qword [0x14001c248], 0
je 0x140005e17
cmp qword [0x14001c240], 0
je 0x140005e43
cmp qword [0x14001c238], 0
je 0x140005e76
cmp qword [0x14001c230], 0
je 0x140005ea2
cmp qword [0x14001c228], 0
je 0x140005ed5
cmp qword [0x14001c220], 0
je 0x140005f08
cmp qword [0x14001c218], 0
je 0x140005f3b
cmp qword [0x14001c210], 0
je 0x140005f67
add dword [0x14001c250], 1
add rsp, 0x20
pop rbx
ret
lea rcx, [0x140018c50]
call fcn.140005cd5
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14001c248], rax
mov rcx, rbx
call fcn.140005d5c
jmp 0x140005da8
lea rcx, [0x140018c71]
call fcn.140005c50
mov rbx, rax
mov rdx, rax
mov rcx, qword [0x14001c248]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001c240], rax
mov rcx, rbx
call fcn.140005d5c
jmp 0x140005db6
lea rcx, [0x140018c86]
call fcn.140005cd5
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14001c238], rax
mov rcx, rbx
call fcn.140005d5c
jmp 0x140005dc4
lea rcx, [0x140018ca1]
call fcn.140005c50
mov rbx, rax
mov rdx, rax
mov rcx, qword [0x14001c238]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001c230], rax
mov rcx, rbx
call fcn.140005d5c
jmp 0x140005dd2
lea rcx, [0x140018cb8]
call fcn.140005c50
mov rbx, rax
mov rdx, rax
mov rcx, qword [0x14001c238]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001c228], rax
mov rcx, rbx
call fcn.140005d5c
jmp 0x140005de0
lea rcx, [0x140018cd1]
call fcn.140005c50
mov rbx, rax
mov rdx, rax
mov rcx, qword [0x14001c238]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001c220], rax
mov rcx, rbx
call fcn.140005d5c
jmp 0x140005dee
lea rcx, [0x140018ce8]
call fcn.140005cd5
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14001c218], rax
mov rcx, rbx
call fcn.140005d5c
jmp 0x140005dfc
lea rcx, [0x140018d07]
call fcn.140005c50
mov rbx, rax
mov rdx, rax
mov rcx, qword [0x14001c218]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001c210], rax
mov rcx, rbx
call fcn.140005d5c
jmp 0x140005e0a

Function at 0x140006710
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140016250
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140016250
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140006780
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14001c2d4]
mov r12, rcx
test ebx, ebx
jle 0x1400068b0
mov rax, qword [0x14001c2d8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1400067cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140006853
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1400067b0
mov rcx, r12
call fcn.140007120
mov rsi, rax
test rax, rax
je 0x1400068d2
mov rax, qword [0x14001c2d8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140007250
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14001c2d8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400068b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000684c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140006860
add dword [0x14001c2d4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14001c2d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000684c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140006710
nop dword [rax]
xor ebx, ebx
jmp 0x1400067d7
mov rax, qword [0x14001c2d8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140006710
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140006710
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140006d90
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14001c340]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001c320]
test rbx, rbx
je 0x140006de4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140006ddb
test r12, r12
je 0x140006ddb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140006dc0
lea rcx, [0x14001c340]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]