joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016c6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc14
push edi
xor edi, edi
cmp dword [0x432048], edi
je 0x4017e1
push esi
mov esi, 0x431c08
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x4016e9
sub eax, edx
sar eax, 1
je 0x4017e0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x414]
push 0x200
push eax
call fcn.004113c4
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x414]
push eax
movzx eax, word [ebp - 2]
push eax
movzx eax, word [ebp - 4]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
push str._02d__02d__04d__02d:_02d:_02d._03d__s_r_n
lea eax, [ebp - 0xc14]
push 0x400
push eax
call fcn.0041121d
add esp, 0x2c
push edi
push edi
cmp dword [0x432068], edi
jne 0x40178e
push 2
push edi
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [0x432068], 1
jmp 0x4017ac
push 3
push edi
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push edi
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc14]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x4017b5
sub eax, edx
push edi
sar eax, 1
lea ecx, [ebp - 0x14]
push ecx
add eax, eax
push eax
lea eax, [ebp - 0xc14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
leave
ret

Function at 0x401868
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x431c04]
test eax, eax
je 0x40189b
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40188f
push 1
push dword [0x431c04]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x431c04]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x40189c
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
call fcn.0040c0a9
test al, al
jne 0x4018b5
xor eax, eax
jmp 0x40199d
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x4018de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_with_error:__d._n
call fcn.004016c6
pop ecx
pop ecx
jmp 0x4018ae
push esi
push 5
push str.DcomLaunch
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x401912
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_open_the_service._Error:__d._n
call fcn.004016c6
pop ecx
pop ecx
jmp 0x401995
push edi
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
pop edi
test eax, eax
je 0x40197d
cmp dword [ebp - 0x14], ebx
je 0x40197d
push dword [ebp - 0x14]
push str.Service_Process_ID:__d._n
call fcn.004016c6
pop ecx
pop ecx
push dword [ebp - 0x14]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x40196e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_open_process._Error:__d._n
jmp 0x401989
push str.Successfully_opened_the_handle_to_the_service__n
call fcn.004016c6
mov ebx, dword [ebp - 0x14]
jmp 0x40198f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_query_service_status._Error:__d._n
call fcn.004016c6
pop ecx
pop ecx
push dword [ebp - 4]
call esi
push dword [ebp - 0xc]
call esi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x4027cf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor esi, esi
test eax, eax
je 0x402820
push esi
push esi
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.GlobalOSSProxyUpdateAllProcesses
lea eax, [ebp - 0x20]
push esi
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x431c00], eax
cmp dword [0x431c00], esi
je 0x40283f
push esi
push esi
push esi
push 0x40182d
push esi
push esi
call fcn.004122cc
add esp, 0x18
mov dword [0x431c04], eax
pop esi
leave
ret
Function at 0x403272
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
push ebx
push esi
push edi
push str.Updating_DCOM_launcher_for_win10_
call fcn.004016c6
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
mov dword [esp], str.Wow64DisableWow64FsRedirection
mov ebx, str.kernel32
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.Wow64RevertWow64FsRedirection
push ebx
mov dword [ebp - 0x10], eax
call esi
push eax
call edi
mov dword [ebp - 4], eax
call fcn.0040c1e9
xor ebx, ebx
test eax, eax
je 0x4032d9
cmp dword [ebp - 0x10], ebx
je 0x4032d9
lea eax, [ebp - 8]
push eax
call dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
xor eax, eax
push 0x436
mov word [ebp - 0x4c4], ax
lea eax, [ebp - 0x4c2]
push ebx
push eax
call fcn.00412380
add esp, 0xc
mov esi, 0x21c
push esi
lea eax, [ebp - 0x4c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x403444
push str._rundll32.exe
lea eax, [ebp - 0x4c4]
push esi
push eax
call fcn.00411a19
add esp, 0xc
call fcn.0040c1e9
test eax, eax
je 0x403345
cmp dword [0x4300d0], 8
mov eax, dword [0x4300bc]
jae 0x403358
mov eax, 0x4300bc
jmp 0x403358
cmp dword [0x4300b4], 8
mov eax, dword [0x4300a0]
jae 0x403358
mov eax, 0x4300a0
push eax
lea eax, [ebp - 0x4c4]
push esi
push eax
call fcn.00411a19
add esp, 0xc
push str._UpdateProcess
lea eax, [ebp - 0x4c4]
push esi
push eax
call fcn.00411a19
push 9
xor eax, eax
pop ecx
push dword [ebp + 8]
mov word [ebp - 0x48], ax
lea edi, [ebp - 0x46]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x48]
push 0x426864
push eax
call fcn.00401f66
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c4]
push esi
push eax
call fcn.00411a19
push 0x44
pop esi
push esi
lea eax, [ebp - 0x8c]
push ebx
push eax
call fcn.00412380
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x4c4]
push eax
push str.Launching_rundll32.exe._Command_line:__s
mov dword [ebp - 0x8c], esi
call fcn.004016c6
add esp, 0x38
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x8c]
push eax
push ebx
push ebx
push 8
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4c4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403419
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_launch_rundll32.exe._Error:__d
call fcn.004016c6
pop ecx
jmp 0x403433
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x20]
call esi
push 0x426770
call fcn.004016c6
pop ecx
cmp dword [ebp - 0xc], ebx
je 0x403444
cmp dword [ebp - 4], ebx
je 0x403444
push dword [ebp - 8]
call dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404c6a
Capabilities:
Get session information

Disassembly:
mov eax, 0x424cb0
call fcn.004121ac
sub esp, 0xc
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 8
push dword [ebp + 8]
xor edi, edi
push edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
jne 0x404cd4
push esi
push 0x4320c0
lea ecx, [ebp - 0x14]
call fcn.0040287b
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
push 0x426950
push eax
call fcn.00404610
mov esi, dword [ebp - 0x14]
push esi
call fcn.004016c6
add esp, 0x10
lea ecx, [esi - 0x10]
call fcn.004016ac
pop esi
jmp 0x404ce0
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp dword [ecx], edi
sete al
mov edi, eax
push dword [ebp - 0x10]
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x405b60
Capabilities:
Get session information
Get session user name

Disassembly:
mov eax, 0x424de6
call fcn.004121ac
sub esp, 0x10
and dword [ebp - 4], 0
and dword [ebp - 0x18], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push str.Unknown
mov ecx, ebx
call fcn.0040559d
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 5
push dword [ebp + 0xc]
xor esi, esi
inc esi
push 0
mov dword [ebp - 0x18], esi
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
jne 0x405bfb
push 0x4320c0
lea ecx, [ebp - 0x10]
call fcn.0040287b
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x405bd2
push str.NULL
mov ecx, ebx
call fcn.004044ab
jmp 0x405bee
call esi
push eax
lea eax, [ebp - 0x10]
push str.GetUserName:_WTSQuerySessionInformation_failed_with_::GetLastError___d
push eax
call fcn.00404610
push dword [ebp - 0x10]
call fcn.004016c6
add esp, 0x10
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004016ac
jmp 0x405c05
push dword [ebp - 0x14]
mov ecx, ebx
call fcn.004044ab
push dword [ebp - 0x14]
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, dword [ebp - 0xc]
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x405e5c
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov eax, 0x424e3f
call fcn.004121ac
sub esp, 0x288
push ebx
push esi
push edi
push 7
pop esi
xor edi, edi
push edi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x2c], esi
call fcn.00402ce6
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], esi
call fcn.00402ce6
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0040509b
mov esi, 0x4263c8
push esi
lea ecx, [ebp - 0x44]
call fcn.0040509b
push dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
call fcn.0040509b
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x405ec3
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x294]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x405f07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00403537
push edi
push 1
lea ecx, [ebp - 0x44]
call fcn.00403537
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.00404463
push esi
lea ecx, [ebp - 0x28]
call fcn.0040509b
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040509b
cmp word [ebp - 0x268], 0x2e
jne 0x405f50
cmp word [ebp - 0x266], di
je 0x405f67
cmp word [ebp - 0x266], 0x2e
jne 0x405f50
cmp word [ebp - 0x264], di
je 0x405f67
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x405f5c
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405f87
lea eax, [ebp - 0x294]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405f07
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x405ee0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x405f7b

Function at 0x405f91
Capabilities:
Delete directory
Delete registry value

Disassembly:
mov eax, 0x424e59
call fcn.004121ac
sub esp, 0x21c
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.0040b344
pop ecx
test eax, eax
jne 0x406055
push str.ConfigOSSProxySettings
lea ecx, [ebp - 0x10]
call fcn.00402618
push 0x2001f
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040153d
test eax, eax
jne 0x406055
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x228]
push eax
mov esi, str.UpgradeTempDirectory
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], 0x105
call fcn.004015b6
test eax, eax
jne 0x40604c
lea eax, [ebp - 0x228]
push eax
push 0x426dec
call fcn.004016c6
lea eax, [ebp - 0x228]
push 0x426de8
push eax
call fcn.00405e5c
add esp, 0x10
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0x18]
call fcn.00401522
pop esi
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x18]
call fcn.00401522
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x406072
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x2c
cmp dword [eax + 0x18], 8
jb 0x406086
mov eax, dword [eax + 4]
jmp 0x406089
add eax, 4
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4061f2
push ebx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x4061e9
push esi
lea esi, [eax + 1]
push edi
push esi
call fcn.0041050f
mov edi, eax
pop ecx
cmp edi, ebx
je 0x4061e7
push esi
push ebx
push edi
call fcn.00412380
mov esi, dword [ebp - 0xc]
add esp, 0xc
push ebx
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4061e0
cmp dword [ebp - 8], esi
jne 0x4061e0
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040590a
push ebx
push str._mkndcbhcgphcfkkddanakjiepeknbgle_:
lea ecx, [ebp - 0x2c]
call fcn.00403449
cmp eax, 0xffffffff
je 0x4061d5
cmp eax, ebx
je 0x4061d5
dec eax
mov cl, byte [eax + edi]
cmp cl, 0x20
je 0x406132
cmp cl, 9
je 0x406132
cmp cl, 0xd
je 0x406132
cmp cl, 0xa
je 0x406132
inc eax
push eax
push 0x426e44
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
call fcn.00403449
cmp eax, 0xffffffff
je 0x4061d5
mov dword [ebp + 8], 1
lea esi, [eax + 1]
push esi
lea ecx, [ebp - 0x2c]
call fcn.00402842
mov al, byte [eax]
cmp al, 0x7b
jne 0x40617f
inc dword [ebp + 8]
jmp 0x406186
cmp al, 0x7d
jne 0x406186
dec dword [ebp + 8]
cmp dword [ebp + 8], ebx
je 0x406192
cmp al, bl
je 0x406192
inc esi
jmp 0x40616b
push ebx
cmp al, 0x7d
jne 0x4061d6
push ebx
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
cmp eax, 0xffffffff
je 0x4061d6
lea eax, [esi + 1]
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 8]
push ecx
sub esi, eax
push esi
add eax, edi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4061d5
cmp esi, dword [ebp - 8]
jne 0x4061d5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040394b
push edi
call fcn.004110e7
pop ecx
pop edi
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
leave
ret
Function at 0x406611
Capabilities:
Delete directory

