joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c7140
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5c72f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x5c72cf
mov dl, 1
mov eax, dword [0x4799b4]
call fcn.004a3cdc
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.0040a1dc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5c72be
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.005248f0
test al, al
je 0x5c72b1
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x5c7300
lea eax, [ebp - 0x394]
call fcn.00426b48
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x5c72b1
xor eax, eax
push ebp
push 0x5c72aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x5c7370
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x5c7291
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040af50
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x5c7291
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040af50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c72b1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5c71b1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x2d], 0
mov dl, 1
call fcn.004a3c04
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c72f7
lea eax, [ebp - 0x3a0]
call fcn.0040a1dc
pop eax
jmp eax

Function at 0x5c7eb8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x71bc9c]
cmp byte [eax + 0xc5], 0
jne 0x5c7f2a
cmp dword [0x71bcc4], 0
jne 0x5c7eea
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x7113d0]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x71bcc4], eax
cmp dword [0x71bcc0], 0
jne 0x5c7f05
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x71bcc0], eax
cmp dword [0x71bcc8], 0
jne 0x5c7f2a
push esp
push 0
push 0
mov eax, dword [0x7113cc]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x71bcc8], eax
pop edx
ret
Function at 0x5c8454
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x5c846b
add esp, 0xfffffff0
call fcn.00408a44
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004b1354
mov eax, dword [0x71413c]
cmp byte [eax], 0
jne 0x5c8498
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x19c], al
mov eax, dword [0x7147b4]
cmp word [eax + 2], 0
jne 0x5c84b2
mov eax, dword [0x7147b4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005ca8dc
mov eax, dword [0x7149f0]
cmp word [eax + 2], 0
jne 0x5c84cc
mov eax, dword [0x7149f0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005cacf4
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x4e9c60]
call fcn.004f0698
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5cb1a4
mov dl, 1
mov eax, dword [0x475c88]
call fcn.004084e0
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x475c88]
call fcn.004084e0
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x70], 0xff000018
mov dword [ebx + 0x8c], 0x1f4
mov byte [ebx + 0x90], 1
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x88], 0x9c4
mov byte [ebx + 0xbd], 1
mov byte [ebx + 0xd4], 1
mov dl, 1
mov eax, dword [0x4eecb8]
call fcn.004faac8
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x5c86bc
mov eax, dword [0x714514]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.004faf50
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5cb468
mov dl, 1
mov eax, dword [0x475c88]
call fcn.004084e0
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x714514]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00426948
test eax, eax
je 0x5c85df
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.004267a0
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0042692c
test eax, eax
je 0x5c85f7
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0xa4]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040af50
push ebx
push 0x5ca2b0
call fcn.005bcf34
mov dword [ebx + 0x198], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x71413c]
cmp byte [eax], 0
jne 0x5c8648
mov eax, ebx
call fcn.005c8884
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6e], 1
mov byte [ebx + 0x6f], 1
mov byte [ebx + 0xbe], 1
mov byte [ebx + 0xe9], 0
mov byte [ebx + 0xf4], 0
xor eax, eax
mov dword [ebx + 0xec], eax
mov byte [ebx + 0xeb], 0
xor eax, eax
mov dword [ebx + 0xc0], eax
mov eax, ebx
call fcn.005cb810
mov eax, ebx
call fcn.005cc34c
mov byte [ebx + 0x19e], 0
mov byte [ebx + 0xf5], 1
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5c86b3
call fcn.00408a9c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5c8bb4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x190]
test eax, eax
je 0x5c8c56
cmp dword [ebx + 0xac], 0
jne 0x5c8c50
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5c8af4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x5c8c50
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x5c8c16
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5c8c50
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 0xa8]
mov edx, esi
call fcn.0049f5ec
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5c8c25
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x5c8f98
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x71bc9c]
cmp dword [eax + 0x190], 0
je 0x5c9101
test bl, bl
jne 0x5c9054
cmp dword [esi + 0xb4], 0
jne 0x5c9049
mov eax, esi
call fcn.005cc19c
push eax
push 0x5c8e98
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x5c901a
mov eax, dword [0x71bc9c]
cmp byte [eax + 0xeb], 0
je 0x5c901a
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x5c8ffb
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5c901a
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5c9003
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5c9049
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.0049f5ec
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5c9029
inc dword [esi + 0xb4]
jmp 0x5c9101
cmp dword [esi + 0xb4], 0
jle 0x5c9101
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x5c9101
cmp dword [esi + 0x58], 0
je 0x5c90b6
mov eax, dword [0x71bc9c]
cmp byte [eax + 0xeb], 0
je 0x5c90b6
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x5c9097
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5c90b6
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5c909f
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5c90e5
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.0049f5ec
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5c90c5
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x5b93d4]
call fcn.0040d3a4
pop edi
pop esi
pop ebx
ret
Function at 0x5c9ebc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x5c9f19
cmp byte [ebx + 0xeb], 0
jne 0x5c9f19
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x190]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040a374
mov eax, dword [esi]
test eax, eax
je 0x5c9f06
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5c9f26
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a5cc
jmp 0x5c9f26
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a5cc
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5cba24
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x5cba95
mov eax, esi
call fcn.0051e3e8
test al, al
je 0x5cba95
mov eax, dword [ebx + 0x98]
call fcn.0051df80
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5cba95
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x160]
test al, al
je 0x5cba86
push 0
mov eax, dword [ebx + 0x98]
call fcn.0051df80
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x98]
xor edx, edx
call fcn.00514590
jmp 0x5cba95
mov edx, dword [ebx + 0x88]
mov cl, 1
mov eax, ebx
call fcn.005cb830
pop esi
pop ebx
ret
Function at 0x60c4c8
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov byte [ebp - 0xd], cl
mov esi, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x60c686
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x60c62f
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, esi
test ebx, ebx
je 0x60c509
sub ebx, 4
mov ebx, dword [ebx]
test ebx, ebx
je 0x60c51a
mov dl, 1
mov eax, esi
call fcn.00425d48
test al, al
jne 0x60c527
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x60c65c
lea edx, [ebp - 4]
mov eax, esi
call fcn.0042e308
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x60c6a0
call fcn.0040b42c
test eax, eax
jle 0x60c565
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00426540
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x60c55e
sub eax, 4
mov eax, dword [eax]
test eax, eax
setg al
jmp 0x60c567
xor eax, eax
test al, al
je 0x60c60a
xor ebx, ebx
inc ebx
push dword [ebp - 4]
push 0x60c6b0
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00425074
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 3
call fcn.0040b188
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.00425d48
test al, al
jne 0x60c571
mov eax, dword [ebp - 8]
call fcn.0040ae9c
push eax
mov eax, dword [ebp - 4]
call fcn.0040ae9c
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x60c5ed
cmp byte [ebp - 0xd], 0
je 0x60c5d7
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0060c320
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x609e4c]
call fcn.00614260
call fcn.004b11b8
jmp 0x60c625
cmp byte [ebp - 0xd], 0
je 0x60c5ff
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.0060c114
jmp 0x60c625
xor edx, edx
mov eax, esi
call fcn.00616818
jmp 0x60c625
cmp byte [ebp - 0xd], 0
je 0x60c61c
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.0060c114
jmp 0x60c625
xor edx, edx
mov eax, esi
call fcn.00616818
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x60c65c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60c68d
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0040a23c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a23c
pop eax
jmp eax
Function at 0x615d00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov esi, eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x615e22
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x615dd7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, esi
call fcn.0040ae9c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jbe 0x615dc8
mov eax, ebx
call fcn.00407294
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 0x14]
push eax
mov eax, esi
call fcn.0040ae9c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x615dcd
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x615e38
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x615dcd
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
xor edx, edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov edx, dword [ebp - 8]
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
xor edx, edx
or eax, dword [ebp - 8]
or edx, dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
jmp 0x615dcd
call fcn.00615e78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x615e04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x615e29
cmp dword [ebp - 0xc], 0
je 0x615e1f
mov eax, dword [ebp - 0xc]
call fcn.004072b0
pop eax
jmp eax

