joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50a958
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x570be0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x570be0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x4282e4
cmp byte [ebx + 0x45], 0
je 0x4282e4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4281f0
xor al, al
jmp 0x4282e6
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x428230
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x428271
dec eax
je 0x428275
sub eax, 2
je 0x4282cb
xor bl, bl
jmp 0x4282cd
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x4282ac
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.004e9b0d
add esp, 0x10
cmp esi, eax
jne 0x42826d
cmp byte [ebx + 0x45], 0
je 0x4282cb
test esi, esi
jne 0x428230
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00427dc0
jmp 0x428230
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x4282e0
push dword [esp + 0x18]
call fcn.004e71fd
add esp, 4
mov al, bl
jmp 0x4282e6
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004e6e0a
mov esp, ebp
pop ebp
ret
Function at 0x428d00
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50aa97
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x570be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x54ae70
mov dword [edi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
lea esi, [edi + 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
push esi
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00427e70
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00428540
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x57a4a0]
mov dword [esi + 0x48], eax
mov dword [esi + 0x50], 0
mov dword [esi + 0x40], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x42ad70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42ade1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x42adaf
cmp eax, 2
jne 0x42adcb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x42addb
test ecx, ecx
je 0x42add6
test cl, 1
jne 0x42adcb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x42addb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x42adf0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ad08
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x570be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
push 0
mov dword [ebp - 4], 0
push 0
mov byte [ebp - 4], 1
push dword [ebp + 8]
xor bl, bl
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x42aec4
inc eax
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e7a06
add esp, 4
mov esi, eax
push dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x42aeb7
test esi, esi
jne 0x42ae8c
xor ecx, ecx
push ecx
mov ecx, dword [ebp - 0x1c]
push esi
call fcn.00420c80
jmp 0x42aeb5
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ae91
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x1c]
push esi
call fcn.00420c80
jmp 0x42aeb5
mov bl, 1
test esi, esi
je 0x42aec4
push esi
call fcn.004e7a01
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42aee8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ac50
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x570be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov dword [ebp - 4], 0
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x42b55b
xor bl, bl
jmp 0x42b602
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x10], 0
test bl, bl
je 0x42b58c
mov eax, dword [ebp + 8]
push 0
mov ecx, dword [eax - 0xc]
lea edx, [ebp - 0x10]
push edx
add ecx, ecx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x42b5eb
lea edx, [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0042b850
mov ebx, eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 0xc]
mov ecx, dword [ebx]
mov dword [ebp - 0x14], eax
cmp dword [ecx - 4], 1
jle 0x42b5bb
push dword [ecx - 0xc]
mov ecx, ebx
call fcn.0042c5a0
mov eax, dword [ebp - 0x14]
push 0
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42b5eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x42b623
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42cca0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ae08
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x570be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
xor bl, bl
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test esi, esi
jne 0x42cceb
xor ecx, ecx
jmp 0x42ccff
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ccf0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.00420c80
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42cd59
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42cd2d
cmp eax, 3
je 0x42cd2d
cmp eax, 0x15
jne 0x42cd59
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jle 0x42cd74
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add esi, 0xfffffff0
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42cd7c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x441a90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d909
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x570be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], 0
push eax
push str.iexplore.exe
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edx, dword [0x571ba4]
mov ecx, 0x571ba4
mov ebx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
test ebx, ebx
je 0x441b89
push ebx
call fcn.004e7a06
add esp, 4
mov edi, eax
push edi
push ebx
push dword [ebp - 0x10]
push str.iexplore.exe
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x441b80
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x54b14c
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x441b80
cmp dword [ebp - 0x14], 0
je 0x441b80
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0xfeef04bd
jne 0x441b80
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push esi
call fcn.00421320
add esp, 0x18
push edi
call fcn.004e7a01
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442290
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d850
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x570be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x24], 0
call fcn.004420d0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x442304
push 0x54ca80
mov ecx, edi
call fcn.004204a0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x4423f9
lea ecx, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
push 0x54ca80
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.004204a0
mov byte [ebp - 4], 1
test esi, esi
je 0x4423af
push esi
call fcn.004e7a06
add esp, 4
mov ebx, eax
push ebx
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4423a6
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x54b14c
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4423a6
cmp dword [ebp - 0x1c], 0
je 0x4423a6
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0xfeef04bd
jne 0x4423a6
movzx esi, word [eax + 0xa]
movzx edx, word [eax + 8]
movzx ecx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
push eax
push ecx
push edx
push esi
lea eax, [ebp - 0x14]
push str._d._d._d._d
push eax
call fcn.00421320
add esp, 0x18
push ebx
call fcn.004e7a01
add esp, 4
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00420750
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add eax, 0x10
add edx, 0xfffffff0
or esi, 0xffffffff
mov dword [edi], eax
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4423e2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x442403
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442b10
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d850
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x570be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x24], 0
call fcn.00442950
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x442b84
push 0x54ca80
mov ecx, edi
call fcn.004204a0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x442c79
lea ecx, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
push 0x54ca80
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.004204a0
mov byte [ebp - 4], 1
test esi, esi
je 0x442c2f
push esi
call fcn.004e7a06
add esp, 4
mov ebx, eax
push ebx
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x442c26
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x54b14c
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x442c26
cmp dword [ebp - 0x1c], 0
je 0x442c26
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0xfeef04bd
jne 0x442c26
movzx esi, word [eax + 0xa]
movzx edx, word [eax + 8]
movzx ecx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
push eax
push ecx
push edx
push esi
lea eax, [ebp - 0x14]
push str._d._d._d._d
push eax
call fcn.00421320
add esp, 0x18
push ebx
call fcn.004e7a01
add esp, 4
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00420750
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add eax, 0x10
add edx, 0xfffffff0
or esi, 0xffffffff
mov dword [edi], eax
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x442c62
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x442c83
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442de0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50da08
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x570be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], 0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edx, eax
shr edx, 8
movzx ecx, dl
movzx ebx, al
mov dword [ebp - 0x14], ecx
cmp eax, 0x80000000
jae 0x442e33
mov edi, eax
shr edi, 0x10
cmp ebx, 6
jb 0x442e58
cmp ecx, 2
jb 0x442e58
mov ecx, esi
call fcn.00443130
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push edi
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push ebx
push str._d._d___d_
push eax
mov dword [ebp - 4], 0
call fcn.00421320
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
add esp, 0x14
mov ecx, edi
call fcn.00420750
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x442eb8
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x443780
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x570be0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004ecdb0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jne 0x4437e2
cmp dword [ebp - 0x110], 2
jne 0x4437e2
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e6e0a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.004e6e0a
mov esp, ebp
pop ebp
ret
Function at 0x443800
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50dae8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x570be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
mov byte [ebp - 0xd], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
call fcn.004eb3ed
push eax
lea eax, [ebp - 0x20]
push 0x54cfbc
push eax
call fcn.00421320
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 0x2001f
push 0
push str.SOFTWARE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp - 0x20]
or ebx, 0xffffffff
test eax, eax
jne 0x4439d9
push dword [esi - 0xc]
push esi
push 1
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
jne 0x4438a8
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 0xd], 1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xd], 0
je 0x4439d9
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push ecx
mov ecx, esp
push str.ProgramFiles_x86_
mov byte [ebp - 4], 1
lea edi, [ebp - 0x14]
call fcn.004204a0
mov ecx, edi
call fcn.0042adf0
add esp, 4
test al, al
jne 0x443907
push ecx
mov ecx, esp
push str.ProgramFiles
call fcn.004204a0
mov ecx, edi
call fcn.0042adf0
add esp, 4
mov edi, dword [ebp - 0x14]
mov eax, dword [edi - 0xc]
test eax, eax
je 0x4439bc
lea ecx, [eax - 1]
test ecx, ecx
js 0x443a0c
cmp ecx, eax
jg 0x443a0c
cmp word [edi + ecx*2], 0x5c
je 0x44393e
push 1
push 0x54b14c
lea ecx, [ebp - 0x14]
call fcn.00428650
push dword [esi - 0xc]
lea ecx, [ebp - 0x14]
push esi
call fcn.00428650
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 1
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00425b40
mov edi, dword [ebp - 0x14]
neg al
sbb al, al
and byte [ebp - 0xd], al
lea ecx, [edi - 0x10]
mov byte [ebp - 0xe], 1
mov ebx, esp
call fcn.00420750
mov cl, byte [ebp - 0xe]
add eax, 0x10
lea edx, [ebp - 0x1c]
mov dword [ebx], eax
call fcn.00425650
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
or ebx, 0xffffffff
add esp, 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4439bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4439d9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4439f7
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0041fba0
int3
Function at 0x444a70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50dc12
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x570be0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x428], 0
mov dword [ebp - 4], 2
mov eax, dword [0x571ba4]
xorps xmm0, xmm0
mov ecx, 0x571ba4
mov dword [ebp - 0x448], 0
movq qword [ebp - 0x444], xmm0
movq qword [ebp - 0x43c], xmm0
movq qword [ebp - 0x434], xmm0
mov dword [ebp - 0x42c], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
mov dword [ebp - 0x428], 1
call fcn.004ecdb0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push eax
call fcn.004ecdb0
add esp, 0x18
cmp byte [ebp + 0x18], 0
mov eax, 1
mov ecx, 0x11
cmovne eax, ecx
mov dword [ebp - 0x438], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x448], esi
cmp dword [eax - 0xc], 0
je 0x444b9f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x444b9f
test al, 0x10
je 0x444b9f
push ecx
mov ecx, dword [ebp + 0x10]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.00420750
add eax, 0x10
mov dword [esi], eax
call fcn.004449b0
add esp, 4
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x424]
mov dword [ebp - 0x440], eax
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
test eax, eax
je 0x444be1
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x21c]
push eax
push 0x54a588
push edi
call fcn.00421320
add esp, 0xc
jmp 0x444be8
mov ecx, edi
call fcn.00420390
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x444c0b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ebx, dword [ebp + 0x14]
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x444c29
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e6e0a
mov esp, ebp
pop ebp
ret 0x14