joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40461f
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
push edx
mov edx, ecx
call fcn.00406ada
cmp dword [ebp + 0xc], 0
pop ecx
pop ecx
je 0x404816
push ebx
push 0x2001f
xor ebx, ebx
lea ecx, [ebp - 0x220]
push 0x4214f0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], ebx
call fcn.004015f0
test eax, eax
je 0x4046a0
push eax
push 0x421398
mov edx, str.failed_to_open_arm_registry
call fcn.00406ada
pop ecx
pop ecx
lea ecx, [ebp - 0x220]
call fcn.00401531
jmp 0x404815
push edi
test esi, esi
jne 0x404713
mov esi, dword [ebp - 0x220]
push str.iLastSvcFailure
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.iLastSvcErrorCode
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.iSvcErrorCount
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push 4
pop edi
push edi
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push edi
push ebx
push str.iLastSvcSuccess
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4047fe
push eax
push 0x421398
mov edx, str.SetDWORDValue_failed_to_register_success_time
call fcn.00406ada
pop ecx
pop ecx
jmp 0x4047fe
lea eax, [ebp - 0x228]
push eax
call fcn.0040d2d4
mov dword [esp], 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004094e0
push 0xa
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x228]
call fcn.0040ce72
lea eax, [ebp - 0x20c]
mov edx, str.current_error_time:
push ebx
push eax
call fcn.00406ada
mov eax, dword [ebp - 0x228]
add esp, 0x24
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x214]
push 4
pop edi
push edi
push eax
push edi
push ebx
push str.iLastSvcFailure
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
push eax
push edi
push ebx
push str.iLastSvcErrorCode
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], ebx
push eax
push str.iSvcErrorCount
lea ecx, [ebp - 0x220]
call fcn.00401689
mov eax, dword [ebp - 0x210]
cmp eax, 0x7d00
jae 0x4047fe
inc eax
mov dword [ebp - 0x214], esi
push edi
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x214]
push eax
push edi
push ebx
push str.iSvcErrorCount
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x220]
call fcn.00401531
lea ecx, [ebp - 0x220]
call fcn.00401531
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040787a
leave
ret
Function at 0x404823
Capabilities:
Get common file path

Disassembly:
push 0x41c
mov eax, 0x41a36b
call fcn.004197de
mov esi, dword [ebp + 8]
push 1
push dword [ebp + 0xc]
call fcn.0040461f
pop ecx
pop ecx
lea ecx, [ebp - 0x424]
call fcn.004064b4
lea eax, [ebp - 0x425]
xor ebx, ebx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x424]
push esi
mov byte [ebp - 0x425], bl
call fcn.0040684b
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004094e0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x2b
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4048bc
push str.AdobeARM1.0Temp
mov edx, 0x104
lea ecx, [ebp - 0x218]
call fcn.00403aa0
test eax, eax
js 0x4048bc
lea ecx, [ebp - 0x218]
call fcn.004044a2
call fcn.00419788
ret
Function at 0x405798
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.004056b7
test eax, eax
je 0x405817
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4057eb
push 0x10020
lea eax, [esi + 0x230]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x4057ef
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x40581a
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x4057eb
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040787a
leave
ret

Function at 0x405829
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push edi
push eax
xor edi, edi
lea eax, [ebp - 0x204]
push edi
push dword [ebp + 0xc]
push 0x100
push eax
call fcn.0040117c
push dword [eax + 4]
push dword [eax]
call fcn.0040cc7e
add esp, 0x1c
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], eax
cmp dword [esi + 0x454], edi
je 0x4058b1
lea eax, [esi + 0x230]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x4058be
push edi
lea eax, [ebp - 0x208]
push eax
push edi
push 1
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x4058be
lea eax, [ebp - 0x204]
push eax
call fcn.0040d401
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040787a
leave
ret
Function at 0x4058cc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 0xc]
push esi
push edi
push eax
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push 0x4214f0
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x405926
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push edi
push str.iLastSvcSuccess
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 0x230]
mov dword [ebp - 0x18], 0x405a60
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
cmp dword [esi + 0x454], edi
je 0x405966
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x40595e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x454], edi
cmp dword [esi + 0x454], edi
jne 0x40596d
mov ecx, esi
call fcn.00405afd
pop edi
pop esi
leave
ret

Function at 0x4064b4
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 0x104
push ebx
lea edi, [esi + 4]
mov dword [esi], vtable.CArmReport.0
push edi
call fcn.004094e0
add esp, 0xc
push edi
push ebx
push ebx
push 0x8023
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x406507
mov ebx, 0x104
mov ecx, edi
push str.AdobeARM_
mov edx, ebx
call fcn.00403aa0
push str.ArmReport.ini
mov edx, ebx
mov ecx, edi
call fcn.00403aa0
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x40653d
Capabilities:
Get token membership
Write file on windows