Function at 0x615f88
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov byte [ebp - 1], 0
xor eax, eax
mov dword [esi], eax
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x61609f
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
push ebp
push 0x61604f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, ebx
call fcn.00425cb0
test al, al
je 0x616045
push 0x20
mov ecx, ebx
mov dl, 1
mov eax, dword [0x47cc6c]
call fcn.004a498c
mov dword [ebp - 8], eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x24]
lea edx, [ebp - 0x48]
mov ecx, 0x40
mov eax, dword [ebp - 8]
call fcn.004a43f8
cmp word [ebp - 0x48], 0x5a4d
jne 0x616045
cmp dword [ebp - 0xc], 0
je 0x616045
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 8]
call fcn.004a3dd8
lea edx, [ebp - 0x140]
mov ecx, 0xf8
mov eax, dword [ebp - 8]
call fcn.004a43f8
cmp dword [ebp - 0x140], 0x4550
jne 0x616045
movzx eax, word [ebp - 0x13c]
mov dword [esi], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61607c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6160a6
cmp dword [ebp - 8], 0
je 0x61609c
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 8], edx
call fcn.00408510
pop eax
jmp eax
Function at 0x616c2c
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x616c35
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov esi, eax
xor eax, eax
push ebp
push 0x616de4
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
xor edx, edx
push ebp
push 0x616d8d
push dword fs:[edx]
mov dword fs:[edx], esp
test esi, esi
je 0x616c81
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x616c7a
sub eax, 4
mov eax, dword [eax]
test eax, eax
setg al
jmp 0x616c83
xor eax, eax
test al, al
je 0x616c9a
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x616c93
sub eax, 4
mov eax, dword [eax]
test eax, eax
setg bl
jmp 0x616c9c
xor ebx, ebx
test bl, bl
je 0x616d83
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.00425d48
test al, al
je 0x616d83
mov dl, 1
mov eax, dword [ebp - 0x10]
call fcn.00425d48
test al, al
jne 0x616cd4
mov eax, dword [ebp - 0x10]
call fcn.00426740
test al, al
je 0x616d83
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x616d66
lea ecx, [ebp - 0x20]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x20]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0042e2c0
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 4]
pop ecx
call fcn.0040b100
lea ecx, [ebp - 0x28]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x28]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
call fcn.0042e2c0
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 8]
pop ecx
call fcn.0040b100
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00425cb0
test al, al
je 0x616d65
mov eax, dword [ebp - 8]
call fcn.0040ae9c
push eax
mov eax, dword [ebp - 4]
call fcn.0040ae9c
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0
je 0x616d65
inc dword [ebp - 0x18]
inc ebx
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebx, eax
jl 0x616ce0
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 0x18]
sete byte [ebp - 0x11]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x616dba
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x616deb
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.0040a23c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a23c
pop eax
jmp eax

