joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1016c610
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101d9590]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 8], 3
je 0x1016c7a5
mov eax, dword [esi]
xor edx, edx
test byte [esi + 8], 2
push edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], eax
je 0x1016c671
mov edi, dword [ebp + 0x10]
movzx edx, byte [esi + 9]
movzx eax, byte [edi]
mov ecx, edx
sub ecx, eax
movzx eax, byte [edi + 1]
mov dword [ebp - 0x14], ecx
mov ecx, edx
sub ecx, eax
movzx eax, byte [edi + 2]
sub edx, eax
push 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
pop edi
xor edx, edx
jmp 0x1016c684
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax + 3]
movzx ecx, byte [esi + 9]
sub ecx, eax
xor edi, edi
mov dword [ebp - 0x14], ecx
inc edi
test byte [esi + 8], 4
mov dword [ebp - 0x20], edi
je 0x1016c6a2
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax + 4]
movzx ecx, byte [esi + 9]
sub ecx, eax
mov dword [ebp + edi*4 - 0x14], ecx
inc edi
mov dword [ebp - 0x20], edi
mov eax, edx
test edi, edi
jle 0x1016c7a4
mov esi, edx
cmp dword [ebp + eax*4 - 0x14], edx
jg 0x1016c6ba
mov dword [ebp + eax*4 - 0x14], edx
jmp 0x1016c6bd
xor esi, esi
inc esi
inc eax
cmp eax, edi
jl 0x1016c6ae
test si, si
mov esi, dword [ebp + 8]
je 0x1016c7a4
movzx eax, byte [esi + 9]
dec eax
dec eax
je 0x1016c791
dec eax
dec eax
je 0x1016c765
sub eax, 4
je 0x1016c741
sub eax, 8
jne 0x1016c7a4
mov eax, dword [ebp - 0x1c]
imul eax, edi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1016c7a4
movzx esi, byte [ebx]
mov eax, edx
xor edx, edx
div dword [ebp - 0x20]
mov eax, 0x100
imul si, ax
movzx eax, byte [ebx + 1]
add si, ax
mov cx, word [ebp + edx*4 - 0x14]
mov edx, dword [ebp - 0x18]
shr si, cl
movzx ecx, si
mov eax, ecx
shr eax, 8
mov byte [ebx], al
mov byte [ebx + 1], cl
add ebx, 2
inc edx
mov dword [ebp - 0x18], edx
cmp edx, dword [ebp - 0x1c]
jb 0x1016c701
jmp 0x1016c7a4
mov esi, dword [ebp - 0x1c]
imul esi, edi
test esi, esi
je 0x1016c7a4
mov eax, edx
xor edx, edx
div edi
mov cl, byte [ebp + edx*4 - 0x14]
shr byte [ebx], cl
mov edx, dword [ebp - 0x18]
inc ebx
inc edx
mov dword [ebp - 0x18], edx
cmp edx, esi
jb 0x1016c74b
jmp 0x1016c7a4
mov ecx, dword [ebp - 0x14]
mov esi, dword [esi + 4]
mov edx, 0xf0
sar edx, cl
push 0xf
pop eax
sar eax, cl
and dl, 0xf0
or dl, al
test esi, esi
je 0x1016c7a4
mov al, byte [ebx]
mov cl, byte [ebp - 0x14]
shr al, cl
and al, dl
mov byte [ebx], al
inc ebx
dec esi
jne 0x1016c780
jmp 0x1016c7a4
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1016c7a4
mov al, byte [ebx]
shr al, 1
and al, 0x55
mov byte [ebx], al
inc ebx
dec ecx
jne 0x1016c798
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.101becf5
leave
ret 0xc
Function at 0x101ac30b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x101ac31e
xor eax, eax
jmp 0x101ac3f8
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x101ac3d9
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x100157e8]
movzx eax, byte [edx + 1]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x100157e8]
movzx eax, byte [edx + 2]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x100157e8]
movzx eax, byte [edx + 3]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x100157e8]
movzx eax, byte [edx + 4]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x100157e8]
movzx eax, byte [edx + 5]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x100157e8]
movzx eax, byte [edx + 6]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x100157e8]
movzx eax, byte [edx + 7]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x100157e8]
add edx, 8
sub esi, 8
dec edi
jne 0x101ac33c
pop edi
test esi, esi
je 0x101ac3f2
movzx eax, byte [edx]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x100157e8]
inc edx
dec esi
jne 0x101ac3dd
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret 0xc
Function at 0x101ace7f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x24]
mov dword [ebp - 0xc], ebx
lea ecx, [edi + 0x6c]
lea edx, [edi + 0x64]
mov esi, dword [edi + 0x34]
sub esi, dword [edx]
sub esi, dword [ecx]
jne 0x101aceb1
cmp dword [edx], esi
jne 0x101acebb
cmp dword [ecx], esi
jne 0x101acebb
mov esi, ebx
jmp 0x101acf37
cmp esi, 0xffffffff
jne 0x101acebb
push 0xfffffffffffffffe
pop esi
jmp 0x101acf37
mov eax, dword [edi + 0x24]
lea eax, [ebx + eax - 0x106]
cmp dword [edx], eax
jb 0x101acf37
mov ecx, dword [edi + 0x30]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call sub.msvcrt.dll_memcpy
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x68], ebx
sub dword [edi + 0x64], ebx
mov eax, dword [edi + 0x3c]
add esp, 0xc
sub dword [edi + 0x54], ebx
mov dword [ebp - 4], ecx
lea edx, [eax + ecx*2]
mov edi, ecx
sub edx, 2
movzx eax, word [edx]
mov ecx, eax
sub ecx, ebx
cmp eax, ebx
sbb eax, eax
not eax
and eax, ecx
dec edi
mov word [edx], ax
jne 0x101acef1
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x38]
mov dword [ebp - 4], ebx
lea edx, [eax + ebx*2]
mov edi, ebx
sub edx, 2
movzx eax, word [edx]
mov ecx, eax
sub ecx, ebx
cmp eax, ebx
sbb eax, eax
not eax
and eax, ecx
dec edi
mov word [edx], ax
jne 0x101acf17
mov edi, dword [ebp + 8]
add esi, ebx
lea ecx, [edi + 0x6c]
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x101acfd5
mov eax, dword [ecx]
add eax, dword [edi + 0x64]
mov ecx, dword [ebx + 4]
add eax, dword [edi + 0x30]
mov dword [ebp - 8], eax
mov eax, ecx
mov dword [ebp - 4], eax
cmp eax, esi
ja 0x101acf5c
mov esi, ecx
test esi, esi
je 0x101acf8f
mov eax, dword [ebx + 0x1c]
sub ecx, esi
mov dword [ebx + 4], ecx
cmp dword [eax + 0x18], 0
jne 0x101acf7c
push esi
push dword [ebx]
push dword [ebx + 0x30]
call fcn.101ae351
mov dword [ebx + 0x30], eax
push esi
push dword [ebx]
push dword [ebp - 8]
call sub.msvcrt.dll_memcpy
add dword [ebx], esi
add esp, 0xc
add dword [ebx + 8], esi
lea ecx, [edi + 0x6c]
add dword [ecx], esi
cmp dword [ecx], 3
jb 0x101acfbb
mov edx, dword [edi + 0x64]
mov eax, dword [edi + 0x30]
movzx esi, byte [edx + eax]
mov ecx, dword [edi + 0x50]
mov dword [edi + 0x40], esi
movzx eax, byte [edx + eax + 1]
shl esi, cl
lea ecx, [edi + 0x6c]
xor esi, eax
and esi, dword [edi + 0x4c]
mov dword [edi + 0x40], esi
cmp dword [ecx], 0x106
jae 0x101acfd5
mov eax, dword [edi]
cmp dword [eax + 4], 0
mov ebx, dword [ebp - 0xc]
lea edx, [edi + 0x64]
jne 0x101ace99
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x101bfa40
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp word [eax], 0x5a4d
je 0x101bfa53
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x101bfa6b
cmp word [ecx + 0x18], 0x10b
sete al
pop ebp
ret
Function at 0x101bfa80
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
movzx ebx, word [ecx + 6]
push esi
xor esi, esi
push edi
lea edx, [eax + ecx + 0x18]
test ebx, ebx
je 0x101bfabd
mov edi, dword [ebp + 0xc]
mov ecx, dword [edx + 0xc]
cmp edi, ecx
jb 0x101bfab5
mov eax, dword [edx + 8]
add eax, ecx
cmp edi, eax
jb 0x101bfac4
inc esi
add edx, 0x28
cmp esi, ebx
jb 0x101bfaa5
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x101c0f05
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
cmp dword [esi], 0
push edi
je 0x101c0f19
call fcn.101c1816
cmp dword [ebp + 0x14], 0
mov ebx, dword [ebp + 8]
je 0x101c0f48
cmp dword [ebp + 0x10], 0
je 0x101c0f3a
push 2
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x101c0f72
push 0xa
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
jmp 0x101c0f6c
cmp dword [ebp + 0x10], 0
je 0x101c0f60
push 2
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x101c0f72
push 0xa
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x101c0fa1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 8], eax
test eax, eax
je 0x101c0fa1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esi], eax
test eax, eax
je 0x101c0fa1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi + 4], eax
test eax, eax
je 0x101c0fa1
xor eax, eax
jmp 0x101c0fac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x101c1531
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x101d9590]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x9c], 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
jne 0x101c1562
mov eax, 0x8876086c
jmp 0x101c167b
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x101c1603
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
je 0x101c15e4
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
mov dword [ebp - 0xa0], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
pop ecx
mov dword [ebp - 0x9c], ebx
test ebx, ebx
jne 0x101c15c6
mov eax, 0x8007000e
jmp 0x101c167a
xor eax, eax
push eax
push eax
push dword [ebp - 0xa0]
push ebx
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, ebx
xor ebx, ebx
test ebx, ebx
je 0x101c1603
xor ebx, ebx
push ebx
push 0x10000000
push 3
push ebx
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x101c161c
xor ebx, ebx
push ebx
push 0x10000000
push 3
push ebx
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push dword [ebp - 0x9c]
mov dword [esi], eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
cmp dword [esi], 0xffffffff
pop ecx
je 0x101c166f
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x101c166f
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
je 0x101c166f
test eax, eax
je 0x101c168b
push ebx
push ebx
push ebx
push 4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
jne 0x101c168e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.101becf5
leave
ret 8
mov dword [esi + 8], ebx
xor eax, eax
jmp 0x101c167a
Function at 0x401a10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401a6b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401a6b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401a58
cmp esi, edx
jae 0x401a6b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x401a46
cmp esi, edx
jae 0x401a6b
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x402580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461128
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x47a040]
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 dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x20], 0
push 0x404
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.00439ab0
add esp, 0xc
mov dword [ebp - 0x424], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x430], esi
test esi, esi
jne 0x402639
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x430], eax
test esi, esi
jne 0x402639
call fcn.00401b00
mov edi, eax
jmp 0x402753
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40265c
call fcn.00401b00
jmp 0x402746
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
test ebx, ebx
jne 0x40267a
call fcn.00401b00
jmp 0x402746
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x428], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x40269b
mov edi, 0x8007000e
jmp 0x402748
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
jne 0x40278c
cmp eax, 0xffffffff
ja 0x40278c
cmp eax, 0x400
jbe 0x4026cc
push eax
lea ecx, [ebp - 0x424]
call fcn.004059e0
jmp 0x4026f2
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x4026f2
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
jne 0x402709
mov edi, 0x8007000e
jmp 0x402748
push edi
push dword [ebp - 0x424]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x402729
call fcn.00401b00
jmp 0x402746
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.00403370
mov edi, eax
test esi, esi
je 0x402753
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x40276c
lea ecx, [ebp - 0x424]
call fcn.00405800
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.004378e6
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00401920
int3
Function at 0x4086c0
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4618ad
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x47a040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call esi
test eax, eax
je 0x40879a
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call ebx
test eax, eax
jne 0x40879a
push edi
call esi
test eax, eax
je 0x40879a
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40872c
push edi
call ebx
test eax, eax
jne 0x40879a
call fcn.00404660
mov ecx, eax
test ecx, ecx
je 0x4087b1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
lea eax, [ebp - 0x10]
push 0x46f5c0
push eax
call fcn.00405a50
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
call ebx
push 1
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call edi
push 4
push 0
push esi
call edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40879a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
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 0x80004005
call fcn.00401920
int3
Function at 0x411880
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x47a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x424]
mov ecx, dword [ebp + 8]
push edx
push 0xf003f
push 0
push eax
push ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411a2a
push ebx
push esi
push edi
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 0
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x411961
push 0x20a
xor esi, esi
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.00439ab0
add esp, 0xc
cmp dword [ebp - 0x420], esi
jbe 0x411961
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
nop word [eax + eax]
push 0x105
lea eax, [ebp - 0x41c]
push eax
push esi
push dword [ebp - 0x424]
call ebx
test eax, eax
jne 0x411958
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x424]
call edi
inc esi
cmp esi, dword [ebp - 0x420]
jb 0x411930
push dword [ebp - 0x424]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push 0x20a
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], 0
push 0
push eax
call fcn.00439ab0
push dword [ebp - 0x428]
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004421e0
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.0043a02b
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x4119d1
lea eax, [ebp - 0x210]
push 0x2f
push eax
call fcn.0043a02b
mov esi, eax
add esp, 8
test esi, esi
je 0x411a27
mov eax, esi
lea ecx, [ebp - 0x210]
sub eax, ecx
and eax, 0xfffffffe
cmp eax, 0x20a
jae 0x411a3a
xor ecx, ecx
mov word [ebp + eax - 0x210], cx
lea eax, [ebp - 0x424]
push eax
push 0xf003f
push ecx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411a1f
lea eax, [esi + 2]
push eax
push dword [ebp - 0x424]
call edi
push dword [ebp - 0x424]
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004378e6
mov esp, ebp
pop ebp
ret 8
call fcn.00437adf
int3
Function at 0x412b40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462550
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x47a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x10], 0
jne 0x412bcb
push 0x10
lea eax, [ebp - 0x234]
push eax
call fcn.00412d50
push eax
mov ecx, edi
call fcn.00408060
mov ecx, dword [ebp - 0x220]
cmp ecx, 7
jbe 0x412bcb
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x412bc1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412d2c
push ecx
push edx
call fcn.00437f52
add esp, 8
cmp dword [edi + 0x28], 0
jne 0x412c28
push 2
lea eax, [ebp - 0x234]
push eax
call fcn.00412d50
push eax
lea ecx, [edi + 0x18]
call fcn.00408060
mov ecx, dword [ebp - 0x220]
cmp ecx, 7
jbe 0x412c28
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x412c1e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412d31
push ecx
push edx
call fcn.00437f52
add esp, 8
cmp dword [edi + 0x40], 0
jne 0x412cfe
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00439ab0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.00404660
mov ecx, eax
test ecx, ecx
je 0x412d36
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x46fae8
push str.k_LaunchUser_P
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push str.MicrosoftInternet_ExplorerQuic_sinnedTas_s
push eax
call fcn.00405a50
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
add esp, 0x10
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412cc0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x30]
call fcn.00407f50
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x412cfe
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi + 0x28], 0
mov eax, 0x80004005
je 0x412d11
xor ecx, ecx
cmp dword [edi + 0x10], ecx
cmovne eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004378e6
mov esp, ebp
pop ebp
ret
call fcn.00441fe0
call fcn.00441fe0
push 0x80004005
call fcn.00401920
int3
Function at 0x412d50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x47a040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
push eax
mov dword [ebp - 0x214], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x412e14
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0
push eax
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x412dfe
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00439ab0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x412de2
lea eax, [ebp - 0x210]
push eax
jmp 0x412e19
mov eax, dword [ebp - 0x214]
push dword [ebp - 0x218]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov dword [ebp - 0x218], 0
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x214], 0
push 0x46e470
mov ecx, esi
call fcn.00407280
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004378e6
mov esp, ebp
pop ebp
ret 8

Function at 0x412fa0
Capabilities:
Check os version
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x47a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
movups xmmword [ebp - 0x20], xmm0
xor esi, esi
mov dword [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x118
lea eax, [ebp - 0x138]
push esi
push eax
call fcn.00439ab0
add esp, 0xc
mov dword [ebp - 0x13c], 0x11c
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x138], 6
jae 0x41306b
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push ebx
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x41306b
mov ecx, 0x2710
cmp dword [ebp + 0x10], eax
jne 0x413083
cmp esi, 5
ja 0x413083
mov eax, 0xaaaaaaab
mul dword [ebp - 8]
shr edx, 1
cmp edx, 0x3e8
jae 0x413046
mov edx, 0x3e8
jmp 0x41304f
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
inc esi
push eax
push ebx
call edi
mov eax, dword [ebp - 0x1c]
mov ecx, 0x2710
cmp eax, 1
jne 0x413023
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004378e6
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004378e6
mov esp, ebp
pop ebp
ret 0x10