joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448da0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.0041eae0
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.0041eae0
add eax, 0x10
add esp, 8
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 5
jne 0x448de1
xor eax, eax
jmp 0x448df2
mov eax, dword [ebp + 0x14]
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0x200
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x448e14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x448e33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
pop ebp
ret 0x10
Function at 0x44a920
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3f
lea eax, [ebp - 0x83]
push 0
push eax
mov ebx, ecx
mov byte [ebp - 0x84], 0
call fcn.0051d250
push 0x3f
lea ecx, [ebp - 0xe3]
push 0
push ecx
mov byte [ebp - 0xe4], 0
call fcn.0051d250
push 0x3f
lea edx, [ebp - 0x43]
push 0
push edx
call fcn.0051d250
mov edi, dword [ebp + 8]
add esp, 0x24
xor esi, esi
jmp 0x44a980
mov eax, esi
shr eax, 3
movsx edx, byte [eax + edi]
mov ecx, esi
and ecx, 7
shl edx, cl
inc esi
sar edx, 7
and dl, 1
mov byte [ebp + esi - 0x85], dl
cmp esi, 0x40
jb 0x44a980
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0x84]
push ecx
mov ecx, ebx
call fcn.0042f6a0
mov ecx, 8
lea esi, [ebp - 0xe4]
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [ebp - 0xc4]
lea edi, [ebp - 0xa4]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0xc]
xor esi, esi
push edi
push esi
lea edx, [ebp - 0xa4]
push edx
lea eax, [ebp - 0x64]
push eax
mov ecx, ebx
call fcn.00443ac0
inc esi
cmp esi, 0x10
jl 0x44a9e0
mov ecx, 8
lea esi, [ebp - 0xa4]
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [ebp - 0x64]
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
lea edi, [ebx + 0x601]
nop
movsx edx, byte [ecx + 0x55fda0]
movzx eax, byte [ebp + edx - 0x45]
mov byte [edi + ecx - 1], al
movsx edx, byte [ecx + 0x55fda1]
movzx eax, byte [ebp + edx - 0x45]
mov byte [edi + ecx], al
movsx edx, byte [ecx + 0x55fda2]
movzx eax, byte [ebp + edx - 0x45]
mov byte [edi + ecx + 1], al
movsx edx, byte [ecx + 0x55fda3]
movzx eax, byte [ebp + edx - 0x45]
mov byte [edi + ecx + 2], al
add ecx, 4
cmp ecx, 0x40
jl 0x44aa20
mov ecx, 0xfffffa02
sub ecx, ebx
xor eax, eax
mov dword [ebp - 0xec], ecx
mov ecx, 0xfffff9ff
mov dword [ebx + 0x680], eax
sub ecx, ebx
mov dword [ebx + 0x684], eax
lea esi, [eax + 2]
mov eax, edi
mov dword [ebp - 0xe8], ecx
lea edx, [eax + ecx]
mov ecx, edx
shr ecx, 3
lea edi, [ecx + ebx + 0x680]
and edx, 7
mov ecx, 7
sub ecx, edx
movzx edx, byte [eax - 1]
shl dl, cl
lea ecx, [esi - 1]
shr ecx, 3
or byte [edi], dl
lea edi, [ecx + ebx + 0x680]
lea edx, [esi - 1]
and edx, 7
mov ecx, 7
sub ecx, edx
movzx edx, byte [eax]
shl dl, cl
mov ecx, esi
shr ecx, 3
or byte [edi], dl
lea edi, [ecx + ebx + 0x680]
mov edx, esi
and edx, 7
mov ecx, 7
sub ecx, edx
movzx edx, byte [eax + 1]
shl dl, cl
mov ecx, dword [ebp - 0xec]
add esi, 4
or byte [edi], dl
lea edx, [eax + ecx]
mov ecx, edx
shr ecx, 3
lea edi, [ecx + ebx + 0x680]
and edx, 7
mov ecx, 7
sub ecx, edx
movzx edx, byte [eax + 2]
shl dl, cl
mov ecx, dword [ebp - 0xe8]
add eax, 4
or byte [edi], dl
lea edx, [eax + ecx]
cmp edx, 0x40
jb 0x44aa94
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 8
Function at 0x44ab50
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3f
lea eax, [ebp - 0x83]
push 0
push eax
mov ebx, ecx
mov byte [ebp - 0x84], 0
call fcn.0051d250
push 0x3f
lea ecx, [ebp - 0xe3]
push 0
push ecx
mov byte [ebp - 0xe4], 0
call fcn.0051d250
push 0x3f
lea edx, [ebp - 0x43]
push 0
push edx
call fcn.0051d250
mov edi, dword [ebp + 8]
add esp, 0x24
xor esi, esi
jmp 0x44abb0
mov eax, esi
shr eax, 3
movsx edx, byte [eax + edi]
mov ecx, esi
and ecx, 7
shl edx, cl
inc esi
sar edx, 7
and dl, 1
mov byte [ebp + esi - 0x85], dl
cmp esi, 0x40
jb 0x44abb0
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0x84]
push ecx
mov ecx, ebx
call fcn.0042f6a0
mov ecx, 8
lea esi, [ebp - 0xe4]
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [ebp - 0xc4]
lea edi, [ebp - 0xa4]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0xc]
xor esi, esi
push edi
mov edx, 0xf
sub edx, esi
push edx
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x64]
push ecx
mov ecx, ebx
call fcn.00443ac0
inc esi
cmp esi, 0x10
jl 0x44ac10
mov ecx, 8
lea esi, [ebp - 0xa4]
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [ebp - 0x64]
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
lea edi, [ebx + 0x641]
jmp 0x44ac60
movsx edx, byte [ecx + 0x55fda0]
movzx eax, byte [ebp + edx - 0x45]
mov byte [edi + ecx - 1], al
movsx edx, byte [ecx + 0x55fda1]
movzx eax, byte [ebp + edx - 0x45]
mov byte [edi + ecx], al
movsx edx, byte [ecx + 0x55fda2]
movzx eax, byte [ebp + edx - 0x45]
mov byte [edi + ecx + 1], al
movsx edx, byte [ecx + 0x55fda3]
movzx eax, byte [ebp + edx - 0x45]
mov byte [edi + ecx + 2], al
add ecx, 4
cmp ecx, 0x40
jl 0x44ac60
xor eax, eax
mov ecx, 0xfffff9c2
sub ecx, ebx
mov edx, 0xfffff9bf
mov dword [ebx + 0x688], eax
sub edx, ebx
mov dword [ebx + 0x68c], eax
lea esi, [eax + 2]
mov eax, edi
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xe8], edx
jmp 0x44acdc
mov edx, dword [ebp - 0xe8]
add edx, eax
mov ecx, edx
shr ecx, 3
lea edi, [ecx + ebx + 0x688]
and edx, 7
mov ecx, 7
sub ecx, edx
movzx edx, byte [eax - 1]
shl dl, cl
lea ecx, [esi - 1]
shr ecx, 3
or byte [edi], dl
lea edi, [ecx + ebx + 0x688]
lea edx, [esi - 1]
and edx, 7
mov ecx, 7
sub ecx, edx
movzx edx, byte [eax]
shl dl, cl
mov ecx, esi
shr ecx, 3
or byte [edi], dl
lea edi, [ecx + ebx + 0x688]
mov edx, esi
and edx, 7
mov ecx, 7
sub ecx, edx
movzx edx, byte [eax + 1]
shl dl, cl
mov ecx, dword [ebp - 0xec]
add esi, 4
or byte [edi], dl
lea edx, [ecx + eax]
mov ecx, edx
shr ecx, 3
lea edi, [ecx + ebx + 0x688]
and edx, 7
mov ecx, 7
sub ecx, edx
movzx edx, byte [eax + 2]
shl dl, cl
mov ecx, dword [ebp - 0xe8]
add eax, 4
add ecx, eax
or byte [edi], dl
cmp ecx, 0x40
jb 0x44acd6
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 8
Function at 0x44e930
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
sub eax, 0x10
push edi
mov edi, ecx
mov dword [ebp - 4], 0x104
mov edx, dword [eax + 8]
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x104
or ecx, edx
jge 0x44e96a
push 0x104
mov ecx, esi
call fcn.0043a120
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [edi]
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x44e9a1
mov edx, dword [ebp - 4]
push edx
mov ecx, esi
call fcn.00439340
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
cmp dword [eax - 8], 0
jl 0x44e9c1
mov dword [eax - 0xc], 0
mov eax, dword [esi]
xor ecx, ecx
pop edi
mov word [eax], cx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00414840
int3
Function at 0x453c40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x599458]
mov edx, dword [eax + 0xc]
push ebx
push esi
xor ebx, ebx
push edi
mov ecx, 0x599458
mov byte [ebp - 1], bl
call edx
mov esi, eax
mov ecx, dword [esi + 8]
add esi, 0x10
mov eax, 1
sub eax, dword [esi - 4]
mov edi, 0x104
sub ecx, edi
or eax, ecx
mov dword [ebp - 8], esi
jge 0x453c87
push edi
lea ecx, [ebp - 8]
call fcn.0043a120
mov esi, dword [ebp - 8]
cmp dword [esi - 8], edi
jge 0x453c96
push 0x80070057
call fcn.00414840
push esi
push ebx
push ebx
push 0x24
xor edx, edx
mov dword [esi - 0xc], edi
push ebx
mov word [esi + 0x208], dx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0051f6df
add esp, 8
cmp eax, ebx
jl 0x453c8c
cmp eax, dword [esi - 8]
jg 0x453c8c
xor ecx, ecx
cmp edi, ebx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
jl 0x453d2a
push str._system32Sensapi.dll
lea ecx, [ebp - 8]
call fcn.004502c0
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x453d26
push str.IsNetworkAlive
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x453d1d
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], ebx
call eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x453d1d
cmp ebx, 1
jne 0x453d1d
mov byte [ebp - 1], bl
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x453d2a
mov byte [ebp - 1], 1
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop esi
pop ebx
test edx, edx
jg 0x453d49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x454a60
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x599458]
mov edx, dword [eax + 0xc]
push esi
push edi
mov ecx, 0x599458
call edx
add eax, 0x10
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push eax
lea ecx, [ebp - 4]
push str.._c:
push ecx
call fcn.0044ff30
mov edi, dword [ebp - 4]
add esp, 0xc
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x454add
call fcn.00414c40
test eax, eax
je 0x454adf
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x454ad5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov esi, eax
push 0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push 0x2d1080
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x454b23
test esi, esi
je 0x454b11
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x454ac9
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
test esi, esi
je 0x454b36
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454b52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x455b00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push eax
mov dword [ebp - 0xc], esi
mov byte [ebp - 1], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x455b46
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455b3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
push 0x64
lea ebx, [esi + 0x24]
push 0
push ebx
call fcn.0051d250
add esp, 0xc
lea edi, [esi + 4]
push edi
mov dword [ebx], 2
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x180]
mov edx, dword [ecx + 4]
add esi, 0x168
push edx
mov ecx, esi
call fcn.004447a0
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [eax], eax
mov esi, dword [esi + 0x18]
push edi
mov dword [esi + 8], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x455bab
mov byte [ebp - 1], 0
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
push 0x40000000
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x455c45
call fcn.00414c40
test eax, eax
jne 0x455c4c
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LockFile]
test eax, eax
je 0x455c4c
push 0
push 0
push 0
lea ecx, [ebp - 8]
call fcn.0041a9b0
test eax, eax
jne 0x455c28
push eax
lea eax, [ebp - 0x10]
push eax
push 0x64
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x455c16
call fcn.00414c40
test eax, eax
jne 0x455c28
push 0
push 0x64
lea ecx, [ebp - 8]
call fcn.0041aa10
mov bl, 1
test eax, eax
je 0x455c2b
mov bl, byte [ebp - 1]
cmp esi, 0xffffffff
je 0x455c3f
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
test bl, bl
jne 0x455c57
jmp 0x455c4f
mov esi, eax
mov dword [ebp - 8], esi
jmp 0x455bd5
mov bl, byte [ebp - 1]
mov ecx, dword [ebp - 0xc]
call fcn.00450170
test esi, esi
je 0x455c62
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455c81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x455c90
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x328]
push 0
push eax
call fcn.0051d250
add esp, 0xc
lea ecx, [ebp - 0x328]
push ecx
mov dword [ebp - 0x328], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x455cf9
cmp dword [ebp - 0x324], 6
jne 0x455cf9
cmp dword [ebp - 0x320], 1
jb 0x455cf9
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0x25
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [0x599458]
mov edx, dword [eax + 0xc]
mov ecx, 0x599458
call edx
add eax, 0x10
mov dword [ebp - 0x32c], eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x32c]
push 0x562040
push ecx
call fcn.0044ff30
add esp, 0xc
push 0xd
push str.kernel32.dll
lea ecx, [ebp - 0x32c]
call fcn.0044a1a0
mov esi, dword [ebp - 0x32c]
lea edx, [ebp - 0x32c]
push edx
lea eax, [ebp - 0x330]
push eax
push esi
mov dword [ebp - 0x330], 0
call fcn.0042d610
add esp, 0xc
test eax, eax
je 0x455dc3
mov eax, dword [ebp - 0x330]
mov ecx, eax
shr ecx, 0x10
cmp ecx, 6
jne 0x455dc3
cmp ax, 1
jb 0x455dc3
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x455daf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455ddf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
Function at 0x459400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 8]
push eax
xor edi, edi
push 0x20019
push edi
push str.SYSTEMCurrentControlSetServicesmssmbiosData
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4594d3
push esi
mov esi, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push edi
lea edx, [ebp - 8]
push edx
push edi
push str.SMBiosData
push esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x459503
cmp dword [ebp - 8], 3
jne 0x459503
mov eax, dword [ebp - 4]
cmp eax, 0x16
jb 0x459503
cmp eax, 0xffff
ja 0x4594c3
add eax, 8
push 0x5995a6
push eax
call fcn.0051f00a
mov esi, eax
add esp, 8
cmp esi, edi
je 0x4594c3
mov eax, dword [ebp - 4]
add eax, 8
push eax
push edi
push esi
call fcn.0051d250
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push esi
push str.SMBiosData
lea ecx, [ebp - 0x10]
call fcn.004152a0
test eax, eax
je 0x4594da
push esi
call fcn.0051d230
add esp, 4
lea ecx, [ebp - 0x10]
call fcn.00436120
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
push edx
push eax
push esi
call fcn.00459300
push esi
mov edi, eax
call fcn.0051d230
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.00436120
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
cmp esi, edi
je 0x45950e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x459b50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x214]
push ecx
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
xor eax, eax
mov dword [ebp - 0x214], 0
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push SysReAllocString
mov word [esi + 4], ax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x459c38
xor edx, edx
push 0x208
mov dword [ebp - 0x218], eax
push edx
lea eax, [ebp - 0x20e]
push eax
mov word [ebp - 0x210], dx
call fcn.0051d250
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp - 0x214]
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
push str.Progid
push ecx
mov dword [ebp - 0x21c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x459c2b
cmp dword [ebp - 0x218], 1
jne 0x459c2b
mov edx, dword [ebp - 0x21c]
and edx, 0xfffffffe
cmp edx, 0x208
jae 0x459c2b
lea ecx, [ebp - 0x210]
push ecx
mov ecx, esi
mov word [ebp - 8], ax
call fcn.00459860
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0051d23b
mov esp, ebp
pop ebp
ret

Function at 0x459c50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x210], 1
mov word [ebp - 0x20c], ax
call fcn.0051d250
add esp, 0xc
lea edx, [ebp - 0x214]
push edx
mov edx, dword [str.SOFTWAREYandexYandexBrowser]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
push ecx
push str.clid
push edx
push SysReAllocString
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x459cda
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x459ce3
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.0044fc50
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
Function at 0x459d20
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.0051d250
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x822]
push eax
mov word [ebp - 0x824], dx
call fcn.0051d250
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0x18
lea ecx, [ebp - 0x82c]
push ecx
mov ecx, dword [str.UninstallString]
lea edx, [ebp - 0x414]
push edx
mov edx, dword [str.SOFTWAREGoogleUpdateClientState8A69D345_D564_463c_AFF1_A69D9E530F96]
lea eax, [ebp - 0x828]
push eax
push ecx
push edx
push SysReAllocString
mov dword [ebp - 0x828], 1
mov dword [ebp - 0x82c], 0x208
call esi
lea eax, [ebp - 0x82c]
push eax
mov eax, dword [str.UninstallString]
lea ecx, [ebp - 0x824]
push ecx
mov ecx, dword [str.SOFTWAREGoogleUpdateClientState8A69D345_D564_463c_AFF1_A69D9E530F96]
lea edx, [ebp - 0x828]
push edx
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push 0x208
lea edx, [ebp - 0x20c]
push 0
push edx
call fcn.0051d250
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
call edi
test eax, eax
je 0x459e40
lea eax, [ebp - 0x20c]
lea esi, [ebp - 0x414]
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ecx, [ecx]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x459e86
movzx ecx, word [esi + eax]
test cx, cx
je 0x459e86
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x459e20
jmp 0x459e8a
lea eax, [ebp - 0x824]
push eax
call edi
test eax, eax
je 0x459f11
lea eax, [ebp - 0x20c]
lea esi, [ebp - 0x824]
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x459e86
movzx ecx, word [esi + eax]
test cx, cx
je 0x459e86
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x459e66
jmp 0x459e8a
test edx, edx
jne 0x459e8d
sub eax, 2
xor edx, edx
push 0x208
mov word [eax], dx
push edx
lea eax, [ebp - 0x61c]
push eax
call fcn.0051d250
add esp, 0xc
push str.......chrome.exe
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x61c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x459f11
lea eax, [ebp - 0x61c]
push eax
call edi
test eax, eax
je 0x459f11
lea eax, [ebp - 0x61c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x459ee0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x61c]
push ecx
mov ecx, ebx
call fcn.0044fc50
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret