joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027cb4
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.14001babc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001babc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027e04
cmp rax, 0xffffffffffffffff
je 0x140027e04
xor edi, edi
test rbp, rbp
jle 0x140027daf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001e0e0
mov rbx, rax
test rax, rax
jne 0x140027d3c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027da5
mov edx, 0x8000
mov ecx, r14d
call fcn.140015690
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.14001c7bc
cmp eax, 0xffffffff
je 0x140027d85
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027d4c
mov edx, r15d
mov ecx, r14d
call fcn.140015690
jmp 0x140027da5
cmp byte [rsi + 0x38], dil
je 0x140027d9c
cmp dword [rsi + 0x34], 5
jne 0x140027d9c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027da5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a168
jmp 0x140027e18
jns 0x140027e18
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001babc
cmp rax, 0xffffffffffffffff
jne 0x140027dd0
cmp byte [rsi + 0x30], dil
je 0x140027e18
mov edi, dword [rsi + 0x2c]
jmp 0x140027e18
mov ecx, r14d
call fcn.140016c88
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027e18
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 0x140027e18
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027e11
mov eax, dword [rsi + 0x2c]
jmp 0x140027e16
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001babc
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 0x140001b2c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x18001d0f0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
lea rcx, str.kernel32
mov rbp, r8
mov qword [rsp + 0x30], rbx
mov edi, 0xf003f
mov dword [rsp + 0x38], ebx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.IsWow64Process
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x1800012ab
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x38]
mov rcx, rax
call rsi
cmp dword [rsp + 0x38], ebx
mov eax, 0xf013f
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
cmovne edi, eax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov r9d, edi
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000131c
mov rcx, qword [rsp + 0x30]
lea rax, str.RUNASADMIN
mov edi, 1
mov r9d, edi
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], 0x14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
cmove ebx, edi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180005400
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x180001340
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x18001d0f0]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
mov rdi, r8
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
xor ebx, ebx
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800013b1
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180005400
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180001730
Capabilities:
Get hostname

Disassembly:
push rdi
sub rsp, 0x160
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x178], rbx
mov rax, qword [0x18001d0f0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov qword [rcx + 0x18], 0xf
mov qword [rcx + 0x10], rbx
mov byte [rcx], bl
xor r8d, r8d
lea rdx, [0x180019378]
call fcn.1800030c0
mov dword [rsp + 0x20], 1
mov byte [rsp + 0x40], bl
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x41]
call fcn.180007ee0
mov dword [rsp + 0x38], 0x104
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
cmp byte [rsp + 0x40], bl
je 0x1800017d9
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1800017d0
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1800030c0
mov rax, rdi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180005400
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
Function at 0x180001810
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x3e8]
sub rsp, 0x4e0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x18001d0f0]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov dword [rbp - 0x70], 0x2e613331
mov dword [rbp - 0x6c], 0x34376864
mov dword [rbp - 0x68], 0x2e793338
mov word [rbp - 0x64], 0x6f63
mov byte [rbp - 0x62], 0x6d
xor eax, eax
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rax
mov byte [rbp - 0x31], al
mov byte [rbp - 0x30], al
xor edx, edx
mov r8d, 0x3ff
lea rcx, [rbp - 0x2f]
call fcn.180007ee0
lea rcx, [rsp + 0x70]
call fcn.180001730
nop
lea r9, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae r9, qword [rsp + 0x70]
lea r8, [rbp - 0x70]
lea rdx, str._s_saz_____sdfs_12
lea rcx, [rbp - 0x30]
call fcn.180005420
mov r8d, 9
lea rdx, str.asdasd123
lea rcx, [rsp + 0x70]
call fcn.1800036e0
lea rax, vtable.CMd5A.0
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x30]
call fcn.180004bc0
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], 0
mov byte [rsp + 0x30], 0
cmp byte [rax], 0
jne 0x180001910
xor r8d, r8d
jmp 0x18000191e
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180001914
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1800030c0
nop
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.180003f70
xor bl, bl
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae r8, qword [rsp + 0x30]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rdi, rdi
jne 0x18000199f
cmp eax, 5
je 0x18000199f
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae r8, qword [rsp + 0x50]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rdi, rdi
jne 0x18000199f
cmp eax, 5
jne 0x1800019b3
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
setne bl
cmp qword [rsp + 0x68], 0x10
jb 0x1800019ca
mov rcx, qword [rsp + 0x50]
call fcn.180005f94
mov qword [rsp + 0x68], 0xf
mov qword [rsp + 0x60], 0
mov byte [rsp + 0x50], 0
cmp qword [rsp + 0x48], 0x10
jb 0x1800019f3
mov rcx, qword [rsp + 0x30]
call fcn.180005f94
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], 0
mov byte [rsp + 0x30], 0
cmp qword [rbp - 0x78], 0x10
jb 0x180001a1b
mov rcx, qword [rsp + 0x70]
call fcn.180005f94
movzx eax, bl
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.180005400
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x180001a50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x3e8]
sub rsp, 0x4e0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x18001d0f0]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov dword [rbp - 0x70], 0x2e613331
mov dword [rbp - 0x6c], 0x34376864
mov dword [rbp - 0x68], 0x2e793338
mov word [rbp - 0x64], 0x6f63
mov byte [rbp - 0x62], 0x6d
xor eax, eax
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rax
mov byte [rbp - 0x31], al
lea rcx, [rsp + 0x70]
call fcn.180001730
nop
mov byte [rbp - 0x30], 0
xor edx, edx
mov r8d, 0x3ff
lea rcx, [rbp - 0x2f]
call fcn.180007ee0
lea r9, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae r9, qword [rsp + 0x70]
lea r8, [rbp - 0x70]
lea rdx, [0x180019420]
lea rcx, [rbp - 0x30]
call fcn.180005420
lea rax, vtable.CMd5A.0
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x30]
call fcn.180004bc0
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], 0
mov byte [rsp + 0x30], 0
cmp byte [rax], 0
jne 0x180001b3e
xor r8d, r8d
jmp 0x180001b4c
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180001b42
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1800030c0
nop
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.180003f70
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae r8, qword [rsp + 0x30]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae r8, qword [rsp + 0x50]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rdi, rdi
jne 0x180001bd2
test rbx, rbx
jne 0x180001bd2
cmp esi, 5
je 0x180001bd2
cmp eax, 5
je 0x180001bd2
lea ebx, [rdi + 1]
jmp 0x180001bf8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp qword [rsp + 0x68], 0x10
jb 0x180001c0a
mov rcx, qword [rsp + 0x50]
call fcn.180005f94
mov qword [rsp + 0x68], 0xf
mov qword [rsp + 0x60], 0
mov byte [rsp + 0x50], 0
cmp qword [rsp + 0x48], 0x10
jb 0x180001c33
mov rcx, qword [rsp + 0x30]
call fcn.180005f94
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], 0
mov byte [rsp + 0x30], 0
cmp qword [rbp - 0x78], 0x10
jb 0x180001c5b
mov rcx, qword [rsp + 0x70]
call fcn.180005f94
mov eax, ebx
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.180005400
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x180001c90
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x860
mov rax, qword [0x18001d0f0]
xor rax, rsp
mov qword [rsp + 0x850], rax
xor ebx, ebx
mov rdi, rdx
test rdx, rdx
je 0x180001da6
test r8d, r8d
je 0x180001da6
mov qword [r11 + 0x10], rbp
mov qword [rsp + 0x30], rbx
mov ebp, 1
xor r9d, r9d
mov edx, 0x80000000
mov r8d, ebp
mov dword [rsp + 0x28], 0x80
mov qword [r11 + 0x18], rsi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180001d73
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, 0x800
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180001d6a
mov ecx, 0x5a4d
cmp word [rsp + 0x50], cx
jne 0x180001d6a
movsxd rax, dword [rsp + 0x8c]
cmp eax, 0x400
jge 0x180001d6a
cmp word [rdi], cx
jne 0x180001d6a
movsxd rcx, dword [rdi + 0x3c]
cmp ecx, 0x400
jge 0x180001d6a
movzx edx, word [rcx + rdi + 4]
cmp word [rsp + rax + 0x54], dx
jne 0x180001d6a
cmp word [rsp + rax + 0xac], 2
cmove ebx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x878]
mov rsi, qword [rsp + 0x880]
mov eax, ebx
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.180005400
mov rbx, qword [rsp + 0x888]
add rsp, 0x860
pop rdi
ret
mov eax, ebx
jmp 0x180001d85

Function at 0x180001db0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x18001d0f0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov ecx, r8d
mov esi, r8d
mov rdi, rdx
call fcn.180004ef0
mov edx, dword [rdi]
mov r8d, esi
mov rcx, rbx
mov r9, rax
mov rbp, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
mov rcx, rbp
test eax, eax
je 0x180001e58
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x28]
lea rdx, [0x180019428]
call qword [sym.imp.VERSION.dll_VerQueryValueA]
mov rcx, rbp
test eax, eax
je 0x180001e58
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x20]
lea rdx, str.StringFileInfo040904B0ProductName
call qword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x180001e55
mov rcx, qword [rsp + 0x20]
lea rdx, str.Microsoft
call fcn.1800059b4
test rax, rax
je 0x180001e55
mov rcx, rbp
call fcn.180005f14
mov eax, 1
jmp 0x180001e5f
mov rcx, rbp
call fcn.180005f14
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180005400
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180002710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, rdx
lea r8, [0x1800194fc]
mov edx, 0x66
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x180002753
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180002740
mov rcx, rax
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x1800027a9
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov qword [r14], rdx
test eax, eax
je 0x1800027a9
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1800027ad
xor eax, eax
jmp 0x1800027be
mov r8, qword [r14]
mov rdx, rsi
mov rcx, rax
call fcn.1800054d0
mov rax, rbx
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x180002d40
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [0x18001d0f0]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea r8, [rsp + 0x38]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x44], rax
xor eax, eax
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9d, [rax + 0x10]
xor edx, edx
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]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180005400
add rsp, 0x68
ret

Function at 0x180002de0
Capabilities:
Create thread
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rcx
dec edx
jne 0x180002e97
call fcn.180002d40
lea rcx, [0x180019654]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test rbx, rbx
jne 0x180002e2a
lea rcx, [0x180019658]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp word [rbx], 0
jne 0x180002e35
xor r8d, r8d
jmp 0x180002e4b
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x180002e40
lea rcx, [0x18001e510]
mov rdx, rbx
call fcn.1800039d0
lea r8, [fcn.1800027e0]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov qword [0x18001f878], rdi
mov dword [0x18001f868], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x18001f858], rax
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180004bc0
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x18001d0f0]
xor rax, rsp
mov qword [rsp + 0xb8], rax
xor eax, eax
mov dword [rsp + 0x20], 0x67452301
mov dword [rsp + 0x24], 0xefcdab89
mov dword [rsp + 0x28], 0x98badcfe
mov dword [rsp + 0x2c], 0x10325476
or r9, 0xffffffffffffffff
mov qword [rsp + 0x30], rax
nop
inc r9
cmp byte [rdx + r9], al
jne 0x180004c10
mov r8, rdx
lea rdx, [rsp + 0x20]
call fcn.180004080
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xa8]
call fcn.180004190
lea rbx, [rsp + 0xa8]
lea rdi, [rsp + 0x80]
mov esi, 0x10
nop dword [rax]
movzx r8d, byte [rbx]
lea rdx, str._02x
mov rcx, rdi
call fcn.180005420
add rdi, 2
lea rbx, [rbx + 1]
dec rsi
jne 0x180004c50
mov rax, qword [rsp + 0x80]
mov qword [0x18001f888], rax
mov rax, qword [rsp + 0x88]
mov qword [0x18001f890], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18001f898], rax
mov rax, qword [rsp + 0x98]
mov qword [0x18001f8a0], rax
lea rax, [0x18001f888]
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.180005400
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180004ef8
Capabilities:
Create process on windows
Terminate process

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov esi, 0x57
test rcx, rcx
je 0x180004fec
mov r14, rdx
test rdx, rdx
je 0x180004fec
mov ebp, r8d
test r8d, r8d
je 0x180004fec
mov rbx, r9
mov rdx, rcx
mov r15, qword [rsp + 0x120]
lea rax, [rsp + 0x5e]
mov word [rax], 0
test r9, r9
cmove rbx, rax
xor esi, esi
lea r8, [rsp + 0x60]
mov ecx, 0xd
xor eax, eax
mov rdi, r8
rep stosq qword [rdi], rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x404
mov dword [rsp + 0x20], 0
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x180004fe4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov rdx, qword [r15]
mov r8, qword [r15 + 8]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 2
xor ecx, ecx
mov r9d, 0x14c
call fcn.180005000
test eax, eax
je 0x180004fec
mov edi, eax
mov rcx, qword [r15]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, edi
jmp 0x180004fec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x2fc4d0b30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d1c10
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d1532
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f4108]
test eax, eax
je 0x2fc4d15ca
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f4110]
mov qword [rbp - 8], rax
jmp 0x2fc4d15ae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d15a2
cmp qword [rbp - 0x10], 0
je 0x2fc4d15a2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d1568
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d15cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d16d0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d16f8
mov eax, 0
jmp 0x2fc4d1746
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d1721
mov eax, 0
jmp 0x2fc4d1746
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d1741
mov eax, 0
jmp 0x2fc4d1746
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d174c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d17ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d17c1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d17c1
mov rax, qword [rbp - 8]
jmp 0x2fc4d17df
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d1794
mov eax, 0
add rsp, 0x20
pop rbp
ret