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

Disassembly:
push 0x3c
mov eax, 0x50b07f
call fcn.004d0cf3
mov edi, ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
cmp dword [edi + 0x10], eax
je 0x4830b6
mov ecx, dword [edi + 0x1c]
add ecx, dword [edi + 0x58]
mov dword [ebp - 0x28], ecx
adc eax, dword [edi + 0x5c]
xor ebx, ebx
push ebx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push ecx
push dword [edi + 0x84]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x482fa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.00483a8d
push 2
pop eax
jmp 0x4830b6
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call fcn.00406df5
mov esi, ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], ebx
cmp dword [edi + 0x10], ebx
jbe 0x483098
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x18
lea eax, [ebp - 0x48]
push eax
push dword [edi + 0x84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48307e
cmp dword [ebp - 0x14], ebx
je 0x48307e
test esi, esi
je 0x483007
push esi
call fcn.004d0771
pop ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x10]
inc eax
push eax
call fcn.004843ce
mov esi, dword [ebp - 0x10]
test al, al
je 0x48307a
push ebx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x34]
add eax, eax
push eax
push esi
push dword [edi + 0x84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48307e
cmp dword [ebp - 0x14], ebx
je 0x48307e
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x48]
push eax
lea ecx, [edi + 0x78]
call fcn.004842d9
push dword [ebp - 0x18]
lea ecx, [edi + 0x78]
call fcn.004842b2
push esi
lea ecx, [eax + 0x18]
call fcn.004093ce
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [edi + 0x10]
jb 0x482fd1
jmp 0x483098
push 3
jmp 0x483097
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.00483a8d
push 2
pop ebx
push esi
call fcn.004d0771
lea eax, [ebp - 0x30]
pop ecx
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.00406dd3
mov eax, ebx
call fcn.004d0cbc
ret
Function at 0x4830bc
Capabilities:
Read file on windows

Disassembly:
push 0x2c
mov eax, 0x50b0aa
call fcn.004d0cf3
mov edi, ecx
xor eax, eax
cmp dword [edi + 0x9c], eax
jg 0x483255
mov ecx, dword [edi + 0xc]
add ecx, dword [edi + 0x58]
mov dword [ebp - 0x38], ecx
adc eax, dword [edi + 0x5c]
xor ebx, ebx
push ebx
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push ecx
push dword [edi + 0x84]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x48311f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.00483a8d
push 2
pop eax
jmp 0x483255
mov esi, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], ebx
cmp dword [edi + 8], ebx
jbe 0x48324c
push ebx
lea eax, [ebp - 0x14]
push eax
push 8
lea eax, [ebp - 0x2c]
push eax
push dword [edi + 0x84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x483232
cmp dword [ebp - 0x14], 0
je 0x483232
lea ecx, [ebp - 0x24]
call fcn.00406df5
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
test esi, esi
je 0x48317b
push esi
call fcn.004d0771
pop ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x10]
inc eax
push eax
call fcn.004843ce
mov esi, dword [ebp - 0x10]
test al, al
je 0x483218
push ebx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x28]
add eax, eax
push eax
push esi
push dword [edi + 0x84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4831fd
cmp dword [ebp - 0x14], 0
je 0x4831fd
mov eax, dword [ebp - 0x28]
xor ecx, ecx
push esi
mov word [esi + eax*2], cx
lea ecx, [ebp - 0x24]
call fcn.004093ce
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + 0x98]
call fcn.00484233
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [edi + 8]
jb 0x483136
jmp 0x48324c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.00483a8d
push 2
jmp 0x48321a
push 3
lea eax, [ebp - 0x24]
pop ebx
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
jmp 0x48324c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.00483a8d
push 2
pop ebx
push esi
call fcn.004d0771
pop ecx
mov eax, ebx
call fcn.004d0cbc
ret

Function at 0x4841f9
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0xe4], edi
jle 0x484226
push ebx
push edi
lea ecx, [esi + 0xe0]
call fcn.00406740
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0xe4]
jl 0x484208
pop ebx
pop edi
lea ecx, [esi + 0xe0]
pop esi
jmp fcn.00452170
Function at 0x484504
Capabilities:
Delete registry value

Disassembly:
push 8
mov eax, 0x50b32e
call fcn.004d0cf3
mov esi, ecx
cmp dword [esi + 0x2c], 0
je 0x484521
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esi + 0xc]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x48457f
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ebx, str.SoftwareCaphyonSetups
push ebx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 0x10], 0
je 0x48457f
push dword [edi]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea ecx, [ebp - 0x14]
call fcn.004093f6
lea edx, [ebp - 0x14]
call fcn.00485bc3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
lea ecx, [esi + 0x1c]
call fcn.00406f43
lea ecx, [esi + 0x10]
call fcn.00406f43
mov dword [ebp - 0x14], edi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.00406dd3
call fcn.004d0cbc
ret

