joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402340
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
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4023b2
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x402381
cmp eax, 2
jne 0x40239c
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x4023ac
test eax, eax
je 0x4023a7
test al, 1
jne 0x40239c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4023ac
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4035a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58084b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5ed80c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.005239a8
push 4
mov dword [ebp - 4], 0
call fcn.0055b782
mov edi, eax
add esp, 4
test edi, edi
je 0x403620
call fcn.00523277
mov dword [edi], eax
call fcn.00523131
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00523066
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x403616
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0052308e
jmp 0x403622
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 0x404fd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ee78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5ed80c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x4050f1
cmp byte [edi + 0x49], bl
je 0x4050f1
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x4050e5
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x405045
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40505d
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x405086
dec eax
je 0x40508a
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x4050e0
jmp 0x4050ec
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40509a
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x4050c3
cmp ebx, 0x10
jae 0x4050a9
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0055c80d
add esp, 0x10
cmp esi, eax
jne 0x4050dd
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x4050e9
test esi, esi
jne 0x405051
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004043a0
jmp 0x40504b
lea ecx, [ebp - 0x2c]
call fcn.0054b8f0
xor al, al
jmp 0x4050f3
lea ecx, [ebp - 0x2c]
call fcn.0054b8f0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055bc32
mov esp, ebp
pop ebp
ret
Function at 0x4062e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f098
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5ed80c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
cmp dword [ebx], edi
jne 0x406338
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov ecx, esi
mov word [esi], ax
call fcn.00401b40
jmp 0x406435
mov esi, 0x40
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call fcn.00405a60
mov dword [ebp - 4], edi
mov ecx, dword [ebp + 0xc]
call fcn.00401120
mov edi, dword [ebp - 0x24]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [esi + esi]
push edi
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x406399
mov esi, eax
cmp eax, 0xea
jne 0x4063d4
mov esi, dword [ebp - 0x20]
sub esi, edi
sar esi, 1
add esi, esi
push esi
lea ecx, [ebp - 0x24]
call fcn.00405a60
jmp 0x406352
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x4063ad
cmp eax, 2
je 0x4063ad
mov esi, 0xd
jmp 0x4063d4
test edi, edi
je 0x4063d2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4063cd
test al, 1
jne 0x4063c6
shr eax, 1
cmp word [edi + eax*2 - 2], 0
je 0x4063d2
mov esi, 0xd
jmp 0x4063d4
xor ecx, ecx
mov word [edi], cx
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
cmp esi, ebx
mov esi, dword [ebp + 8]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
je 0x406403
mov eax, dword [ebp + 0x10]
push 0xffffffffffffffff
push ebx
xor edx, edx
push eax
mov ecx, esi
mov word [esi], dx
call fcn.00401b40
jmp 0x406428
xor ecx, ecx
mov eax, edi
mov word [esi], cx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406410
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, esi
call fcn.00401c40
cmp edi, ebx
je 0x406435
push edi
call fcn.0055ae44
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 0xc

Function at 0x407790
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5ed80c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
call fcn.00407200
cmp dword [eax + 0x14], 8
jb 0x4077b4
mov eax, dword [eax]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0xc], 8
jb 0x4077d1
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0055ae44
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055bc32
mov esp, ebp
pop ebp
ret
Function at 0x407df0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583c18
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5ed80c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.0055b67a
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push 0
lea edx, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov dword [ebp - 4], 0
mov byte [ecx], 0
call fcn.00401760
mov dword [esi], vtable.boost::filesystem2::basic_filesystem_error_class_boost::filesystem2::basic_path_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____struct_boost::filesystem2::wpath_traits__.0
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov edi, dword [edi + 0x34]
mov dword [esi + 0x34], edi
test edi, edi
je 0x407e7f
add edi, 4
mov ecx, 1
lock xadd dword [edi], ecx
mov eax, esi
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 0x409800
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5ed80c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push edi
or ecx, 0x2001f
push ecx
xor ebx, ebx
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x208], ebx
call fcn.004094a0
mov edi, eax
cmp edi, ebx
je 0x40987a
mov eax, dword [ebp - 0x210]
cmp eax, ebx
je 0x409865
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055bc32
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
mov dword [ebp - 0x214], pe_nt_image_headers32
call ebx
test eax, eax
jne 0x4098f8
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.00409800
mov edi, eax
test edi, edi
jne 0x409931
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push eax
push eax
push eax
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push edi
push edx
mov dword [ebp - 0x214], pe_nt_image_headers32
call ebx
test eax, eax
je 0x4098b0
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp eax, edi
je 0x409913
push eax
call ebx
mov dword [ebp - 0x210], edi
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x20c], edi
push eax
cmp ecx, edi
je 0x40995b
mov edx, dword [esi]
push edx
call fcn.00409410
jmp 0x409964
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x409865
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055bc32
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 0x210]
cmp eax, edi
je 0x409973
push eax
call ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055bc32
mov esp, ebp
pop ebp
ret 4
Function at 0x4105e0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580370
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5ed80c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
push 0x2001f
push reloc.WS2_32.dll_accept
push 0x5e6988
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], esi
call fcn.00407ea0
push 4
xor eax, eax
mov ebx, 7
push str.lang
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 1
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], ax
call fcn.00401c40
xor ecx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.004062e0
mov edi, 8
cmp dword [ebp - 0x18], edi
jb 0x410691
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0055ae44
add esp, 4
mov byte [ebp - 4], 6
cmp dword [ebp - 0x34], edi
jb 0x4106a6
mov eax, dword [ebp - 0x48]
push eax
call fcn.0055ae44
add esp, 4
mov edi, dword [ebp - 0x70]
xor ecx, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x54], esi
je 0x410706
push 4
xor edx, edx
push str.lang
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], dx
call fcn.00401c40
cmp edi, esi
je 0x4106f4
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4106e5
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x18], 8
jb 0x410706
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0055ae44
add esp, 4
cmp dword [ebp - 0x50], 8
jb 0x410718
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0055ae44
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], esi
mov word [ebp - 0x64], dx
cmp edi, esi
je 0x41072f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055bc32
mov esp, ebp
pop ebp
ret
Function at 0x411da0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, edx
je 0x411dd2
push esi
push edi
mov esi, eax
mov edi, eax
shl esi, 6
shr edi, 2
add esi, edi
movzx edi, word [ecx]
lea esi, [esi + edi - 0x61c88647]
add ecx, 2
xor eax, esi
cmp ecx, edx
jne 0x411db1
pop edi
pop esi
pop ebp
ret

Function at 0x412950
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58084b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5ed80c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.005239a8
push 4
mov dword [ebp - 4], 0
call fcn.0055b782
mov edi, eax
add esp, 4
test edi, edi
je 0x4129d0
call fcn.00523277
mov dword [edi], eax
call fcn.00523131
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00523066
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4129c6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0052308e
jmp 0x4129d2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 0x412b80
Capabilities:
Hash data using crc32b

Disassembly:
cmp byte [0x5ef1c0], 0
jne 0x412c39
push ebx
push esi
push edi
xor bl, bl
xor eax, eax
mov cl, 0x80
test bl, cl
je 0x412b9f
xor eax, 0x80000000
test eax, eax
jns 0x412bac
add eax, eax
xor eax, 0x4c11db7
jmp 0x412bae
add eax, eax
shr cl, 1
jne 0x412b96
mov edx, eax
xor esi, esi
xor eax, eax
test dl, 1
je 0x412bcd
mov ecx, 0x1f
sub ecx, eax
mov edi, 1
shl edi, cl
or esi, edi
inc eax
shr edx, 1
cmp eax, 0x20
jb 0x412bb8
xor cl, cl
test bl, 1
je 0x412bde
mov cl, 0x80
mov al, bl
shr al, 1
test al, 1
je 0x412be9
or cl, 0x40
shr al, 1
test al, 1
je 0x412bf2
or cl, 0x20
shr al, 1
test al, 1
je 0x412bfb
or cl, 0x10
shr al, 1
test al, 1
je 0x412c04
or cl, 8
shr al, 1
test al, 1
je 0x412c0d
or cl, 4
shr al, 1
test al, 1
je 0x412c16
or cl, 2
test al, 2
je 0x412c1d
or cl, 1
inc bl
movzx eax, cl
mov dword [eax*4 + 0x5eedc0], esi
jne 0x412b92
pop edi
pop esi
mov byte [0x5ef1c0], 1
pop ebx
ret
Function at 0x412d60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
xor ecx, ecx
cmp eax, edx
je 0x412d92
push esi
push edi
mov esi, ecx
mov edi, ecx
shl esi, 6
shr edi, 2
add esi, edi
movzx edi, word [eax]
lea esi, [esi + edi - 0x61c88647]
add eax, 2
xor ecx, esi
cmp eax, edx
jne 0x412d71
pop edi
pop esi
mov eax, 0x4e25
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add edx, eax
shr edx, 0x1e
imul edx, edx, 0x7fffd8ee
mov eax, ecx
sub eax, edx
add eax, 0x2710
pop ebp
ret
Function at 0x415dc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580d08
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5ed80c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 4
xor eax, eax
xor edi, edi
push str.GUID
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
call fcn.00401c40
mov dword [ebp - 4], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
push 0x2001f
push reloc.WS2_32.dll_accept
push 0x5e696c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00407ea0
mov ebx, dword [ebp - 0x40]
cmp ebx, edi
je 0x415e95
mov eax, 8
cmp dword [esi + 0x14], eax
jb 0x415e4b
mov esi, dword [esi]
cmp dword [ebp - 0x18], eax
jb 0x415e58
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
jmp 0x415e5e
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x30], edx
cmp esi, edi
jne 0x415e69
mov eax, 0xd
jmp 0x415e84
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x30]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push edi
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x34]
cmp dword [ebp - 0x18], 8
jb 0x415ea7
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0055ae44
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055bc32
mov esp, ebp
pop ebp
ret
Function at 0x416e40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580eb6
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5ed80c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], ebx
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
lea ecx, [ebp - 0x2c]
push esi
push ecx
call fcn.004021f0
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], ebx
mov ecx, eax
cmp edx, 0x10
jae 0x416eab
lea ecx, [ebp - 0x2c]
add ecx, dword [ebp - 0x1c]
cmp edx, 0x10
jae 0x416eb6
lea eax, [ebp - 0x2c]
cmp eax, ecx
je 0x416ed4
lea ebx, [ebx]
dec ecx
cmp eax, ecx
je 0x416ed4
mov bl, byte [ecx]
mov dl, byte [eax]
mov byte [eax], bl
inc eax
xor ebx, ebx
mov byte [ecx], dl
cmp eax, ecx
jne 0x416ec0
push str.mrprtnr
lea edx, [ebp - 0x80]
push edi
push edx
call fcn.0051d3b0
sub esp, 0x14
mov ecx, esp
mov dword [ebp - 0x8c], esp
push eax
lea edx, [ebp - 0x2c]
push edx
push ecx
mov byte [ebp - 4], 1
call fcn.00414920
add esp, 0xc
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.004f8b20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x64]
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.004f8de0
push eax
lea edx, [ebp - 0x48]
push edx
mov byte [ebp - 4], 5
call fcn.004148d0
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.0040bf00
cmp dword [ebp - 0x34], 0x10
jb 0x416f52
mov eax, dword [ebp - 0x48]
push eax
call fcn.0055ae44
add esp, 4
mov edi, 0x10
mov esi, 0xf
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x50], edi
jb 0x416f76
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0055ae44
add esp, 4
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
mov byte [ebp - 4], 1
call fcn.004f8b40
mov byte [ebp - 4], bl
cmp dword [ebp - 0x6c], edi
jb 0x416fa2
mov edx, dword [ebp - 0x80]
push edx
call fcn.0055ae44
add esp, 4
or edx, 0xffffffff
xor eax, eax
test dl, 1
je 0x416fbc
mov ecx, 0x1f
sub ecx, eax
mov esi, 1
shl esi, cl
or ebx, esi
inc eax
shr edx, 1
cmp eax, 0x20
jb 0x416fa7
call fcn.00412b80
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x416fd4
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
add ecx, eax
cmp eax, ecx
jae 0x416ff7
lea ecx, [ecx]
movzx edx, byte [eax]
movzx esi, bl
xor edx, esi
shr ebx, 8
xor ebx, dword [edx*4 + 0x5eedc0]
inc eax
cmp eax, ecx
jb 0x416fe0
mov esi, dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
not ebx
push esi
mov dword [ebp - 0x84], ebx
call fcn.00416670
add esp, 8
cmp dword [ebp - 0x18], edi
jb 0x417026
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0055ae44
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055bc32
mov esp, ebp
pop ebp
ret 8
Function at 0x417050
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580ef3
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x5ed80c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa0], ecx
lea ecx, [ebp - 0x94]
push ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x94], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x9c], eax
cmp eax, ebx
jne 0x4170d8
push 1
push str.mailru::install_params::parse_command_line
push str.install_params.cpp
push 0x3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x90]
call fcn.004053a0
push 0x5ccbe8
lea edx, [ebp - 0x90]
push edx
call fcn.0055b802
lea ecx, [ebp - 0x9c]
lea edx, [ebp - 0x98]
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0xa4], edx
xor edi, edi
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x94], ebx
jle 0x41719a
jmp 0x417109
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax + edi*4]
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x417121
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401c40
push 2
push ebx
push 0x59dc7c
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00411ca0
push eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00401550
mov esi, dword [ebp - 0xa0]
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
call fcn.00415ed0
test al, al
jne 0x417178
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
call fcn.00413a80
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], bl
jb 0x41718d
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0055ae44
add esp, 4
inc edi
cmp edi, dword [ebp - 0x94]
jl 0x417103
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055bc32
mov esp, ebp
pop ebp
ret 4