joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414da0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x4895bf
call fcn.0043bdd4
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x414e1d
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x414e1d
call fcn.00414193
mov esi, eax
jmp 0x414ef4
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x414e40
call fcn.00414193
jmp 0x414ee7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x414e36
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x414e70
mov esi, 0x8007000e
jmp 0x414ee9
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00414010
jmp 0x414e96
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x414e69
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x414e36
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00414c67
mov esi, eax
test edi, edi
je 0x414ef4
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x414f0d
lea ecx, [ebp - 0x418]
call fcn.004144ea
mov eax, esi
call fcn.0043bd21
ret 0x10
Function at 0x41587a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x41588d
push 0xd
pop eax
jmp 0x4158d1
push esi
xor eax, eax
push edi
mov dword [ebp + 0xc], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0xc]
jne 0x4158a0
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x415898
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4158d6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4158e8
push 0xd
pop eax
jmp 0x41591a
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4158f1
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x41715e
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
imul esi, ebx, 0x4058
mov edi, ecx
add esi, edi
push esi
push dword [esi + 0x28]
and dword [esi + 0x4038], 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x4171a6
mov byte [esi + 0x2c], 0
mov dword [esi + 0x4038], 1
mov ecx, dword [edi + 0x80ec]
test ecx, ecx
je 0x4171a6
mov eax, dword [ecx]
push 0
push ebx
push edi
call dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x4171c4
cmp eax, 0x3e5
je 0x4171be
xor al, al
jmp 0x4171d3
mov byte [esi + 0x2c], 1
jmp 0x4171cd
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [esi + 0x2d], 0
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4171da
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov esi, ecx
cmp dword [esi + 0x80c8], 0xffffffff
je 0x4171f3
xor al, al
jmp 0x4172f7
push ebx
push edi
push 1
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
xor edi, edi
lea eax, [ebp - 0x2c]
push ebx
inc edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], ebx
lea edi, [esi + 0x10]
mov dword [ebp - 0x18], 0xc
lea ebx, [esi + 0x80b4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0x3e8
push 0x6000
push 0x6000
push 2
push 6
push 0x40000003
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [edi + 0x18], eax
cmp eax, 0xffffffff
je 0x4172e6
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx - 4], eax
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
add dword [ebp - 4], 2
mov dword [ebx], eax
mov eax, dword [ebx - 4]
mov dword [edi], eax
mov eax, dword [ebx]
add ebx, 8
mov dword [edi + 0x14], eax
add edi, 0x4058
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 2
jb 0x417232
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
mov dword [esi + ecx*4 + 0x80b0], eax
mov dword [esi + 0x80c4], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x417641
push ebx
push ebx
call fcn.00468a57
add esp, 0x18
mov dword [esi + 0x80c8], eax
test eax, eax
je 0x4172e6
mov al, 1
jmp 0x4172f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.004172fc
xor al, al
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4176a8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
imul edi, dword [ebp + 8], 0x4058
mov ebx, 0x2000
push ebx
push 0
add edi, ecx
lea esi, [edi + 0x38]
push esi
call fcn.0045ea50
add esp, 0xc
lea eax, [edi + 0x30]
push edi
push eax
push ebx
push esi
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4176e7
mov byte [edi + 0x2c], 0
mov al, 1
jmp 0x4176fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4176fa
mov byte [edi + 0x2c], 1
jmp 0x4176e3
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x41776d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
imul edi, dword [ebp + 8], 0x4058
mov esi, ecx
and dword [ebp - 4], 0
lea eax, [edi + 0x14]
add eax, esi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [edi + esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4177a7
mov byte [edi + esi + 0x2d], 0
mov al, 1
jmp 0x4177bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4177bb
mov byte [edi + esi + 0x2d], 1
jmp 0x4177a3
xor al, al
pop edi
pop esi
leave
ret 0xc

Function at 0x4188e2
Capabilities:
Create thread

Disassembly:
push 0x18
mov eax, 0x489850
call fcn.0043bd32
mov esi, ecx
mov dword [ebp - 0x10], esi
test esi, esi
je 0x4188fe
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x18]
xor ebx, ebx
mov dword [ebp - 4], ebx
test eax, eax
jne 0x418926
lea eax, [esi + 0x1c]
push eax
push ebx
push esi
push 0x41961d
push ebx
push ebx
call fcn.00468a57
add esp, 0x18
mov dword [esi + 0x18], eax
test eax, eax
je 0x41897f
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00418b4c
pop ecx
pop ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], ebx
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], ebx
call fcn.004189a9
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x20]
call fcn.00418aea
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x418971
call fcn.00413672
mov ecx, dword [ebp - 0x20]
mov bl, 1
test ecx, ecx
je 0x41897f
call fcn.00413672
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
call fcn.0043bcfb
ret 4
Function at 0x418fe8
Capabilities:
Check if file exists