Function at 0x484979
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x56a078]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push edi
mov edi, ecx
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
je 0x484a0b
push 0x104
lea eax, [ebp - 0x7c]
push eax
push dword [0x56f438]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x484a0b
push esi
lea esi, [eax + eax]
cmp esi, 0x208
jae 0x484a21
xor eax, eax
and dword [ebp - 0x80], eax
mov word [ebp + esi - 0x7c], ax
lea eax, [ebp - 0x80]
push eax
push str.SoftwareCaphyonSetups
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp dword [ebp - 0x80], 0
je 0x484a0a
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x7c]
push eax
push 1
push 0
push dword [edi + 0xc]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop edi
call fcn.004d014c
lea esp, [ebp + 0x190]
pop ebp
ret
call fcn.004d096b
int3
Function at 0x484ba3
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x3c
mov eax, dword [0x56a078]
xor eax, esp
mov dword [esp + 0x38], eax
movaps xmm0, xmmword [0x53bb00]
and dword [esp + 8], 0
and dword [esp + 4], 0
push ebx
push ebp
push esi
movups xmmword [esp + 0x24], xmm0
mov bl, dl
movaps xmm0, xmmword [0x53bb00]
push edi
mov edi, ecx
movups xmmword [esp + 0x38], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push str.kernel32.dll
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetSystemDefaultUILanguage
push esi
call ebp
test eax, eax
je 0x484c1d
call eax
movzx eax, ax
mov dword [esp + 0x14], eax
push str.GetUserDefaultUILanguage
push esi
call ebp
test eax, eax
je 0x484c32
call eax
movzx eax, ax
mov dword [esp + 0x18], eax
mov ebp, dword [edi + 4]
xor esi, esi
test ebp, ebp
jle 0x484d0c
mov dword [esp + 0x20], 3
push esi
mov ecx, edi
call fcn.00406f1c
mov edx, dword [esp + 0x1c]
movzx ecx, word [eax]
cmp cx, dx
jne 0x484c69
xor eax, eax
inc eax
test bl, bl
cmovne eax, dword [esp + 0x20]
mov dword [esp + eax*4 + 0x28], esi
cmp cl, dl
jne 0x484c7c
push 5
pop eax
push 7
test bl, bl
pop edx
cmovne eax, edx
mov dword [esp + eax*4 + 0x28], esi
mov edx, dword [esp + 0x24]
cmp cx, dx
jne 0x484c98
and dword [esp + 0x10], 0
test bl, bl
push 3
pop eax
cmovne eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x28], esi
cmp cl, dl
jne 0x484cab
push 7
pop eax
push 5
test bl, bl
pop edx
cmovne eax, edx
mov dword [esp + eax*4 + 0x28], esi
mov edx, dword [esp + 0x14]
cmp cx, dx
jne 0x484cc9
xor eax, eax
mov dword [esp + 0x10], 2
test bl, bl
cmovne eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x28], esi
cmp cl, dl
jne 0x484cdc
push 4
pop eax
push 6
test bl, bl
pop edx
cmovne eax, edx
mov dword [esp + eax*4 + 0x28], esi
mov edx, dword [esp + 0x18]
cmp cx, dx
jne 0x484cf0
xor eax, eax
test bl, bl
sete al
mov dword [esp + eax*4 + 0x2c], esi
cmp cl, dl
jne 0x484d03
push 6
pop eax
push 4
test bl, bl
pop ecx
cmovne eax, ecx
mov dword [esp + eax*4 + 0x28], esi
inc esi
cmp esi, ebp
jl 0x484c47
xor eax, eax
mov edx, dword [esp + eax*4 + 0x28]
test edx, edx
jns 0x484d20
inc eax
cmp eax, 8
jb 0x484d0e
push 0
jmp 0x484d21
push edx
mov ecx, edi
call fcn.00406f1c
mov ecx, dword [esp + 0x48]
pop edi
pop esi
mov ax, word [eax]
pop ebp
pop ebx
xor ecx, esp
call fcn.004d014c
add esp, 0x3c
ret
Function at 0x484db5
Capabilities:
Get geographical location

Disassembly:
push 0xc
mov eax, 0x50b43d
call fcn.004d0cf3
mov edi, edx
mov esi, ecx
call fcn.00406df5
push 0
push 0x525364
push 2
movzx ebx, di
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x14], eax
lea ecx, [eax - 1]
push ecx
push 0x78
lea ecx, [ebp - 0x10]
call fcn.004436e5
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 4], 1
jle 0x484e05
push dword [ecx - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406931
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x14]
push ecx
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push dword [ebp - 0x10]
push edi
push 0x531ccc
push esi
call fcn.004575ca
add esp, 0x10
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
mov eax, esi
call fcn.004d0cbc
ret

Function at 0x48506b
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x2c
mov eax, dword [0x56a078]
xor eax, esp
mov dword [esp + 0x24], eax
push ebp
push esi
mov ebp, ecx
push 2
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
xorps xmm0, xmm0
lea eax, [esp + 0x1c]
push eax
push esi
movups xmmword [esp + 0x24], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
xor eax, eax
cmp byte [ebp + 0x2c], al
push 5
pop ecx
cmovne eax, ecx
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3e9
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0xc]
mov dword [esp + 8], eax
push ecx
xorps xmm0, xmm0
push eax
movups xmmword [esp + 0x14], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [ebp + 0x30], 0
jne 0x4850e4
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x30], eax
cmp byte [ebp + 0x2c], 0
je 0x4850ef
mov eax, dword [ebp + 0x30]
jmp 0x4850f3
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
lea ecx, [esp + 8]
push 0x206
lea eax, [esp + 0x10]
push eax
push 0
call fcn.00406477
mov ecx, dword [esp + 0x2c]
pop esi
pop ebp
xor ecx, esp
call fcn.004d014c
add esp, 0x2c
ret
Function at 0x4853ff
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x56a078]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push ecx
push ecx
and dword [esi], 0
call fcn.0046a760
pop ecx
mov ecx, eax
call fcn.0046acd0
test al, al
je 0x4854e8
push edi
call fcn.00485509
test al, al
je 0x4854e8
mov ebx, 0x208
lea eax, [ebp - 0x214]
push ebx
push 0
push eax
call fcn.004d1f70
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
xor ebx, ebx
lea eax, [ebp - 0x41c]
push ebx
push eax
call fcn.004d1f70
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
push ebx
push str.shim_clone
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x41c]
mov ecx, esi
push eax
call fcn.0048558b
lea ecx, [ebp - 0x424]
mov dword [ebp - 0x424], ebx
mov byte [ebp - 0x420], bl
call fcn.0049545e
push ebx
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
dec eax
neg eax
sbb al, al
add al, 1
mov byte [esi + 4], al
jne 0x4854db
push edi
mov ecx, esi
call fcn.0048558b
lea ecx, [ebp - 0x424]
call fcn.0049543e
jmp 0x4854f4
push edi
mov ecx, esi
call fcn.0048558b
mov byte [esi + 4], 0
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d014c
mov esp, ebp
pop ebp
ret 4

Function at 0x485509
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x56a078]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
push esi
push esi
push 0x24
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x20c]
call fcn.0046b440
mov ecx, edi
mov edx, eax
call fcn.0046b440
cmp eax, edx
jae 0x485551
xor al, al
jmp 0x485579
test edx, edx
je 0x485577
lea eax, [ebp - 0x20c]
sub edi, eax
lea eax, [edi + esi*2]
mov ax, word [ebp + eax - 0x20c]
cmp ax, word [ebp + esi*2 - 0x20c]
jne 0x48554d
inc esi
cmp esi, edx
jb 0x48555d
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004d014c
mov esp, ebp
pop ebp
ret 4
Function at 0x4856eb
Capabilities:
Delete file
Get file version info

Disassembly:
sub esp, 0x1c
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x1c], edx
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], edi
mov esi, edi
call fcn.004853ff
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x24]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebp, eax
test ebp, ebp
je 0x485788
push 0x56f47c
push ebp
call fcn.004d07ed
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x485734
push 8
pop edi
jmp 0x485790
push esi
push ebp
push dword [esp + 0x1c]
push dword [esp + 0x2c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x485788
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push 0x52940c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x485790
cmp dword [esp + 0x18], edi
je 0x485790
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
test ecx, ecx
je 0x485779
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x485790
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
jmp 0x485790
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp byte [esp + 0x24], 0
je 0x4857a1
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x20]
call fcn.004d0771
pop ecx
push esi
call fcn.004d0771
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x4857bb
Capabilities:
Get file version info

