joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403420
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0x40347d
mov eax, dword [ebp + 8]
push ebx
push esi
mov ecx, dword [ebp + 0xc]
inc edi
mov bh, byte [edi + ecx - 1]
inc byte [eax]
movzx esi, byte [eax]
movzx edx, byte [esi + eax + 2]
movzx ecx, byte [eax + 1]
add esi, eax
add ecx, edx
movzx edx, cl
mov byte [eax + 1], cl
movzx ecx, byte [edx + eax + 2]
mov bl, byte [esi + 2]
mov byte [esi + 2], cl
mov byte [edx + eax + 2], bl
movzx ecx, byte [esi + 2]
mov edx, dword [ebp + 0xc]
add cl, bl
movzx ecx, cl
movzx ecx, byte [ecx + eax + 2]
xor cl, bh
mov byte [edi + edx - 1], cl
cmp edi, dword [ebp + 0x10]
jb 0x403430
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0xc
push 0
mov dword [edi], 0x425844
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 0xc
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 0x401082
sub eax, esi
sub eax, 0xa
mov dword [esi + 6], eax
mov byte [esi], 0xb9
mov byte [esi + 5], 0xe9
mov dword [esi + 1], edi
mov dword [edi + 8], esi
mov eax, edi
pop esi
leave
ret