Disassembly:
push 0x2dc
mov eax, 0x489938
call fcn.0043bd66
mov esi, ecx
mov dword [ebp - 0x24c], esi
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
je 0x419197
call fcn.00427a00
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
sub eax, 1
jne 0x4190ea
and dword [ebp - 0x238], eax
lea ecx, [ebp - 0x248]
push 0xf
pop esi
push 0x50
push str.d:jenkins.jenkinsworkspacemgame_bzysearch_searchtraypluginmgrpluginmgr.cpp
mov dword [ebp - 0x234], esi
mov byte [ebp - 0x248], al
call fcn.00406824
xor eax, eax
mov dword [ebp - 0x21c], esi
push 3
push 0x48e858
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], eax
mov dword [ebp - 0x220], eax
mov byte [ebp - 0x230], al
call fcn.00406824
mov byte [ebp - 4], 1
call fcn.00427a00
mov edi, eax
lea ecx, [ebp - 0x2e8]
push 0x32
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0040355d
mov esi, eax
push str._Load_plugin_item:
push esi
mov byte [ebp - 4], 2
call fcn.00403eb9
push dword [ebx]
push esi
call fcn.00403efb
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x2e8]
call fcn.004040b0
lea ecx, [ebp - 0x230]
call fcn.0040662e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.0040662e
mov esi, dword [ebp - 0x24c]
push 0x208
xor edi, edi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0045ea50
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [ebx]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x419197
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x419197
push dword [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x419197
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x250], edi
push ecx
push 1
call eax
mov dword [ebp - 0x24c], eax
test eax, eax
je 0x419197
push dword [esi + 0xc]
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
lea ecx, [ebp - 0x24c]
push ecx
mov ecx, esi
call fcn.00418cfa
xor eax, eax
inc eax
jmp 0x419199
xor eax, eax
call fcn.0043bd10
ret 4
Function at 0x419f33
Capabilities:
Enumerate processes

Disassembly:
push 0x268
mov eax, 0x489ae6
call fcn.0043bd66
mov ebx, dword [ebp + 8]
xor esi, esi
push esi
push 2
mov dword [ebp - 0x24c], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x419f63
xor eax, eax
jmp 0x41a0b3
push 0x228
lea eax, [ebp - 0x238]
push esi
push eax
call fcn.0045ea50
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x419f9c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x419f5c
push str.explorer.exe
lea ecx, [ebp - 0x240]
call fcn.00401744
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], esi
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], esi
call fcn.0041a319
mov dword [ebp - 0x248], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x240]
call fcn.00468b64
pop ecx
pop ecx
test eax, eax
jne 0x41a05d
push dword [ebp - 0x234]
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x41a05d
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x41a056
lea eax, [ebp - 0x254]
push eax
call fcn.00419df8
pop ecx
mov ecx, dword [ebp - 0x24c]
push dword [ebp - 0x240]
push ecx
mov dword [ecx], eax
lea eax, [ebp - 0x274]
push esi
push eax
lea ecx, [ebp - 0x248]
call fcn.00419b41
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x419fd0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x244], 0
jbe 0x41a098
mov eax, dword [ebp - 0x248]
xor esi, esi
mov ecx, dword [ebp - 0x24c]
inc esi
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ecx], eax
lea ecx, [ebp - 0x248]
call fcn.00419c2b
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
call fcn.004024a8
mov eax, esi
call fcn.0043bd10
ret
Function at 0x41a0b9
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4b0364]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push 2
mov dword [ebp - 0x234], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41a0f3
xor eax, eax
jmp 0x41a1b8
push 0x228
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.0045ea50
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
jmp 0x41a142
lea eax, [ebp - 0x20c]
push eax
push dword [edi]
call fcn.00468b64
pop ecx
pop ecx
test eax, eax
je 0x41a148
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41a121
jmp 0x41a1af
push dword [ebp - 0x228]
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x41a1af
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x23c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
jne 0x41a190
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41a1af
lea eax, [ebp - 0x23c]
push eax
call fcn.00419df8
pop ecx
mov ecx, dword [ebp - 0x234]
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043bcea
leave
ret

Function at 0x41a1c7
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4b0364]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.0045ea50
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0x104
push eax
push 0x4907ac
push 0x4907b0
push str.arctrl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00467f76
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043bcea
leave
ret
Function at 0x41a68c
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push 0x2c
mov eax, 0x489b9e
call fcn.0043bd66
mov esi, ecx
mov dword [ebp - 0x38], esi
lea eax, [esi + 0x40]
mov dword [esi + 0x28], 2
push 0
push dword [eax]
mov dword [ebp - 0x2c], eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
and dword [ebp - 0x24], 0
lea eax, [esi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x1c], str.update.exe
mov dword [ebp - 0x18], 0x490aa8
mov dword [ebp - 0x14], str._netul.dll
mov dword [ebp - 0x28], eax
push 0x490ae4
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00412ad5
mov edi, dword [ebp + esi*4 - 0x1c]
and dword [ebp - 4], 0
push edi
call fcn.00401bbf
add esp, 0x10
lea ecx, [ebp - 0x20]
push eax
push edi
call fcn.0040dafc
push edi
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
call fcn.00412ad5
add esp, 0xc
push dword [ebp - 0x20]
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41a7b4
push edi
push dword [ebp - 0x28]
lea eax, [ebp - 0x30]
push eax
call fcn.00412ad5
add esp, 0xc
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00407d84
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.004024a8
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41a7b4
push str.Utils
push dword [ebp - 0x28]
lea eax, [ebp - 0x34]
push eax
call fcn.00412ad5
add esp, 0xc
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00407d84
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.004024a8
push edi
call fcn.00401bbf
pop ecx
push eax
push edi
lea ecx, [ebp - 0x20]
call fcn.0040dafc
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a7be
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call ebx
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.004024a8
mov ecx, dword [ebp - 0x20]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.004024a8
mov eax, dword [ebp - 0x28]
inc esi
cmp esi, 3
jb 0x41a6de
mov ecx, dword [ebp - 0x38]
call fcn.0041a7f7
xor eax, eax
call fcn.0043bd10
ret 4

