joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407596
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x43f434]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
mov edi, ecx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x214], ebx
call fcn.00414ce0
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
call fcn.00416d21
mov esi, eax
add esp, 0x10
push 2
add esi, esi
push ebx
mov eax, esi
neg eax
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, dword [ebp - 0x210]
jne 0x40777a
lea eax, [ebp - 0x20c]
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push eax
call fcn.00417dc8
pop ecx
pop ecx
test eax, eax
jne 0x40777a
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push ebx
push 0xfffffffffffffffc
pop eax
sub eax, dword [ebp - 0x210]
push eax
push dword [edi + 8]
call esi
push ebx
lea eax, [ebp - 0x210]
push eax
push 4
lea eax, [ebp - 0x224]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x224]
push 1
add ecx, eax
push ebx
neg ecx
push ecx
push dword [edi + 8]
call esi
push ebx
lea eax, [ebp - 0x210]
push eax
push 4
lea eax, [ebp - 0x214]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x218], ebx
cmp dword [ebp - 0x214], ebx
jbe 0x407744
lea esi, [edi + 0x5cfe0]
push ebx
lea ecx, [ebp - 0x210]
push ecx
push 0x20
lea eax, [esi - 8]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x10]
add dword [esi], eax
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
adc dword [esi + 4], eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
mov dword [esi - 8], ebx
sbb ecx, dword [esi + 4]
add eax, 1
adc ecx, ebx
add dword [ebp - 0x220], eax
lea eax, [esi - 8]
mov dword [ebp - 0x228], eax
adc dword [ebp - 0x21c], ecx
lea eax, [ebp - 0x228]
push eax
lea ecx, [edi + 0x26fc]
mov dword [esi - 4], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.0040748d
inc dword [ebp - 0x218]
mov eax, dword [ebp - 0x218]
add esi, 0x20
cmp eax, dword [ebp - 0x214]
jb 0x4076c8
mov ecx, dword [edi + 0x5d120]
sub ecx, dword [ebp - 0x220]
mov edx, dword [edi + 0x5d124]
sbb edx, dword [ebp - 0x21c]
lea eax, [edi + 0x5d138]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, edx
mov dword [edi + 0x5d134], eax
xor eax, eax
mov dword [edi + 0x5d130], ecx
inc eax
jmp 0x40777c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414cce
leave
ret
Function at 0x4083ac
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x43f434]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 8], edi
je 0x4083cf
xor eax, eax
inc eax
jmp 0x40853a
push ebx
lea ebx, [esi + 0x5d140]
push ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
push 0x3a
mov word [ebp - 0xc], ax
pop eax
push 0x5c
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
xor eax, eax
push edi
mov word [ebp - 6], ax
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x408537
mov ecx, dword [esi + 0x5d120]
mov eax, dword [esi + 0x5d124]
cmp ecx, 0xffffffff
jne 0x40842b
cmp eax, ecx
je 0x40844a
mov edx, dword [ebp - 0x10]
cmp edx, eax
ja 0x40844a
jb 0x40843b
mov eax, dword [ebp - 0x14]
cmp eax, ecx
ja 0x40844a
mov dword [esi + 0x2470], 2
jmp 0x408537
push edi
push 0x20
push 4
push edi
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x408521
cmp dword [esi + 0x2714], edi
je 0x40851c
lea ebx, [esi + 0x26fc]
mov ecx, ebx
call fcn.00405e73
mov ecx, esi
call fcn.00407596
test eax, eax
jne 0x40851c
lea eax, [esi + 0x2468]
cmp dword [eax], edi
ja 0x4084a2
mov dword [eax], 5
push 0xa
pop ecx
cmp dword [eax], ecx
jbe 0x4084ab
mov dword [eax], ecx
mov eax, dword [esi + 0x5d120]
mov ecx, dword [esi + 0x5d124]
add eax, 0xffffffff
mov dword [esi + 0x5cfe8], eax
lea eax, [esi + 0x5cfd8]
adc ecx, 0xffffffff
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [esi + 0x5cfec], ecx
push eax
mov ecx, ebx
mov dword [esi + 0x5cfe0], edi
mov dword [esi + 0x5cfe4], edi
call fcn.0040748d
mov eax, dword [esi + 0x5d120]
mov edx, dword [esi + 0x5d124]
mov cl, 0x20
call fcn.004185b0
push edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x5d120]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor eax, eax
inc eax
jmp 0x408539
mov dword [esi + 0x2470], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x2474], eax
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00414cce
leave
ret
Function at 0x408548
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x805c]
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x20]
cmp dword [eax + 4], 1
push esi
push edi
mov edi, ecx
jne 0x40856c
mov eax, dword [ebx]
mov dword [ebp + 8], eax
xor esi, esi
cmp dword [edi + 0x2714], esi
je 0x40860d
call fcn.00403526
mov esi, dword [ebx + 0x8040]
mov ecx, dword [esi + 8]
add ecx, dword [esi + 0x18]
mov eax, dword [esi + 0xc]
adc eax, dword [esi + 0x1c]
push 0
mov edx, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push ecx
push dword [edi + 8]
sar edx, 0x1f
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4085bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x408647
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
lea eax, [ebx + 0x40]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408647
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jne 0x408647
add dword [esi + 0x18], eax
lea eax, [edi + 0x5d130]
adc dword [esi + 0x1c], 0
mov ecx, dword [ebp - 4]
add dword [eax], ecx
push ecx
push ebx
adc dword [eax + 4], 0
mov ecx, edi
call fcn.0040778b
mov ecx, edi
call fcn.00404470
xor eax, eax
inc eax
jmp 0x408649
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
lea eax, [ebx + 0x40]
push eax
push dword [edi + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408647
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jne 0x408647
lea eax, [edi + 0x5d130]
add dword [eax], ecx
push ecx
push ebx
adc dword [eax + 4], esi
mov ecx, edi
call fcn.0040778b
jmp 0x408608
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x408650
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
lea ecx, [edi + 0x26e4]
call fcn.0040375a
mov esi, dword [eax]
mov eax, dword [esi + 0x20]
xor ebx, ebx
inc ebx
mov dword [esi + 0x28], 2
cmp dword [eax + 4], ebx
je 0x4086c9
cmp dword [edi + 0x2480], 0
je 0x4086b6
push dword [esi + 0xc]
and dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp + 8]
push eax
push dword [edi + 0x2484]
push dword [edi + 0x2480]
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x4086ba
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, ebx
jmp 0x4086ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4086ed
jmp 0x4086b6
cmp dword [esi], 0
jne 0x4086da
mov eax, dword [esi + 4]
test eax, eax
je 0x4086da
mov dword [esi + 0x18], eax
jmp 0x4086b6
and dword [esi + 0x28], 0
push ebx
push dword [ebp + 8]
mov ecx, edi
call fcn.004082d7
test eax, eax
jne 0x4086b6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x408be1
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
lea ecx, [edi + 0x26e4]
call fcn.0040375a
mov esi, dword [eax]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], 6
cmp dword [eax + 4], 1
je 0x408c58
cmp dword [edi + 0x2480], 0
je 0x408c8a
push dword [esi + 0xc]
and dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp + 8]
push eax
push dword [edi + 0x2484]
push dword [edi + 0x2480]
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x408c46
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x408c8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x3e5
neg eax
sbb eax, eax
inc eax
jmp 0x408c8d
cmp dword [esi], 0
jne 0x408c69
mov eax, dword [esi + 4]
test eax, eax
je 0x408c69
mov dword [esi + 0x18], eax
jmp 0x408c8a
push 1
push dword [ebp + 8]
mov ecx, edi
mov dword [esi + 0x28], 4
call fcn.004082d7
test eax, eax
jne 0x408c8a
push dword [ebp + 8]
mov ecx, edi
call fcn.00405c73
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x409466
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x40947a
xor eax, eax
jmp 0x4094fe
push ebx
push edi
mov ebx, str.MetalinkFile
lea eax, [esi + 0x5d550]
push ebx
push eax
call fcn.004169c7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4094b2
xor eax, eax
push ebx
mov word [edi], ax
call fcn.00416d21
lea eax, [edi + eax*2]
push eax
call fcn.0041768a
pop ecx
pop ecx
mov dword [esi + 0x2694], eax
mov ecx, esi
call fcn.004046b8
test eax, eax
je 0x4094fc
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2464], eax
cmp eax, edi
je 0x4094f9
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x4093aa
push edi
push edi
mov dword [ebp - 4], edi
mov dword [esi + 0x5d118], 8
call fcn.004187e6
add esp, 0x18
mov dword [esi + 0xc], eax
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4095d9
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x409600
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409600
xor eax, eax
inc eax
jmp 0x409602
mov eax, esi
pop esi
pop ebp
ret

Function at 0x40a0cf
Capabilities:
Get common file path
Get program files directory

Disassembly:
xor eax, eax
push esi
mov esi, 0x4420d0
cmp ax, word [0x4420d0]
jne 0x40a0fe
push eax
push 0x26
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.internet_exploreriexplore.exe
push 0x104
push esi
call fcn.00416e7b
add esp, 0xc
mov eax, esi
pop esi
ret

Function at 0x40a102
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [edi + edi - 2]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push str.Version
push str.SoftwareMicrosoftInternet_Explorer
push 0x80000002
mov dword [ebp - 4], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40a146
cmp ax, word [esi]
je 0x40a146
inc eax
jmp 0x40a15b
xor eax, eax
push edi
push esi
mov word [esi], ax
call fcn.0040a0cf
push eax
call fcn.00409501
add esp, 0xc
pop edi
pop esi
leave
ret
Function at 0x40a289
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x43f434]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x320]
push eax
mov dword [ebp - 0x320], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor edi, edi
mov dword [0x44207c], edi
mov dword [0x442088], edi
mov dword [0x442080], edi
mov dword [0x442084], edi
call fcn.00409e25
xor esi, esi
inc esi
cmp dword [ebp - 0x310], 2
mov dword [0x442090], eax
jne 0x40a363
cmp dword [ebp - 0x31c], 5
jne 0x40a30e
cmp dword [ebp - 0x318], edi
jne 0x40a2fe
mov dword [0x442088], esi
jmp 0x40a371
cmp dword [ebp - 0x318], esi
jb 0x40a371
mov dword [0x442080], esi
jmp 0x40a371
cmp dword [ebp - 0x31c], 6
jne 0x40a347
mov eax, dword [ebp - 0x318]
cmp eax, edi
je 0x40a32a
cmp eax, esi
je 0x40a32a
cmp eax, 2
jne 0x40a371
mov dword [0x442080], esi
mov dword [0x442084], esi
cmp eax, esi
jne 0x40a340
mov dword [0x44208c], esi
cmp eax, 2
jne 0x40a371
jmp 0x40a355
jbe 0x40a371
mov dword [0x442080], esi
mov dword [0x442084], esi
mov dword [0x44208c], esi
mov dword [0x442094], esi
jmp 0x40a371
cmp dword [ebp - 0x310], esi
jne 0x40a371
mov dword [0x44207c], esi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.00414ce0
add esp, 0xc
push 0x103
lea eax, [ebp - 0x20c]
push eax
cmp dword [0x442094], edi
je 0x40a3b3
call fcn.0040a0cf
push eax
call fcn.00409501
add esp, 0xc
jmp 0x40a3ba
call fcn.0040a102
pop ecx
pop ecx
mov ax, word [ebp - 0x20c]
push 0x37
pop ecx
cmp cx, ax
jne 0x40a3d1
mov dword [0x442098], esi
jmp 0x40a41b
push 0x36
pop ecx
cmp cx, ax
jne 0x40a3e1
mov dword [0x44209c], esi
jmp 0x40a41b
push 0x38
pop ecx
cmp cx, ax
jne 0x40a3f1
mov dword [0x4420a0], esi
jmp 0x40a41b
push 0x39
pop ecx
cmp cx, ax
jne 0x40a401
mov dword [0x4420a4], esi
jmp 0x40a41b
push 0x31
pop ecx
cmp cx, ax
jne 0x40a41b
push 0x30
pop eax
cmp ax, word [ebp - 0x20a]
jne 0x40a41b
mov dword [0x4420a8], esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00414cce
leave
ret
Function at 0x40a528
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x43f434]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0x431f30
push eax
lea eax, [ebp - 0x110]
xor ebx, ebx
push eax
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x110], ebx
call fcn.00418e2c
add esp, 0xc
cmp dword [ebp - 0x110], ebx
je 0x40a682
push 2
push ebx
push dword [ebp - 0x110]
call fcn.00419525
push dword [ebp - 0x110]
call fcn.0041942d
push ebx
push ebx
push dword [ebp - 0x110]
mov edi, eax
call fcn.00419525
add esp, 0x1c
cmp edi, ebx
je 0x40a676
lea esi, [edi + 1]
push esi
call fcn.004170ad
pop ecx
mov dword [ebp - 0x114], eax
cmp eax, ebx
je 0x40a676
push esi
push ebx
push eax
call fcn.00414ce0
push dword [ebp - 0x110]
push 1
push edi
push dword [ebp - 0x114]
call fcn.00419273
add esp, 0x1c
test eax, eax
je 0x40a66a
mov esi, 0x104
push esi
lea eax, [ebp - 0x10b]
push ebx
push eax
mov byte [ebp - 0x10c], bl
call fcn.00414ce0
push esi
lea eax, [ebp - 0x10c]
push eax
push edi
push dword [ebp - 0x114]
call fcn.0040a429
add esp, 0x1c
test eax, eax
je 0x40a66a
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x40a635
xor eax, eax
jmp 0x40a64f
lea eax, [esi + esi]
call fcn.00417bc0
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x10c]
push ecx
push eax
call fcn.004031da
push eax
mov eax, dword [ebp + 0x10]
push 0x431f28
push 0xffffffffffffffff
dec eax
push eax
push dword [ebp - 0x118]
call fcn.004183e0
add esp, 0x14
push dword [ebp - 0x114]
call fcn.004170a2
pop ecx
push dword [ebp - 0x110]
call fcn.00418aef
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 0x124]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414cce
leave
ret
Function at 0x40c35f
Capabilities:
Check if file exists
Copy file

Disassembly:
push 0x248
mov eax, 0x42bf05
call fcn.00417b10
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x254]
push eax
xor bl, bl
call fcn.0040ee25
mov dword [esp], str.360sedbghelp.dll
push eax
lea eax, [ebp - 0x238]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00409dde
add esp, 0xc
push edi
push 1
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 2
call fcn.004098cf
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x40c3c2
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c470
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push edi
push eax
call fcn.00414ce0
mov eax, dword [ebp - 0x234]
add esp, 0xc
cmp dword [ebp - 0x220], 8
jae 0x40c404
lea eax, [ebp - 0x234]
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.0040a528
lea eax, [ebp - 0x21c]
push str.5c5e3afd499e5146fef1da5ef8a23205
push eax
call fcn.00418512
add esp, 0x14
test eax, eax
jne 0x40c470
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x40c43b
mov eax, dword [edi]
jmp 0x40c43d
mov eax, edi
push eax
call fcn.00409620
cmp dword [esi + 0x18], 8
pop ecx
jb 0x40c44c
mov edi, dword [edi]
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x40c461
lea eax, [ebp - 0x234]
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne bl
push 0
push 1
lea ecx, [ebp - 0x238]
call fcn.004098cf
mov al, bl
call fcn.00417b93
ret 4
Function at 0x40c489
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0x460
mov eax, 0x42bf70
call fcn.00417b10
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x464], eax
xor eax, eax
mov edi, 0x208
mov dword [ebp - 0x46c], ebx
push edi
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x468], ecx
call fcn.00414ce0
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
push edi
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
call fcn.00414ce0
push 0xffffffffffffffff
push 0x431cb4
lea eax, [ebp - 0x428]
push eax
push str._s_s
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.0040c280
mov ecx, dword [ebp - 0x464]
add esp, 0x24
lea eax, [ebp - 0x21c]
push eax
call fcn.00409db9
xor esi, esi
inc esi
push ebx
lea ecx, [ebp - 0x444]
mov dword [ebp - 0x46c], esi
mov dword [ebp - 0x42c], 7
call fcn.004097cf
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x460]
mov dword [ebp - 4], esi
call fcn.00409db9
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x460]
push eax
mov byte [ebp - 4], 2
call fcn.0040f0b3
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 1
call fcn.004098cf
cmp dword [0x442084], ebx
jne 0x40c62c
cmp dword [ebp - 0x42c], 8
mov eax, dword [ebp - 0x440]
jae 0x40c5af
lea eax, [ebp - 0x440]
push str.6.11.0.0
push eax
call fcn.0040e97d
pop ecx
pop ecx
test eax, eax
jg 0x40c62c
mov edi, dword [ebp - 0x468]
add edi, 0x1c
push edi
lea ecx, [ebp - 0x460]
call fcn.00409cb3
cmp dword [edi + 0x18], 8
mov byte [ebp - 4], 3
jb 0x40c5e4
mov eax, dword [edi + 4]
jmp 0x40c5e7
lea eax, [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c612
mov ecx, dword [ebp - 0x468]
call fcn.0040c29f
test al, al
je 0x40c612
mov ecx, dword [ebp - 0x464]
push 0xffffffffffffffff
push ebx
push edi
call fcn.00409bac
jmp 0x40c61f
mov eax, dword [ebp - 0x468]
mov byte [eax + 0x8c], 1
push ebx
push esi
lea ecx, [ebp - 0x460]
call fcn.004098cf
push ebx
push esi
lea ecx, [ebp - 0x444]
call fcn.004098cf
mov eax, dword [ebp - 0x464]
call fcn.00417b93
ret 4
Function at 0x40c7e3
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push 0x240
mov eax, 0x42c002
call fcn.00417b10
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x18], 8
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x24c], eax
mov byte [ebp - 0x235], 0
jb 0x40c81b
lea esi, [ebx + 4]
mov eax, dword [esi]
mov dword [ebp - 0x23c], esi
jmp 0x40c826
lea eax, [ebx + 4]
mov dword [ebp - 0x23c], eax
mov esi, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c919
cmp dword [ebx + 0x18], 8
jb 0x40c83f
mov eax, dword [esi]
jmp 0x40c841
mov eax, esi
push eax
call fcn.0040e89e
pop ecx
test eax, eax
je 0x40c919
cmp dword [ebx + 0x18], 8
jb 0x40c85a
mov eax, dword [esi]
jmp 0x40c85c
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x240], eax
test eax, eax
je 0x40c919
push 0x4321a8
push str.DBGHELPDAT
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40c90d
push esi
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp - 0x240]
mov dword [ebp - 0x244], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [ebp - 0x244], 0
mov dword [ebp - 0x248], eax
je 0x40c90d
test eax, eax
jle 0x40c90d
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x40c8cc
mov eax, dword [esi]
jmp 0x40c8ce
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x18], 8
jb 0x40c8dd
mov esi, dword [esi]
push 0x431b50
push esi
call fcn.00418e15
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40c90d
push esi
push 1
push dword [ebp - 0x248]
push dword [ebp - 0x244]
call fcn.00418ccd
push esi
call fcn.00418aef
add esp, 0x14
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x40c926
mov eax, dword [esi]
jmp 0x40c928
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c9f6
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00414ce0
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.00409db9
and dword [ebp - 4], 0
push 0x42ec48
lea ecx, [ebp - 0x234]
call fcn.00409d9a
lea eax, [ebp - 0x234]
push eax
push edi
call fcn.0040ec8b
mov eax, dword [ebp - 0x24c]
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x40c9ae
mov eax, dword [eax + 4]
jmp 0x40c9b1
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c9c3
mov byte [ebp - 0x235], 1
cmp dword [edi + 0x18], 8
jb 0x40c9cb
mov esi, dword [esi]
push esi
call fcn.0040ef7b
cmp dword [ebx + 0x18], 8
mov eax, dword [ebp - 0x23c]
pop ecx
jb 0x40c9e0
mov eax, dword [eax]
push eax
call fcn.0040ef7b
pop ecx
push 0
push 1
lea ecx, [ebp - 0x234]
call fcn.004098cf
mov al, byte [ebp - 0x235]
call fcn.00417b93
ret 0x10