joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dcde
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x128]
sub esp, 0x1a8
mov eax, dword [0x43c07c]
xor eax, ebp
mov dword [ebp + 0x124], eax
mov eax, dword [ebp + 0x130]
push ebx
push esi
xor ebx, ebx
push ebx
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40dd31
xor al, al
jmp 0x40de47
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, 0x4f
mov dword [ebp - 0x78], eax
jle 0x40dd48
lea eax, [eax + ecx*2 - 0x9e]
mov dword [ebp - 0x78], eax
push edi
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x80], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
jne 0x40dd77
cmp dword [ebp - 0x80], 0xc8
jbe 0x40de36
mov eax, dword [0x43d85c]
mov ecx, 0x43d85c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
je 0x40dddd
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jge 0x40dda5
push 0x80070057
call fcn.00403985
cmp word [eax], 0x22
je 0x40dddd
push 0x20
xor ecx, ecx
call fcn.00406251
cmp eax, 0xffffffff
je 0x40dddd
push 0x22
lea eax, [ebp - 0x70]
call fcn.00407dad
mov esi, dword [esi]
push dword [esi - 0xc]
lea eax, [ebp - 0x70]
push esi
call fcn.00401663
push 0x22
lea eax, [ebp - 0x70]
call fcn.00407dad
jmp 0x40dde7
mov eax, esi
lea edi, [ebp - 0x70]
call fcn.004060b8
mov esi, dword [ebp - 0x7c]
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
je 0x40de05
jl 0x40dd9b
cmp word [eax], 0x20
je 0x40de05
push 0x20
lea eax, [ebp - 0x70]
call fcn.00407dad
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x70]
call fcn.00401663
mov esi, dword [ebp - 0x70]
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push 1
push ebx
push dword [ebp - 0x78]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [esi - 0x10]
call fcn.004039c4
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
sete al
pop edi
mov ecx, dword [ebp + 0x124]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042370b
add ebp, 0x128
leave
ret
Function at 0x40de5e
Capabilities:
Get session user name
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x43d85c]
push esi
push edi
mov edi, 0x43d85c
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
push 0x64
mov dword [ebp - 4], eax
pop eax
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 8], eax
push eax
lea eax, [ebp - 4]
call fcn.00406444
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea esi, [ebp - 4]
call fcn.00407069
mov ecx, edi
mov esi, ebx
call fcn.004039a9
push 0x64
push 0x64
mov eax, ebx
call fcn.00406444
push eax
push str.UserDomain
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
call fcn.00407069
push 0x435794
push ebx
call fcn.0040147d
mov esi, dword [ebp - 4]
push dword [esi - 0xc]
mov eax, ebx
push esi
call fcn.00401663
lea eax, [esi - 0x10]
call fcn.004039c4
pop edi
mov eax, ebx
pop esi
leave
ret

Function at 0x40dee8
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40df11
xor al, al
leave
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
mov eax, dword [esi - 0xc]
cmp eax, 0x4f
push edi
jle 0x40df27
lea esi, [esi + eax*2 - 0x9e]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x40df52
cmp edi, 0xea
jne 0x40df5e
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
leave
ret
Function at 0x40eb58
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [eax]
push ebx
push esi
push edi
xor edi, edi
cmp dword [eax - 0xc], edi
jne 0x40eb70
xor eax, eax
jmp 0x40ec20
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40eb94
push eax
jmp 0x40ec17
mov eax, dword [ebp + 0xc]
sub dword [ebp + 0x10], 2
push edi
push edi
add eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40ec12
mov eax, dword [ebp + 0x10]
shr eax, 1
push eax
push 0x78
pop ecx
lea edx, [ebp + 0xc]
call fcn.00407c7c
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
lea esi, [ebp + 0xc]
call fcn.0040642d
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ec07
cmp dword [ebp - 4], edi
je 0x40ec07
mov eax, esi
push eax
push dword [ebp + 8]
call fcn.0040e6fa
movzx esi, al
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004039c4
cmp ebx, edi
je 0x40ec03
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x40ec20
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004039c4
cmp ebx, edi
je 0x40ec1d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x410461
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x43c07c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x41c]
push eax
push 0x104
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor esi, esi
mov dword [ebp - 0x430], eax
cmp eax, esi
je 0x41060f
lea eax, [ebp - 0x214]
push eax
push esi
push 0x4388f4
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x41060f
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x420]
call fcn.004038d0
push str..url
lea eax, [ebp - 0x420]
push eax
call fcn.0040147d
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41051e
push eax
jmp 0x4105fb
mov eax, dword [0x43d85c]
mov ecx, 0x43d85c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
mov eax, dword [edi]
lea edi, [ebp - 0x42c]
call fcn.00401356
push dword [ebp - 0x42c]
lea eax, [ebp - 0x424]
push str._InternetShortcut__r_nURL_s_r_n
call fcn.00401618
mov edi, dword [ebp - 0x424]
mov eax, dword [edi - 0xc]
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x430]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x424], eax
cmp ebx, esi
je 0x410586
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp dword [ebp - 0x424], esi
je 0x4105a4
push 5
push esi
push esi
push dword [ebp - 0x420]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x428]
add eax, 0xc
push eax
push 0x5c
lea esi, [ebp - 0x420]
call fcn.004062ac
mov ecx, eax
lea edx, [ebp - 0x428]
mov eax, esi
call fcn.004063f7
push eax
call fcn.00407677
mov eax, dword [ebp - 0x428]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004039c4
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff0
call fcn.004039c4
lea eax, [edi - 0x10]
call fcn.004039c4
test ebx, ebx
je 0x410601
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x420]
add eax, 0xfffffff0
call fcn.004039c4
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042370b
leave
ret 4
Function at 0x410de3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea esi, [edi + 4]
push dword [esi]
call fcn.00419c1a
pop ecx
push esi
call fcn.0040a73a
mov eax, dword [edi + 0x28]
push dword [eax]
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [esi]
call ebx
mov eax, dword [0x43d85c]
mov ecx, 0x43d85c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push 0xdc
lea eax, [ebp - 4]
push eax
call fcn.004036ec
push 0x40a
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebp - 4]
push eax
call ebx
lea eax, [edi + 0x40]
push eax
mov eax, dword [esi]
call fcn.0041b7fb
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
lea ecx, [edi + 0x30]
push ecx
push 0x410e75
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004039c4
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x412315
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41235e
push 0xea60
push eax
mov byte [esi + 0x74], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x412355
cmp dword [ebp - 4], 0x103
jne 0x412355
push 0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x64]
sub eax, 0x10
call fcn.004039c4
mov eax, dword [esi + 0x3c]
sub eax, 0x10
call fcn.004039c4
mov eax, dword [esi + 0x24]
sub eax, 0x10
call fcn.004039c4
mov eax, dword [esi + 0x20]
sub eax, 0x10
call fcn.004039c4
mov eax, dword [esi + 0x1c]
sub eax, 0x10
call fcn.004039c4
leave
ret

Function at 0x412397
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea edi, [esi + 0x24]
call fcn.004060b8
mov eax, dword [ebp + 8]
lea edi, [esi + 0x20]
call fcn.004060b8
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov dword [esi + 8], ebx
cmp eax, ebx
je 0x4123ca
push eax
call edi
mov al, byte [ebp + 0xc]
mov byte [esi + 0x41], al
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x412577
push ebx
push ebx
mov dword [esi + 0xc], ebx
mov byte [esi + 0x40], 1
mov dword [esi + 0x44], ebx
mov byte [esi + 0x58], bl
mov dword [esi + 0x68], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
cmp eax, ebx
jne 0x412402
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41242f
cmp byte [ebp + 0xc], bl
je 0x41242d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0xc]
push eax
push dword [esi + 0xc]
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [esi + 0xc]
call edi
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], ebx
jmp 0x41242f
xor eax, eax
pop edi
pop ebx
leave
ret 8
Function at 0x412ede
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
push edi
push dword [esi + 0x5c]
mov byte [esi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp + 0x14]
mov byte [esi + 0x42], 0
push dword [ebp + 0x10]
mov dword [esi + 0x34], 3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x412f6e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0x3e5
cmp eax, ebx
jne 0x412f70
jmp 0x412f4a
call edi
cmp eax, ebx
jne 0x412f50
push 1
call fcn.00413a5b
mov eax, esi
call fcn.00413a3f
test al, al
jne 0x412f5b
push 0xa
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi + 0x38], 0
je 0x412f27
cmp dword [esi + 0x30], 0
jne 0x412f62
mov eax, dword [esi + 0x2c]
jmp 0x412f70
mov eax, 0xe0000008
jmp 0x412f70
mov esi, dword [esi + 0x2c]
test esi, esi
jle 0x412f6e
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x412f77
Capabilities:
Query remote server for available data

Disassembly:
push ebx
push ebp
push esi
mov esi, eax
push edi
push dword [esi + 0x5c]
xor ebx, ebx
mov byte [esi + 0x38], bl
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebx
push ebx
push dword [esp + 0x20]
mov byte [esi + 0x42], bl
push dword [esp + 0x20]
mov dword [esi + 0x34], 8
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x413002
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebp, 0x3e5
cmp eax, ebp
jne 0x413004
jmp 0x412fdf
call edi
cmp eax, ebp
jne 0x412fe4
push 1
call fcn.00413a5b
mov eax, esi
call fcn.00413a3f
test al, al
jne 0x412fee
push 0xa
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi + 0x38], bl
je 0x412fbc
cmp dword [esi + 0x30], ebx
jne 0x412ff5
mov eax, dword [esi + 0x2c]
jmp 0x413004
mov eax, 0xe0000008
jmp 0x413004
mov esi, dword [esi + 0x2c]
cmp esi, ebx
jle 0x413002
mov eax, dword [esp + 0x18]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x413be4
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00423730
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0
push eax
mov dword [ebp - 0x3c], 0x3c
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x413c21
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x413c44
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, 3
je 0x413c42
cmp eax, 4
je 0x413c42
cmp eax, 1
je 0x413c42
cmp eax, 2
je 0x413c42
push 2
pop eax
jmp 0x413c44
xor eax, eax
leave
ret 8

Function at 0x414d6f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
test eax, eax
je 0x414d7c
lea esi, [eax - 0x20]
jmp 0x414d7e
xor esi, esi
cmp byte [eax + 0x1c], 0
je 0x414db2
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 8], 2
jne 0x414da3
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x414db8
cmp dword [ebp + 8], 0
jne 0x414db2
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 8], 1
je 0x414dcc
mov eax, dword [ebp + 0xc]
shr eax, 0x10
cwde
push eax
movsx eax, word [ebp + 0xc]
push eax
mov eax, esi
call fcn.004142d7
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x4151ce
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi], ebx
jne 0x4151e2
xor al, al
jmp 0x415248
mov eax, dword [0x43d85c]
push edi
mov ecx, 0x43d85c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0xc]
push 0x438b08
push eax
call fcn.00406c06
mov edi, dword [ebp - 0xc]
mov esi, dword [esi]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
push esi
mov dword [ebp - 4], ebx
call sub.msi.dll_MsiEnumClientsA
test eax, eax
jne 0x415230
push ebx
push dword [ebp - 4]
call sub.msi.dll_MsiViewModify
test eax, eax
je 0x41524e
cmp dword [ebp - 4], ebx
je 0x41523d
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [edi - 0x10]
call fcn.004039c4
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
je 0x415287
cmp dword [ebp - 8], ebx
je 0x41526e
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 4], ebx
je 0x41527b
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [edi - 0x10]
call fcn.004039c4
mov al, bl
jmp 0x415247
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.0041539b
mov byte [ebp + 0xb], al
cmp dword [ebp - 8], ebx
je 0x4152a2
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 4], ebx
je 0x4152af
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov bl, byte [ebp + 0xb]
jmp 0x41527b
Function at 0x41542c
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x43c07c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
test ecx, ecx
jne 0x41544d
xor al, al
jmp 0x41556d
push 2
lea esi, [ebp - 0x408]
pop edi
jmp 0x41545f
mov word [esi], ax
add ecx, edi
add esi, edi
movzx eax, word [ecx]
test ax, ax
jne 0x415458
xor eax, eax
mov word [esi], ax
push 0x5c
xor dl, dl
pop ebx
sub esi, edi
xor al, al
mov byte [ebp - 0x409], dl
cmp word [ebp - 0x408], bx
jne 0x41549d
cmp word [ebp - 0x406], bx
jne 0x41549d
mov byte [ebp - 0x409], 1
cmp word [esi], bx
je 0x4154a4
inc al
jmp 0x4154a4
cmp word [esi], bx
jne 0x4154a4
mov dl, 1
lea ecx, [ebp - 0x404]
mov dword [ebp - 0x410], ecx
cmp word [ebp - 0x404], bx
je 0x4154c6
add ecx, edi
cmp word [ecx], bx
jne 0x4154b9
mov dword [ebp - 0x410], ecx
test al, al
jne 0x4154d0
test dl, dl
je 0x4154e0
jmp 0x4154d9
add esi, edi
mov eax, ebx
mov word [esi], ax
add esi, edi
xor eax, eax
mov word [esi], ax
sub esi, edi
and dword [ebp - 0x418], 0
and dword [ebp - 0x414], 0
lea eax, [ebp - 0x420]
push eax
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x41554e
cmp word [esi], bx
jne 0x41551c
jmp 0x41551a
cmp word [esi], bx
je 0x415526
sub esi, edi
lea eax, [ebp - 0x408]
cmp esi, eax
ja 0x415515
cmp esi, dword [ebp - 0x410]
jb 0x415446
cmp byte [ebp - 0x409], 0
jne 0x415543
cmp esi, dword [ebp - 0x410]
jne 0x415545
add esi, edi
xor eax, eax
mov word [esi], ax
sub esi, edi
jmp 0x4154ee
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x414]
ja 0x41556b
jb 0x415566
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x418]
jae 0x41556b
xor eax, eax
inc eax
jmp 0x41556d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042370b
leave
ret

Function at 0x415679
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x415700
push esi
call fcn.0042371a
mov edi, eax
pop ecx
test edi, edi
jne 0x4156b8
push 8
pop esi
push edi
call fcn.00423725
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret
push edi
push esi
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x415700
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x435794
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x415709
cmp dword [ebp - 0x10], 0
je 0x415709
mov eax, dword [ebp - 8]
test ebx, ebx
je 0x4156f2
mov ecx, dword [eax + 8]
mov dword [ebx], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x415709
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
jmp 0x415709
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
jmp 0x4156ab
Function at 0x41570e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebx]
push esi
push edi
sub eax, 0x10
call fcn.00407082
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
lea esi, [ebp - 4]
call fcn.0040642d
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x415834
push esi
call fcn.0042371a
mov edi, eax
pop ecx
test edi, edi
jne 0x415760
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004039c4
push edi
jmp 0x415841
push edi
push esi
push dword [ebp - 0xc]
lea esi, [ebp - 4]
call fcn.0040642d
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41574f
mov eax, dword [0x43d85c]
mov ecx, 0x43d85c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4157ba
cmp dword [ebp - 0x10], 0
je 0x4157ba
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x4381c4
push ecx
push eax
jmp 0x4157c9
push 0x4381c4
push 0x4e2
push 0x409
lea eax, [ebp - 8]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.00406c06
add esp, 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea esi, [ebp - 8]
call fcn.0040642d
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x415824
cmp dword [ebp - 0x18], 0
je 0x415824
push dword [ebp - 0x1c]
push ebx
call fcn.004038ad
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004039c4
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004039c4
push edi
call fcn.00423725
mov al, 1
jmp 0x415848
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004039c4
jmp 0x41574f
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004039c4
push 0
call fcn.00423725
xor al, al
pop ecx
pop edi
pop esi
leave
ret

Function at 0x415992
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, eax
mov dword [ebp - 4], 0xc8
xor ebx, ebx
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042371a
pop ecx
mov esi, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push esi
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x4159e4
inc dword [ebp - 4]
jmp 0x4159a5
cmp eax, ebx
jne 0x415a06
cmp dword [ebp - 8], 1
je 0x415a14
cmp dword [ebp - 8], 4
jne 0x4159a5
push dword [esi]
push 0x438c4c
push edi
call fcn.00406c06
add esp, 0xc
mov bl, 1
push esi
call fcn.00423725
mov al, bl
pop ecx
pop edi
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [esi + ecx*2], ax
push esi
lea eax, [ebp + 0xc]
call fcn.004038d0
call fcn.004060b8
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004039c4
push esi
call fcn.00423725
mov al, 1
jmp 0x415a0e