joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405dcc
Capabilities:
Query service status
Stop service

Disassembly:
push 0xfc
mov eax, 0x47d793
call fcn.0047a72d
push 1
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x88], eax
test eax, eax
jne 0x405e24
push ecx
push ecx
mov ecx, esp
push 0x49a5f0
call fcn.00411bd1
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
lea ecx, [ebp - 0x108]
call fcn.004024a8
push 0x4c31b0
lea eax, [ebp - 0x108]
push eax
call fcn.0046b639
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x8c], esp
mov dword [ebp - 0x90], eax
mov dword [eax + 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 1
mov edi, vtable.std::_Func_base_void___.0
mov dword [eax], edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
mov dword [eax], vtable.std::_Func_impl_class__lambda_d7efea608f62f6858ac7ed28d76620de___class_std::allocator_int___void___.0
mov dword [eax + 4], ecx
mov byte [ebp - 4], bl
mov dword [eax + 0x24], eax
push 3
pop esi
mov dword [ebp - 4], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401d36
mov dword [ebp - 4], 4
lea ecx, [ebp - 0xa4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040fdea
mov byte [ebp - 4], 5
cmp dword [eax + 8], ebx
je 0x405ea0
mov eax, dword [eax + 4]
jmp 0x405ea5
mov eax, 0x4ca5a8
push 0x24
push eax
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 4
mov ecx, eax
call fcn.004100f5
cmp dword [ebp - 0x84], 0
jne 0x405eee
push ecx
push ecx
mov ecx, esp
push str.OpenService__
call fcn.00411b92
jmp 0x405dff
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x80], esp
mov dword [ebp - 0x94], eax
mov dword [eax + 0x24], ebx
mov byte [ebp - 4], 8
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 9
mov dword [eax], edi
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x84]
mov dword [eax], vtable.std::_Func_impl_class__lambda_b48f41b0a00bb88ee7c65c57db0a1a33___class_std::allocator_int___void___.0
mov dword [eax + 4], ecx
mov byte [ebp - 4], 8
mov dword [eax + 0x24], eax
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
call fcn.00401d36
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x2c]
push eax
push 1
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x405f88
push ecx
push ecx
mov ecx, esp
push str.ControlService__
call fcn.00411c10
jmp 0x405dff
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x405fb6
cmp dword [ebp - 0x28], esi
je 0x405f6c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
call fcn.00401d87
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401d87
call fcn.0047a6d7
ret
push ecx
push ecx
mov ecx, esp
push str.QueryServiceStatus__
call fcn.00411bfb
jmp 0x405dff
Function at 0x413e30
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0x310
mov eax, 0x48055d
call fcn.0047a72d
mov esi, ecx
mov dword [ebp - 0x28c], esi
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x29c], esi
call fcn.00414201
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2ac]
push dword [ebp + 0xc]
mov dword [esi], vtable.WWLib::CDirList_callback_1_.0
push dword [ebp + 8]
call fcn.0040fdea
mov byte [ebp - 4], 1
cmp dword [eax + 8], 0
je 0x413e7f
mov eax, dword [eax + 4]
jmp 0x413e84
mov eax, 0x4ca5a8
lea ecx, [ebp - 0x288]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x298], 0x4a8500
mov byte [ebp - 0x294], 1
mov dword [ebp - 0x290], edi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2ac]
mov dword [ebp - 0x28c], eax
mov byte [ebp - 4], 3
mov ecx, eax
call fcn.004100f5
test edi, edi
je 0x413fb2
cmp edi, 0xffffffff
je 0x413fb2
lea edx, [ebp - 0x25c]
mov eax, dword [ebp - 0x288]
mov ecx, dword [ebp - 0x26c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x20], eax
xor eax, eax
or eax, dword [ebp - 0x268]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x18], eax
call fcn.004176a0
push dword [ebp + 0x18]
lea ecx, [ebp - 0x38]
push ecx
push eax
push edx
mov ecx, ebx
call fcn.00407b27
test al, al
je 0x413fd9
lea eax, [ebp - 0x288]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [ebp - 0x25c]
test eax, eax
jne 0x413edd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x413fd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
test eax, eax
je 0x413fd9
push str.FindNextFileW__
lea ecx, [esi + 8]
call fcn.00414544
push ecx
push esi
lea ecx, [ebp - 0x31c]
call fcn.004033a5
push 0x4c3318
lea eax, [ebp - 0x31c]
push eax
call fcn.0046b639
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x413fd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
test eax, eax
je 0x413fd9
push str.FindFirstFileW__
lea ecx, [esi + 8]
call fcn.0041452b
jmp 0x413f94
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x298]
call fcn.00414298
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0047a6d7
ret 0x14

Function at 0x418280
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
mov esi, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41829c
call dword [sym.imp.KERNEL32.dll_DebugBreak]
xor edx, edx
push 0
push ecx
lea ecx, [edx + 0x6b]
call fcn.00418ad0
push dword [ebp + 8]
mov edx, esi
mov ecx, edi
call fcn.004181f0
add esp, 0xc
xor cl, cl
call fcn.00418950
push 0x8805
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4186e0
Capabilities:
Check if file exists
Create thread
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4b8100
push 0x46b6f0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4c600c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor bl, bl
mov byte [ebp - 0x19], bl
push 0
push 1
push 0x4ca7b4
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
sub eax, 0
je 0x41874a
sub eax, 1
je 0x418742
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
jmp 0x418715
mov dword [ebp - 4], 0
mov dword [0x4ca7b0], 0
xor esi, esi
mov dword [ebp - 0x20], esi
cmp esi, 4
jge 0x418785
mov eax, dword [esi*4 + 0x4caa10]
test eax, eax
je 0x418782
mov dword [esi*4 + 0x4caa10], 0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
jmp 0x41875d
lea eax, [ebp - 0x24]
push eax
push 0x418380
push 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x4188bc
push 0x12c
push 0x4ca7b8
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4188bc
cmp eax, 0x12c
jae 0x4188bc
test eax, eax
je 0x4188bc
cmp word [eax*2 + 0x4ca7b6], 0x5c
je 0x4187e0
dec eax
mov dword [ebp - 0x28], eax
jmp 0x4187c7
test eax, eax
je 0x4188bc
cmp eax, 0x11d
ja 0x4188bc
lea edi, [eax*2 + 0x4ca7b8]
mov ecx, 6
mov esi, str.BvDump32.exe
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x4ca7b8
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4188bc
test al, 0x10
jne 0x4188bc
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x4caa10], eax
test eax, eax
je 0x4188bc
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x4caa14], eax
test eax, eax
je 0x4188bc
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x4caa18], eax
test eax, eax
je 0x4188bc
lea eax, [ebp - 0x30]
push eax
push 0x10000
push 0
push 0x418380
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4caa1c], eax
push 0xfffffffffffffffe
test eax, eax
lea eax, [ebp - 0x10]
push eax
push 0x4c600c
je 0x4188c7
mov byte [ebp - 0x19], 1
call fcn.0046c0e0
add esp, 0xc
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
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x4c600c
call fcn.0046c0e0
add esp, 0xc
mov al, bl
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 0x41b900
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi]
cmp byte [eax + 0x31], 0
jne 0x41b97a
cmp byte [eax + 0x30], 3
jne 0x41b97a
mov eax, dword [esi + 4]
cmp dword [eax + 4], 1
jb 0x41b955
mov edx, dword [eax]
mov ecx, 1
mov eax, dword [eax + 4]
cmp eax, ecx
push 0
cmovb ecx, eax
mov dword [esp + 0xc], edx
push 1
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x10]
push 0x4a42fc
call fcn.00417510
test eax, eax
sete al
test al, al
jne 0x41b97a
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41b97a
mov eax, dword [esp + 0x10]
or eax, dword [esp + 0x14]
jne 0x41b97a
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41b990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480e18
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x4c600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x30], 1
je 0x41bb64
lea eax, [ebp + 8]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x1c]
call fcn.0041bb80
test al, al
je 0x41baa1
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x3c]
add eax, 3
push eax
call fcn.00415630
test eax, eax
je 0x41ba41
cmp byte [esi + 0x10], bl
jne 0x41ba17
mov byte [esi + 0x10], 1
mov byte [esi + 0x14], 1
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x41ba3b
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x41ba3b
mov eax, edx
mov edi, edi
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x41ba30
push edx
jmp 0x41bb5c
cmp dword [ebp - 0x3c], 0
jne 0x41ba8d
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x41ba8d
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x10], edi
mov byte [edi], 0xef
cmp ebx, 1
jbe 0x41ba8d
mov byte [edi + 1], 0xbb
cmp ebx, 2
jbe 0x41ba8d
mov byte [edi + 2], 0xbf
lea eax, [edi + 3]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.00469ff0
mov edx, edi
mov dword [ebp - 0x24], edi
mov ecx, ebx
mov dword [ebp - 0x20], ebx
add esp, 0xc
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ecx
jmp 0x41baa7
push 0x1f1
mov edx, str.datavect_unsigned_char_::operator___
mov ecx, str._af___i_s_
call fcn.00417c20
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
test ecx, ecx
je 0x41bb37
nop
mov edi, 0x10000
lea eax, [ebp - 0x14]
push 0
cmp ecx, edi
push eax
cmovb edi, ecx
push edi
push edx
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41bae7
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
cmp eax, ecx
mov edx, dword [ebp + 8]
cmova eax, ecx
mov byte [esi + 0x31], 1
add edx, eax
sub ecx, eax
jmp 0x41bb29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x10], 0
mov dword [ebp - 0x2c], str.WriteFile__
mov dword [ebp - 0x28], 0xb
jne 0x41bb1a
mov byte [esi + 0x10], 1
mov byte [esi + 0x15], 1
mov dword [esi + 0x18], str.WriteFile__
mov dword [esi + 0x1c], 0xb
mov dword [esi + 0x20], eax
mov ecx, dword [ebp + 0xc]
cmp edi, ecx
mov edx, dword [ebp + 8]
cmova edi, ecx
add edx, edi
sub ecx, edi
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], edx
test ecx, ecx
jne 0x41bab0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x41bb5b
test ebx, ebx
je 0x41bb5b
mov eax, ecx
jmp 0x41bb50
mov byte [eax], 0
lea eax, [eax + 1]
sub ebx, 1
jne 0x41bb50
push ecx
call fcn.0043af60
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41bb80
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi]
cmp byte [eax + 0x31], 0
jne 0x41bbe6
cmp byte [eax + 0x30], 3
jne 0x41bbe6
cmp dword [eax + 0xc], 0xfde9
jne 0x41bbe6
sub esp, 0xc
mov eax, esp
mov dword [eax], 0x49af48
mov dword [eax + 4], 3
mov ecx, dword [esi + 4]
call fcn.00416fe0
test al, al
jne 0x41bbe6
mov eax, dword [esi]
lea ecx, [esp + 8]
push ecx
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41bbe6
mov eax, dword [esp + 8]
or eax, dword [esp + 0xc]
jne 0x41bbe6
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41cda0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4c600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x12c
push 0
push esi
lea edi, [esi + 0x12c]
call fcn.0046a5d0
add esp, 0xc
push 0x12b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x401
push 0
push edi
mov byte [esi + 0x12b], 0
call fcn.0046a5d0
mov eax, dword [ebx]
add esp, 0xc
push 0x401
push edi
push esi
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x48d4b4]
mov ecx, ebx
call esi
push edi
mov byte [edi + 0x400], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, eax
xor esi, esi
test edx, edx
je 0x41ce2e
cmp edx, 0xffffffff
jne 0x41ce4c
push 0
push 0
push 3
push 0
push 7
push 0x40000000
push 0x4a4570
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov edx, esi
test edx, edx
je 0x41ce9b
cmp edx, 0xffffffff
je 0x41ce9b
mov ecx, edi
lea ebx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41ce60
push 0
lea eax, [ebp - 0x14]
sub ecx, ebx
push eax
push ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x41cef3
cmp esi, 0xffffffff
je 0x41cef3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468946
mov esp, ebp
pop ebp
ret 4
cmp byte [0x4caa44], 0
jne 0x41cef3
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
test eax, eax
je 0x41cef3
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0xc
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
je 0x41cef3
mov eax, dword [ebp - 8]
not eax
and eax, 1
jne 0x41cef3
mov eax, dword [ebx]
push 0x10
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x48d4b4]
mov ecx, ebx
call esi
push eax
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00468946
mov esp, ebp
pop ebp
ret 4
Function at 0x41d5b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48108b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4c600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0041d740
mov dword [ebp - 4], 0
lea ecx, [esi + 0x1c]
mov dword [ebp - 0x14], ecx
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x41d625
call fcn.00401dbf
inc eax
push eax
call fcn.004155a0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4228c0
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481810
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4c600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 3
push ebx
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x422979
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x422979
mov byte [ebp - 0x10], 1
mov dword [ebp - 0x24], 0x4a8500
mov byte [ebp - 0x20], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0
mov ecx, dword [esi + 8]
mov dword [esi], 0
test ecx, ecx
je 0x422951
mov eax, dword [esi + 4]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x422945
mov dword [esi + 8], ecx
mov dword [ebp - 4], 0xffffffff
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 0x20], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 0x18]
mov ecx, esi
xor edi, edi
call fcn.00415630
mov eax, dword [esi]
test eax, eax
jne 0x4229c7
lea eax, [ebp - 0x18]
push eax
push dword [esi + 8]
push dword [esi + 4]
push 3
push ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x422a33
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4229db
inc edi
cmp edi, 0x32
ja 0x4229db
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00415630
mov eax, dword [esi]
test eax, eax
je 0x42298b
push 0x1e7
mov edx, str.datavect_unsigned_char_::size
mov ecx, str._af_
call fcn.00417c20
mov byte [ebp - 0x14], 1
mov dword [ebp - 0x30], 0x4a8500
mov byte [ebp - 0x2c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], 1
mov ecx, dword [esi + 8]
mov dword [esi], 0
test ecx, ecx
je 0x422a1c
mov eax, dword [esi + 4]
lea esp, [esp]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x422a10
mov dword [esi + 8], ecx
mov dword [ebp - 4], 0xffffffff
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 0x2c], 0
jmp 0x422963
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x423420
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481aa9
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4c600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ecx], vtable.DlgItemTmplBase.0
mov word [ecx + 4], 0x101
mov dword [ebp - 4], 0
lea eax, [ecx + 0x1c]
mov dword [ecx], vtable.DlgItemTmpl.0
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov byte [ebp - 4], 2
lea eax, [ecx + 0x30]
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov byte [ebp - 4], 4
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x48], 0
mov dword [ecx + 0x4c], 0
mov dword [ecx + 0x50], 0
mov byte [ebp - 4], 5
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov word [ecx + 0x18], ax
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4246c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481ec8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4c600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov eax, ecx
mov dword [ebp - 0x10], eax
push 0
push 0
push 0xe
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
test edi, edi
jg 0x424731
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x424794
push 0xffffffffffffffff
push eax
mov ecx, ebx
call fcn.00416730
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi + 6]
test eax, eax
js 0x4247e6
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.0043aee0
mov esi, eax
mov word [ebp - 0x14], 0x101
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
add edi, 4
js 0x4247e6
push esi
push edi
push 0xd
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jg 0x4247a8
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x424794
push esi
call fcn.0043af60
add esp, 4
mov dword [ebp - 0x18], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
push eax
push esi
push 0xffffffffffffffff
push ecx
mov ecx, ebx
call fcn.00416320
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4247cf
push esi
call fcn.0043af60
add esp, 4
mov dword [ebp - 0x18], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x46
mov edx, str.NumCast
mov ecx, str.value___0
call fcn.00417c20
int3
Function at 0x426a50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0x10]
sub eax, 0x100
je 0x426a74
sub eax, 2
jne 0x426aac
cmp esi, 0x7f
jne 0x426aac
pop esi
pop ebx
pop ebp
ret 0x10
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x426aac
cmp esi, 8
jne 0x426a99
push dword [ebp + 8]
call fcn.00426ad0
pop esi
pop ebx
pop ebp
ret 0x10
cmp esi, 0x41
jne 0x426aac
push dword [ebp + 8]
call fcn.00426d80
pop esi
pop ebx
pop ebp
ret 0x10
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_CallWindowProcW]
pop esi
pop ebx
pop ebp
ret 0x10