joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e7d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4996ec
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4bc7dc]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov eax, dword [0x4bc7dc]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x240]
mov ebp, dword [esp + 0x23c]
mov dword [esp + 0x14], 0
mov edx, dword [0x4bc2cc]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4bc2cc
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x2a]
mov dword [esp + 0x23c], 0
push edx
mov word [esp + 0x2c], cx
call fcn.00485710
add esp, 0xc
cmp esi, 0x29
jne 0x40e8d3
call fcn.0040fdd0
test al, al
je 0x40e8d3
call fcn.0040fb30
test eax, eax
jne 0x40e8d3
push 0x104
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x40e901
mov edx, dword [0x4bc2cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x4bc2cc
call eax
add eax, 0x10
mov dword [ebp], eax
mov esi, ebp
call fcn.00402580
lea eax, [edi - 0x10]
mov dword [esp + 0x234], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e999
mov ecx, dword [eax]
push eax
jmp 0x40e992
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40e901
mov edx, dword [0x4bc2cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x4bc2cc
call eax
add eax, 0x10
mov dword [ebp], eax
jmp 0x40e8a3
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
call fcn.00402450
lea eax, [esp + 0x18]
lea edi, [esp + 0x14]
mov byte [esp + 0x234], 3
call fcn.00402c90
mov byte [esp + 0x234], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e94c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x40e961
lea esi, [esp + 0x14]
call fcn.0040e1c0
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
mov eax, esi
call fcn.004033a0
add eax, 0x10
mov dword [ebp], eax
mov dword [esp + 0x234], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40e999
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0047fe29
add esp, 0x228
ret
Function at 0x40ea00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4985d1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bc7dc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x4bc2cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4bc2cc
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea edi, [esp + 0x14]
lea ebx, [esp + 0x3c]
mov dword [esp + 0x30], 0
call fcn.0040fa50
mov ebx, dword [esp + 0x14]
cmp dword [ebx - 0xc], 0
je 0x40eac1
mov eax, dword [esp + 0x38]
mov edi, dword [eax + 0x10]
push 0x14
call fcn.0048068d
mov esi, eax
add esp, 4
test esi, esi
je 0x40eafb
mov ecx, dword [edi + 4]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov eax, dword [edi + 4]
lea ebp, [esi + 0xc]
mov dword [esi + 8], eax
mov word [esi + 0x10], 0
mov dword [esp + 0x38], ebp
mov dword [esp + 0x18], ebp
mov byte [esp + 0x30], 2
test ebp, ebp
je 0x40eab0
lea eax, [ebx - 0x10]
call fcn.004033a0
add eax, 0x10
mov dword [ebp], eax
push esi
lea ecx, [esp + 0x1c]
push ecx
push edi
mov byte [esp + 0x3c], 0
call fcn.0040f4f0
lea eax, [ebx - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40eae5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], vtable.stdext::bad_alloc.0
lea esi, [esp + 0x20]
mov byte [esp + 0x30], 1
call fcn.00401010
int3

Function at 0x40eb20
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0x4a8970
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
xor edi, edi
test esi, esi
je 0x40eb6e
push str.EnumProcessModulesEx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40eb63
mov ecx, dword [esp + 0x10]
push 3
push ebx
push 0x1000
push ebp
push ecx
call eax
test eax, eax
je 0x40eb63
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
jne 0x40eb89
mov edx, dword [esp + 0x10]
push ebx
push 0x1000
push ebp
push edx
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
mov eax, 1
jne 0x40eb8b
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x40ed70
Capabilities:
Enumerate gui resources

Disassembly:
push 0xffffffffffffffff
push 0x49de9a
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4bc7dc]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x34], ebx
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00403990
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
push 0x14
mov dword [esi + 8], ebx
mov dword [esp + 0x24], ebx
call fcn.0048068d
add esp, 4
cmp eax, ebx
je 0x40ee95
mov dword [esp + 0x1c], eax
mov dword [eax], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 8], eax
mov edx, dword [esp + 0x1c]
mov al, 1
mov byte [edx + 0x10], al
mov ecx, dword [esp + 0x1c]
mov byte [ecx + 0x11], al
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x1c]
mov byte [esp + 0x38], 0xa
call fcn.0040f200
lea eax, [esp + 0x18]
push eax
push 0x40eb90
mov dword [esp + 0x30], esi
call dword [sym.imp.USER32.dll_EnumWindows]
mov byte [esp + 0x34], 0xb
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x18]
lea esi, [esp + 0x20]
call fcn.00403480
mov byte [esp + 0x34], bl
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0047fe1e
add esp, 4
mov dword [esp + 0x34], 0xc
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x18]
lea esi, [esp + 0x44]
call fcn.00403480
mov dword [esp + 0x34], 0xffffffff
mov edx, dword [esp + 0x40]
push edx
call fcn.0047fe1e
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], vtable.stdext::bad_alloc.0
lea esi, [esp + 0x10]
mov byte [esp + 0x34], 9
call fcn.00401010
int3

Function at 0x40eeb0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
mov eax, dword [0x4bc7dc]
xor eax, esp
mov dword [esp + 0x14], eax
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40eee6
xor al, al
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0047fe29
add esp, 0x18
ret
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40eed5
push 0x80020003
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esp + 0x14]
test eax, eax
setne al
xor ecx, esp
call fcn.0047fe29
add esp, 0x18
ret
Function at 0x40ef50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push 0x38
lea eax, [esp + 8]
push 0
push eax
call fcn.00485710
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx]
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
mov dword [esp + 0x1c], edx
add esp, 0xc
lea edx, [esp]
push edx
mov dword [esp + 4], 0x3c
mov dword [esp + 8], 0x440
mov dword [esp + 0x10], str.open
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40efde
mov eax, dword [esp + 0x38]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x40]
push ecx
push edx
mov dword [esp + 0x48], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x40]
add esp, 0x3c
ret
or eax, 0xffffffff
add esp, 0x3c
ret

Function at 0x40f0d0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
mov eax, dword [eax]
lea ecx, [esp]
push ecx
mov edx, 0x2011f
mov ecx, 0x80000001
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.0040e500
test eax, eax
je 0x40f118
mov eax, dword [esp]
test eax, eax
je 0x40f112
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add esp, 0xc
ret
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 4]
push esi
mov esi, dword [edx]
push edi
mov edi, dword [eax]
test esi, esi
je 0x40f148
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test ebx, ebx
je 0x40f153
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0xc
ret

Function at 0x40f9b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40fa1e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x40f9ef
cmp eax, 2
jne 0x40fa0a
mov eax, dword [esp]
test esi, esi
je 0x40fa18
test eax, eax
je 0x40fa13
test al, 1
jne 0x40fa0a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40fa18
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x40fa50
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [ebx]
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
test esi, esi
jns 0x40fa6b
push 0x80070057
call fcn.00401060
mov eax, dword [edi]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, esi
or ecx, edx
jge 0x40fa87
mov eax, esi
mov ecx, edi
call fcn.00403340
mov eax, dword [edi]
push esi
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40faae
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40fab2
push ecx
push eax
call fcn.00480443
add esp, 8
test eax, eax
js 0x40fa61
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x40fa61
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
pop esi
ret

Function at 0x40fad0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
push 0x38
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00485710
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], str.RunDll32.exe
mov dword [esp + 0x1c], str.shell32.dll_Control_RunDLL_intl.cpl__1
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 5
mov dword [esp + 0x28], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
add esp, 0x3c
ret

Function at 0x40fb30
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4bc7dc]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
call fcn.00485710
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40fb83
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0047fe29
add esp, 0x118
ret
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
sbb eax, eax
xor ecx, esp
inc eax
call fcn.0047fe29
add esp, 0x118
ret

Function at 0x40fba0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4bc7dc]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
call fcn.00485710
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40fbf5
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0047fe29
add esp, 0x118
ret
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x40fc05
cmp dword [esp + 8], 1
jmp 0x40fc08
cmp eax, 6
jb 0x40fbde
mov ecx, dword [esp + 0x114]
xor ecx, esp
mov eax, 1
call fcn.0047fe29
add esp, 0x118
ret
Function at 0x40fc30
Capabilities:
Compare security identifiers

Disassembly:
push 0xffffffffffffffff
push 0x49d298
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4bc7dc]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bc7dc]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
mov dword [esp + 0x18], ebx
push 8
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40fd58
push 0x400
call fcn.0047ee41
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x1c]
push ecx
push 0x400
mov dword [esp + 0x3c], ebx
mov edx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push esi
push 2
push edx
mov dword [esp + 0x30], ebx
call ebp
mov edi, eax
cmp edi, ebx
jne 0x40fd02
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40fd02
mov eax, dword [esp + 0x1c]
push eax
call fcn.0047ee41
mov edi, eax
add esp, 4
cmp edi, esi
je 0x40fcec
push esi
call fcn.00480592
add esp, 4
mov esi, edi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
push esi
push 2
push eax
call ebp
mov edi, eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x40fd92
lea edx, [esp + 0x14]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], ebx
mov word [esp + 0x50], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40fd5c
push esi
mov dword [esp + 0x38], 0xffffffff
call fcn.00480592
add esp, 4
xor al, al
jmp 0x40fdab
xor edi, edi
cmp dword [esi], ebx
jbe 0x40fd87
lea ebp, [esi + 4]
mov ecx, dword [ebp]
mov edx, dword [esp + 0x14]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40fd82
inc ebx
add ebp, 8
cmp ebx, dword [esi]
jb 0x40fd65
jmp 0x40fd87
mov edi, 1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp edi, 1
push esi
sete bl
mov dword [esp + 0x38], 0xffffffff
call fcn.00480592
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0047fe29
add esp, 0x24
ret
Function at 0x410260
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x497d48
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x4bc7dc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
and eax, 0x17
mov dword [ecx + 0xc], eax
mov ecx, dword [ecx + 0x10]
and ecx, eax
je 0x41033d
test cl, 4
je 0x4102d6
call fcn.0047ef1d
mov ecx, 1
mov dword [esp + 0x10], str.ios_base::badbit_set
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], vtable.std::ios_base::failure.0
lea esi, [esp + 0xc]
mov dword [esp + 0x38], 0
call fcn.00401010
test cl, 2
je 0x41030a
call fcn.0047ef1d
mov ecx, 1
mov dword [esp + 0x10], str.ios_base::failbit_set
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], vtable.std::ios_base::failure.0
lea esi, [esp + 0xc]
mov dword [esp + 0x38], ecx
call fcn.00401010
call fcn.0047ef1d
mov ecx, 1
mov dword [esp + 0x20], str.ios_base::eofbit_set
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], vtable.std::ios_base::failure.0
lea esi, [esp + 0x1c]
mov dword [esp + 0x38], 2
call fcn.00401010
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4103d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x49a8e8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4bc7dc]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
cmp dword [esi + 0x14], 8
jb 0x410404
mov eax, dword [esi]
jmp 0x410406
mov eax, esi
lea ecx, [esp + 0x10]
push ecx
push 0
lea edx, [esp + 0x1c]
push edx
push 0
push eax
mov eax, dword [edi]
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4104fe
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x410456
cmp eax, 2
je 0x410456
mov eax, 0xd
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 4
mov eax, dword [esp + 0x10]
shr eax, 1
inc eax
xor ecx, ecx
mov dword [esp + 0x18], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047ee41
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], 0
cmp dword [esi + 0x14], 8
jb 0x410490
mov esi, dword [esi]
push esi
push edi
lea edi, [esp + 0x20]
mov esi, ebx
call fcn.0040f9b0
mov esi, eax
test esi, esi
je 0x4104cb
push ebx
mov dword [esp + 0x2c], 0xffffffff
call fcn.00480592
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 4
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4104d0
mov esi, dword [esp + 0x30]
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
call fcn.0040ca50
push ebx
mov dword [esp + 0x2c], 0xffffffff
call fcn.00480592
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 4
Function at 0x410520
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x49d260
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4bc7dc]
xor eax, esp
mov dword [esp + 0x38], eax
push ebp
push esi
push edi
mov eax, dword [0x4bc7dc]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
xor edi, edi
mov esi, edx
mov dword [esp + 0x20], edi
cmp dword [esi + 0x14], 8
mov dword [esp + 0x14], ecx
jb 0x410567
mov eax, dword [esi]
jmp 0x410569
mov eax, esi
lea edx, [esp + 0x18]
push edx
push edi
lea edx, [esp + 0x2c]
push edx
push edi
push eax
mov eax, dword [ecx]
push eax
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x4106f4
cmp dword [esp + 0x24], 7
je 0x41059c
mov eax, 0xd
jmp 0x4106f4
mov edi, dword [esp + 0x18]
shr edi, 1
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047ee41
mov ebp, eax
add esp, 4
mov dword [esp + 0x10], ebp
lea eax, [edi + edi]
mov ecx, 8
mov dword [esp + 0x54], ecx
xor edx, edx
lea edi, [eax + ebp]
mov word [edi], dx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], edx
cmp dword [esi + 0x14], ecx
jb 0x4105eb
mov esi, dword [esi]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
mov eax, dword [edx]
push ebp
lea ecx, [esp + 0x28]
push ecx
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x410624
push ebp
mov dword [esp + 0x58], 0xffffffff
call fcn.00480592
add esp, 4
mov eax, esi
jmp 0x4106f4
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
cmp ecx, eax
je 0x41064c
mov edx, dword [esp + 0x14]
push edx
push eax
call fcn.0040c550
mov edi, dword [ebx + 4]
add esp, 8
mov esi, eax
call fcn.0040c510
mov edi, dword [esp + 0x1c]
mov dword [ebx + 4], esi
cmp dword [esp + 0x10], edi
jae 0x4106dd
xor eax, eax
mov word [esp + 0x2c], ax
mov eax, ebp
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410672
sub eax, edx
sar eax, 1
push eax
mov eax, ebp
lea esi, [esp + 0x30]
call fcn.0040ca50
mov ecx, esi
mov edi, ebx
mov byte [esp + 0x54], 9
call fcn.00410a70
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x54], 8
cmp dword [esp + 0x40], 8
lea ebp, [ebp + ecx*2 + 2]
jb 0x4106bc
mov edx, dword [esp + 0x2c]
push edx
call fcn.0047fe1e
add esp, 4
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
cmp ebp, dword [esp + 0x1c]
jb 0x410656
mov dword [esp + 0x54], 0xffffffff
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00480592
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0047fe29
add esp, 0x48
ret
Function at 0x4108a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, ecx
xor ecx, ecx
cmp dword [esi + 0x14], 8
push edi
mov edi, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], ecx
jb 0x4108c0
mov eax, dword [esi]
jmp 0x4108c2
mov eax, esi
lea edx, [esp + 0x1c]
push edx
push ecx
lea edx, [esp + 0x14]
push edx
push ecx
push eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410902
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4108eb
mov byte [eax], 1
test ebp, ebp
je 0x410940
mov edx, dword [esp + 0x14]
push ebp
mov ecx, esi
call fcn.004103d0
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
cmp dword [edi + 0x14], 8
jb 0x41090a
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x410912
mov esi, dword [esi]
test edi, edi
je 0x410935
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push edi
push 1
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x410940
mov byte [eax], 0
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 0xc
Function at 0x412600
Capabilities:
Stop service

Disassembly:
sub esp, 0x20
mov eax, dword [0x4bc7dc]
xor eax, esp
mov dword [esp + 0x1c], eax
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41269b
test edi, edi
je 0x41269b
push esi
push 0xf003f
push str.GoogleInputService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, 0xffffffff
je 0x412646
test esi, esi
jne 0x41265e
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0047fe29
add esp, 0x20
ret
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 8]
push eax
push 1
push esi
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
mov ecx, dword [esp + 0x20]
pop edi
xor ecx, esp
call fcn.0047fe29
add esp, 0x20
ret