Function at 0x41a7f7
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4b0364]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.0045ea50
add esp, 0xc
lea eax, [ebp - 0x20c]
push dword [esi + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.any_update.ini
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0043bcea
leave
ret
Function at 0x41bad5
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
mov eax, dword [0x4b0364]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x208
mov dword [ebp - 0x874], ecx
push edi
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0045ea50
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.update_temp
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0045ea50
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.0041c4fa
push 0x490f0c
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.0041c4bb
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41bb9c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41bcc6
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x41bc78
mov esi, dword [ebp - 0x86c]
and esi, 0x10
je 0x41bc2a
mov ecx, 0x490f14
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41bbe3
test dx, dx
je 0x41bbdf
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41bbe3
add eax, 4
add ecx, 4
test dx, dx
jne 0x41bbbd
xor eax, eax
jmp 0x41bbe8
sbb eax, eax
or eax, 1
test eax, eax
je 0x41bc78
mov ecx, 0x490f18
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41bc21
test dx, dx
je 0x41bc1d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41bc21
add eax, 4
add ecx, 4
test dx, dx
jne 0x41bbfb
xor eax, eax
jmp 0x41bc26
sbb eax, eax
or eax, 1
test eax, eax
je 0x41bc78
test esi, esi
jne 0x41bc78
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.0045ea50
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x86c]
push eax
push edi
call ebx
test eax, eax
jne 0x41bba7
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x870]
call fcn.00401744
lea ecx, [ebp - 0x870]
push ecx
mov ecx, dword [ebp - 0x874]
call fcn.0041bcf4
mov ecx, dword [ebp - 0x870]
add ecx, 0xfffffff0
call fcn.004024a8
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043bcea
leave
ret
Function at 0x41bcf4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.0043be70
mov eax, dword [0x4b0364]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
xor eax, eax
cmp dword [esi - 0xc], eax
je 0x41bd81
push edi
push 7
pop ecx
lea edi, [ebp - 0x2024]
rep stosd dword es:[edi], eax
push 0x2000
push 0
stosw word es:[edi], ax
lea eax, [ebp - 0x2004]
push eax
mov dword [ebp - 0x2020], 3
call fcn.0045ea50
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.00466c44
lea eax, [ebp - 0x2004]
add esp, 0x18
mov dword [ebp - 0x201c], eax
mov eax, 0x614
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043bcea
leave
ret 4
Function at 0x41bd90
Capabilities:
Get file version info

Disassembly:
push 0x20
mov eax, 0x489d71
call fcn.0043bd32
lea eax, [ebp - 0x14]
xor ebx, ebx
and dword [ebp - 0x14], ebx
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
push dword [eax]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x41bf2f
push esi
call fcn.0043c14f
mov edi, eax
pop ecx
test edi, edi
je 0x41bf2f
mov eax, dword [ebp + 8]
push edi
push esi
push dword [ebp - 0x14]
push dword [eax]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41bf28
call fcn.0041c20a
mov ebx, dword [ebp + 0xc]
test al, al
je 0x41bedc
call fcn.0041c188
test al, al
jne 0x41bedc
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41bedc
xor esi, esi
test dword [ebp + 8], 0xfffffffc
mov dword [ebp - 0x1c], esi
jbe 0x41bedc
call fcn.00401f79
push eax
lea ecx, [ebp - 0x18]
call fcn.0040171b
mov ecx, dword [ebp - 0x28]
and dword [ebp - 4], 0
movzx eax, word [ecx + esi*4 + 2]
push eax
movzx eax, word [ecx + esi*4]
push eax
lea eax, [ebp - 0x18]
push str.StringFileInfo_04x_04xFileVersion
push eax
call fcn.00401e81
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
and dword [ebp - 0x24], 0
add esp, 0x10
and dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x41bea0
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.004024a8
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
inc esi
shr eax, 2
mov dword [ebp - 0x1c], esi
cmp esi, eax
jb 0x41be32
jmp 0x41bedc
push dword [ebp - 0x20]
mov ecx, ebx
push dword [ebp - 0x24]
call fcn.00402534
push 0x2e
push 0x2c
mov ecx, ebx
call fcn.0041c3ba
push 0x20
mov ecx, ebx
call fcn.0041c33a
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
mov dword [ebp - 0x10], 1
call fcn.004024a8
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x41bf25
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x2c]
and dword [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x48e6c0
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41bf25
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push ebx
call fcn.00401e81
xor ebx, ebx
add esp, 0x18
inc ebx
jmp 0x41bf28
mov ebx, dword [ebp - 0x10]
push edi
call fcn.0043be66
pop ecx
mov al, bl
call fcn.0043bcfb
ret