joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a68edc8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov byte [0x4a6cbec8], 0
cmp dword [0x4a6cbecc], 0
je 0x4a68ee0f
push esp
push 0x40
push 4
mov eax, dword [0x4a6cbecc]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a68ee65
mov eax, dword [0x4a6cbecc]
mov edx, dword [0x4a6cbed0]
mov dword [eax], edx
push esp
mov eax, dword [esp + 4]
push eax
push 4
mov eax, dword [0x4a6cbecc]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x4a68ee65
cmp dword [0x4a6cbed4], 0
je 0x4a68ee4e
push esp
push 0x40
push 4
mov eax, dword [0x4a6cbed4]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a68ee65
mov eax, dword [0x4a6cbed4]
mov edx, dword [0x4a6cbed8]
mov dword [eax], edx
push esp
mov eax, dword [esp + 4]
push eax
push 4
mov eax, dword [0x4a6cbed4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x4a68ee65
push 0
mov ecx, 0x4a68e704
mov eax, sub.kernel32.dll_CreateThread_1
mov edx, dword [0x4a6cbec0]
call fcn.4a68e0e0
push 0
mov ecx, 0x4a68e9bc
mov edx, dword [0x4a6cbec4]
xor eax, eax
call fcn.4a68e0e0
push 0
push 0
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
pop edx
ret

Function at 0x4a68f484
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov esi, eax
lea eax, [ebp - 8]
mov edx, dword [0x4a68f31c]
call fcn.4a60888c
xor eax, eax
push ebp
push 0x4a68f563
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x4a68f570
call sub.user32.dll_FindWindowA
mov ebx, eax
test ebx, ebx
je 0x4a68f53a
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
call sub.user32.dll_GetWindowThreadProcessId
mov cl, 0x30
mov edx, 1
call fcn.4a6109bc
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 0x4a68f588
call fcn.4a607d1c
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.4a61200c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.4a607a2c
lea eax, [ebp - 4]
mov edx, 0x4a68f5b0
call fcn.4a607cc4
mov eax, dword [ebp - 4]
call fcn.4a607a64
cmp eax, 0x104
jge 0x4a68f52c
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, 0x104
call fcn.4a60801c
lea eax, [ebp - 8]
push eax
push 0x4a68f38c
call sub.user32.dll_EnumWindows
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a68f56a
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.4a607618
lea eax, [ebp - 8]
mov edx, dword [0x4a68f31c]
call fcn.4a608964
ret
Function at 0x4a68fe80
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4a68ff55
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.4a6109bc
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x4a68ff70
call fcn.4a607d1c
mov eax, dword [ebp - 4]
call fcn.4a607ee8
push eax
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov ebx, eax
test ebx, ebx
je 0x4a68ff3a
mov byte [0x4a6cb46c], 1
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test esi, esi
je 0x4a68ff34
mov eax, dword [esi + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esi]
push eax
push 0
push 0x100000
call sub.kernel32.dll_OpenProcess
mov edi, eax
test edi, edi
je 0x4a68ff1c
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
push edi
call sub.kernel32.dll_CloseHandle_1
mov edx, 0x4a6cb578
lea eax, [esi + 8]
mov ecx, 0x50
call fcn.4a604a4c
push esi
call sub.kernel32.dll_UnmapViewOfFile
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a68ff5c
lea eax, [ebp - 8]
mov edx, 2
call fcn.4a607618
ret
Function at 0x4a690490
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a690609
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov edx, 0x4a690618
mov ecx, 0x4a69062c
mov eax, ebx
call fcn.4a61711c
mov eax, dword [ebp - 4]
call fcn.4a607a64
cmp eax, 0x14
jne 0x4a6905f3
cmp ebx, dword [0x4a6cb51c]
sete al
mov edx, dword [ebp - 4]
test byte [edx + 3], 0x80
sete dl
cmp al, dl
jne 0x4a6905f3
mov eax, ebx
call fcn.4a6168a8
mov esi, eax
cmp word [esi + 0x18], 0x20b
jne 0x4a690566
lea eax, [ebp - 8]
push eax
push 0x40
push 0xf0
lea eax, [esi + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
cmp ebx, dword [0x4a6cb51c]
jne 0x4a69052c
mov eax, 0x4a651914
mov edx, dword [ebp - 4]
sub eax, dword [edx]
sub eax, ebx
mov dword [esi + 0x2c], eax
jmp 0x4a690539
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and eax, 0x7fffffff
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov dword [esi + 0x1c], edx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x20], edx
mov eax, dword [eax + 0x10]
mov dword [esi + 0x24], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 0xf0
lea eax, [esi + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x4a6905e4
lea eax, [ebp - 8]
push eax
push 0x40
push 0xe0
lea eax, [esi + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
cmp ebx, dword [0x4a6cb51c]
jne 0x4a6905a0
mov edx, 0x4a651914
mov eax, dword [ebp - 4]
sub edx, dword [eax]
sub edx, ebx
mov dword [esi + 0x2c], edx
mov edx, 0x4a6cb494
sub edx, dword [eax + 4]
sub edx, ebx
mov dword [esi + 0x30], edx
jmp 0x4a6905b9
mov eax, dword [ebp - 4]
mov edx, dword [eax]
and edx, 0x7fffffff
mov dword [esi + 0x2c], edx
mov eax, dword [eax + 4]
and eax, 0x7fffffff
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov dword [esi + 0x1c], edx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x20], edx
mov eax, dword [eax + 0x10]
mov dword [esi + 0x24], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 0xe0
lea eax, [esi + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
push 0
push 0
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a690610
lea eax, [ebp - 4]
call fcn.4a6075ac
ret
Function at 0x4a690730
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a690900
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.4a607ee8
push eax
call sub.kernel32.dll_GetModuleHandleA
test eax, eax
jne 0x4a6908ea
xor eax, eax
push ebp
push 0x4a6908e0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor esi, esi
jmp 0x4a6908c1
cmp dword [ebp - 0x1c], 0x1000
jne 0x4a6908bb
cmp dword [ebp - 0x18], 1
je 0x4a6908bb
cmp esi, dword [ebp - 0x28]
je 0x4a6908bb
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x2c]
jne 0x4a6908bb
push 0x104
lea eax, [ebp - 0x236]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
test eax, eax
jbe 0x4a6908bb
mov eax, dword [ebp - 0x28]
call fcn.4a6570d8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4a6908bb
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4a6908bb
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4a6908bb
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SizeofResource
sub eax, 0x10
push eax
push 0
push 0
push 0x7fffffff
mov esi, dword [0x4a6ce5f0]
mov esi, dword [esi]
mov eax, 0x4a690910
mov ecx, 0xe
mov edx, dword [ebp - 0x10]
call esi
test eax, eax
jl 0x4a69087c
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SizeofResource
sub eax, 0x10
push eax
push 0
push 0
push 0x7fffffff
mov esi, dword [0x4a6ce5f0]
mov esi, dword [esi]
mov eax, 0x4a690920
mov ecx, 0x10
mov edx, dword [ebp - 0x10]
call esi
inc eax
sete dl
mov eax, dword [ebp - 0x28]
call fcn.4a68fe38
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SizeofResource
sub eax, 0x10
push eax
push 0
push 0
push 0x7fffffff
mov esi, dword [0x4a6ce5f0]
mov esi, dword [esi]
mov eax, 0x4a690934
mov ecx, 0xc
mov edx, dword [ebp - 0x10]
call esi
test eax, eax
jl 0x4a6908bb
xor edx, edx
mov eax, dword [ebp - 0x28]
call fcn.4a68fc58
mov esi, dword [ebp - 0x28]
add ebx, dword [ebp - 0x20]
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push ebx
call sub.kernel32.dll_VirtualQuery_1
cmp eax, 0x1c
je 0x4a69077c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a6908ea
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a690907
lea eax, [ebp - 4]
call fcn.4a6075ac
ret
Function at 0x4a692ba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.4a6075ac
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, edi
call fcn.4a607ee8
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4a692c65
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.4a607ee8
mov edi, eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
cmp dword [ebp - 0xc], 0
je 0x4a692c5c
mov eax, dword [ebp - 0xc]
add eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x4a692c56
cmp dword [ebp - 0x10], 1
jne 0x4a692c48
mov eax, ebx
mov edx, esi
mov ecx, 0
call fcn.4a607c04
jmp 0x4a692c56
push 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov edx, esi
call fcn.4a607744
push esi
call sub.kernel32.dll_LocalFree_1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a6955ec
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
cmp dword [0x4a6cc05c], 0
je 0x4a695631
push esp
push 0x40
push 4
mov eax, dword [0x4a6cc05c]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a695631
mov eax, dword [0x4a6cc05c]
mov edx, dword [0x4a6cc060]
mov dword [eax], edx
push esp
mov eax, dword [esp + 4]
push eax
push 4
mov eax, dword [0x4a6cc05c]
push eax
call sub.kernel32.dll_VirtualProtect
xor eax, eax
mov dword [0x4a6cc05c], eax
cmp dword [0x4a6cc064], 0
je 0x4a695675
push esp
push 0x40
push 4
mov eax, dword [0x4a6cc064]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a695675
mov eax, dword [0x4a6cc064]
mov edx, dword [0x4a6cc068]
mov dword [eax], edx
push esp
mov eax, dword [esp + 4]
push eax
push 4
mov eax, dword [0x4a6cc064]
push eax
call sub.kernel32.dll_VirtualProtect
xor eax, eax
mov dword [0x4a6cc064], eax
xor eax, eax
mov dword [0x4a6d51b4], eax
pop edx
ret

Function at 0x4a697518
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
test esi, esi
sete byte [ebp - 9]
cmp byte [ebp - 9], 0
jne 0x4a697577
xor ebx, ebx
jmp 0x4a697570
cmp edi, dword [ebp - 4]
jne 0x4a69756f
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push edi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a697577
mov eax, dword [ebp - 8]
mov dword [esi + ebx*4], eax
mov byte [ebp - 9], 1
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 4
mov eax, dword [esi + ebx*4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x4a697577
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x4a697539
movzx eax, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a697584
Capabilities:
Allocate or change rwx memory
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
xor ecx, ecx
push ebp
push 0x4a69769f
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor eax, eax
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x4a697601
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x4a6975f7
mov eax, dword [ebp - 4]
add eax, 0x3c
mov eax, dword [eax]
add eax, dword [ebp - 4]
cmp dword [eax], 0x4550
jne 0x4a6975f7
cmp word [eax + 0x18], 0x20b
jne 0x4a6975ee
add eax, 0x18
mov eax, dword [eax + 0x70]
add eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
jmp 0x4a6975f7
mov eax, dword [eax + 0x78]
add eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a69760b
cmp dword [ebp - 0x14], 0
je 0x4a697695
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x14]
dec eax
test eax, eax
jl 0x4a697695
inc eax
xor ebx, ebx
mov edx, dword [esi + 0x1c]
add edx, dword [ebp - 4]
mov edx, dword [edx + ebx*4]
add edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jne 0x4a697691
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.4a697518
test al, al
je 0x4a697695
mov eax, dword [esi + 0x1c]
add eax, dword [ebp - 4]
lea eax, [eax + ebx*4]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push 0x40
push 4
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a697681
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
mov dword [esi], eax
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 4
push esi
call sub.kernel32.dll_VirtualProtect
jmp 0x4a697695
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.4a697518
jmp 0x4a697695
inc ebx
dec eax
jne 0x4a697623
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a6976a9
movzx eax, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a6976b8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], ecx
mov ebp, edx
mov dword [esp], eax
mov eax, dword [esp]
call fcn.4a6168a8
mov edi, eax
test edi, edi
je 0x4a69774f
cmp dword [edi + 0x80], 0
je 0x4a69774f
mov eax, dword [edi + 0x80]
cmp eax, dword [edi + 0x50]
jae 0x4a69774f
mov esi, dword [edi + 0x80]
add esi, dword [esp]
test esi, esi
je 0x4a69774f
jmp 0x4a69773b
mov ebx, dword [esp]
add ebx, dword [esi + 0x10]
jmp 0x4a697733
cmp ebp, dword [ebx]
jne 0x4a697730
lea eax, [esp + 8]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a697730
mov eax, dword [esp + 4]
mov dword [ebx], eax
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
add ebx, 4
cmp dword [ebx], 0
jne 0x4a697701
add esi, 0x14
cmp dword [esi + 0xc], 0
je 0x4a69774f
cmp dword [esi + 0x10], 0
je 0x4a69774f
mov eax, dword [edi + 0x50]
cmp eax, dword [esi + 0x10]
ja 0x4a6976f9
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a699624
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4a699829
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [esi], eax
xor edx, edx
mov eax, dword [0x4a6cc0f8]
call fcn.4a61e67c
mov dword [0x4a6d5224], eax
xor edx, edx
mov eax, dword [0x4a6cc0fc]
call fcn.4a61e67c
mov dword [0x4a6d5228], eax
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, 5
call fcn.4a60801c
lea eax, [ebp - 4]
call fcn.4a607b28
mov byte [eax], 0x72
lea eax, [ebp - 4]
call fcn.4a607b28
mov byte [eax + 1], 0x64
lea eax, [ebp - 4]
call fcn.4a607b28
mov byte [eax + 2], 0x65
lea eax, [ebp - 4]
call fcn.4a607b28
mov byte [eax + 3], 0x63
lea eax, [ebp - 4]
call fcn.4a607b28
mov byte [eax + 4], 0x20
lea edx, [ebp - 0x10]
mov eax, dword [0x4a6cc16c]
call fcn.4a611c30
push dword [ebp - 0x10]
push 0x4a699848
push dword [ebp - 4]
lea eax, [ebp - 0x14]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.4a6109bc
push dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 4
call fcn.4a607da0
mov eax, dword [ebp - 4]
call fcn.4a607ee8
push eax
push 0
push 0
call fcn.4a60d464
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x4a699806
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov dword [0x4a6d5218], edi
mov eax, dword [ebp - 8]
mov dword [0x4a6d521c], eax
cmp dword [0x4a6d5224], 0
je 0x4a69974f
cmp dword [0x4a6d5228], 0
jne 0x4a6997d5
mov dl, 1
mov eax, dword [0x4a6cc098]
call fcn.4a61e788
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x4a6997ea
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x4a6997ea
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x4a6997ea
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x4a6997ea
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x4a6997ea
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
lea eax, [esi + 0xa]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a6997ea
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x4a6d5220], edx
mov edx, 0x4a6995d4
sub edx, esi
sub edx, 0xe
mov dword [eax], edx
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 0xc]
push edx
push 4
push eax
call sub.kernel32.dll_VirtualProtect
mov bl, 1
jmp 0x4a6997ea
push 0x4a699580
push 0xffffffffffffffff
call dword [0x4a6d5224]
mov dword [esi], eax
cmp dword [esi], 0
setne bl
test bl, bl
jne 0x4a699806
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a699830
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.4a607618
lea eax, [ebp - 4]
call fcn.4a6075ac
ret
Function at 0x4a69984c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
cmp dword [0x4a6d5224], 0
je 0x4a699864
cmp dword [0x4a6d5228], 0
jne 0x4a6998a5
mov dl, 1
mov eax, dword [0x4a6cc098]
call fcn.4a61e788
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea esi, [ebx + 0xa]
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a6998ac
mov eax, dword [0x4a6d5220]
sub eax, ebx
sub eax, 0xe
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
push esi
call sub.kernel32.dll_VirtualProtect
jmp 0x4a6998ac
push eax
call dword [0x4a6d5228]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4a69d50c
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4a69d6f6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x4a6cc420], 0
jne 0x4a69d6db
lea eax, [ebp - 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x4a69d6d4
xor eax, eax
push ebp
push 0x4a69d6cd
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 3
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_GetTokenInformation
cmp dword [ebp - 8], 0
je 0x4a69d6b6
mov eax, dword [ebp - 8]
add eax, eax
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebx
push 3
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
je 0x4a69d6b0
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [0x4a6cc158]
call fcn.4a611c30
mov eax, dword [ebp - 0x24]
call fcn.4a607ee8
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x4a69d5e4
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x28]
mov eax, dword [0x4a6cc15c]
call fcn.4a611c30
mov eax, dword [ebp - 0x28]
call fcn.4a607ee8
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x4a69d617
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [0x4a6cc160]
call fcn.4a611c30
mov eax, dword [ebp - 0x2c]
call fcn.4a607ee8
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x4a69d64a
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov esi, dword [ebx]
dec esi
test esi, esi
jl 0x4a69d69c
inc esi
xor ecx, ecx
lea edi, [ecx + ecx*2]
mov eax, dword [ebx + edi*4 + 4]
mov edx, dword [ebx + edi*4 + 8]
cmp edx, dword [ebp - 0xc]
jne 0x4a69d667
cmp eax, dword [ebp - 0x10]
je 0x4a69d698
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x14]
jne 0x4a69d67c
cmp eax, dword [ebp - 0x18]
je 0x4a69d698
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x1c]
jne 0x4a69d691
cmp eax, dword [ebp - 0x20]
je 0x4a69d698
or dword [ebx + edi*4 + 0xc], 2
inc ecx
dec esi
jne 0x4a69d654
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push ebx
call sub.kernel32.dll_LocalFree_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a69d6d4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov byte [0x4a6cc420], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a69d6fd
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.4a607618
ret