Disassembly:
mov eax, 0x424ed5
call fcn.004121ac
sub esp, 0x74
mov eax, dword [ebp + 0xc]
test byte [eax], 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
je 0x406774
add eax, 0x2c
push eax
lea ecx, [ebp - 0x64]
call fcn.00404ed4
xor ebx, ebx
push 0x4271ac
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], ebx
call fcn.0040315e
test eax, eax
je 0x406769
push 0x4271a4
lea ecx, [ebp - 0x64]
call fcn.0040315e
test eax, eax
je 0x406769
push dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.00404ed4
push 0x4263c8
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.0040509b
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x48]
call fcn.004044c8
push str.AppDataRoamingOpera_SoftwareOpera_Stable_
lea ecx, [ebp - 0x48]
call fcn.0040509b
push str.Preferences
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004058a1
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 2
call fcn.00406072
push str.Extensionsmkndcbhcgphcfkkddanakjiepeknbgle
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004058a1
add esp, 0x1c
cmp dword [ebp - 0x14], 8
mov edi, dword [ebp - 0x28]
mov byte [ebp - 4], 4
jae 0x4066e7
lea edi, [ebp - 0x28]
cmp edi, ebx
je 0x4066fa
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4066fe
xor eax, eax
jmp 0x406717
lea esi, [eax + eax]
mov eax, esi
call fcn.00412840
mov dword [ebp - 0x10], esp
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00401230
push 1
push 0x4270d0
push eax
call fcn.0040fd84
mov eax, dword [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x14], 8
jae 0x406733
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x406744
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403537
push ebx
push esi
lea ecx, [ebp - 0x80]
call fcn.00403537
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.00403537
push ebx
push esi
jmp 0x40676c
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.00403537
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406b64
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov eax, 0x424da9
call fcn.004121ac
sub esp, 0x47c
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x236]
push eax
call fcn.00412380
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 0x10], 0x105
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
test eax, eax
je 0x406c2b
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404ed4
and dword [ebp - 4], 0
push 0x4271b0
lea ecx, [ebp - 0x2c]
call fcn.0040509b
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x406bda
lea eax, [ebp - 0x28]
push esi
lea ecx, [ebp - 0x488]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406c1e
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00406611
pop ecx
pop ecx
lea eax, [ebp - 0x488]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406bf0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403537
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x40ac97
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push dword [ebp + 8]
call fcn.0040651d
mov eax, dword [ebp + 8]
dec eax
pop ecx
pop ecx
je 0x40ad35
sub eax, 4
je 0x40ad1d
sub eax, 3
je 0x40acce
push str.OSSService:_No_action_performed_for_session_change_event
call fcn.004016c6
pop ecx
jmp 0x40ada3
xor edi, edi
cmp dword [0x43204c], edi
jle 0x40acdf
push str.OSSService:__Session_unlock_event_detected_while_a_valid_ProxyMonitor_is_running.__Ignoring.
jmp 0x40acc3
push str.OSSService:_WTS_SESSION_UNLOCK_event_detected__spawning_ProxyMonitor
call fcn.004016c6
push dword [esi + 4]
push str.OSSService:_SessionID___d
call fcn.004016c6
add esp, 0xc
call fcn.00405c1d
push dword [0x431e10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 8
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x40ad73
xor edi, edi
cmp dword [0x43204c], edi
jle 0x40ad2e
push str.OSSService:__Session_logon_event_detected_after_session_connect_event.__Ignoring.
jmp 0x40acc3
push str.OSSService:_Session_logon_event_detected__spawning_ProxyMonitor
jmp 0x40ace4
push str.OSSService:_WTS_CONSOLE_CONNECT_event_detected__spawning_ProxyMonitor
call fcn.004016c6
push dword [esi + 4]
push str.OSSService:_SessionID___d
call fcn.004016c6
add esp, 0xc
call fcn.00405c1d
push dword [0x431e10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 8
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
xor edi, edi
cmp eax, edi
je 0x40ada3
mov ecx, dword [esi + 4]
push edi
push edi
push eax
push 0x40a290
push edi
push edi
mov dword [eax], ecx
call fcn.004122cc
add esp, 0x18
cmp eax, edi
je 0x40ada3
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
mov ecx, 0x432058
call fcn.0040346c
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40b5ad
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x425488
call fcn.004121ac
sub esp, 0x21c
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], 0x104
cmp dword [ebp + 8], edi
jne 0x40b5fe
lea ecx, [ebp - 0x18]
call fcn.00401522
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call esi
push edi
call esi
mov eax, 0x80004003
jmp 0x40b704
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.0040b344
mov ebx, eax
cmp ebx, edi
pop ecx
jge 0x40b614
lea ecx, [ebp - 0x18]
jmp 0x40b63f
push str.ConfigOSSProxySettings
lea ecx, [ebp - 0x10]
call fcn.00402618
push 0x2001f
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040153d
mov ebx, eax
cmp ebx, edi
lea ecx, [ebp - 0x18]
jge 0x40b659
call fcn.00401522
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call esi
push dword [ebp - 0x10]
call esi
mov eax, ebx
jmp 0x40b703
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x228]
push eax
mov ebx, str.UpgradeRunLine
push ebx
call fcn.004015b6
cmp eax, edi
mov dword [ebp - 0x1c], eax
jge 0x40b68f
lea ecx, [ebp - 0x18]
call fcn.00401522
lea ecx, [ebp - 0x18]
call fcn.00401522
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
jmp 0x40b6cf
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call esi
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], edi
call fcn.00402618
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.0040b1d0
cmp eax, edi
mov dword [ebp - 0x1c], eax
jge 0x40b6db
lea ecx, [ebp - 0x18]
call fcn.00401522
lea ecx, [ebp - 0x18]
call fcn.00401522
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x1c]
jmp 0x40b703
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0x18]
mov edi, eax
call fcn.00401522
lea ecx, [ebp - 0x18]
call fcn.00401522
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret