joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800045b0
Capabilities:
Check if file exists

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
sub rsp, 0x90
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x180036b70]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rsi, rdx
mov rbx, rcx
mov qword [r11 - 0x60], rcx
mov qword [r11 - 0x50], rdx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rbp
mov word [rcx], bp
or rdi, 0xffffffffffffffff
mov r9, rdi
xor r8d, r8d
call fcn.180003430
mov dword [rsp + 0x20], 1
cmp qword [rbx + 0x18], 8
jb 0x180004621
mov rcx, qword [rbx]
jmp 0x180004624
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1800046f9
cmp qword [rbx + 0x18], 8
jb 0x18000463e
mov rcx, qword [rbx]
jmp 0x180004641
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbp
mov word [rsp + 0x60], bp
cmp word [rax], 0
jne 0x180004665
mov rdi, rbp
jmp 0x18000466f
inc rdi
cmp word [rax + rdi*2], 0
jne 0x180004665
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.180003580
nop
mov r9, qword [rsp + 0x70]
test r9, r9
je 0x1800046e6
dec r9
mov r8d, 1
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x60]
call fcn.180006720
mov rdi, rax
cmp rbx, rax
je 0x1800046d3
cmp qword [rbx + 0x18], 8
jb 0x1800046b9
mov rcx, qword [rbx]
call fcn.180013698
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rbp
mov word [rbx], bp
mov rdx, rdi
mov rcx, rbx
call fcn.1800030f0
cmp qword [rsp + 0x40], 8
jb 0x1800046e6
mov rcx, qword [rsp + 0x28]
call fcn.180013698
nop
cmp qword [rsp + 0x78], 8
jb 0x180004776
mov rcx, qword [rsp + 0x60]
jmp 0x180004770
mov r9d, 1
mov r8, rdi
lea rdx, [0x180025b94]
mov rcx, rbx
call fcn.1800063c0
cmp rax, 0xffffffffffffffff
je 0x180004776
mov r9, qword [rbx + 0x10]
sub r9, rax
dec r9
lea r8, [rax + 1]
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.180006720
mov rdi, rax
cmp rbx, rax
je 0x180004763
cmp qword [rbx + 0x18], 8
jb 0x180004749
mov rcx, qword [rbx]
call fcn.180013698
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rbp
mov word [rbx], bp
mov rdx, rdi
mov rcx, rbx
call fcn.1800030f0
cmp qword [rsp + 0x40], 8
jb 0x180004776
mov rcx, qword [rsp + 0x28]
call fcn.180013698
nop
cmp qword [rsi + 0x18], 8
jb 0x180004785
mov rcx, qword [rsi]
call fcn.180013698
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], rbp
mov word [rsi], bp
mov rax, rbx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800144f0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x180004890
Capabilities:
Create process on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x80
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov rax, qword [0x180036b70]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rdx
mov rsi, rcx
lea rdx, [0x180025b08]
lea rcx, [0x180025b18]
call qword [sym.imp.USER32.dll_FindWindowW]
mov rbp, rax
xor ebx, ebx
test rax, rax
je 0x1800049f0
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
cmp word [rdi], bx
je 0x18000490e
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x180004904
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.180003580
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18000498d
lea rax, [rsp + 0x50]
mov r10, qword [rsp + 0x50]
mov r11, qword [rsp + 0x68]
cmp r11, 8
cmovae rax, r10
lea r9, [rax + rcx*2]
lea r8, [rsp + 0x50]
cmovae r8, r10
cmp r8, r9
jae 0x18000498d
mov ecx, 1
lea rax, [0x180025b3c]
movzx edx, word [r8]
cmp word [rax], dx
je 0x180004972
add rax, 2
dec rcx
je 0x180004978
jmp 0x180004962
add r8, 2
jmp 0x18000494d
lea rax, [rsp + 0x50]
cmp r11, 8
cmovae rax, r10
sub r8, rax
sar r8, 1
jmp 0x180004991
or r8, 0xffffffffffffffff
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1800036d0
mov eax, dword [rsp + 0x60]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x38]
mov edx, 0x4a
lea r8d, [rdx - 0x45]
mov rcx, rbp
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, rax
cmp qword [rsp + 0x68], 8
jb 0x180004a18
mov rcx, qword [rsp + 0x50]
call fcn.180013698
jmp 0x180004a18
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rbx
mov r9, rdi
mov r8, rsi
lea rdx, [0x180025b40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
setg bl
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1800144f0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x180008070
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x18000809e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x180008d40
cmp byte [0x180038d80], 0
jne 0x1800080e9
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800080d9
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x180038d80], 1
mov qword [0x180038d78], rax
jmp 0x1800080f0
mov rax, qword [0x180038d78]
mov byte [0x180038d80], 1
jmp 0x1800080f0
mov rax, qword [0x180038d78]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x18000810f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x180008db4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180008dd6
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180008dd6
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x180008dd6
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x180008aa0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x180036b70]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor eax, eax
xor ebp, ebp
mov rsi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x40]
or r9d, 0x2001f
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x50], rbp
call fcn.180008600
mov ebx, eax
test eax, eax
jne 0x180008bc7
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x58], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x180008ba1
nop dword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.180008aa0
mov ebx, eax
test eax, eax
jne 0x180008bc7
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x58], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x180008b50
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180008bb6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x48], ebp
call fcn.180008070
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180008bd7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1800144f0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x180008d40
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x18000809e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x180008d40
cmp byte [0x180038d80], 0
jne 0x1800080e9
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800080d9
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x180038d80], 1
mov qword [0x180038d78], rax
jmp 0x1800080f0
mov rax, qword [0x180038d78]
mov byte [0x180038d80], 1
jmp 0x1800080f0
mov rax, qword [0x180038d78]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x18000810f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x180008db4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180008dd6
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180008dd6
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x180008dd6
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x180008fd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x180036b70]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x50], r14
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], r14
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x70]
call fcn.180014520
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x18000907c
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x18000907c
call fcn.180007350
mov ebx, eax
jmp 0x1800091a4
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x18000909d
call fcn.180007350
jmp 0x180009193
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1800090c0
call fcn.180007350
jmp 0x180009193
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x1800090e2
mov ebx, 0x8007000e
jmp 0x180009195
mov ecx, eax
test eax, eax
je 0x18000911a
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x180009110
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x18000911a
lea rcx, [rsp + 0x70]
call fcn.1800070d0
jmp 0x180009124
mov ecx, 0x80070216
call fcn.180007ce0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x180009137
cmp qword [rsp + 0x70], 0
jne 0x180009146
mov ebx, 0x8007000e
jmp 0x180009195
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x180009170
call fcn.180007350
jmp 0x180009193
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.180008df0
mov ebx, eax
test rdi, rdi
je 0x1800091a4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1800091bb
lea rcx, [rsp + 0x70]
call fcn.1800083a0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1800144f0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800098f0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x180036b70]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], r8d
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800144f0
add rsp, 0x48
ret

Function at 0x180009940
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
test r8, r8
jne 0x180009958
lea eax, [r8 + 0xd]
add rsp, 0x38
ret
xor r8d, r8d
mov rdx, r9
nop
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x180009964
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x180009960
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], r9
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x18000ca60
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x998]
sub rsp, 0xa90
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x180036b70]
xor rax, rsp
mov qword [rbp + 0x980], rax
mov rdi, rdx
mov qword [rsp + 0x38], rdx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rdx + 0x18], 7
mov qword [rdx + 0x10], rbx
mov word [rdx], bx
xor r8d, r8d
lea rdx, [0x180025968]
mov rcx, rdi
call fcn.180003580
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
lea r8d, [rbx + 0x34]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea rcx, [rsp + 0x58]
call fcn.180003580
nop
lea r8d, [rbx + 0x24]
lea rdx, str.AE974FF9_A413_6D66_0A74_6C337DE4C095
lea rcx, [rsp + 0x58]
call fcn.180005430
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x201
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000cbbb
mov byte [rbp - 0x80], al
xor edx, edx
mov r8d, 0x9f5
lea rcx, [rbp - 0x7f]
call fcn.180014520
mov dword [rsp + 0x50], 0x9f6
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, str.DisplayIcon
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [rbp - 0x80], bx
je 0x18000cbaa
lea rax, [rbp - 0x80]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x18000cba0
mov r8, rbx
lea rdx, [rbp - 0x80]
mov rcx, rdi
call fcn.180003580
jmp 0x18000cbc2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
cmp qword [rsp + 0x70], 8
jb 0x18000cbd4
mov rcx, qword [rsp + 0x58]
call fcn.180013698
mov rax, rdi
mov rcx, qword [rbp + 0x980]
xor rcx, rsp
call fcn.1800144f0
lea r11, [rsp + 0xa90]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14000147f
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14000b9e0]
mov dword [rax], 1
mov rax, qword [0x14000b9f0]
mov dword [rax], 1
mov rax, qword [0x14000ba00]
mov dword [rax], 1
mov rax, qword [0x14000b9a0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d0
mov eax, 0
jmp 0x14000157d
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 0x1400014fc
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001522
cmp eax, 0x20b
je 0x140001549
jmp 0x140001578
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001535
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157d
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001564
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157d
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400017d0
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov dword [rbp - 0x60], 0x130
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0xffffffffffffffff
jne 0x14000182e
lea rax, str.Error:_Unable_to_create_process_snapshot._n
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov eax, 0
jmp 0x1400018ac
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sym.Process32First
test eax, eax
setne al
test al, al
je 0x140001899
mov rax, qword [rbp + 0xf0]
lea rdx, [rbp - 0x60]
lea rcx, [rdx + 0x2c]
mov rdx, rax
call sym.strcmp
test eax, eax
jne 0x14000187d
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp - 0x58]
jmp 0x1400018ac
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sym.Process32Next
test eax, eax
setne al
test al, al
jne 0x14000184a
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
add rsp, 0x160
pop rbp
ret
Function at 0x1400020c0
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002d92
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140010188]
test eax, eax
je 0x140002e2a
lea rax, [0x140010160]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140010190]
mov qword [rbp - 8], rax
jmp 0x140002e0e
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 0x140002e02
cmp qword [rbp - 0x10], 0
je 0x140002e02
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 0x140002dc8
lea rax, [0x140010160]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002e2b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002f30
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 0x140002f58
mov eax, 0
jmp 0x140002fa6
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 0x140002f81
mov eax, 0
jmp 0x140002fa6
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 0x140002fa1
mov eax, 0
jmp 0x140002fa6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140002fac
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 0x14000302a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140003021
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 0x140003021
mov rax, qword [rbp - 8]
jmp 0x14000303f
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 0x140002ff4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002fe0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x140164404], 0
lea rdi, [0x140164400]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x1400030b8
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x140003010
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x1400030ee
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4]
sub r9d, 1
jne 0x1400030d0
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x14000312f
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x140003113
cmp byte [r8], r9b
jne 0x140003113
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rdi + rdx*4]
test r9b, r9b
jne 0x140003100
not eax
pop rdi
ret