joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46940a
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5c52f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.004331ca
pop ecx
cmp eax, esi
je 0x4694f4
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x4694f4
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.0053f100
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x4694f4
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x4694f4
cmp esi, 0x14
jge 0x4694f4
push 0x10
push 0
push edi
call fcn.00542508
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4694e3
call fcn.00540425
cmp dword [eax], 0x22
je 0x4694e3
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.0053efae
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x4694b9
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x5c9334], 0
jne 0x46957f
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x4695a8
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00469320
pop ecx
pop ecx
test eax, eax
jne 0x4695aa
inc edi
cmp edi, esi
jl 0x469585
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d31a
leave
ret 8
Function at 0x46b08e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x46b0d6
call fcn.004319b3
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46b0d6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x46b119
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x46b102
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x46b102
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x46b116
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x46e923
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004319b3
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46e95c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0046e560
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x46e9ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x46e9de
cmp dword [edi + 0x74], 0
jne 0x46e9de
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.004319b3
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0046e97b
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x474fc9
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00474c6d
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x475013
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00424b21
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00424af2
jmp 0x47501e
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004b58cb
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x475024
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00424c66
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x475061
call fcn.00474c6d
mov dword [esi + 0xc], 1
jmp 0x475066
call fcn.00474c6d
cmp dword [esi], 0
je 0x4750af
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x475087
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00424b21
jmp 0x475099
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00402300
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00424af2
jmp 0x4750d3
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4750d3
push dword [esi]
push dword [ebp + 8]
call fcn.004b58cb
pop esi
pop ebp
ret 0xc

Function at 0x47a809
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5c52f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x47a83e
xor eax, eax
jmp 0x47a891
lea eax, [ebp - 0x210]
push eax
call fcn.0053efae
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x47a86f
push 0x56dcf0
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00542522
add esp, 0xc
test eax, eax
jne 0x47a83a
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00542522
add esp, 0xc
test eax, eax
jne 0x47a83a
lea eax, [ebp - 0x210]
push eax
call fcn.004331ca
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0053d31a
leave
ret
Function at 0x4b4a0a
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x4b4a48
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4b4a56
push str.MoveFileTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b4a56
push dword [esi]
push 2
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x4b4a58
cmp dword [esi + 4], 0
je 0x4b4a56
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileW]
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x4c0a3b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x561b1a
call fcn.0053ecfd
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00402650
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4c0a9d
call fcn.0043124d
cmp eax, 1
jne 0x4c0a9d
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0043d55f
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00405bc0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004025e0
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004025e0
mov eax, esi
call fcn.0053edd5
ret 0x10

Function at 0x4c0ac6
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x561b1a
call fcn.0053ecfd
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00402650
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4c0b28
call fcn.0043124d
cmp eax, 1
jne 0x4c0b28
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0043d55f
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00405bc0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004025e0
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004025e0
mov eax, esi
call fcn.0053edd5
ret 0x14
Function at 0x4d1cd6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4d1cee
mov edi, dword [esi + 0xc]
jmp 0x4d1d2e
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4d1d07
call fcn.0046ed79
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4d1d1c
call fcn.0046ed79
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4d1d2e
call fcn.0046ed79
call fcn.004319b3
cmp dword [eax + 0x3c], 0
je 0x4d1d43
push edi
mov ecx, ebx
call fcn.004d0b08
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004d1bf0
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4d1d61
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4d1d6d
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x52ba5e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0053b626
call fcn.004313d0
cmp dword [eax + 0x14], 0
jne 0x52ba7b
mov ecx, esi
pop esi
jmp fcn.0052b563
pop esi
ret

Function at 0x52d0ad
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0046d4fb
call fcn.004313d0
cmp dword [eax + 0x14], 0
jne 0x52d0ca
mov ecx, esi
pop esi
jmp fcn.0052ca80
pop esi
ret

Function at 0x53d31a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5c52f0]
jne 0x53d324
repz ret
jmp fcn.00544da3

Function at 0x552580
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c52f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.005447cb
and dword [ebp - 0x14], 0
cmp dword [0x5ccfe0], 0
mov dword [ebp - 0x18], eax
jne 0x552633
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5526db
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x59c1e8
push ebx
call edi
test eax, eax
je 0x5526db
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x59c1d8
push ebx
mov dword [0x5ccfe0], eax
call edi
push eax
call esi
push 0x59c1c4
push ebx
mov dword [0x5ccfe4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5ccfe8], eax
call edi
push eax
call esi
mov dword [0x5ccff0], eax
test eax, eax
je 0x552633
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5ccfec], eax
mov eax, dword [0x5ccfec]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x55268c
cmp dword [0x5ccff0], ecx
je 0x55268c
push eax
call esi
push dword [0x5ccff0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x55268c
test ebx, ebx
je 0x55268c
call edi
test eax, eax
je 0x552683
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x552683
test byte [ebp - 8], 1
jne 0x55268c
or dword [ebp + 0x10], 0x200000
jmp 0x5526bf
mov eax, dword [0x5ccfe4]
cmp eax, dword [ebp - 0x18]
je 0x5526bf
push eax
call esi
test eax, eax
je 0x5526bf
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5526bf
mov eax, dword [0x5ccfe8]
cmp eax, dword [ebp - 0x18]
je 0x5526bf
push eax
call esi
test eax, eax
je 0x5526bf
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5ccfe0]
call esi
test eax, eax
je 0x5526db
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5526dd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d31a
leave
ret
Function at 0x402a10
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x402a1b
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
jmp fcn.00402a30
Function at 0x403cb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593ec5
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x616738]
xor eax, ebp
mov dword [ebp - 0x30], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x148], ecx
push 0x800
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
lea ecx, [ebp - 0x2c]
call fcn.0042f850
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0042f890
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x148]
call fcn.005509b4
push 0
call fcn.005530e6
add esp, 4
call fcn.0049fe10
cmp eax, 1
jne 0x403d66
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push str.alupdate.exe__s
push 0x70
push 0x5a1aa0
push 0x61c838
call fcn.0043a910
add esp, 0x14
mov eax, dword [ebp - 0x148]
mov ecx, dword [eax + 0x48]
push ecx
push str.cmd__s
call fcn.004a0000
add esp, 8
call fcn.004103b0
call fcn.00410aa0
call fcn.0040fe20
mov ecx, dword [ebp - 0x148]
call fcn.00403f50
test eax, eax
je 0x403e5a
cmp dword [0x61c80c], 0
jne 0x403d9b
mov ecx, 0x61c838
call fcn.0043ab60
push 0x105
lea edx, [ebp - 0x13c]
push edx
call fcn.00408f40
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x140]
push ecx
call fcn.004a41e0
add esp, 8
mov dword [ebp - 0x14c], eax
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x150], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax]
push ecx
push str.Start_ALupdate_Version_:__s__n_s
push 0x80
push str.CALUpdateApp::InitInstance
push 0x61c838
call fcn.0043a910
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x140]
call fcn.00408330
mov ecx, dword [ebp - 0x148]
call fcn.004057a0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x403e3d
push 0
push 0
mov ecx, dword [ebp - 0x148]
call fcn.004058a0
cmp dword [0x61c80c], 0
jne 0x403e5a
call fcn.0049b850
test eax, eax
jne 0x403e5a
mov ecx, dword [ebp - 0x148]
call fcn.004055d0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x144], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0042f870
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.0056edd3
mov esp, ebp
pop ebp
ret
Function at 0x40f080
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595120
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x616738]
xor eax, ebp
mov dword [ebp - 0x60], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x178], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.004a2910
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00408fd0
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x48]
call fcn.004892a0
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp - 0x48]
call fcn.00489310
movzx ecx, al
test ecx, ecx
jne 0x40f146
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x170], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.004892d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.00408330
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00408330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408330
mov eax, dword [ebp - 0x170]
jmp 0x40f2a3
lea ecx, [ebp - 0x4c]
call fcn.0040fa20
lea ecx, [ebp - 0x48]
call fcn.00488e70
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x40f24e
call fcn.00497520
push 0xffffffffffffffff
lea eax, [ebp - 0x16c]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00488dd0
movzx edx, al
test edx, edx
je 0x40f24e
lea eax, [ebp - 0x168]
push eax
lea ecx, [ebp - 0x50]
call fcn.00409090
lea ecx, [ebp - 0x50]
call fcn.0040fa20
push 0
lea ecx, [ebp - 0x4c]
call fcn.004090f0
push eax
lea ecx, [ebp - 0x50]
call fcn.00408030
test eax, eax
jl 0x40f249
mov ecx, dword [ebp - 0x16c]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40f23f
mov edx, dword [ebp - 0x16c]
push edx
call fcn.00497700
add esp, 4
push 0x1388
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x40f20b
mov ecx, dword [ebp - 0x178]
mov dword [ecx + 0x60], 1
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40f226
cmp dword [ebp - 0x10], 0x103
jne 0x40f23f
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 0x178]
mov dword [edx + 0x60], 1
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40f168
mov ecx, dword [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00488f80
mov dword [ebp - 0x58], 1
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x174], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.004892d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.00408330
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00408330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408330
mov eax, dword [ebp - 0x174]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x60]
xor ecx, ebp
call fcn.0056edd3
mov esp, ebp
pop ebp
ret 4
Function at 0x40f510
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5951ff
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x616738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0xc
mov ecx, dword [ebp - 0x10]
add ecx, 0x74
call fcn.00408330
mov ecx, dword [ebp - 0x10]
add ecx, 0x6c
call fcn.00408330
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.00408330
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.0055cbf2
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call fcn.00408330
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00408330
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.00408330
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.00408330
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.00408330
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.00408330
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.00408330
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.00408330
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.00408330
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.00408330
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00408330
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.00408330
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00408330
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x42dad0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597f66
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x616738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x10]
call fcn.004a2910
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push 0x5a7180
lea ecx, [ebp - 0x14]
push ecx
call fcn.00498fb0
add esp, 4
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
call fcn.004090f0
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0049e7a0
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
push eax
push str._s_sUpdateInfo.ini
lea ecx, [ebp - 0x10]
push ecx
call fcn.004098b0
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00408330
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00408330
lea ecx, [ebp - 0x10]
call fcn.004090f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00408330
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x42f890
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x10], ecx
push ecx
mov ecx, esp
mov dword [ebp - 4], esp
push 0x5a7274
call fcn.00408ff0
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
call fcn.0042f920
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42f8c5
mov ecx, dword [ebp - 0x10]
call fcn.0042fd80
push ecx
mov eax, esp
mov dword [ebp - 8], esp
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0042fe30
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
call fcn.0042ff60
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x42f90e
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0042fe30
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
call fcn.004090f0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0xc]
call fcn.00408330
mov esp, ebp
pop ebp
ret
Function at 0x4322b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x10], 0
jne 0x4322c4
jmp 0x43231b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 0x10]
call fcn.004850d0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x432310
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
call fcn.0040fb20
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 0x20
call fcn.004090f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x5a786b
mov ecx, dword [ebp - 4]
add ecx, 0x20
call fcn.00409090
jmp 0x4322d2
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 0x10]
call fcn.0055cabf
mov esp, ebp
pop ebp
ret