Disassembly:
push 0x9c
mov eax, 0x41a49e
call fcn.004197de
mov ebx, ecx
mov eax, 0xfeff
xor edi, edi
mov word [ebp - 0x74], ax
mov eax, vtable.ATL::CAccessToken.0
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], edi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push 0x42257c
push eax
call fcn.00406262
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x9c]
call fcn.004063e3
lea eax, [ebp - 0x78]
push eax
push 2
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x4065f2
mov eax, dword [ebp - 0x88]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x41b2b0]
lea ecx, [ebp - 0x88]
call esi
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x84], eax
jmp 0x4065f8
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x40664b
cmp dword [ebp - 0x78], 0
je 0x40664b
push edi
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa8], 0xc
push eax
push 1
push str.D:_D_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GA___AU_
mov dword [ebp - 0xa0], edi
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x4066ac
push edi
push 0x80
push 1
lea eax, [ebp - 0xa8]
push eax
jmp 0x406654
push edi
push 0x80
push 1
push edi
push edi
push 0x40000000
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4066ac
push edi
lea eax, [ebp - 0x8c]
push eax
push 2
lea eax, [ebp - 0x74]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4066ac
push edi
lea eax, [ebp - 0x8c]
mov ebx, str._SESSION_
push eax
push ebx
call fcn.0040b51e
pop ecx
lea eax, [eax*2 + 2]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4066b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4066bd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x70]
call fcn.0040632d
mov esi, vtable.ATL::CAccessToken.0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], esi
call fcn.00406470
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
call fcn.00406470
mov eax, edi
call fcn.00419788
ret
Function at 0x4066f4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 8], edi
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x406719
push 3
pop eax
jmp 0x406844
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x406740
and dword [ebp - 4], ebx
mov ecx, edi
call fcn.0040653d
mov ebx, eax
test ebx, ebx
jne 0x406844
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
je 0x406822
cmp dword [ebp - 4], 0
je 0x406822
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.004068f8
test eax, eax
jne 0x406822
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x406822
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.00409264
pop ecx
pop ecx
test eax, eax
je 0x4067a7
push 2
push dword [ebp - 4]
call fcn.00407cdc
pop ecx
pop ecx
xor eax, eax
jmp 0x406844
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, edi
xor ecx, ecx
push 2
pop edx
lea esi, [eax*2 + 2]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00407f1c
pop ecx
push dword [ebp - 4]
mov edi, eax
mov edx, esi
mov ecx, edi
call fcn.00403a7c
push 0
mov edx, esi
mov ecx, edi
call fcn.00403aa0
push dword [ebp + 0xc]
mov edx, esi
mov ecx, edi
call fcn.00403aa0
mov eax, dword [ebp - 8]
add eax, 4
push eax
push edi
push dword [ebp + 8]
push str.SESSION
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 2
push dword [ebp - 4]
mov esi, eax
call fcn.00407cdc
push edi
call fcn.0040788b
add esp, 0xc
jmp 0x406836
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.SESSION
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
test esi, esi
jne 0x406842
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4068f8
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea ebx, [ecx + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x406913
push 3
pop eax
jmp 0x4069bb
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x406923
push 2
jmp 0x40690d
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x82
push 2
pop edx
add esi, esi
cmp esi, 0x821
jae 0x4069b6
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00407f1c
lea ecx, [esi + esi]
mov dword [edi], eax
push ecx
push 0
push eax
call fcn.004094e0
add esp, 0x10
push ebx
push esi
push dword [edi]
push 0
push dword [ebp + 8]
push str.SESSION
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 4], eax
test eax, eax
je 0x406980
lea ecx, [esi - 1]
cmp eax, ecx
jne 0x406992
push dword [edi]
call fcn.0040788b
and dword [edi], 0
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
je 0x4069af
inc eax
push 2
pop edx
cmp esi, eax
jbe 0x406930
cmp dword [edi], 0
je 0x4069b6
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4069b6
xor eax, eax
jmp 0x4069b9
mov eax, 0xe8
jmp 0x4069b9
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x406a55
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
mov byte [0x427944], 1
push eax
push 0x20019
xor esi, esi
mov dword [0x427948], 1
push esi
push 0x4214f0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406ad7
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x42258c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x406ad7
mov eax, dword [0x427948]
cmp dword [ebp - 8], 1
push 2
pop ecx
cmove eax, ecx
mov dword [0x427948], eax
pop esi
leave
ret
Function at 0x406fbe
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407003
push esi
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x407002
push 0xc00
mov ecx, esi
call dword [0x41b2b0]
call esi
pop esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004094e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x407040
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x421398
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040787a
leave
ret

Function at 0x4070d8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x20a
lea eax, [ebp - 0x41c]
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call fcn.004094e0
push edi
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.004094e0
add esp, 0x18
mov dword [ebp - 0x420], ebx
mov ecx, 0x105
mov dword [ebp - 0x428], ebx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], ebx
push ecx
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x420]
push eax
push ecx
lea eax, [ebp - 0x41c]
push eax
push 0x42273c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov edi, 0x104
test eax, eax
je 0x407178
push 0xa
push edi
push esi
push dword [ebp - 0x420]
call fcn.0040ce72
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x407192
push str.thsnYaViMRAeBoda
mov edx, edi
mov ecx, esi
call fcn.00403aa0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040787a
leave
ret

Function at 0x407531
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004094e0
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.004071a1
lea eax, [ebp - 0x20c]
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test eax, eax
jne 0x40759f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40759b
push ecx
push eax
mov edx, str.Could_not_open_file_mapping_object
mov ecx, str.ReleaseSharedMemory__
call fcn.00407231
pop ecx
pop ecx
xor eax, eax
jmp 0x4075a9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040787a
leave
ret
Function at 0x4075b5
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], ecx
lea eax, [ebp - 0x20c]
mov esi, edx
push edi
push eax
call fcn.004094e0
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.004071a1
lea eax, [ebp - 0x20c]
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x407647
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_open_file_mapping_object.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x410], eax
xor eax, eax
jmp 0x407711
push 0x1e78
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x40769b
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_map_view_of_file.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x410], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407640
mov eax, dword [ebp - 0x210]
test eax, eax
jne 0x4076b7
call fcn.0040d1f6
mov dword [eax], 0x16
call fcn.0040d12a
jmp 0x4076c6
push 0x1034
push edi
push eax
call fcn.00408cf0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push str.ReadSharedMemory__:
push ecx
mov edx, 0x82
mov ecx, esi
call fcn.00403b0e
lea eax, [ebp - 0x20c]
push eax
push str.succeeded._mapping_obj_name:__s
lea eax, [esi + 0x208]
push 0x104
push eax
call fcn.00406a27
and dword [esi + 0x410], 0
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040787a
leave
ret
Function at 0x1000f7a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1009e1b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.10093758
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.100128a0
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x1000f7f4
jmp dword [ecx*4 + 0x1000f95c]
mov al, byte [esi]
test al, al
je 0x1000f822
cmp al, 0x20
je 0x1000f80e
cmp al, 0xa1
jne 0x1000f822
cmp byte [esi + 1], al
jne 0x1000f822
test al, 0x80
je 0x1000f81a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x1000f822
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1000f801
test ecx, ecx
je case.default.0x1000f7f4
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x1000f7f4
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x1000f868
cmp dl, 0xa1
jne 0x1000f85c
cmp byte [eax + 1], 0xa1
jne 0x1000f85c
test ecx, ecx
jne 0x1000f854
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1000f87c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x1000f896
jmp 0x1000f87c
cmp dl, 0x20
jne 0x1000f87a
test ecx, ecx
jne 0x1000f873
mov edi, eax
mov ecx, 1
jmp 0x1000f87c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1000f83c
cmp ecx, 1
jne case.default.0x1000f7f4
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1000f7f4
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1000f7f4
mov al, byte [esi]
test al, al
je 0x1000f8ee
test al, 0x80
mov byte [esp + 0x3c], al
je 0x1000f8d4
mov cl, byte [esi + 1]
test cl, cl
je 0x1000f8ee
cmp al, 0xa1
jne 0x1000f8c4
cmp cl, al
je 0x1000f8d1
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.10012b70
inc esi
jmp 0x1000f8e6
cmp al, 0x20
je 0x1000f8e6
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10012bb0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1000f8ad
push 0
lea ecx, [esp + 0x14]
call fcn.10012bb0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1001bcd0
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x1000f921
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x100a4d68
call fcn.10012aa0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100936ea
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x10016810
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1009e5ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.1009345f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10016892
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.10091371
mov eax, dword [eax]
push 0x100bbc50
push eax
call fcn.10083614
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.100936ea
test bl, bl
je 0x10016892
push 0x100bbc50
lea ecx, [esp + 0xc]
call fcn.10093a7a
push 0x100bbc5c
lea ecx, [esp + 0xc]
call fcn.10093a7a
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x100168ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.100936ea
jmp 0x10016999
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x10016952
lea edx, [esp + 0x7c]
push 0x100bbc58
push edx
call fcn.10083614
add esp, 8
test eax, eax
je 0x10016952
lea eax, [esp + 0x7c]
push 0x100bbc54
push eax
call fcn.10083614
add esp, 8
test eax, eax
je 0x10016952
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100168e2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.100936ea
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x10017190
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x100171f2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc