joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41925a
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push 0x220
mov eax, 0x45bf23
call fcn.0043f44a
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], edi
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov ecx, ebx
call fcn.00401a8d
mov dword [ebp - 0x228], esi
call fcn.0041895e
test al, al
je 0x41937f
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.00401b2a
push str.SOFTWAREMicrosoftWindowsCurrentVersion
lea ecx, [ebp - 0x224]
call fcn.00401518
mov byte [ebp - 4], 2
mov dword [ebp - 0x220], edi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x21c]
push eax
push 0x20119
push edi
push dword [ebp - 0x224]
mov dword [ebp - 0x21c], edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x41935f
lea ecx, [ebp - 0x220]
call fcn.0040912c
cmp eax, edi
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x220], ecx
jne 0x41935f
push str.ProgramFilesDir
lea eax, [ebp - 0x220]
push eax
lea esi, [ebp - 0x21c]
lea edi, [ebp - 0x218]
mov dword [ebp - 0x21c], 0x104
call fcn.00412ba2
test eax, eax
jne 0x41935f
mov eax, edi
push eax
lea ecx, [ebp - 0x21c]
call fcn.00401518
mov byte [ebp - 4], 4
push dword [eax]
push str._ProgramFiles_
push ebx
call fcn.0040d49a
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x21c]
call fcn.004089bb
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
call fcn.0040912c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.004089bb
xor edi, edi
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
je 0x419391
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4193b3
mov esi, dword [ebp + 8]
mov eax, 0x3fff
push eax
push eax
mov ecx, ebx
call fcn.0040d696
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
mov ecx, ebx
call fcn.004053d4
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004089bb
mov eax, ebx
call fcn.0043f4cd
ret
Function at 0x419b45
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0x64
mov eax, 0x45d706
call fcn.0043f3e1
mov esi, ecx
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
jne 0x419b68
mov eax, 0x80070057
jmp 0x419ca0
lea eax, [ebp - 0x14]
push eax
call fcn.0041950f
pop ecx
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x14]
mov eax, dword [edi - 0xc]
cmp eax, ebx
mov byte [ebp - 0xd], bl
jne 0x419ba8
lea edi, [ebp - 0x1c]
mov byte [ebp - 0xd], 1
call fcn.00419a11
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x14]
call fcn.00401b2a
mov byte [ebp - 4], bl
mov ecx, edi
call fcn.004089bb
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], ebx
je 0x419c6f
movzx ecx, byte [ebp - 0xd]
mov eax, dword [esi]
push ecx
push eax
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00419abb
mov byte [ebp - 4], 2
push 0x40
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0x70], 0x44
call fcn.0043efa0
add esp, 0x1c
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x44], 1
mov word [ebp - 0x40], 3
call fcn.00401a8d
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00418644
pop ecx
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
neg eax
sbb eax, eax
and eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040d5e4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x419c3b
xor esi, esi
jmp 0x419c46
call fcn.00403129
mov esi, eax
cmp esi, ebx
jl 0x419c56
push dword [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x2c]
call edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.004089bb
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.004089bb
jmp 0x419c92
mov esi, dword [esi]
push 3
push ebx
push ebx
push esi
push 0x4699d8
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x419c8b
xor esi, esi
jmp 0x419c92
call fcn.00409143
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004089bb
mov eax, esi
call fcn.0043f4b9
ret
Function at 0x41b528
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41b544
and dword [esi], eax
and dword [esi + 4], eax
jmp 0x41b5ba
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
push eax
mov dword [ebp - 8], eax
call fcn.00429fee
xor ebx, ebx
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
jne 0x41b567
mov dword [esi], ebx
jmp 0x41b5b7
push eax
push dword [ebp - 8]
xor edi, edi
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41b5ac
and dword [ebp - 8], ebx
and dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x466498
push dword [ebp - 0xc]
call sub.VERSION.dll_VerQueryValueW
cmp dword [ebp - 4], 0x34
jb 0x41b5ac
mov eax, dword [ebp - 8]
test eax, eax
je 0x41b5ac
mov ecx, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov ebx, ecx
push dword [ebp - 0xc]
call fcn.00429fe9
pop ecx
mov dword [esi], edi
mov dword [esi + 4], ebx
pop edi
mov eax, esi
pop ebx
leave
ret

Function at 0x41bd00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [eax + 0x38], 0
mov dl, byte [eax + 0x34]
push ebx
push esi
mov dword [ebp - 4], 0
mov ebx, 1
jle 0x41bd4b
movzx esi, dl
push edi
nop
mov ecx, dword [eax + 0x260]
mov edi, ecx
shr edi, 0x18
shl ecx, 8
xor edi, esi
xor ecx, dword [edi*4 + 0x47cee8]
mov dword [eax + 0x260], ecx
mov ecx, dword [ebp - 4]
add ecx, ebx
cmp ecx, dword [eax + 0x38]
mov dword [ebp - 4], ecx
jl 0x41bd20
pop edi
mov ecx, dword [eax + 0x34]
mov byte [eax + ecx + 0x58], bl
mov esi, dword [eax + 0x38]
mov ecx, esi
sub ecx, ebx
je 0x41bdd9
sub ecx, ebx
je 0x41bdbb
sub ecx, ebx
je 0x41bdaf
mov byte [esi + eax + 0x54], bl
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov dl, byte [eax + 0x38]
mov esi, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
sub dl, 4
mov byte [esi + ecx], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d1f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov ebx, eax
je 0x41d204
mov dword [edi], 0
test esi, esi
je 0x41d359
cmp dword [ebp + 0xc], 0
mov dword [esi + 0x13c4], 0
je 0x41d359
test ebx, ebx
jl 0x41d359
cmp byte [esi + 0x1390], 0
jne 0x41d24b
test edi, edi
je 0x41d23b
mov dword [edi], 0xffffffff
pop edi
mov dword [esi + 0x13c4], 0xffffffff
pop ebx
pop ebp
ret 8
mov eax, dword [esi]
push eax
call fcn.0043ec5f
add esp, 4
test eax, eax
je 0x41d274
test edi, edi
je 0x41d264
mov dword [edi], 0xfffffffa
pop edi
mov dword [esi + 0x13c4], 0xfffffffa
pop ebx
pop ebp
ret 8
test ebx, ebx
jne 0x41d292
test edi, edi
je 0x41d282
mov dword [edi], 0
pop edi
mov dword [esi + 0x13c4], 0
pop ebx
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x1398], ebx
lea eax, [esi + 0x1394]
lea ebx, [esi + 4]
xor edx, edx
mov dword [eax], ecx
mov dword [esi + 0x13a8], 0x1388
mov dword [esi + 0x13a4], ebx
call fcn.0041c150
cmp eax, 1
jne 0x41d32a
mov eax, dword [esi + 0x13a8]
cmp eax, 0x1388
jae 0x41d2fb
mov edx, dword [esi]
push edx
mov edi, 0x1388
sub edi, eax
push edi
push 1
push ebx
call fcn.0043d82b
add esp, 0x10
cmp edi, eax
jne 0x41d33c
mov eax, dword [esi]
push eax
call fcn.0043ec5f
add esp, 4
test eax, eax
jne 0x41d33c
mov edi, dword [ebp + 8]
cmp dword [esi + 0x1398], 0
je 0x41d278
mov dword [esi + 0x13a8], 0x1388
xor edx, edx
lea eax, [esi + 0x1394]
mov dword [esi + 0x13a4], ebx
call fcn.0041c150
cmp eax, 1
je 0x41d2c2
test edi, edi
je 0x41d330
mov dword [edi], eax
pop edi
mov dword [esi + 0x13c4], eax
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
test eax, eax
je 0x41d349
mov dword [eax], 0xfffffffa
pop edi
mov dword [esi + 0x13c4], 0xfffffffa
pop ebx
pop ebp
ret 8
test edi, edi
je 0x41d363
mov dword [edi], 0xfffffffe
test esi, esi
je 0x41d371
mov dword [esi + 0x13c4], 0xfffffffe
pop edi
pop ebx
pop ebp
ret 8
Function at 0x41d390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
test edi, edi
jne 0x41d3a8
mov eax, dword [ebp + 8]
test eax, eax
je 0x41d4ec
mov dword [eax], edi
pop ebp
ret 4
cmp byte [edi + 0x1390], 0
jne 0x41d3cc
mov eax, dword [ebp + 8]
test eax, eax
je 0x41d3be
mov dword [eax], 0xffffffff
mov dword [edi + 0x13c4], 0xffffffff
pop ebp
ret 4
mov eax, dword [edi]
push eax
call fcn.0043ec5f
add esp, 4
test eax, eax
je 0x41d3f6
mov eax, dword [ebp + 8]
test eax, eax
je 0x41d3e8
mov dword [eax], 0xfffffffa
mov dword [edi + 0x13c4], 0xfffffffa
pop ebp
ret 4
cmp dword [edi + 0x13c4], 0
push ebx
push esi
jne 0x41d467
lea eax, [edi + 4]
mov dword [edi + 0x13a4], eax
mov esi, 0x1388
mov edx, 2
lea eax, [edi + 0x1394]
mov dword [edi + 0x13a8], esi
call fcn.0041c150
mov ebx, eax
cmp ebx, 3
je 0x41d431
cmp ebx, 4
jne 0x41d4aa
mov eax, dword [edi + 0x13a8]
cmp eax, esi
jae 0x41d462
mov ecx, dword [edi]
push ecx
sub esi, eax
push esi
lea eax, [edi + 4]
push 1
push eax
call fcn.0043d82b
add esp, 0x10
cmp esi, eax
jne 0x41d48d
mov edx, dword [edi]
push edx
call fcn.0043ec5f
add esp, 4
test eax, eax
jne 0x41d48d
cmp ebx, 4
jne 0x41d401
mov eax, dword [edi]
push eax
call fcn.0043ec5f
add esp, 4
test eax, eax
jne 0x41d4bf
mov ecx, dword [edi]
push ecx
call fcn.0043d3d7
mov edx, dword [edi]
push edx
call fcn.0043ec5f
add esp, 8
test eax, eax
je 0x41d4bf
mov eax, dword [ebp + 8]
test eax, eax
je 0x41d49a
mov dword [eax], 0xfffffffa
pop esi
mov dword [edi + 0x13c4], 0xfffffffa
pop ebx
pop ebp
ret 4
mov eax, dword [ebp + 8]
test eax, eax
je 0x41d4b3
mov dword [eax], ebx
pop esi
mov dword [edi + 0x13c4], ebx
pop ebx
pop ebp
ret 4
mov eax, dword [ebp + 8]
test eax, eax
je 0x41d4cc
mov dword [eax], 0
lea esi, [edi + 0x1394]
mov dword [edi + 0x13c4], 0
call fcn.0041c230
push edi
call fcn.0043baf0
add esp, 4
pop esi
pop ebx
pop ebp
ret 4
Function at 0x41d640
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
cmp ebx, edx
je 0x41d64f
mov dword [ebx], edx
cmp edi, edx
je 0x41d81d
cmp eax, edx
mov dword [edi + 0x13c4], edx
je 0x41d81d
mov ecx, dword [ebp + 0xc]
cmp ecx, edx
jl 0x41d81d
cmp byte [edi + 0x1390], dl
je 0x41d693
cmp ebx, edx
je 0x41d682
mov dword [ebx], 0xffffffff
mov dword [edi + 0x13c4], 0xffffffff
xor eax, eax
pop ebx
pop ebp
ret 8
cmp ecx, edx
jne 0x41d6aa
cmp ebx, edx
je 0x41d69d
mov dword [ebx], edx
mov dword [edi + 0x13c4], edx
xor eax, eax
pop ebx
pop ebp
ret 8
mov dword [edi + 0x13a4], eax
mov eax, dword [edi]
push esi
push eax
mov dword [edi + 0x13a8], ecx
call fcn.0043ec5f
add esp, 4
test eax, eax
jne 0x41d771
lea ebx, [ebx]
cmp dword [edi + 0x1398], 0
jne 0x41d721
mov esi, dword [edi]
call fcn.0041d0e0
test al, al
jne 0x41d721
mov ecx, dword [edi]
push ecx
push 0x1388
lea esi, [edi + 4]
push 1
push esi
call fcn.0043eac6
mov edx, dword [edi]
push edx
mov ebx, eax
call fcn.0043ec5f
add esp, 0x14
test eax, eax
jne 0x41d7b1
mov dword [edi + 0x138c], ebx
mov dword [edi + 0x1398], ebx
mov ebx, dword [ebp + 8]
mov dword [edi + 0x1394], esi
lea eax, [edi + 0x1394]
call fcn.0041cf00
test eax, eax
jne 0x41d78d
mov esi, dword [edi]
call fcn.0041d0e0
test al, al
je 0x41d751
cmp dword [edi + 0x1398], 0
jne 0x41d751
cmp dword [edi + 0x13a8], 0
ja 0x41d7e4
cmp dword [edi + 0x13a8], 0
je 0x41d800
mov eax, dword [edi]
push eax
call fcn.0043ec5f
add esp, 4
test eax, eax
je 0x41d6d0
test ebx, ebx
je 0x41d77b
mov dword [ebx], 0xfffffffa
pop esi
mov dword [edi + 0x13c4], 0xfffffffa
xor eax, eax
pop ebx
pop ebp
ret 8
cmp eax, 4
jne 0x41d7d0
test ebx, ebx
je 0x41d798
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [edi + 0x13a8]
pop esi
mov dword [edi + 0x13c4], 4
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
test eax, eax
je 0x41d77b
mov dword [eax], 0xfffffffa
pop esi
mov dword [edi + 0x13c4], 0xfffffffa
xor eax, eax
pop ebx
pop ebp
ret 8
test ebx, ebx
je 0x41d7d6
mov dword [ebx], eax
pop esi
mov dword [edi + 0x13c4], eax
xor eax, eax
pop ebx
pop ebp
ret 8
test ebx, ebx
je 0x41d7ee
mov dword [ebx], 0xfffffff9
pop esi
mov dword [edi + 0x13c4], 0xfffffff9
xor eax, eax
pop ebx
pop ebp
ret 8
test ebx, ebx
je 0x41d80a
mov dword [ebx], 0
mov eax, dword [ebp + 0xc]
pop esi
mov dword [edi + 0x13c4], 0
pop ebx
pop ebp
ret 8
cmp ebx, edx
je 0x41d827
mov dword [ebx], 0xfffffffe
cmp edi, edx
je 0x41d835
mov dword [edi + 0x13c4], 0xfffffffe
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x423590
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x20]
mov ebx, dword [esi + 0x44]
cmp ebx, 0x2710
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x24]
push edi
mov edi, dword [esi + 0x268]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x30]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], edi
jge 0x4235d2
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push edi
push ebx
push edx
push eax
mov eax, ecx
jmp 0x4236a0
lea ecx, [ebx + 0x22]
test cl, 1
je 0x4235dd
add ecx, 1
add ecx, edx
cmp eax, 1
mov dword [ebp - 8], ecx
jge 0x4235ee
mov eax, 1
jmp 0x4235f8
cmp eax, 0x64
jle 0x4235f8
mov eax, 0x64
lea ecx, [eax - 1]
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebp - 8]
mov eax, ecx
imul eax, ebx
push edi
mov edi, dword [ebp - 0xc]
push ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
push edx
mov edx, dword [esi + 0x24]
push eax
lea ecx, [ebp - 4]
call fcn.00422dc0
mov edi, dword [ebp - 0x14]
add esp, 0x10
cmp edi, 3
jl 0x423672
test ebx, ebx
mov dword [ebp - 8], 1
je 0x423645
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 4]
sub esp, 8
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fidiv dword [ebp - 8]
fstp qword [esp]
push ebx
push eax
push str._______d_work___d_block__ratio__5.2f_n
call fcn.0043e5c5
add eax, 0x40
push eax
call fcn.0043eae1
add esp, 0x18
cmp dword [ebp - 4], 0
jge 0x4236a8
cmp edi, 2
jl 0x423693
push str.____too_repetitive__using_fallback_sorting_algorithm_n
call fcn.0043e5c5
add eax, 0x40
push eax
call fcn.0043eae1
add esp, 8
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov eax, dword [ebp - 0xc]
push edi
push ebx
push ecx
push edx
call fcn.00422050
add esp, 0x10
or ecx, 0xffffffff
xor eax, eax
cmp dword [esi + 0x44], eax
mov dword [esi + 0x1c], ecx
jle 0x4236cb
mov edx, dword [ebp - 0x10]
cmp dword [edx + eax*4], 0
je 0x4236c8
add eax, 1
cmp eax, dword [esi + 0x44]
jl 0x4236b5
jmp 0x4236cb
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x1c], ecx
jne 0x4236da
mov esi, 0x3eb
jmp 0x41ba70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4244d0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
cmp byte [eax + 0x29], 0
je 0x4244ea
mov eax, 1
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push edi
xor edi, edi
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 8]
push edx
push edi
push 0x2001f
push edi
push edi
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call ebx
cmp eax, edi
jne 0x424522
mov ecx, dword [ebp - 8]
xor eax, eax
mov dword [ebp - 4], ecx
cmp eax, edi
push esi
mov esi, eax
jne 0x424642
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.InstallerData
push ecx
mov dword [ebp - 0xc], edi
call ebx
test eax, eax
jne 0x424557
mov edi, dword [ebp - 0xc]
test eax, eax
mov esi, eax
jne 0x424637
lea edx, [ebp + 0xc]
push edx
call fcn.0040985c
push 0x7fff
lea eax, [ebp + 0xc]
push eax
call fcn.00409298
test al, al
jne 0x4245aa
lea ecx, [ebp + 0xc]
push ecx
call fcn.004165a0
test edi, edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x424592
push edi
call esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x42459c
push eax
call esi
pop esi
pop edi
mov eax, 0x8007000e
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 8]
cmp byte [edx + 0x28], 0
jne 0x42461c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x10], 0x7fff
mov ecx, dword [ebp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push ecx
push 0
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x42461c
mov edx, dword [ebp + 0xc]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4245c0
call fcn.00409143
mov esi, eax
lea eax, [ebp + 0xc]
push eax
call fcn.004165a0
test edi, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x424607
push edi
call ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x424659
push eax
call ebx
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
add ecx, 0x10
mov dword [ebp - 0x10], ecx
call fcn.00424fc0
test eax, eax
jne 0x424667
lea ecx, [ebp + 0xc]
push ecx
call fcn.004165a0
test edi, edi
je 0x424642
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.00409143
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x424659
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
push ecx
mov ebx, eax
call fcn.00425140
cmp dword [ebx + 0xc], 0
mov dword [ebp + 8], eax
je 0x4246a3
mov esi, dword [ebx + 4]
test esi, esi
mov ebx, dword [ebx]
je 0x4246ab
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x4246b5
cmp dword [ebp + 8], 0
jne 0x424664
jmp 0x42462e
push 0x80004005
call fcn.00401784
mov eax, esi
jmp 0x4245ea
Function at 0x4259d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 4]
push 0
push eax
push ecx
push 2
push 0
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 8], eax
jne 0x425a0a
call fcn.00403129
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
push 0
push ecx
mov dword [esi + 0x10], 0
mov edx, dword [esi + 0x10]
push edx
mov dword [esi + 4], ecx
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x14]
push ecx
push 4
push eax
mov dword [esi + 0x18], 4
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test eax, eax
mov dword [esi], eax
jne 0x425a5e
call fcn.00403129
mov edx, dword [esi + 8]
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4260b0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45af78
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x47b040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x64], ebx
jne 0x426177
mov esi, 1
mov dword [ebp - 0x14], esi
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
call fcn.00425e70
cmp dword [eax + 0x10], ebx
je 0x42612c
cmp dword [eax + 4], ebx
je 0x426113
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x28], ebx
jmp 0x42612c
cmp dword [eax + 8], ebx
je 0x42612c
mov esi, 3
mov dword [ebp - 0x14], esi
mov edi, dword [eax + 8]
mov dword [ebp - 0x18], edi
mov ebx, dword [eax + 0xc]
mov dword [ebp - 0x1c], ebx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x74]
push 0
push ebx
push edi
push esi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
test eax, eax
jne 0x426166
call fcn.00403129
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x64], eax
mov byte [ebp - 4], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42a76a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x459738
call fcn.0043f414
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00435210
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x42a7b5
call fcn.00435210
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x42a7c6
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x42a7d3
or eax, 0xffffffff
jmp 0x42a92f
mov ecx, esi
call fcn.0042a2b1
mov dword [ebp - 0x14], eax
call fcn.0042d3f6
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x42a851
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x42a851
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42a851
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0042a162
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x42a851
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x42a851
mov ecx, ebx
call fcn.0042ac3d
test eax, eax
je 0x42a851
push 0
mov ecx, ebx
call fcn.0042ac58
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0042ec7e
push dword [ebp - 0x14]
call fcn.0042d34e
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0042a572
xor edi, edi
cmp eax, edi
je 0x42a8ae
test byte [esi + 0x3c], 0x10
je 0x42a898
push 4
pop edi
mov ecx, esi
call fcn.0042ab24
test ax, 0x100
je 0x42a88e
push 5
pop edi
push edi
mov ecx, esi
call fcn.0042cf16
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x42a8ae
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0042acbf
or dword [ebp - 4], 0xffffffff
jmp 0x42a8d9
cmp dword [ebp - 0x28], edi
je 0x42a8e7
push 1
mov ecx, ebx
call fcn.0042ac58
cmp dword [ebp - 0x2c], edi
je 0x42a8f7
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x42a910
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x42a910
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0042a2eb
cmp dword [esi + 0x58], edi
je 0x42a92c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0043f4b9
ret