Disassembly:
push 0x20
mov eax, 0x50b478
call fcn.004d0cf3
mov eax, ecx
mov dword [ebp - 0x2c], eax
xor ebx, ebx
lea ecx, [ebp - 0x10]
push eax
mov edi, ebx
call fcn.004073ac
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x4857f0
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406931
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x485902
push 0x56f47c
push esi
call fcn.004d07ed
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x485902
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x485833
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406931
mov eax, dword [ebp - 0x10]
push edi
push esi
push dword [ebp - 0x18]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x485902
call fcn.00406cde
push eax
lea ecx, [ebp - 0x14]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x48588a
cmp dword [ebp - 0x1c], 0
je 0x48588a
mov ecx, dword [ebp - 0x20]
push 0x527bb0
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
jmp 0x485899
push 0x527bb0
push 0x4e2
push 0x409
lea eax, [ebp - 0x14]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.004575ca
mov esi, dword [ebp - 0x14]
add esp, 0x14
cmp dword [esi - 4], 1
jle 0x4858c1
push dword [esi - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00406931
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4858f6
cmp dword [ebp - 0x24], 0
je 0x4858f6
push dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
call fcn.004093ce
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406dd3
mov bl, 1
jmp 0x485902
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406dd3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00406dd3
push edi
call fcn.004d0771
pop ecx
mov al, bl
call fcn.004d0cbc
ret
Function at 0x485ae1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x50b4e9
call fcn.004d0cf3
mov edi, edx
mov dword [ebp - 0x18], ecx
xor ebx, ebx
mov dword [ebp - 0x10], 0xc8
push ebx
jmp 0x485b03
add dword [ebp - 0x10], 2
push esi
call fcn.004d0771
pop ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call fcn.004843ce
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [edi]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x485afe
test eax, eax
jne 0x485bb4
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x485b65
cmp eax, 2
je 0x485b65
cmp eax, 7
je 0x485b65
cmp eax, 4
jne 0x485bb4
push dword [esi]
push 0x531e74
push dword [ebp + 8]
call fcn.004575ca
add esp, 0xc
jmp 0x485bb1
mov eax, dword [ebp - 0x10]
shr eax, 1
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [esi + eax*2], cx
mov edi, dword [ebp - 0x10]
jmp 0x485b7c
dec edi
mov dword [ebp - 0x10], edi
cmp word [esi + edi*2], bx
je 0x485b78
inc edi
mov dword [ebp - 0x10], edi
call fcn.00406cde
push eax
push edi
push esi
lea ecx, [ebp - 0x18]
call fcn.0044540d
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.0044369a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
xor ebx, ebx
inc ebx
push esi
call fcn.004d0771
pop ecx
mov al, bl
call fcn.004d0cbc
ret

Function at 0x485bc3
Capabilities:
Delete registry key

Disassembly:
push 0x10
mov eax, 0x50b524
call fcn.004d0cf3
push edx
lea ecx, [ebp - 0x10]
call fcn.004073ac
xor edi, edi
push 0x5c
push dword [ebp - 0x10]
call fcn.004d3931
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x485c94
sub esi, dword [ebp - 0x10]
sar esi, 1
js 0x485c94
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00445170
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov eax, dword [eax - 0xc]
sub eax, esi
push eax
push esi
call fcn.00472880
lea eax, [ebp - 0x1c]
xor esi, esi
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], esi
push 0x80000001
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 0x1c], esi
je 0x485c85
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x485c72
inc edi
cmp dword [ebp - 0x1c], esi
je 0x485c5e
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], esi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
jmp 0x485bda
cmp dword [ebp - 0x1c], esi
je 0x485c83
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], esi
jmp 0x485c85
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00406dd3
mov eax, edi
call fcn.004d0cbc
ret
Function at 0x485ec3
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push 0x80000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x485ef3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test edi, edi
je 0x485efa
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
ret

Function at 0x485ff8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
mov dword [ebp - 0x64], 0x44
lea eax, [ebp - 0x60]
mov esi, edx
push ebx
push eax
mov edi, ecx
call fcn.004d1f70
add esp, 0xc
mov dword [ebp - 0xc], ebx
xorps xmm0, xmm0
mov byte [ebp - 8], bl
movups xmmword [ebp - 0x1c], xmm0
cmp byte [ebp + 0x10], bl
je 0x486037
lea ecx, [ebp - 0xc]
call fcn.0049545e
mov ecx, dword [esi]
xor eax, eax
cmp dword [ecx - 0xc], ebx
cmove ecx, eax
mov eax, dword [edi]
xor edx, edx
cmp dword [eax - 0xc], ebx
cmove eax, edx
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x64]
push edx
push ebx
push ebx
push dword [ebp + 0xc]
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x48608e
cmp dword [ebp + 8], ebx
je 0x486083
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea ecx, [ebp - 0xc]
call fcn.0049543e
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret