joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464c08
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x464e68
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x464c6b
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00464720
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d53c
cmp al, 1
jne 0x464c6b
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004649e8
test al, al
je 0x464df7
cmp dword [ebp - 8], 0
jge 0x464c89
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00464720
mov eax, dword [ebp - 0x210]
call fcn.00404984
cmp ebx, eax
jge 0x464cd3
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00464720
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4e3f08]
and eax, 0xff
bt dword [edx], eax
jae 0x464cd3
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x464ce7
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00464be4
cmp ebx, dword [ebp - 8]
je 0x464de9
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x464d13
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004039f8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4e1df4]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x464dd6
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004039f8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4e1df4]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00445e60
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004039f8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4e1df4]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00445e60
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464ddd
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x464e4a
cmp dword [ebp - 8], 0
jge 0x464e02
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00464720
mov eax, dword [ebp - 0x218]
call fcn.00404984
cmp eax, dword [ebp - 8]
jg 0x464e3c
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00464720
mov eax, dword [ebp - 0x21c]
call fcn.00404984
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00464be4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464e6f
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004046f0
ret
Function at 0x469a24
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x469afc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e4cc8], 0
jne 0x469ae0
lea eax, [ebp - 4]
mov edx, 0x469b14
call fcn.00404764
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b7c
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x469ae0
mov eax, ebx
call fcn.00402818
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x469ad9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x469ac3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x469b24
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x469ac3
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4e4cc8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469ae0
mov eax, dword [ebp - 0xc]
call fcn.00402838
ret
mov ebx, dword [0x4e4cc8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469b03
lea eax, [ebp - 4]
call fcn.004046cc
ret

Function at 0x46f8a4
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4e4cec], 0
jne 0x46f8c7
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46f818
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4e4cec], eax
ret

Function at 0x497f30
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x497f55
cmp dword [esp + 4], 5
jb 0x497f55
mov al, 1
jmp 0x497f57
xor eax, eax
add esp, 0x94
ret
Function at 0x4ab667
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4e30c6
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4ab6bf
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x4e30e7
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4ab6b5
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4ab6c3
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4cc910
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x40]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x4cc94b
inc edi
xor ebx, ebx
mov edx, ebx
mov eax, dword [esi + 0x40]
call fcn.00418c54
mov al, byte [eax + 0x2a0]
xor al, 1
push eax
mov edx, ebx
mov eax, dword [esi + 0x40]
call fcn.00418c54
pop edx
mov byte [eax + 0x2a0], dl
inc ebx
dec edi
jne 0x4cc923
pop edi
pop esi
pop ebx
ret

Function at 0x4d68fc
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
lea eax, [esp + 0x100]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
push esp
push 0
push 0x4d6940
lea eax, [esp + 0x10c]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
mov eax, esp
call fcn.00409760
add esp, 0x200
pop ebx
ret
Function at 0x402130
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402227
cmp dword [ebp - 8], 0
je 0x402227
xor ecx, ecx
mov word [ebp - 0x220], cx
push 0x206
push 0
lea edx, [ebp - 0x21e]
push edx
call fcn.00404cc0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
movzx eax, word [edx]
cmp eax, 0x5c
je 0x4021f6
cmp dword [ebp - 8], 1
jle 0x4021ed
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 0x224], ecx
mov edx, dword [ebp - 0x224]
push edx
mov eax, dword [ebp - 8]
sub eax, 1
push eax
call fcn.004020b0
add esp, 8
mov dword [ebp - 0x10], eax
jmp 0x4021f4
mov dword [ebp - 0x10], 0
jmp 0x402209
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.004020b0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x402216
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004022a6
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4022a6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d004]
jne 0x4022b0
repz ret
jmp fcn.00402877
Function at 0x4074d1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402ba1
and dword [ebp - 4], 0
cmp dword [0x40e738], 0
mov ebx, eax
jne 0x407582
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407633
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407633
push eax
call fcn.00402b2f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e738], eax
call esi
push eax
call fcn.00402b2f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e73c], eax
call esi
push eax
call fcn.00402b2f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e740], eax
call esi
push eax
call fcn.00402b2f
pop ecx
mov dword [0x40e748], eax
test eax, eax
je 0x407582
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402b2f
pop ecx
mov dword [0x40e744], eax
mov eax, dword [0x40e744]
cmp eax, ebx
je 0x4075da
cmp dword [0x40e748], ebx
je 0x4075da
push eax
call fcn.00402baa
push dword [0x40e748]
mov esi, eax
call fcn.00402baa
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4075da
test edi, edi
je 0x4075da
call esi
test eax, eax
je 0x4075d1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4075d1
test byte [ebp - 0xc], 1
jne 0x4075da
or dword [ebp + 0x10], 0x200000
jmp 0x407613
mov eax, dword [0x40e73c]
cmp eax, ebx
je 0x407613
push eax
call fcn.00402baa
pop ecx
test eax, eax
je 0x407613
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407613
mov eax, dword [0x40e740]
cmp eax, ebx
je 0x407613
push eax
call fcn.00402baa
pop ecx
test eax, eax
je 0x407613
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e738]
call fcn.00402baa
pop ecx
test eax, eax
je 0x407633
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407635
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100021af
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1007e274]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10002287
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x10002278
cmp dword [ebp - 0x20], 0x10
jb 0x10002266
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x10002266
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10002266
mov edx, dword [esi]
test edx, edx
jne 0x10002234
push 0x200
push edx
push dword [0x10080a74]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10002280
jmp 0x1000225a
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1000225a
shl eax, 3
push eax
push edx
push 0
push dword [0x10080a74]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10002280
shl dword [esi + 4], 1
mov dword [esi], edx
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x100021ef
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100410a2
leave
ret

Function at 0x10002295
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.100021af
cmp dword [esi], ebx
je 0x100022f5
push edi
mov edi, ebx
cmp dword [esi + 8], ebx
jbe 0x100022f4
mov eax, dword [esi]
push dword [eax + edi*4]
push ebx
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100022eb
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.1000205a
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
push 0
pop ebx
cmp edi, dword [esi + 8]
jb 0x100022bb
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100022f9
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x10002347
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10002337
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1000232e
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1000230b
mov eax, dword [esi]
pop ebx
push eax
push 0
push dword [0x10080a74]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret
Function at 0x10002349
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
imul esi, ecx, 0x2c
push edi
mov edi, edx
mov dword [ebp - 0x10], edi
add esi, dword [0x10080a90]
mov dword [ebp - 8], esi
mov al, byte [esi + 0x14]
mov ebx, dword [esi]
and al, 1
je 0x1000236f
sub ebx, 5
movzx eax, al
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10002393
push 0xa
pop eax
jmp 0x10002412
test edi, edi
je 0x100023b4
mov byte [ebx], 0xe9
mov eax, dword [esi + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [esi + 0x14], 1
je 0x100023d3
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x100023d3
test byte [esi + 0x14], 1
je 0x100023c8
lea esi, [esi + 0xc]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 8]
jmp 0x100023d3
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
mov al, byte [esi + 0x10]
mov byte [ebx + 4], al
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp - 0x10]
mov al, byte [esi + 0x14]
and dl, 1
mov cl, dl
and al, 0xfd
add cl, cl
shl dl, 2
or cl, al
and cl, 0xfb
or cl, dl
xor eax, eax
mov byte [esi + 0x14], cl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10002a95
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x10080a88]
push esi
xor esi, esi
jmp 0x10002aa7
cmp dword [edx + 4], esi
jne 0x10002af3
mov edx, dword [edx]
test edx, edx
jne 0x10002aa0
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x10002b04
push 0x20
mov dword [edx + 4], esi
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop esi
mov eax, dword [edx + 4]
add esi, 0x20
mov dword [ecx], eax
mov dword [edx + 4], ecx
add ecx, 0x20
cmp esi, 0xfe0
jbe 0x10002ad0
mov eax, dword [0x10080a88]
mov dword [edx], eax
mov dword [0x10080a88], edx
test edx, edx
je 0x10002b04
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
xor eax, eax
pop esi
ret
Function at 0x10003f30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0xbe
mov dword [ebp - 4], 0
jmp 0x10003f52
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x10
jge 0x10003f91
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx - 0x666dae97]
xor edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
mov byte [eax], dl
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
and edx, 0x800000ff
jns 0x10003f8c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
jmp 0x10003f49
mov eax, 1
shl eax, 4
mov ecx, dword [ebp - 0xc]
mov byte [ecx + eax], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10003fb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0xe0
mov dword [ebp - 4], 0
jmp 0x10003fd2
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 8
jge 0x10004011
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx + 0x604e8c40]
xor edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
mov byte [eax], dl
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
and edx, 0x800000ff
jns 0x1000400c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
jmp 0x10003fc9
mov eax, 1
shl eax, 3
mov ecx, dword [ebp - 0xc]
mov byte [ecx + eax], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10004490
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100789f8
push 0x10043570
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe8
push ebx
push esi
push edi
mov eax, dword [0x1007e274]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x28
mov ecx, dword [ebp + 8]
push ecx
call dword [0x1007f478]
test eax, eax
jge 0x100044f1
mov byte [ebp - 0x19], 0
mov dword [ebp - 4], 0xfffffffe
mov al, byte [ebp - 0x19]
jmp 0x1000457a
lea edx, [ebp - 0x28]
push edx
push 0x100665e0
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x10004520
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x1a], 0
mov dword [ebp - 4], 0xfffffffe
mov al, byte [ebp - 0x1a]
jmp 0x1000457a
push 4
lea ecx, [ebp - 0x28]
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
call fcn.10006310
add esp, 0x10
movzx eax, al
test eax, eax
je 0x10004555
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x1b], 1
mov dword [ebp - 4], 0xfffffffe
mov al, byte [ebp - 0x1b]
jmp 0x1000457a
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
jmp 0x10004578
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005350
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006307b
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
mov eax, dword [0x1007e274]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x340], 0
lea ecx, [ebp - 0x334]
call fcn.10004160
mov dword [ebp - 4], 0
mov eax, 1
imul ecx, eax, 0
mov dword [ebp - 0x34c], ecx
cmp dword [ebp - 0x34c], 0x104
jae 0x100053b3
jmp 0x100053b8
call fcn.10040fc8
mov edx, dword [ebp - 0x34c]
mov byte [ebp + edx - 0x114], 0
cmp dword [ebp + 0xc], 0
je 0x100053f2
mov eax, dword [ebp + 0xc]
push eax
call fcn.100467e0
add esp, 4
test eax, eax
je 0x100053f2
lea ecx, [ebp - 0x114]
push ecx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
jne 0x10005431
lea edx, [ebp - 0x334]
push edx
mov ecx, dword [ebp + 8]
call fcn.10004030
mov eax, dword [ebp - 0x340]
or eax, 1
mov dword [ebp - 0x340], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x334]
call fcn.10006b10
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
jmp 0x100055d7
mov cx, word [0x10066434]
mov word [ebp - 0x338], cx
mov dl, byte [0x10066436]
mov byte [ebp - 0x336], dl
mov dword [ebp - 0x348], 0
lea eax, [ebp - 0x114]
mov dword [ebp - 0x33c], eax
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x33c]
mov cl, byte [eax]
mov byte [ebp + edx - 0x338], cl
push 0x104
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x338]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x1000555a
lea ecx, [ebp - 0x218]
push ecx
call fcn.100467e0
add esp, 4
mov dword [ebp - 0x344], eax
cmp dword [ebp - 0x344], 0x104
jae 0x1000555a
mov edx, dword [ebp - 0x344]
push edx
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10046870
add esp, 0xc
test eax, eax
jne 0x100054e8
mov dword [ebp - 0x350], 1
jmp 0x100054f2
mov dword [ebp - 0x350], 0
mov edx, dword [ebp - 0x350]
mov dword [ebp - 0x348], edx
cmp dword [ebp - 0x348], 0
je 0x1000555a
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x344]
push eax
lea ecx, [ebp - 0x338]
push ecx
push str._s_s
lea edx, [ebp - 0x31c]
push edx
call fcn.100037d0
add esp, 0x10
lea eax, [ebp - 0x31c]
push eax
call fcn.100467e0
add esp, 4
mov dword [ebp - 0x354], eax
mov ecx, dword [ebp - 0x354]
push ecx
lea edx, [ebp - 0x31c]
push edx
lea ecx, [ebp - 0x334]
call fcn.10006dc0
mov eax, dword [ebp - 0x33c]
movsx ecx, byte [eax]
mov dword [ebp - 0x358], ecx
mov edx, dword [ebp - 0x33c]
add edx, 1
mov dword [ebp - 0x33c], edx
cmp dword [ebp - 0x358], 0
je 0x10005583
jmp 0x1000555a
cmp dword [ebp - 0x348], 0
jne 0x1000559d
mov eax, dword [ebp - 0x33c]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x10005461
lea edx, [ebp - 0x334]
push edx
mov ecx, dword [ebp + 8]
call fcn.10004030
mov eax, dword [ebp - 0x340]
or eax, 1
mov dword [ebp - 0x340], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x334]
call fcn.10006b10
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100410a2
mov esp, ebp
pop ebp
ret
Function at 0x10005960
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1007e274]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10c], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.dll_K32GetProcessImageFileNameA
test eax, eax
je 0x100059b9
lea edx, [ebp - 0x108]
push edx
mov ecx, dword [ebp + 8]
call fcn.100040a0
mov eax, dword [ebp - 0x10c]
or eax, 1
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 8]
jmp 0x10005a2c
push 0x104
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.10042d50
add esp, 0xc
push 0x104
lea edx, [ebp - 0x108]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call sub.KERNEL32.dll_K32GetModuleFileNameExA
test eax, eax
je 0x10005a0d
lea ecx, [ebp - 0x108]
push ecx
mov ecx, dword [ebp + 8]
call fcn.100040a0
mov edx, dword [ebp - 0x10c]
or edx, 1
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp + 8]
jmp 0x10005a2c
push 0x10066430
mov ecx, dword [ebp + 8]
call fcn.100040a0
mov eax, dword [ebp - 0x10c]
or eax, 1
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100410a2
mov esp, ebp
pop ebp
ret