Function at 0x4016a4
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCR80.dll_srand]
pop ecx
lea ecx, [esp + 4]
call fcn.00413cc9
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
call fcn.0040167f
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0
push 0x435b80
push 0x435fc8
call sub.gdiplus.dll_GdiplusStartup
test eax, eax
je 0x401722
push 0x42585c
push 0x4295b8
call fcn.00417869
pop ecx
pop ecx
call fcn.004010c5
mov ecx, eax
call fcn.00403454
test eax, eax
jne 0x401737
push 2
pop esi
jmp 0x401743
call fcn.004086d0
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [0x435fc8]
call sub.gdiplus.dll_GdiplusShutdown
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4026d8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x402690
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
leave
ret 4
Function at 0x4032a4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebx]
sub esp, 0x28
push esi
xor esi, esi
cmp dword [eax + 0xc], esi
push edi
je 0x4033ed
cmp dword [eax + 8], esi
je 0x4033ed
mov ecx, dword [ebx + 8]
mov eax, dword [eax + 0x20]
mov dword [ebp - 4], esi
push 4
lea edi, [ebp - 0x1c]
lea esi, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
call fcn.00401830
push 8
lea edi, [ebp - 0x24]
call fcn.00401830
cmp dword [ebp - 0x18], 0
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
je 0x403330
cmp dword [ebp - 0x20], 0
je 0x403330
mov eax, dword [ebx]
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push 4
add eax, 8
push eax
lea eax, [edi + 4]
push eax
push dword [ebp - 0x14]
call esi
mov eax, dword [ebx]
lea ecx, [ebp - 8]
push ecx
push 4
add eax, 0xc
push eax
lea eax, [edi + 8]
push eax
push dword [ebp - 0x14]
call esi
mov dword [ebp - 4], 1
jmp 0x403333
mov edi, dword [ebp - 0x10]
push 0x20
mov ecx, ebx
call fcn.004026fa
test eax, eax
mov dword [ebp - 8], eax
jne 0x403354
push 0x429f10
push 0x4295a4
call fcn.00417869
pop ecx
pop ecx
push dword [ebp - 8]
mov ecx, ebx
call fcn.0040247c
mov ecx, ebx
call fcn.004028ba
test eax, eax
jne 0x40337a
push 0x429f38
push 0x4295a4
call fcn.00417869
pop ecx
pop ecx
push 0x60
mov ecx, ebx
call fcn.004026fa
test eax, eax
jne 0x403398
push 0x429f64
push 0x4295a4
call fcn.00417869
pop ecx
pop ecx
cmp dword [ebp - 4], 0
je 0x4033c4
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
lea eax, [edi + 4]
push eax
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
add edi, 8
push edi
push dword [ebp - 0x14]
call esi
xor esi, esi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx]
push esi
mov dword [ebp - 0xc], esi
push dword [eax + 0x5d4]
push 0x403252
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x2c], eax
xor eax, eax
pop edi
inc eax
pop esi
leave
ret
push 0x20
mov ecx, ebx
call fcn.004026fa
mov edi, eax
cmp edi, esi
jne 0x40340d
push 0x429f88
push 0x4295a4
call fcn.00417869
pop ecx
pop ecx
push edi
mov ecx, ebx
call fcn.0040247c
mov ecx, ebx
call fcn.004028ba
test eax, eax
jne 0x403431
push 0x429fb0
push 0x4295a4
call fcn.00417869
pop ecx
pop ecx
push 0x60
mov ecx, ebx
call fcn.004026fa
test eax, eax
jne 0x4033c6
push 0x429fdc
push 0x4295a4
call fcn.00417869
pop ecx
pop ecx
jmp 0x4033c6
Function at 0x403529
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
push 0x40
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
mov dword [ebp - 0x5c], 0x44
call sub.MSVCR80.dll_memset
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push esi
stosd dword es:[edi], eax
push esi
push esi
xor eax, eax
inc eax
push esi
mov dword [ebp - 0x30], eax
mov word [ebp - 0x2c], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push esi
push dword [eax + 0x5e0]
push dword [eax + 0x5dc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp edi, esi
je 0x40359b
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
jmp 0x4035ac
push str.CBugReportInfo::RestartCrashProcess_Fail_
push str.BugReport
call fcn.00417869
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x4041d2
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path

Disassembly:
push 0x218
mov eax, 0x422f53
call fcn.00421d3b
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax + 0x5e4], ebx
jne 0x4041f7
xor eax, eax
call fcn.00421dbe
ret
mov eax, dword [0x435bb0]
mov ecx, 0x435bb0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [esi]
mov ecx, esp
mov dword [ebp - 0x224], esp
push ecx
mov ecx, dword [eax + 0x5e4]
call fcn.00404a23
lea ecx, [ebp - 0x21c]
call fcn.004141e5
lea eax, [ebp - 0x21c]
mov dword [esp], str..tlg
push eax
call fcn.00404ad8
push 0x206
lea eax, [ebp - 0x216]
push ebx
push eax
mov word [ebp - 0x218], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4042a5
push 0x42a384
lea eax, [ebp - 0x218]
push eax
call edi
push 0x42a388
lea eax, [ebp - 0x218]
push eax
call edi
lea esi, [ebp - 0x21c]
call fcn.00404cc7
push eax
lea eax, [ebp - 0x218]
push eax
call edi
mov esi, dword [ebp - 0x21c]
cmp esi, ebx
jne 0x4042d6
xor eax, eax
jmp 0x4042de
push esi
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [ebp - 0x21c]
call fcn.00401497
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404307
lea eax, [esi - 0x10]
call fcn.0040167f
jmp 0x4041ef
lea eax, [ebp - 0x218]
push eax
mov edi, 0x4360c8
push edi
call fcn.00401445
lea eax, [ebp - 0x220]
push eax
call fcn.00412c73
pop ecx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
cmp dword [eax - 0xc], ebx
jne 0x404352
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.0040167f
lea eax, [esi - 0x10]
call fcn.0040167f
mov eax, ebx
jmp 0x4041f1
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x220]
call fcn.00404bb5
pop ecx
pop ecx
mov byte [ebp - 4], 2
call fcn.00404a7f
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.0040167f
push dword [0x4360c8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push dword [0x4360c8]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
jmp 0x404335

Function at 0x406372
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4063ca
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4063bb
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4063b7
cmp edi, eax
jae 0x4063bb
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4063a9
cmp edi, eax
jb 0x4063bf
xor eax, eax
jmp 0x4063c9
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x406520
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x424361
call fcn.00421cd2
and dword [ebp - 0x10], 0
mov eax, dword [0x435bb0]
mov ecx, 0x435bb0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x406591
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
inc eax
push eax
push eax
lea esi, [ebp - 0x10]
call fcn.0040146f
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x406581
xor eax, eax
jmp 0x406589
push esi
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [ebp - 0x10]
call fcn.00401497
add esi, 0xfffffff0
mov eax, esi
call fcn.00405607
add eax, 0x10
mov dword [ebx], eax
mov eax, esi
call fcn.0040167f
mov eax, ebx
call fcn.00421daa
ret 8
Function at 0x4076fc
Capabilities:
Check if file exists
Get file system object information

Disassembly:
push 0x2f4
mov eax, 0x42339d
call fcn.00421d3b
mov ebx, ecx
push 0x3f2
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
mov dword [ebp - 0x2d0], eax
je 0x407931
push 0x406a2d
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
push 1
push 0x21
push 0x20
push 0x20
mov dword [0x435fd0], eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x110
push 0x2b4
mov dword [ebx + 0x28], eax
lea eax, [ebp - 0x2cc]
push eax
push 0x80
push str.file.txt
call edi
push dword [ebp - 0x2cc]
mov esi, dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push 0xffffffffffffffff
push dword [ebx + 0x28]
call esi
push 0x110
push 0x2b4
lea eax, [ebp - 0x2cc]
push eax
push 0x80
push str.file.dmp
call edi
push dword [ebp - 0x2cc]
push 0xffffffffffffffff
push dword [ebx + 0x28]
call esi
push 0x110
push 0x2b4
lea eax, [ebp - 0x2cc]
push eax
push 0x80
push str.file.tlg
call edi
push dword [ebp - 0x2cc]
push 0xffffffffffffffff
push dword [ebx + 0x28]
call esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x2fc]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x300]
push eax
push 0
push 0x1061
push dword [ebp - 0x2d0]
mov dword [ebp - 0x300], 4
mov dword [ebp - 0x2f4], str.name
call esi
push dword [ebx + 0x28]
push 0
push 0x1003
push dword [ebp - 0x2d0]
call esi
xor edi, edi
inc edi
lea eax, [ebp - 0x2dc]
push edi
push eax
call fcn.004010c5
mov ebx, eax
call fcn.00403cda
and dword [ebp - 4], 0
push 0
push dword [ebp - 0x2d0]
mov ecx, eax
call fcn.00408b24
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2dc]
add eax, 0xfffffff0
call fcn.0040167f
lea eax, [ebp - 0x2d8]
push 2
push eax
call fcn.004010c5
mov ebx, eax
call fcn.00403cda
mov dword [ebp - 4], edi
push dword [ebp - 0x2d8]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x4078a1
push 0
push dword [ebp - 0x2d0]
lea ecx, [ebp - 0x2d8]
call fcn.00408b24
lea eax, [ebp - 0x2d4]
push 0x60
push eax
call fcn.004010c5
call fcn.00403cb5
mov byte [ebp - 4], 2
push dword [ebp - 0x2d4]
call esi
test eax, eax
je 0x4078d6
push edi
push dword [ebp - 0x2d0]
lea ecx, [ebp - 0x2d4]
call fcn.00408b24
cmp dword [0x436018], 0
je 0x407915
lea eax, [ebp - 0x2e0]
push 0x167
push eax
call fcn.004010c5
call fcn.00403cb5
push edi
push dword [ebp - 0x2d0]
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00408b24
mov eax, dword [ebp - 0x2e0]
add eax, 0xfffffff0
call fcn.0040167f
mov eax, dword [ebp - 0x2d4]
add eax, 0xfffffff0
call fcn.0040167f
mov eax, dword [ebp - 0x2d8]
add eax, 0xfffffff0
call fcn.0040167f
call fcn.00421dbe
ret
Function at 0x40921b
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0x64
mov eax, 0x4236d9
call fcn.00421cd2
call fcn.004010c5
mov ebx, eax
call fcn.004043a8
test eax, eax
je 0x409352
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0x70], 0x44
call sub.MSVCR80.dll_memset
mov dword [ebp - 0x28], ebx
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
inc edi
add esp, 0xc
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x44], edi
mov word [ebp - 0x40], di
call fcn.00414713
lea ecx, [ebp - 0x14]
push 0x42a984
push ecx
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00404c62
lea ecx, [ebp - 0x10]
push str.___manual_0
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00404c06
add esp, 0x10
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040167f
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040167f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea esi, [ebp - 0x10]
call fcn.00404cc7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 0x10], ebx
mov esi, eax
jne 0x4092dd
xor eax, eax
jmp 0x4092e7
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [ebp - 0x10]
call fcn.00401497
cmp esi, ebx
je 0x40932e
push 0xffffffffffffffff
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
push 0x42a988
push 0x429590
call fcn.00417869
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040167f
mov eax, edi
jmp 0x409354
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.UpdateCrashApp:_launch_txupd_failed__lu
push 0x429590
call fcn.00417869
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, 0xfffffff0
call fcn.0040167f
xor eax, eax
call fcn.00421daa
ret
Function at 0x40b494
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
or dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp byte [esi + 0x2c], bl
mov dword [esi + 0x3c], eax
jne 0x40b4cb
push str.GIF_not_initialized
push 0x4294e0
call fcn.00417869
pop ecx
pop ecx
jmp 0x40b513
cmp dword [esi + 0x24], 1
jbe 0x40b513
cmp dword [esi + 0x14], ebx
jne 0x40b513
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x40b71b
push ebx
push ebx
mov dword [ebp + 8], ebx
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x14], eax
jne 0x40b50c
push str.Couldnt_start_a_GIF_animation_thread_n
push 0x4294e0
call fcn.00417869
pop ecx
pop ecx
mov al, 1
jmp 0x40b515
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor al, al
pop ebx
pop ebp
ret 0xc

Function at 0x40b571
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x425830
push 0x86
mov esi, eax
mov byte [ebp - 1], 0
call fcn.00413a98
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40b5a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x40b60d
push edi
call fcn.00413a98
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x40b5a0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40b600
cmp dword [ebp + 8], 0
push edi
jne 0x40b5dd
call fcn.00413a98
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
jmp 0x40b5fc
mov esi, dword [esi]
call fcn.00413a98
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp esi, eax
jl 0x40b600
push esi
push ebx
push dword [ebp + 8]
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, byte [ebp - 1]
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x40bb2e
Capabilities:
Check for sandbox and av modules
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push dword [ebp + 0x14]
mov esi, eax
push esi
push 0x42afa8
mov ebx, 0x4294cc
push ebx
call fcn.00417869
add esp, 0x10
test esi, esi
je 0x40bcd4
cmp dword [ebp + 8], 0
je 0x40bcd4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40bb74
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40bce6
mov esi, 0x42b044
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40bbc6
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x40bbc6
push str.Load_dbghelp.dll_failed
push ebx
call fcn.00417869
pop ecx
pop ecx
jmp 0x40bce6
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x40bbf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_of_MiniDumpWriteDump_failed___ld_
push ebx
call fcn.00417869
add esp, 0xc
jmp 0x40bce6
cmp dword [ebp + 0x10], esi
mov dword [ebp - 8], esi
jne 0x40bc28
push dword [ebp + 0xc]
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, esi
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], 1
jne 0x40bc28
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcess_failed___ld_
jmp 0x40bbe7
mov eax, dword [edi + 0x3c]
mov ecx, dword [eax]
lea ecx, [ecx*8 + 4]
push ecx
push eax
push 0x10fff
push edi
xor ebx, ebx
call fcn.0040bcee
lea esi, [edi + 0x10]
mov eax, esi
call fcn.0040c090
test eax, eax
jbe 0x40bc7a
mov eax, esi
call fcn.0040c090
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
mov dword [ebp - 0x14], eax
jbe 0x40bc6c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esi + 8]
jb 0x40bc74
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov dword [ebp - 0x10], ebx
lea ebx, [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x1c], 0x40b89d
push dword [ebp + 0x14]
mov dword [ebp - 0x18], edi
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [ebp - 0xc]
test eax, eax
jne 0x40bcb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MiniDumpWriteDump_failed___ld_
push 0x4294cc
jmp 0x40bbe8
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x38], 0
call esi
cmp dword [ebp - 8], 0
je 0x40bccf
push dword [ebp + 0x10]
call esi
xor eax, eax
inc eax
jmp 0x40bce8
push dword [ebp + 8]
push esi
push str.Invalid_parameters__file_s__exceptioninfo_p
push ebx
call fcn.00417869
add esp, 0x10
xor eax, eax
pop esi
pop ebx
leave
ret 0x10
Function at 0x40d0fc
Capabilities:
Get file version info

Disassembly:
push 0x238
mov eax, 0x423616
call fcn.00421d3b
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x244], eax
jne 0x40d121
xor eax, eax
jmp 0x40d30f
push dword [ebp + 8]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, esi
je 0x40d11a
push 0x208
lea eax, [ebp - 0x21e]
push esi
push eax
mov word [ebp - 0x220], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x220]
push eax
push esi
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
push edi
jne 0x40d172
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40d11a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 0x23c], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
je 0x40d11a
push edi
call fcn.00421302
pop ecx
push eax
push edi
push dword [ebp - 0x23c]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x220]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40d11a
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x230]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x228]
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
call sub.VERSION.dll_VerQueryValueW
xor edi, edi
test dword [ebp - 0x22c], 0xfffffffc
mov dword [ebp - 0x234], esi
jbe 0x40d2fd
mov eax, dword [0x435bb0]
mov ecx, 0x435bb0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x230]
lea eax, [eax + edi*4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x238]
push str.StringFileInfo_04x_04xCompanyName
push eax
call fcn.00405c2a
mov ebx, dword [ebp - 0x238]
add esp, 0x10
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x224]
push eax
push ebx
push dword [ebp - 0x228]
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x240], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x40d293
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x224]
push eax
push str.StringFileInfo040904e4CompanyName
push dword [ebp - 0x228]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40d2b3
cmp dword [ebp - 0x224], esi
je 0x40d2b3
push dword [ebp - 0x244]
push dword [ebp - 0x224]
call dword [sym.imp.MSVCR80.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
jne 0x40d2d3
or dword [ebp - 4], 0xffffffff
lea eax, [ebx - 0x10]
call fcn.0040167f
mov eax, dword [ebp - 0x22c]
inc edi
shr eax, 2
cmp edi, eax
jb 0x40d202
jmp 0x40d2fd
push dword [ebp - 0x224]
push str.company_name__s
push 0x4294b8
call fcn.00417869
add esp, 0xc
lea eax, [ebx - 0x10]
mov dword [ebp - 0x234], 1
call fcn.0040167f
push dword [ebp - 0x228]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp - 0x234]
pop ecx
call fcn.00421dbe
ret