Function at 0x652d50
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
test ecx, ecx
jbe 0x652d81
dec ecx
test ecx, ecx
jb 0x652d81
inc ecx
xor ebx, ebx
movzx esi, byte [edx + ebx]
mov edi, dword [eax]
and edi, 0xff
xor esi, edi
mov esi, dword [esi*4 + 0x71c038]
mov edi, dword [eax]
shr edi, 8
xor esi, edi
mov dword [eax], esi
inc ebx
dec ecx
jne 0x652d5f
pop edi
pop esi
pop ebx
ret
Function at 0x654f78
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6550c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x711aa0]
mov edx, dword [eax]
call dword [edx]
xor eax, eax
push ebp
push 0x65509f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x711aac], 0
jne 0x655072
mov dword [0x711aac], 0x104
mov eax, dword [0x711aa8]
test eax, eax
je 0x654fee
cmp word [eax], 0
je 0x654fee
lea eax, [ebp - 4]
mov edx, dword [0x711aa8]
call fcn.0040aefc
mov eax, dword [ebp - 4]
sub eax, 0xa
movzx esi, word [eax]
jmp 0x654ff2
mov si, 2
movzx eax, si
imul dword [0x711aac]
call fcn.00407294
mov dword [0x711aa8], eax
mov eax, dword [0x711aa8]
push eax
mov eax, dword [0x711aac]
push eax
call sub.kernel32.dll_GetTempPathW
mov dword [0x711aac], eax
mov eax, ebx
mov ecx, dword [0x711aac]
mov edx, dword [0x711aa8]
call fcn.0040a374
mov eax, dword [ebx]
call fcn.00654f5c
mov eax, dword [ebx]
call fcn.00655d8c
test al, al
jne 0x655085
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x10]
mov eax, 0x654f54
call fcn.004106d8
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x41d180]
call fcn.0042ca4c
call fcn.004098d4
jmp 0x655085
mov eax, ebx
mov ecx, dword [0x711aac]
mov edx, dword [0x711aa8]
call fcn.0040a374
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6550a6
mov eax, dword [0x711aa0]
mov edx, dword [eax]
call dword [edx + 4]
pop eax
jmp eax
Function at 0x655a0c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
xor eax, eax
mov dword [esi], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 0x14]
push eax
mov eax, edi
call fcn.0040ae9c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
seta byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x655af4
mov eax, ebx
call fcn.00407294
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x655aed
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 0x14]
push eax
mov eax, edi
call fcn.0040ae9c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x655ad5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x655b04
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x655ad5
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov edx, eax
shr edx, 0x10
mov dword [esi], edx
and eax, 0xffff
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov edx, eax
shr edx, 0x10
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edx
and eax, 0xffff
mov edx, dword [ebp + 8]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x655af4
mov eax, dword [ebp - 0xc]
call fcn.004072b0
pop eax
jmp eax
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x655b08
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov eax, edi
mov edx, dword [0x714b4c]
mov edx, dword [edx]
call fcn.0040a5cc
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.0040ae9c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jbe 0x655be9
mov eax, ebx
call fcn.00407294
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x655be2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.0040ae9c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x655bca
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x655bf0
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x655b9b
mov ecx, dword [ebp - 8]
dec ecx
mov eax, edi
mov edx, dword [ebp - 0x10]
call fcn.0040a374
jmp 0x655bca
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x655c38
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x655bca
mov eax, dword [ebp - 0x14]
test byte [eax + 0x1c], 1
je 0x655bca
mov eax, edi
mov edx, 0x655c48
call fcn.0040a5cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x655be9
mov eax, dword [ebp - 4]
call fcn.004072b0
pop eax
jmp eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret