joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e730
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x507bc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov eax, dword [0x543c98]
mov dword [esp], eax
add ecx, 0xd4
mov dword [esp + 0x6c], 0
push ecx
lea ecx, [esp + 0xc]
call fcn.004ea4ae
push str.AKernel3.exe
lea ecx, [esp + 0xc]
mov byte [esp + 0x70], 1
call fcn.004eab32
mov ecx, dword [0x556760]
push ecx
lea ecx, [esp + 8]
call fcn.004ea7b5
push str._Unpack
lea ecx, [esp + 8]
mov byte [esp + 0x70], 2
call fcn.004eab32
mov edx, dword [0x556980]
mov eax, dword [edx - 8]
test eax, eax
je 0x40e7ba
push 0x556980
lea ecx, [esp + 8]
call fcn.004eab6e
xor eax, eax
push edi
mov dword [esp + 0x18], eax
mov ecx, 0x10
mov dword [esp + 0x1c], eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], 0x44
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], eax
push ecx
push edx
mov ecx, dword [esp + 0x14]
push eax
push eax
push eax
push eax
push eax
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
jne 0x40e847
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 4]
push str.Run_Process:_Create_Process_failed__LastError:_d_n
push edx
call fcn.004e3c81
mov eax, dword [esp + 0xc]
push 0
push 1
push eax
call fcn.0041e3a0
add esp, 0x18
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0xcb
push 0x52b250
push ecx
call fcn.0043553a
push 0x2c
push 0x35
call fcn.0041e790
mov edx, dword [esp + 0x18]
add esp, 8
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40e8a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 4]
push str.Wait_for_Process_failed__LastError:_d_n
push eax
call fcn.004e3c81
mov ecx, dword [esp + 0xc]
push 0
push 1
push ecx
call fcn.0041e3a0
add esp, 0x18
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0xd
push 0x52b250
push edx
call fcn.0043553a
lea ecx, [esp + 4]
mov byte [esp + 0x6c], 1
call fcn.004ea741
lea ecx, [esp + 8]
mov byte [esp + 0x6c], 0
call fcn.004ea741
lea ecx, [esp]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004ea741
mov ecx, dword [esp + 0x64]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x70
ret
Function at 0x40e8f0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x507bf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x10]
lea ebx, [ebp + 0xd4]
xor esi, esi
push ebx
call fcn.004ea4ae
push str.AKernel3.exe
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], esi
call fcn.004eab32
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
push eax
call fcn.00420db0
add esp, 4
test eax, eax
je 0x40e97e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40e98e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40e98e
mov ecx, dword [0x556a28]
push 0x1388
inc ecx
mov esi, 1
mov dword [0x556a28], ecx
call edi
jmp 0x40e982
test esi, esi
je 0x40e98e
cmp dword [0x556a28], 0xb4
jl 0x40e938
mov eax, dword [ebx]
push eax
call fcn.004216e0
add esp, 4
test eax, eax
jne 0x40e9f5
push str.Remove_Kernels_temp_Folder_failed.
lea ecx, [esp + 0x18]
call fcn.004ea7b5
mov edx, dword [esp + 0x14]
push 0
push 1
push edx
mov byte [esp + 0x2c], 1
call fcn.0041e3a0
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 0
call fcn.004ea741
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.004ea741
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov dword [ebp + 0xdc], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.004ea741
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40efe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x507cc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, ecx
push str.Check_data...
lea ecx, [esp + 0x14]
call fcn.004ea7b5
mov eax, dword [esp + 0x10]
xor esi, esi
push esi
push 2
push eax
mov dword [esp + 0x44], esi
call fcn.0041e3a0
add esp, 0xc
mov ecx, edi
call fcn.0040dd70
mov ebp, dword [edi + 0x98]
mov eax, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov ecx, ebp
mov dword [esp + 0x1c], 4
mov dword [esp + 0x24], 3
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], esi
xor eax, eax
lea edx, [esp + 0x18]
cmp ecx, 8
jb 0x40f0ac
cmp ecx, ebp
ja 0x40f0ac
mov esi, dword [edi + 0x94]
add esi, ecx
mov ebx, dword [esi - 4]
mov dword [esp + 0x14], ebx
mov ebx, dword [edx]
cmp dword [esp + 0x14], ebx
je 0x40f092
cmp dword [esp + 0x14], 3
jne 0x40f0ac
cmp ebx, 4
jne 0x40f0ac
add eax, 2
add edx, 8
cmp eax, 5
je 0x40f100
mov esi, dword [esi - 8]
mov ebx, 0xfffffff8
sub ebx, esi
add edx, 4
add ecx, ebx
inc eax
cmp eax, 6
jb 0x40f060
mov eax, dword [edi + 0x94]
test eax, eax
je 0x40f0c9
push eax
call fcn.004eae33
add esp, 4
mov dword [edi + 0x94], 0
lea ecx, [esp + 0x10]
push str._tCheck_data_failed__Incorrect_file._r_n
push ecx
call fcn.004e3c81
mov edx, dword [esp + 0x18]
push 0
push 2
push edx
call fcn.0041e3a0
add esp, 0x14
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 5
push 0x52b250
push eax
call fcn.0043553a
add ecx, 0xfffffffc
push str.file_contain_ultra_data
mov dword [edi + 0xd8], ecx
lea ecx, [esp + 0x14]
push str._t_s_r_n
push ecx
call fcn.004e3c81
mov edx, dword [esp + 0x1c]
push 0
push 2
push edx
call fcn.0041e3a0
mov esi, dword [edi + 0x98]
mov eax, dword [edi + 0x94]
add esp, 0x18
mov eax, dword [eax + esi - 4]
test eax, eax
je 0x40f1a7
cmp eax, 1
jne 0x40f18c
push str._tcheck_CRC..._r_n
lea ecx, [esp + 0x14]
call fcn.004ea8d8
mov ecx, dword [esp + 0x10]
push 0
push 2
push ecx
call fcn.0041e3a0
mov eax, dword [edi + 0x94]
mov edx, eax
mov ecx, dword [eax + esi - 8]
sub edx, ecx
mov ebx, dword [edx + esi - 8]
mov edx, esi
sub edx, ecx
sub edx, 8
push edx
push eax
push 0
call fcn.004198e0
add esp, 0x18
cmp ebx, eax
jne 0x40f1dc
mov eax, dword [edi + 0x94]
mov edx, 0xfffffff8
mov ecx, dword [eax + esi - 8]
sub edx, ecx
add esi, edx
mov eax, dword [eax + esi - 4]
test eax, eax
jne 0x40f142
push 0x2c
push 0x30
call fcn.0041e790
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.004ea741
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea eax, [esp + 0x10]
push str._tCheckCRC_failed__Incorrect_file._r_n
push eax
call fcn.004e3c81
mov ecx, dword [esp + 0x18]
push 0
push 2
push ecx
call fcn.0041e3a0
add esp, 0x14
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 5
push 0x52b250
push edx
call fcn.0043553a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x410140
Capabilities:
Delete service
Stop service

Disassembly:
push 0xffffffffffffffff
push 0x507f20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov eax, dword [0x543c98]
xor ebx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0xc], eax
push 0xc0000000
push ebx
push ebx
mov byte [esp + 0x40], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
cmp ebp, ebx
jne 0x4101aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
lea edx, [esp + 0x14]
push str.RemoveInstallService___OpenSCManager_failed:__s__errorcode:__d_n
push edx
call fcn.004e3c81
mov eax, dword [esp + 0x1c]
push ebx
push 1
push eax
jmp 0x410231
mov ecx, dword [esp + 0x3c]
push 0xf01ff
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
jne 0x41026d
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x424
jne 0x410212
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], bl
call fcn.004ea741
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], 0xffffffff
call fcn.004ea741
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
call esi
mov edx, dword [esp + 0x3c]
push eax
push edx
lea eax, [esp + 0x14]
push str.RemoveInstallService___OpenService_failed__ServiceName:__s__errorcode:__d_n
push eax
call fcn.004e3c81
mov ecx, dword [esp + 0x1c]
push ebx
push 1
push ecx
call fcn.0041e3a0
add esp, 0x1c
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], bl
call fcn.004ea741
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], 0xffffffff
call fcn.004ea741
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
lea edx, [esp + 0x10]
push edi
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, eax
cmp edi, ebx
jne 0x4102ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x4102ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x18]
push str.RemoveInstallService___stop_service_failed__ServiceName:__s__errorcode:__d_n
push ecx
call fcn.004e3c81
mov edx, dword [esp + 0x20]
push ebx
push 1
push edx
call fcn.0041e3a0
add esp, 0x1c
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
cmp eax, ebx
jne 0x4102f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x18]
push str.RemoveInstallService___remove_service_failed__ServiceName:__s__errorcode:__d_n
push ecx
call fcn.004e3c81
mov edx, dword [esp + 0x20]
push ebx
push 1
push edx
call fcn.0041e3a0
add esp, 0x1c
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], bl
call fcn.004ea741
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call fcn.004ea741
mov ecx, dword [esp + 0x30]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x410530
Capabilities:
Query service status

Disassembly:
push 0xffffffffffffffff
push 0x507f60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov eax, dword [0x543c98]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], eax
push 0xc0000000
push ebx
push ebx
mov byte [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp esi, ebx
jne 0x410598
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x14]
push str.StopInstallService___OpenSCManager_failed:__s__errorcode:__d_n
push edx
call fcn.004e3c81
mov eax, dword [esp + 0x1c]
push ebx
push 1
push eax
jmp 0x410646
mov ecx, dword [esp + 0x20]
push 0xf01ff
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, ebx
jne 0x410682
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x424
jne 0x410627
call esi
mov edx, dword [esp + 0x20]
push eax
push edx
lea eax, [esp + 0x14]
push str.QueryInstallServiceStat___OpenService_failed__ServiceName:__s__errorcode:__d_n
push eax
call fcn.004e3c81
mov ecx, dword [esp + 0x1c]
push ebx
push 1
push ecx
call fcn.0041e3a0
add esp, 0x1c
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], bl
call fcn.004ea741
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.004ea741
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
call esi
mov edx, dword [esp + 0x20]
push eax
push edx
lea eax, [esp + 0x14]
push str.QueryInstallServiceStat___OpenService_failed__ServiceName:__s__errorcode:__d_n
push eax
call fcn.004e3c81
mov ecx, dword [esp + 0x1c]
push ebx
push 1
push ecx
call fcn.0041e3a0
add esp, 0x1c
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], bl
call fcn.004ea741
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.004ea741
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
mov edx, dword [esp + 0x24]
push ebp
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ebp, eax
cmp ebp, ebx
jne 0x4106c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push str.QueryInstallServiceStat___QueryServiceStatus_failed__ServiceName:__s__errorcode:__d_n
push ecx
call fcn.004e3c81
mov edx, dword [esp + 0x20]
push ebx
push 1
push edx
call fcn.0041e3a0
add esp, 0x1c
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call fcn.004ea741
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004ea741
mov ecx, dword [esp + 0x14]
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x411640
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x508106
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x444
push ebx
push esi
mov esi, ecx
push 0x556998
lea ecx, [esp + 0x10]
call fcn.00454fb0
xor ebx, ebx
push 0x556998
lea ecx, [esp + 0xc]
mov dword [esp + 0x458], ebx
call fcn.00454fb0
lea eax, [esp + 8]
mov ecx, esi
push eax
mov byte [esp + 0x458], 1
call fcn.004086c0
mov eax, dword [esp + 8]
cmp dword [eax - 8], ebx
je 0x41174c
push edi
push eax
lea ecx, [esp + 0x14]
push str.MsiExec.exe__x__s__qn
push ecx
call fcn.00458830
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x30], ebx
rep stosd dword es:[edi], eax
mov ecx, 0xf9
lea edi, [esp + 0x76]
mov word [esp + 0x74], bx
xor edx, edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ebx
stosw word es:[edi], ax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
add esp, 0xc
mov ecx, dword [eax - 8]
cmp ecx, ebx
pop edi
je 0x41170d
push 0x1f3
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.004353c4
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x80]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
je 0x411746
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
jmp 0x41174c
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 8]
mov byte [esp + 0x454], bl
call fcn.00455820
lea ecx, [esp + 0xc]
mov dword [esp + 0x454], 0xffffffff
call fcn.00455820
mov ecx, dword [esp + 0x44c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x450
ret
Function at 0x411bb0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5081f8
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x24
push esi
xor esi, esi
cmp eax, esi
jne 0x411be7
xor eax, eax
pop esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 8
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], esi
call fcn.00454fb0
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], esi
call fcn.0045c430
lea eax, [esp + 0x10]
lea ecx, [esp + 4]
push eax
push 0x53e0e4
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.0045a150
mov edx, dword [esp + 4]
mov byte [esp + 0x30], 2
cmp dword [edx - 8], esi
je 0x411c7e
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 4]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.0045cb90
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push 0x53e0e4
push eax
lea ecx, [esp + 0x18]
call fcn.0045a150
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x34], 3
call fcn.004559d0
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call fcn.00455820
mov ecx, dword [esp + 4]
cmp dword [ecx - 8], esi
jne 0x411c2d
mov eax, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x40]
push edi
xor edi, edi
cmp eax, esi
jle 0x411cb3
mov edx, dword [esp + 0x20]
mov eax, dword [edx + edi*4]
push eax
push ebp
call fcn.00427f70
add esp, 8
test eax, eax
jne 0x411cae
mov eax, dword [esp + 0x24]
inc edi
cmp edi, eax
jl 0x411c8e
jmp 0x411cb3
mov esi, 1
mov eax, dword [0x543c98]
mov dword [esp + 0x10], eax
push ebp
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 4
call fcn.00454fb0
mov edi, eax
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x38], 5
push ecx
lea ecx, [esp + 0x48]
call fcn.00454fb0
mov edx, dword [edi]
mov eax, dword [eax]
push esi
push edx
push eax
lea ecx, [esp + 0x1c]
push str.IsMatch___s____s____d_
push ecx
mov byte [esp + 0x4c], 6
call fcn.004e3c81
add esp, 0x14
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 5
call fcn.00455820
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 4
call fcn.00455820
mov edx, dword [esp + 0x10]
push 0
push 2
push edx
call fcn.0041e3a0
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 2
call fcn.004ea741
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 1
call fcn.00455820
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0
call fcn.0045c440
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.00455820
mov ecx, dword [esp + 0x30]
pop edi
mov eax, esi
pop ebp
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 8
Function at 0x411d80
Capabilities:
Check for time delay via gettickcount
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x508228
push eax
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ecx, ebx
push esi
mov esi, dword [esp + 0x1c]
mov edx, ecx
push edi
xor eax, eax
mov edi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call ebp
push eax
call fcn.004357a7
add esp, 4
call fcn.004357b4
cdq
mov ecx, 0x2710
idiv ecx
mov edi, edx
call ebp
mov edx, dword [esp + 0x24]
sub eax, edi
push eax
push edx
push str._s.bak_08X
push esi
call fcn.004355aa
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [esp + 0x28], 0
je 0x411e6b
cmp dword [esp + 0x28], 0xa
jge 0x411e6b
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebp
push eax
call fcn.004357a7
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
call fcn.004357b4
cdq
mov ecx, 0x2710
idiv ecx
mov edi, edx
call ebp
mov edx, dword [esp + 0x24]
sub eax, edi
push eax
push edx
push str._s.bak_08X
push esi
call fcn.004355aa
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [esp + 0x28]
inc edx
cmp eax, 0xffffffff
mov dword [esp + 0x28], edx
jne 0x411e01
mov eax, dword [0x543c98]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], 0
push ecx
lea ecx, [esp + 0x2c]
call fcn.00454fb0
mov edi, eax
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 1
call fcn.00454fb0
mov edx, dword [edi]
mov eax, dword [eax]
push ebx
push edx
push eax
lea ecx, [esp + 0x2c]
push str.GetRaNdomFileName___s____s____d_
push ecx
mov byte [esp + 0x2c], 2
call fcn.004e3c81
add esp, 0x14
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], 1
call fcn.00455820
lea ecx, [esp + 0x28]
mov byte [esp + 0x18], 0
call fcn.00455820
mov edx, dword [esp + 0x20]
push 0
push 2
push edx
call fcn.0041e3a0
add esp, 0xc
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.004ea741
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc
Function at 0x411f20
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x508268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x543c98]
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 8], eax
mov dword [esp + 0x24], edi
call fcn.00481d10
push eax
lea ecx, [esp + 0xc]
push str._sPolicyImportTool.exe
push ecx
call fcn.004e3c81
mov eax, dword [esi + 0x170]
add esp, 0xc
cmp dword [eax - 8], edi
je 0x412059
push eax
call fcn.00420db0
add esp, 4
test eax, eax
je 0x412059
mov edx, dword [esp + 8]
push edx
call fcn.00420db0
add esp, 4
test eax, eax
je 0x412059
mov eax, dword [0x543c98]
mov dword [esp + 0xc], eax
mov byte [esp + 0x24], 1
call fcn.00481d10
push eax
lea ecx, [esp + 0x10]
push str._sPolicy.ipz
push ecx
call fcn.004e3c81
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x170]
add esp, 0xc
push 3
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x41204b
mov eax, dword [0x51afbc]
mov dword [esp + 0x14], eax
push 2
lea ecx, [esp + 0x18]
push 0x542044
push ecx
mov byte [esp + 0x30], 2
call fcn.00458830
mov edx, dword [esp + 0x14]
add esp, 0xc
lea ecx, [esp + 0x10]
push edx
call fcn.00454fb0
push str.__installimportpolicy
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.00456460
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.0040ab70
lea ecx, [esp + 0x10]
mov edi, 1
mov byte [esp + 0x24], 2
call fcn.00455820
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.00455820
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.004ea741
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.004ea741
mov edx, dword [0x543c98]
mov dword [esp + 0x18], edx
mov eax, dword [esi + 0x170]
push edi
push eax
lea ecx, [esp + 0x20]
push str.ImportPolicy___s____d_
push ecx
mov dword [esp + 0x34], 4
call fcn.004e3c81
mov edx, dword [esp + 0x28]
push 0
push 2
push edx
call fcn.0041e3a0
add esp, 0x1c
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0xffffffff
call fcn.004ea741
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4120d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5082b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov dword [esp], ecx
push ebx
push esi
lea ecx, [esp + 0xc]
xor ebx, ebx
call fcn.004efb49
mov esi, dword [esp + 0x40]
mov dword [esp + 0x38], ebx
mov eax, dword [esi]
cmp dword [eax - 8], ebx
je 0x4121f7
lea ecx, [esp + 0x1c]
call fcn.004ef603
mov ecx, dword [0x543c98]
mov byte [esp + 0x38], 1
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x38], 2
push ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], vtable.CFileException.0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0xffffffff
call fcn.004ea8d8
mov eax, dword [esi]
lea edx, [esp + 0x1c]
push edx
push 0x40
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 3
call fcn.004efcfb
test eax, eax
je 0x4121d7
push ebp
push edi
lea ecx, [esp + 0x14]
call fcn.004efff5
mov ebp, eax
cmp ebp, ebx
jbe 0x4121cc
lea edi, [ebp + 2]
push edi
call fcn.004eae0a
mov esi, eax
add esp, 4
test esi, esi
je 0x4121cc
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push esi
rep stosb byte es:[edi], al
lea ecx, [esp + 0x1c]
call fcn.004efe18
push esi
call fcn.0041ab90
add esp, 4
push eax
mov eax, dword [esp + 0x14]
lea ecx, [eax + 0x174]
call fcn.004ea8d8
push esi
call fcn.004eae33
add esp, 4
mov ebx, 1
lea ecx, [esp + 0x14]
call fcn.004eff16
pop edi
pop ebp
mov byte [esp + 0x38], 0
mov dword [esp + 0x1c], vtable.CFileException.0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38], 4
call fcn.004ea741
mov byte [esp + 0x38], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.004efc3e
mov ecx, dword [esp + 0x30]
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 4

Function at 0x412890
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x508408
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x180]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x41293c
mov eax, dword [esi + 0x17c]
push eax
call fcn.00420db0
add esp, 4
test eax, eax
je 0x41293c
push 0x556998
lea ecx, [esp + 8]
call fcn.004ea7b5
mov ecx, dword [esi + 0x180]
mov dword [esp + 0x10], 0
push ecx
call fcn.00481d10
push eax
lea edx, [esp + 0xc]
push 0x540d30
push edx
call fcn.004e3c81
mov eax, dword [esp + 0x14]
mov esi, dword [esi + 0x17c]
add esp, 0x10
push 3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.004ea741
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 8]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret