joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40544b
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405709
test bl, 8
mov dword [ebp - 0xc], eax
je 0x40548a
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a1f88], eax
jmp 0x405614
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4054a4
test eax, eax
je 0x4055c2
test bl, 2
je 0x4055c2
mov esi, 0x79f518
push edi
push esi
call fcn.00405b8b
cmp dword [ebp + 8], 0
je 0x4054c3
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4054c9
push edi
call fcn.00405662
cmp byte [edi], 0
jne 0x4054d7
cmp byte [0x79f518], 0x5c
jne 0x4054e2
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4055b8
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405646
cmp byte [eax], 0
je 0x405528
cmp byte [ebp - 0x1c], 0
je 0x405528
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x40553e
mov al, byte [esi + 1]
test al, al
je 0x405597
cmp al, 0x2e
jne 0x40553e
cmp byte [esi + 2], 0
je 0x405597
push esi
push ebx
call fcn.00405b8b
test byte [ebp - 0x14c], 0x10
je 0x405563
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405597
push dword [ebp + 0xc]
push edi
call fcn.0040544b
jmp 0x405597
push dword [ebp - 4]
push edi
call fcn.00405403
test eax, eax
jne 0x40558f
cmp dword [ebp - 4], eax
je 0x405587
push edi
push 0xfffffffffffffff1
call fcn.00404e76
push 0
push edi
call fcn.00405a3f
jmp 0x405597
inc dword [0x7a1f88]
jmp 0x405597
push edi
push 0xfffffffffffffff2
call fcn.00404e76
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405506
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4055c2
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405614
cmp dword [ebp - 0xc], esi
jne 0x4055d6
inc dword [0x7a1f88]
jmp 0x405614
push edi
call fcn.00405e8f
test eax, eax
je 0x405614
push edi
call fcn.0040561b
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405403
test eax, eax
jne 0x40560c
cmp dword [ebp - 4], esi
je 0x4055ce
push edi
push 0xfffffffffffffff1
call fcn.00404e76
push esi
push edi
call fcn.00405a3f
jmp 0x405614
push edi
push 0xffffffffffffffe5
call fcn.00404e76
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405709
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x79f918
push esi
call fcn.00405b8b
push esi
call fcn.004056b4
mov edi, eax
test edi, edi
jne 0x40572a
xor eax, eax
jmp 0x40577c
push edi
call fcn.00405df6
test byte [0x7a1f18], 0x80
je 0x405743
mov al, byte [edi]
test al, al
je 0x405726
cmp al, 0x5c
je 0x405726
sub edi, esi
jmp 0x40575b
call fcn.00405e8f
test eax, eax
je 0x405755
test byte [eax], 0x10
je 0x405726
push esi
call fcn.00405662
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405747
call fcn.0040561b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4057f7
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405816
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x40581c
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40584b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x409384]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405890
test edi, edi
jne 0x405856
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40588a
Function at 0x4058c3
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x7a02a0
push 0x4093a0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x405912
push 1
push 0
push esi
call fcn.0040581c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405a39
cmp eax, ebx
jg 0x405a39
mov esi, 0x7a06a0
push ebx
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405a39
cmp eax, ebx
jg 0x405a39
push esi
push edi
push str._s_s_r_n
push 0x79fea0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a1f10]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405bad
push 4
push 0xc0000000
push esi
call fcn.0040581c
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405a39
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405a32
push edi
push esi
push ebp
call fcn.00405894
test eax, eax
je 0x405a32
push str._Rename__r_n
push esi
call fcn.00405781
test eax, eax
jne 0x4059c8
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4059fd
add eax, 0xa
push 0x409388
push eax
call fcn.00405781
mov ebp, eax
test ebp, ebp
je 0x4059f9
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4059ea
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4059e4
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x4059ff
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x79fea0
push eax
call fcn.004057d7
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405a72
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405ae3
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405ad2
cmp dword [ebp + 0x14], 1
je 0x405ad4
cmp dword [ebp + 0x14], 2
je 0x405ad4
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405f28
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a0aa4], 0
push esi
jne 0x405f5f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f39
mov dword [ecx*4 + 0x7a0aa0], eax
inc ecx
cmp ecx, 0x100
jl 0x405f34
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f90
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a0aa0]
xor eax, esi
inc ecx
dec edx
jne 0x405f72
pop edi
not eax
pop esi
ret 0xc

Function at 0x4a89a5
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.004a8a24
jae 0x4a89b1
xor ecx, ecx
call fcn.004a8a24
jae 0x4a89db
xor eax, eax
call fcn.004a8a24
jae 0x4a89ec
mov al, 0x10
call fcn.004a8a24
adc al, al
jae 0x4a89cd
jne 0x4a8a19
stosb byte es:[edi], al
jmp 0x4a89b2
call fcn.004a8a30
dec ecx
loop 0x4a89f8
mov eax, ebp
call fcn.004a8a2e
jmp 0x4a8a1a
lodsb al, byte [esi]
shr eax, 1
je 0x4a8a40
adc ecx, 2
mov ebp, eax
jmp 0x4a8a1a
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004a8a2e
cmp eax, 0x7d00
jae 0x4a8a18
cmp eax, 0x500
jae 0x4a8a19
cmp eax, 0x7f
ja 0x4a8a1a
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4a89b2
pop ebp
ret 8
Function at 0x40708d
Capabilities:
Set registry value

Disassembly:
push 0x218
mov eax, 0x50bcf1
call fcn.004aac6c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test ebx, ebx
jne 0x4070ad
xor eax, eax
jmp 0x407224
push 0x208
xor edi, edi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004eb5d0
add esp, 0xc
call fcn.00407a0a
lea ecx, [ebp - 0x219]
test al, al
je 0x407127
call fcn.004063ea
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x220]
call fcn.00408280
push esi
push edi
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0x219]
call fcn.00405f14
push eax
lea ecx, [ebp - 0x220]
call fcn.00408766
lea ecx, [ebp - 0x220]
mov edi, eax
call fcn.00408358
jmp 0x407222
call fcn.00406546
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x224]
push eax
push 0x20006
push edi
lea ecx, [ebp - 0x219]
call fcn.00406e48
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407222
call fcn.0040776a
push eax
lea ecx, [ebp - 0x220]
call fcn.00405c5d
mov dword [ebp - 4], 1
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x219]
test esi, esi
je 0x4071a8
push esi
push eax
call fcn.00406dda
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00407675
add esp, 0x10
jmp 0x4071be
push eax
call fcn.00406e11
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00407675
add esp, 0xc
mov esi, dword [ebp - 0x220]
cmp dword [esi - 4], 1
mov ebx, dword [esi - 0xc]
jle 0x4071df
push ebx
lea ecx, [ebp - 0x220]
call fcn.0040760b
mov esi, dword [ebp - 0x220]
lea eax, [ebx + ebx]
push eax
push esi
push 1
push edi
lea ecx, [ebp - 0x219]
call fcn.00406148
push eax
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x220]
mov edi, eax
call fcn.00407c90
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.00407c78
mov eax, edi
call fcn.004aac16
ret

Function at 0x4074f8
Capabilities:
Delete registry value

Disassembly:
push 0xc
mov eax, 0x50bd21
call fcn.004aac38
cmp dword [ebp + 8], 0
jne 0x407511
xor eax, eax
jmp 0x407596
lea eax, [ebp - 0x14]
xor esi, esi
push eax
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
call fcn.00407863
pop ecx
pop ecx
test eax, eax
jne 0x40752b
inc eax
jmp 0x407596
call fcn.00407a0a
test al, al
je 0x40755e
lea ecx, [ebp - 0x10]
call fcn.00408280
push 1
lea ecx, [ebp + 0xb]
mov dword [ebp - 4], esi
call fcn.004061b6
push eax
lea ecx, [ebp - 0x10]
call fcn.00408de1
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00408358
jmp 0x407594
lea eax, [ebp - 0x18]
push eax
push 0x20006
push esi
lea ecx, [ebp + 0xb]
call fcn.004065eb
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407594
lea ecx, [ebp + 0xb]
call fcn.0040650f
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov eax, esi
call fcn.004aac01
ret
Function at 0x407863
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x42c
mov eax, 0x50bd5d
call fcn.004aac6c
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test esi, esi
jne 0x407883
xor eax, eax
jmp 0x407a04
xor edi, edi
test ebx, ebx
je 0x40788b
mov dword [ebx], edi
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004eb5d0
add esp, 0xc
call fcn.00407a0a
lea ecx, [ebp - 0x421]
test al, al
je 0x407902
call fcn.00406768
push eax
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x430]
call fcn.00408280
push ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0x421]
call fcn.00406ff5
push eax
lea ecx, [ebp - 0x430]
call fcn.004090f5
lea ecx, [ebp - 0x430]
mov edi, eax
call fcn.00408358
jmp 0x407a02
call fcn.00406a46
push eax
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x434]
push eax
push 0x20019
push edi
lea ecx, [ebp - 0x421]
call fcn.0040617f
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407a02
lea eax, [ebp - 0x438]
mov dword [ebp - 0x438], 0x104
push eax
lea eax, [ebp - 0x420]
push eax
push edi
push edi
lea ecx, [ebp - 0x421]
call fcn.004064d8
push eax
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x434]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x407a02
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00405c86
inc esi
lea ecx, [ebp - 0x42c]
mov dword [ebp - 4], esi
call fcn.00407ad4
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x428]
call fcn.00405c86
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 2
call fcn.00407ad4
push edi
push dword [ebp - 0x428]
lea ecx, [ebp - 0x42c]
call fcn.004075d1
test eax, eax
js 0x4079e6
mov edi, esi
test ebx, ebx
je 0x4079e6
mov dword [ebx], esi
mov ecx, dword [ebp - 0x428]
lea ecx, [ecx - 0x10]
call fcn.00407c78
mov ecx, dword [ebp - 0x42c]
lea ecx, [ecx - 0x10]
call fcn.00407c78
mov eax, edi
call fcn.004aac16
ret
Function at 0x408fcb
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp word [0x5512e0], 0
push esi
mov esi, 0x5512e0
jne 0x408ff2
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
push esi
push 2
call sub.Secur32.dll_GetUserNameExW
mov ecx, dword [ebp + 8]
push esi
call fcn.00405c86
mov eax, dword [ebp + 8]
pop esi
leave
ret 4

Function at 0x40ee18
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x54c548]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x20d]
call fcn.0040e06b
push 0x208
mov esi, eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004eb5d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40eed8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40eed8
lea ecx, [ebp - 0x20d]
call fcn.0040d784
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40eed8
and dword [ebp - 0x214], 0
lea ecx, [ebp - 0x214]
push ecx
push 1
call eax
test eax, eax
je 0x40eed8
mov dword [edi + 0x3f8], eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004aabf0
leave
ret
Function at 0x4122a2
Capabilities:
Get file version info

Disassembly:
push 0x20
mov eax, 0x50c676
call fcn.004aac38
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 0x412441
push esi
call fcn.004aad9d
mov edi, eax
pop ecx
test edi, edi
je 0x412441
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 0x41243a
call fcn.0041251e
mov ebx, dword [ebp + 0xc]
test al, al
je 0x4123ee
call fcn.0041249c
test al, al
jne 0x4123ee
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 0x4123ee
xor esi, esi
test dword [ebp + 8], 0xfffffffc
mov dword [ebp - 0x1c], esi
jbe 0x4123ee
call fcn.0040776a
push eax
lea ecx, [ebp - 0x18]
call fcn.00405c5d
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.00407675
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 0x4123b2
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00407c78
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
inc esi
shr eax, 2
mov dword [ebp - 0x1c], esi
cmp esi, eax
jb 0x412344
jmp 0x4123ee
push dword [ebp - 0x20]
mov ecx, ebx
push dword [ebp - 0x24]
call fcn.00407d04
push 0x2e
push 0x2c
mov ecx, ebx
call fcn.00412600
push 0x20
mov ecx, ebx
call fcn.00412580
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
mov dword [ebp - 0x10], 1
call fcn.00407c78
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x412437
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x2c]
and dword [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x515a24
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x412437
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.00407675
xor ebx, ebx
add esp, 0x18
inc ebx
jmp 0x41243a
mov ebx, dword [ebp - 0x10]
push edi
call fcn.004aad67
pop ecx
mov al, bl
call fcn.004aac01
ret
Function at 0x41388c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.004aad70
mov eax, dword [0x54c548]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x4000
push ebx
push eax
call fcn.004eb5d0
add esp, 0xc
mov dword [ebp - 0x4008], ebx
test esi, esi
je 0x413966
test edi, edi
je 0x413966
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x413966
cmp eax, 0x3fff
ja 0x413966
lea ecx, [ebp - 0x4004]
push ecx
push eax
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x413966
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x515a24
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x413966
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push ebx
push edi
call fcn.004eb5d0
mov ecx, dword [ebp - 0x400c]
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
lea eax, [esi - 1]
push eax
push edi
call fcn.00409db1
xor eax, eax
add esp, 0x28
inc eax
jmp 0x413968
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aabf0
leave
ret

Function at 0x413a7c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x413ae7
cmp dword [ebp + 0xc], 0
je 0x413ae7
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x413ae7
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x413ae7
and dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x413ae1
push esi
push dword [ebp + 0xc]
push edi
call fcn.004eaad0
and dword [ebp - 4], 0
lea eax, [ebp - 4]
add esp, 0xc
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x413ae1
mov al, 1
jmp 0x413ae9
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
pop esi
leave
ret
Function at 0x417323
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x50c835
call fcn.004aacda
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 0x4173a0
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 0x4173a0
call fcn.00416612
mov esi, eax
jmp 0x417477
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4173c3
call fcn.00416612
jmp 0x41746a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x4173b9
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 0x4173f3
mov esi, 0x8007000e
jmp 0x41746c
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0041648f
jmp 0x417419
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x4173ec
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 0x4173b9
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.004171ea
mov esi, eax
test edi, edi
je 0x417477
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x417490
lea ecx, [ebp - 0x418]
call fcn.004169c1
mov eax, esi
call fcn.004aac27
ret 0x10
Function at 0x417dba
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 0x417dcd
push 0xd
pop eax
jmp 0x417e11
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 0x417de0
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x417dd8
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 0x417e16
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x417e28
push 0xd
pop eax
jmp 0x417e5a
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 0x417e31
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