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

Disassembly:
push 0x220
mov eax, 0x45be03
call fcn.0043f2e6
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.0040897a
mov dword [ebp - 0x228], esi
call fcn.00418887
test al, al
je 0x4192a8
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.00401ada
push str.SOFTWAREMicrosoftWindowsCurrentVersion
lea ecx, [ebp - 0x224]
call fcn.004014ea
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 0x419288
lea ecx, [ebp - 0x220]
call fcn.00409100
cmp eax, edi
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x220], ecx
jne 0x419288
push str.ProgramFilesDir
lea eax, [ebp - 0x220]
push eax
lea esi, [ebp - 0x21c]
lea edi, [ebp - 0x218]
mov dword [ebp - 0x21c], 0x104
call fcn.00412b8e
test eax, eax
jne 0x419288
mov eax, edi
push eax
lea ecx, [ebp - 0x21c]
call fcn.004014ea
mov byte [ebp - 4], 4
push dword [eax]
push str._ProgramFiles_
push ebx
call fcn.0040d3ff
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x21c]
call fcn.00401b2a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
call fcn.00409100
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.00401b2a
xor edi, edi
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
je 0x4192ba
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4192dc
mov esi, dword [ebp + 8]
mov eax, 0x3fff
push eax
push eax
mov ecx, ebx
call fcn.0040d5fb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
mov ecx, ebx
call fcn.0040548c
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401b2a
mov eax, ebx
call fcn.0043f369
ret
Function at 0x419a6e
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0x64
mov eax, 0x45d5d6
call fcn.0043f27d
mov esi, ecx
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
jne 0x419a91
mov eax, 0x80070057
jmp 0x419bc9
lea eax, [ebp - 0x14]
push eax
call fcn.00419438
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 0x419ad1
lea edi, [ebp - 0x1c]
mov byte [ebp - 0xd], 1
call fcn.0041993a
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x14]
call fcn.00401ada
mov byte [ebp - 4], bl
mov ecx, edi
call fcn.00401b2a
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], ebx
je 0x419b98
movzx ecx, byte [ebp - 0xd]
mov eax, dword [esi]
push ecx
push eax
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.004199e4
mov byte [ebp - 4], 2
push 0x40
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0x70], 0x44
call fcn.0043f390
add esp, 0x1c
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x44], 1
mov word [ebp - 0x40], 3
call fcn.0040897a
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041856d
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.0040d549
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x419b64
xor esi, esi
jmp 0x419b6f
call fcn.00403147
mov esi, eax
cmp esi, ebx
jl 0x419b7f
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.00401b2a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00401b2a
jmp 0x419bbb
mov esi, dword [esi]
push 3
push ebx
push ebx
push esi
push 0x4699a0
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x419bb4
xor esi, esi
jmp 0x419bbb
call fcn.00409117
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401b2a
mov eax, esi
call fcn.0043f355
ret
Function at 0x41b44f
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 0x41b46b
and dword [esi], eax
and dword [esi + 4], eax
jmp 0x41b4e1
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
push eax
mov dword [ebp - 8], eax
call fcn.00429f0e
xor ebx, ebx
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
jne 0x41b48e
mov dword [esi], ebx
jmp 0x41b4de
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 0x41b4d3
and dword [ebp - 8], ebx
and dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x466490
push dword [ebp - 0xc]
call sub.VERSION.dll_VerQueryValueW
cmp dword [ebp - 4], 0x34
jb 0x41b4d3
mov eax, dword [ebp - 8]
test eax, eax
je 0x41b4d3
mov ecx, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov ebx, ecx
push dword [ebp - 0xc]
call fcn.00429f09
pop ecx
mov dword [esi], edi
mov dword [esi + 4], ebx
pop edi
mov eax, esi
pop ebx
leave
ret

Function at 0x41bc20
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 0x41bc6b
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 + 0x47ced8]
mov dword [eax + 0x260], ecx
mov ecx, dword [ebp - 4]
add ecx, ebx
cmp ecx, dword [eax + 0x38]
mov dword [ebp - 4], ecx
jl 0x41bc40
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 0x41bcf9
sub ecx, ebx
je 0x41bcdb
sub ecx, ebx
je 0x41bccf
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 0x41d110
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 0x41d124
mov dword [edi], 0
test esi, esi
je 0x41d279
cmp dword [ebp + 0xc], 0
mov dword [esi + 0x13c4], 0
je 0x41d279
test ebx, ebx
jl 0x41d279
cmp byte [esi + 0x1390], 0
jne 0x41d16b
test edi, edi
je 0x41d15b
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.0043eb7f
add esp, 4
test eax, eax
je 0x41d194
test edi, edi
je 0x41d184
mov dword [edi], 0xfffffffa
pop edi
mov dword [esi + 0x13c4], 0xfffffffa
pop ebx
pop ebp
ret 8
test ebx, ebx
jne 0x41d1b2
test edi, edi
je 0x41d1a2
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.0041c070
cmp eax, 1
jne 0x41d24a
mov eax, dword [esi + 0x13a8]
cmp eax, 0x1388
jae 0x41d21b
mov edx, dword [esi]
push edx
mov edi, 0x1388
sub edi, eax
push edi
push 1
push ebx
call fcn.0043d78d
add esp, 0x10
cmp edi, eax
jne 0x41d25c
mov eax, dword [esi]
push eax
call fcn.0043eb7f
add esp, 4
test eax, eax
jne 0x41d25c
mov edi, dword [ebp + 8]
cmp dword [esi + 0x1398], 0
je 0x41d198
mov dword [esi + 0x13a8], 0x1388
xor edx, edx
lea eax, [esi + 0x1394]
mov dword [esi + 0x13a4], ebx
call fcn.0041c070
cmp eax, 1
je 0x41d1e2
test edi, edi
je 0x41d250
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 0x41d269
mov dword [eax], 0xfffffffa
pop edi
mov dword [esi + 0x13c4], 0xfffffffa
pop ebx
pop ebp
ret 8
test edi, edi
je 0x41d283
mov dword [edi], 0xfffffffe
test esi, esi
je 0x41d291
mov dword [esi + 0x13c4], 0xfffffffe
pop edi
pop ebx
pop ebp
ret 8
Function at 0x41d2b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
test edi, edi
jne 0x41d2c8
mov eax, dword [ebp + 8]
test eax, eax
je 0x41d40c
mov dword [eax], edi
pop ebp
ret 4
cmp byte [edi + 0x1390], 0
jne 0x41d2ec
mov eax, dword [ebp + 8]
test eax, eax
je 0x41d2de
mov dword [eax], 0xffffffff
mov dword [edi + 0x13c4], 0xffffffff
pop ebp
ret 4
mov eax, dword [edi]
push eax
call fcn.0043eb7f
add esp, 4
test eax, eax
je 0x41d316
mov eax, dword [ebp + 8]
test eax, eax
je 0x41d308
mov dword [eax], 0xfffffffa
mov dword [edi + 0x13c4], 0xfffffffa
pop ebp
ret 4
cmp dword [edi + 0x13c4], 0
push ebx
push esi
jne 0x41d387
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.0041c070
mov ebx, eax
cmp ebx, 3
je 0x41d351
cmp ebx, 4
jne 0x41d3ca
mov eax, dword [edi + 0x13a8]
cmp eax, esi
jae 0x41d382
mov ecx, dword [edi]
push ecx
sub esi, eax
push esi
lea eax, [edi + 4]
push 1
push eax
call fcn.0043d78d
add esp, 0x10
cmp esi, eax
jne 0x41d3ad
mov edx, dword [edi]
push edx
call fcn.0043eb7f
add esp, 4
test eax, eax
jne 0x41d3ad
cmp ebx, 4
jne 0x41d321
mov eax, dword [edi]
push eax
call fcn.0043eb7f
add esp, 4
test eax, eax
jne 0x41d3df
mov ecx, dword [edi]
push ecx
call fcn.0043d339
mov edx, dword [edi]
push edx
call fcn.0043eb7f
add esp, 8
test eax, eax
je 0x41d3df
mov eax, dword [ebp + 8]
test eax, eax
je 0x41d3ba
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 0x41d3d3
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 0x41d3ec
mov dword [eax], 0
lea esi, [edi + 0x1394]
mov dword [edi + 0x13c4], 0
call fcn.0041c150
push edi
call fcn.0043b9bb
add esp, 4
pop esi
pop ebx
pop ebp
ret 4
Function at 0x41d560
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 0x41d56f
mov dword [ebx], edx
cmp edi, edx
je 0x41d73d
cmp eax, edx
mov dword [edi + 0x13c4], edx
je 0x41d73d
mov ecx, dword [ebp + 0xc]
cmp ecx, edx
jl 0x41d73d
cmp byte [edi + 0x1390], dl
je 0x41d5b3
cmp ebx, edx
je 0x41d5a2
mov dword [ebx], 0xffffffff
mov dword [edi + 0x13c4], 0xffffffff
xor eax, eax
pop ebx
pop ebp
ret 8
cmp ecx, edx
jne 0x41d5ca
cmp ebx, edx
je 0x41d5bd
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.0043eb7f
add esp, 4
test eax, eax
jne 0x41d691
lea ebx, [ebx]
cmp dword [edi + 0x1398], 0
jne 0x41d641
mov esi, dword [edi]
call fcn.0041d000
test al, al
jne 0x41d641
mov ecx, dword [edi]
push ecx
push 0x1388
lea esi, [edi + 4]
push 1
push esi
call fcn.0043e9e6
mov edx, dword [edi]
push edx
mov ebx, eax
call fcn.0043eb7f
add esp, 0x14
test eax, eax
jne 0x41d6d1
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.0041ce20
test eax, eax
jne 0x41d6ad
mov esi, dword [edi]
call fcn.0041d000
test al, al
je 0x41d671
cmp dword [edi + 0x1398], 0
jne 0x41d671
cmp dword [edi + 0x13a8], 0
ja 0x41d704
cmp dword [edi + 0x13a8], 0
je 0x41d720
mov eax, dword [edi]
push eax
call fcn.0043eb7f
add esp, 4
test eax, eax
je 0x41d5f0
test ebx, ebx
je 0x41d69b
mov dword [ebx], 0xfffffffa
pop esi
mov dword [edi + 0x13c4], 0xfffffffa
xor eax, eax
pop ebx
pop ebp
ret 8
cmp eax, 4
jne 0x41d6f0
test ebx, ebx
je 0x41d6b8
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 0x41d69b
mov dword [eax], 0xfffffffa
pop esi
mov dword [edi + 0x13c4], 0xfffffffa
xor eax, eax
pop ebx
pop ebp
ret 8
test ebx, ebx
je 0x41d6f6
mov dword [ebx], eax
pop esi
mov dword [edi + 0x13c4], eax
xor eax, eax
pop ebx
pop ebp
ret 8
test ebx, ebx
je 0x41d70e
mov dword [ebx], 0xfffffff9
pop esi
mov dword [edi + 0x13c4], 0xfffffff9
xor eax, eax
pop ebx
pop ebp
ret 8
test ebx, ebx
je 0x41d72a
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 0x41d747
mov dword [ebx], 0xfffffffe
cmp edi, edx
je 0x41d755
mov dword [edi + 0x13c4], 0xfffffffe
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x4234b0
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 0x4234f2
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push edi
push ebx
push edx
push eax
mov eax, ecx
jmp 0x4235c0
lea ecx, [ebx + 0x22]
test cl, 1
je 0x4234fd
add ecx, 1
add ecx, edx
cmp eax, 1
mov dword [ebp - 8], ecx
jge 0x42350e
mov eax, 1
jmp 0x423518
cmp eax, 0x64
jle 0x423518
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.00422ce0
mov edi, dword [ebp - 0x14]
add esp, 0x10
cmp edi, 3
jl 0x423592
test ebx, ebx
mov dword [ebp - 8], 1
je 0x423565
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.0043e4e5
add eax, 0x40
push eax
call fcn.0043ea01
add esp, 0x18
cmp dword [ebp - 4], 0
jge 0x4235c8
cmp edi, 2
jl 0x4235b3
push str.____too_repetitive__using_fallback_sorting_algorithm_n
call fcn.0043e4e5
add eax, 0x40
push eax
call fcn.0043ea01
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.00421f70
add esp, 0x10
or ecx, 0xffffffff
xor eax, eax
cmp dword [esi + 0x44], eax
mov dword [esi + 0x1c], ecx
jle 0x4235eb
mov edx, dword [ebp - 0x10]
cmp dword [edx + eax*4], 0
je 0x4235e8
add eax, 1
cmp eax, dword [esi + 0x44]
jl 0x4235d5
jmp 0x4235eb
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x1c], ecx
jne 0x4235fa
mov esi, 0x3eb
jmp 0x41b990
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4243f0
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 0x42440a
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 0x424442
mov ecx, dword [ebp - 8]
xor eax, eax
mov dword [ebp - 4], ecx
cmp eax, edi
push esi
mov esi, eax
jne 0x424562
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 0x424477
mov edi, dword [ebp - 0xc]
test eax, eax
mov esi, eax
jne 0x424557
lea edx, [ebp + 0xc]
push edx
call fcn.0040527c
push 0x7fff
lea eax, [ebp + 0xc]
push eax
call fcn.0040926c
test al, al
jne 0x4244ca
lea ecx, [ebp + 0xc]
push ecx
call fcn.0040283f
test edi, edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4244b2
push edi
call esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x4244bc
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 0x42453c
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 0x42453c
mov edx, dword [ebp + 0xc]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4244e0
call fcn.00409117
mov esi, eax
lea eax, [ebp + 0xc]
push eax
call fcn.0040283f
test edi, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x424527
push edi
call ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x424579
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.00424ee0
test eax, eax
jne 0x424587
lea ecx, [ebp + 0xc]
push ecx
call fcn.0040283f
test edi, edi
je 0x424562
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.00409117
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x424579
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.00425060
cmp dword [ebx + 0xc], 0
mov dword [ebp + 8], eax
je 0x4245c3
mov esi, dword [ebx + 4]
test esi, esi
mov ebx, dword [ebx]
je 0x4245cb
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 0x4245d5
cmp dword [ebp + 8], 0
jne 0x424584
jmp 0x42454e
push 0x80004005
call fcn.00401761
mov eax, esi
jmp 0x42450a
Function at 0x4258f0
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 0x42592a
call fcn.00403147
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 0x42597e
call fcn.00403147
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 0x425fd0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ae68
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x47b038]
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 0x426097
mov esi, 1
mov dword [ebp - 0x14], esi
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
call fcn.00425d90
cmp dword [eax + 0x10], ebx
je 0x42604c
cmp dword [eax + 4], ebx
je 0x426033
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x28], ebx
jmp 0x42604c
cmp dword [eax + 8], ebx
je 0x42604c
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 0x426086
call fcn.00403147
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 0x42a9a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x459693
call fcn.0043f2b0
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.00435133
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x42a9ef
call fcn.00435133
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 0x42aa00
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x42aa0d
or eax, 0xffffffff
jmp 0x42ab69
mov ecx, esi
call fcn.0042a4eb
mov dword [ebp - 0x14], eax
call fcn.0042d63e
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x42aa8b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x42aa8b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42aa8b
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0042a39c
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x42aa8b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x42aa8b
mov ecx, ebx
call fcn.0042ae77
test eax, eax
je 0x42aa8b
push 0
mov ecx, ebx
call fcn.0042ae92
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0042eec6
push dword [ebp - 0x14]
call fcn.0042d596
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0042a7ac
xor edi, edi
cmp eax, edi
je 0x42aae8
test byte [esi + 0x3c], 0x10
je 0x42aad2
push 4
pop edi
mov ecx, esi
call fcn.0042ad5e
test ax, 0x100
je 0x42aac8
push 5
pop edi
push edi
mov ecx, esi
call fcn.0042d15e
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x42aae8
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0042aef9
or dword [ebp - 4], 0xffffffff
jmp 0x42ab13
cmp dword [ebp - 0x28], edi
je 0x42ab21
push 1
mov ecx, ebx
call fcn.0042ae92
cmp dword [ebp - 0x2c], edi
je 0x42ab31
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x42ab4a
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x42ab4a
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.0042a525
cmp dword [esi + 0x58], edi
je 0x42ab66
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0043f355
ret