joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418dd0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x418ed0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406e04
lea eax, [ebp - 4]
call fcn.00406f70
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407168
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x418eba
mov eax, ebx
call fcn.0040404c
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x418eb3
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407168
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x418e9d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x418ee4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x418e9d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418eba
mov eax, dword [ebp - 0x10]
call fcn.00404068
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418ed7
lea eax, [ebp - 4]
call fcn.00406ab0
ret

Function at 0x419564
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00406eb8
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040975c
mov edi, eax
cmp edi, 0x104
jbe 0x41950f
mov eax, edi
add eax, eax
call fcn.0040404c
mov esi, eax
jmp 0x419511
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040975c
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41954a
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x419534
mov eax, esp
cmp esi, eax
je 0x419557
mov eax, esi
call fcn.00404068
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x419590
cmp bl, 0
je 0x41958c
cmp bl, 0x41
jl 0x419587
cmp bl, 0x5a
jg 0x419587
or bl, 0x20
xor al, bl
inc esi
jmp 0x41956b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4194d0

Function at 0x419858
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.004071fc
add esp, 0x800
pop ebx
ret
Function at 0x41ab54
Capabilities:
Encode data using xor

Disassembly:
mov ecx, eax
mov eax, edx
dec eax
test eax, eax
jl 0x41ab65
inc eax
xor byte [ecx], 0xff
inc ecx
dec eax
jne 0x41ab5e
ret
Function at 0x41c564
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov edi, 0x441f84
xor esi, esi
push 0x2001
push edi
push ebx
call sub.kernel32.dll_GetEnvironmentVariableW
test eax, eax
je 0x41c587
mov esi, edi
jmp 0x41c6a6
mov eax, dword [0x436abc]
cmp byte [eax], 0
je 0x41c6a6
mov edx, 0x41c6ac
mov eax, ebx
call fcn.00414f38
test eax, eax
jne 0x41c5b5
mov eax, edi
xor edx, edx
call fcn.0041e5d4
mov esi, edi
jmp 0x41c6a6
mov edx, 0x41c6b4
mov eax, ebx
call fcn.00414f38
test eax, eax
jne 0x41c5df
push 0xa
push edi
mov eax, dword [0x436c38]
mov eax, dword [eax]
push eax
call sub.msvcrt.dll__ltow
add esp, 0xc
mov esi, edi
jmp 0x41c6a6
mov edx, 0x41c6cc
mov eax, ebx
call fcn.00414f38
test eax, eax
jne 0x41c603
push 0xa
push edi
push 2
call sub.msvcrt.dll__ultow
add esp, 0xc
mov esi, edi
jmp 0x41c6a6
mov edx, 0x41c6e8
mov eax, ebx
call fcn.00414f38
test eax, eax
jne 0x41c61f
call sub.kernel32.dll_GetCommandLineW_1
mov esi, eax
jmp 0x41c6a6
mov edx, 0x41c700
mov eax, ebx
call fcn.00414f38
test eax, eax
jne 0x41c64c
push 0x2001
mov ecx, edi
mov edx, 1
xor eax, eax
call fcn.0041b25c
mov word [edi + eax*2], 0
mov esi, edi
jmp 0x41c6a6
mov edx, 0x41c70c
mov eax, ebx
call fcn.00414f38
test eax, eax
jne 0x41c679
push 0x2001
mov ecx, edi
mov edx, 1
xor eax, eax
call fcn.0041b7e0
mov word [edi + eax*2], 0
mov esi, edi
jmp 0x41c6a6
mov edx, 0x41c718
mov eax, ebx
call fcn.00414f38
test eax, eax
jne 0x41c6a6
call fcn.0040440c
mov eax, 0x7fff
call fcn.00404434
push 0xa
push edi
push eax
call sub.msvcrt.dll__ultow
add esp, 0xc
mov esi, edi
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x41e088
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push esi
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [edi], eax
jmp 0x41e0e6
mov eax, esi
mov edx, dword [ebp - 0xc]
call dword [ebp - 4]
test al, al
je 0x41e0c9
mov eax, dword [0x436c5c]
xor edx, edx
mov dword [eax], edx
mov bl, 1
jmp 0x41e0eb
push esi
mov eax, dword [edi]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x41e0e6
mov eax, dword [edi]
push eax
call sub.kernel32.dll_FindClose_1
mov dword [edi], 0xffffffff
jmp 0x41e0eb
cmp dword [edi], 0xffffffff
jne 0x41e0b0
cmp dword [edi], 0xffffffff
je 0x41e130
mov eax, dword [0x436630]
inc eax
push eax
mov eax, 0x445f88
mov ecx, 1
mov edx, dword [0x41e044]
call fcn.00407e0c
add esp, 4
cmp dword [0x445f88], 0
je 0x41e12e
mov eax, dword [0x445f88]
mov edx, dword [0x436630]
mov ecx, dword [edi]
mov dword [eax + edx*4], ecx
inc dword [0x436630]
mov bl, 1
test bl, bl
jne 0x41e141
call sub.kernel32.dll_GetLastError_2
mov edx, dword [0x436c5c]
mov dword [edx], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41e2bc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], esi
push eax
call sub.msvcrt.dll__get_osfhandle
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
cmp esi, 0x4000
jbe 0x41e343
push 0
push 0
push 0x2000
mov eax, dword [0x436a84]
push eax
push 0x2000
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [0x436bfc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
add dword [ebp - 8], 0x4000
sub esi, 0x4000
push 0
push edi
push ebx
mov eax, dword [0x436a84]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x41e335
cmp ebx, dword [edi]
je 0x41e33b
mov byte [ebp - 1], 0
jmp 0x41e398
cmp esi, 0x4000
ja 0x41e2e4
test esi, esi
je 0x41e38f
push 0
push 0
push 0x2000
mov eax, dword [0x436a84]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [0x436bfc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
dec esi
push 0
push edi
push esi
mov eax, dword [0x436a84]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x41e389
cmp esi, dword [edi]
je 0x41e38f
mov byte [ebp - 1], 0
jmp 0x41e398
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
mov byte [ebp - 1], 1
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41e5d4
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, edx
mov esi, eax
test bx, bx
jne 0x41e5f1
push esi
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
xor eax, eax
jmp 0x41e668
mov word [esp], 0x3d
mov eax, ebx
mov edx, ebx
add edx, 0xffffff9f
sub dx, 0x1a
jae 0x41e60a
mov eax, ebx
and ax, 0xffdf
mov word [esp + 2], ax
mov word [esp + 4], 0x3a
mov word [esp + 6], 0
mov eax, esp
call fcn.0041c564
test eax, eax
jne 0x41e65d
mov eax, ebx
mov edx, ebx
add edx, 0xffffff9f
sub dx, 0x1a
jae 0x41e63b
mov eax, ebx
and ax, 0xffdf
mov word [esi], ax
add esi, 2
mov word [esi], 0x3a
add esi, 2
mov word [esi], 0x5c
add esi, 2
mov word [esi], 0
mov eax, 1
jmp 0x41e668
mov edx, eax
mov eax, esi
call fcn.0041a88c
xor eax, eax
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x41e7b8
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set current directory

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffde4
mov esi, edx
cmp word [eax], 0x5c
jne 0x41e7da
cmp word [eax + 2], 0x5c
jne 0x41e7da
mov eax, 0x23bd
jmp 0x41e9ed
call fcn.0041e790
mov ebx, eax
mov dword [esp], eax
test eax, eax
jne 0x41e7f2
mov eax, 8
jmp 0x41e9ed
mov eax, ebx
call fcn.0041a87c
mov edx, eax
mov eax, edx
cmp eax, 1
jl 0x41e817
cmp word [ebx + eax*2 - 2], 0x20
je 0x41e812
mov word [ebx + eax*2], 0
jmp 0x41e817
dec eax
test eax, eax
jne 0x41e802
lea eax, [esp + 0x10]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
movzx edx, word [esp + 0x10]
mov eax, edx
add edx, 0xffffff9f
sub dx, 0x1a
jae 0x41e83f
movzx eax, word [esp + 0x10]
and ax, 0xffdf
mov edi, eax
mov word [esp + 8], 0x3d
movzx eax, word [ebx]
call fcn.0041a994
test al, al
je 0x41e879
cmp word [ebx + 2], 0x3a
jne 0x41e879
movzx eax, word [ebx]
mov edx, eax
mov ecx, eax
add ecx, 0xffffff9f
sub cx, 0x1a
jae 0x41e872
mov edx, eax
and dx, 0xffdf
mov word [esp + 0xa], dx
jmp 0x41e87e
mov word [esp + 0xa], di
mov word [esp + 0xc], 0x3a
mov word [esp + 0xe], 0
mov word [esp + 0x216], 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x14]
push eax
push 0x104
push ebx
call sub.kernel32.dll_GetFullPathNameW
test eax, eax
jne 0x41e8b9
call sub.kernel32.dll_GetLastError_2
jmp 0x41e9ed
cmp eax, 0x104
jbe 0x41e8ca
mov eax, 0xce
jmp 0x41e9ed
cmp word [esp + 0x10], 0
je 0x41e8da
cmp word [esp + 0x12], 0x3a
je 0x41e8e4
mov eax, 3
jmp 0x41e9ed
cmp dword [esp + 4], 0
jne 0x41e900
lea eax, [esp + 0x10]
call fcn.0041a87c
add eax, eax
lea edx, [esp + 0x10]
add eax, edx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
cmp word [eax], 0
jne 0x41e92d
lea eax, [esp + 0x16]
cmp eax, dword [esp + 4]
jae 0x41e92d
mov eax, dword [esp + 4]
cmp word [eax - 2], 0x5c
jne 0x41e92d
sub dword [esp + 4], 2
mov eax, dword [esp + 4]
mov word [eax], 0
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x41e954
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41e954
cmp eax, 3
je 0x41e954
cmp eax, 0x7b
jne 0x41e9ed
mov eax, dword [0x436abc]
cmp byte [eax], 0
je 0x41e969
lea eax, [esp + 0x10]
xor edx, edx
call fcn.0041e670
cmp esi, 2
je 0x41e995
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x41e98e
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
jne 0x41e9ed
mov eax, 3
jmp 0x41e9ed
test eax, 0x410
je 0x41e9e8
test esi, esi
je 0x41e9a3
dec esi
jne 0x41e9b1
cmp di, word [esp + 0xa]
jne 0x41e9b1
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
je 0x41e9e1
lea edx, [esp + 0x10]
lea eax, [esp + 8]
call fcn.0041c814
test eax, eax
jne 0x41e9da
mov eax, dword [0x436d08]
xor edx, edx
call fcn.0041e5d4
mov eax, dword [esp]
call fcn.0042e3d0
xor eax, eax
jmp 0x41e9ed
mov eax, 8
jmp 0x41e9ed
call sub.kernel32.dll_GetLastError_2
jmp 0x41e9ed
mov eax, 0x10b
add esp, 0x21c
pop edi
pop esi
pop ebx
ret
Function at 0x41ea1c
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff994
mov edi, eax
mov eax, edi
call fcn.0042ff50
mov ebx, eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x25c]
push eax
push 0x208
push ebx
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
test esi, esi
je 0x41eb5e
lea ebx, [esp + 0x258]
mov edx, 0x41eb70
mov ecx, 4
mov eax, ebx
call fcn.00414f98
test eax, eax
jne 0x41eae4
add ebx, 8
mov dword [esp + 4], ebx
mov edx, ebx
mov eax, edi
call fcn.00415088
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x41eac5
cmp edi, dword [esp + 4]
jae 0x41eac5
mov eax, dword [esp + 4]
movzx ebx, word [eax]
mov eax, dword [esp + 4]
mov word [eax], 0
push edi
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
mov eax, dword [esp + 4]
mov word [eax], bx
cmp esi, 0xffffffff
je 0x41eabe
cmp esi, 1
sbb eax, eax
inc eax
jmp 0x41eb64
xor eax, eax
jmp 0x41eb64
push edi
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41eadd
cmp esi, 1
sbb eax, eax
inc eax
jmp 0x41eb64
xor eax, eax
jmp 0x41eb64
cmp dword [esp + 4], 0
je 0x41eaf5
mov eax, dword [esp + 4]
cmp word [eax], 0
jne 0x41eb08
push ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne al
mov esi, eax
and esi, 0x7f
jmp 0x41eb5e
push esp
lea ecx, [esp + 0xc]
mov edx, 0x37
mov eax, ebx
call fcn.0041e14c
mov esi, eax
and esi, 0x7f
mov eax, dword [esp]
call fcn.0041e1d0
test esi, esi
jne 0x41eb5e
lea eax, [ebx + 2]
cmp word [eax], 0x5c
je 0x41eb4e
lea eax, [ebx + 2]
cmp word [eax], 0x3a
jne 0x41eb5e
lea eax, [ebx + 4]
cmp word [eax], 0x5c
jne 0x41eb5e
lea eax, [ebx + 6]
cmp word [eax], 0
jne 0x41eb5e
push ebx
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
jbe 0x41eb5e
mov esi, 1
cmp esi, 1
sbb eax, eax
inc eax
add esp, 0x66c
pop edi
pop esi
pop ebx
ret
Function at 0x427cf8
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffbd0
mov esi, edx
mov edi, eax
xor ebx, ebx
test esi, esi
jne 0x427dc2
xor esi, esi
push 0x20a
lea eax, [esp + 8]
push eax
push esi
push edi
call sub.advapi32.dll_RegEnumKeyW
mov ebx, eax
test ebx, ebx
je 0x427d3c
cmp ebx, 0x103
jne 0x427e62
xor ebx, ebx
jmp 0x427e62
cmp word [esp + 4], 0x2e
jne 0x427da8
mov dword [esp], 0x20a
push esp
lea eax, [esp + 0x212]
push eax
lea eax, [esp + 0xc]
push eax
push edi
call sub.advapi32.dll_RegQueryValueW
mov ebx, eax
test ebx, ebx
jne 0x427e62
lea eax, [esp + 4]
mov dword [esp + 0x418], eax
mov byte [esp + 0x41c], 0xa
lea eax, [esp + 0x20e]
mov dword [esp + 0x420], eax
mov byte [esp + 0x424], 0xa
lea edx, [esp + 0x418]
mov eax, 0x427e74
mov ecx, 1
call fcn.0041ecd8
mov eax, dword [0x436bc4]
cmp dword [eax], 0
je 0x427dbc
mov ebp, 1
jmp 0x427e64
inc esi
jmp 0x427d12
xor edx, edx
mov eax, esi
call fcn.0042fde8
mov esi, eax
mov dx, 0x20
mov eax, esi
call fcn.0041a834
test eax, eax
je 0x427de1
mov word [eax], 0
mov dword [esp], 0x20a
push esp
lea eax, [esp + 0x212]
push eax
push esi
push edi
call sub.advapi32.dll_RegQueryValueW
mov ebx, eax
test ebx, ebx
jne 0x427e3b
mov dword [esp + 0x418], esi
mov byte [esp + 0x41c], 0xa
lea eax, [esp + 0x20e]
mov dword [esp + 0x420], eax
mov byte [esp + 0x424], 0xa
lea edx, [esp + 0x418]
mov eax, 0x427e74
mov ecx, 1
call fcn.0041ecd8
jmp 0x427e62
push 0
mov dword [esp + 0x42c], esi
mov byte [esp + 0x430], 0xa
lea ecx, [esp + 0x42c]
mov edx, 1
mov eax, 0x427e90
call fcn.0042f6b4
mov ebp, ebx
mov eax, ebp
add esp, 0x430
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x427eec
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe8
mov ebx, ecx
mov edi, edx
mov esi, eax
test ebx, ebx
je 0x427f02
cmp word [ebx], 0
jne 0x427f2f
push edi
push esi
call sub.advapi32.dll_RegDeleteKeyW
mov esi, eax
test esi, esi
je 0x427f8c
push 0
mov dword [esp + 4], edi
mov byte [esp + 8], 0xa
lea ecx, [esp + 4]
mov edx, 1
mov eax, 0x427fa4
call fcn.0042f6b4
jmp 0x427f8c
mov eax, ebx
call fcn.0041a87c
push eax
push ebx
push 1
push edi
push esi
call sub.advapi32.dll_RegSetValueW
mov esi, eax
test esi, esi
jne 0x427f6e
mov dword [esp + 8], edi
mov byte [esp + 0xc], 0xa
mov dword [esp + 0x10], ebx
mov byte [esp + 0x14], 0xa
lea edx, [esp + 8]
mov eax, 0x428000
mov ecx, 1
call fcn.0041ecd8
jmp 0x427f8c
push 0
mov dword [esp + 4], edi
mov byte [esp + 8], 0xa
lea ecx, [esp + 4]
mov edx, 1
mov eax, 0x42801c
call fcn.0042f6b4
mov eax, esi
add esp, 0x18
pop edi
pop esi
pop ebx
ret
Function at 0x428268
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffbc4
mov esi, edx
mov edi, eax
xor ebx, ebx
test esi, esi
jne 0x4283a4
xor esi, esi
push 0x20a
lea eax, [esp + 0x14]
push eax
push esi
push edi
call sub.advapi32.dll_RegEnumKeyW
mov ebx, eax
test ebx, ebx
je 0x4282ac
cmp ebx, 0x103
jne 0x428505
xor ebx, ebx
jmp 0x428505
cmp word [esp + 0x10], 0x2e
je 0x42838a
lea eax, [esp + 0x10]
call fcn.0041a87c
mov dword [esp + 8], eax
mov edx, 0x428514
lea eax, [esp + 0x10]
call fcn.0041a8a0
mov edx, 0x42853c
lea eax, [esp + 0x21a]
call fcn.0041a88c
push esp
lea eax, [esp + 0x14]
push eax
push edi
call sub.advapi32.dll_RegOpenKeyW
mov ebx, eax
test ebx, ebx
jne 0x428337
mov eax, dword [esp + 8]
mov word [esp + eax*2 + 0x10], 0
mov dword [esp + 4], 0x20a
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x21e]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 0x42857c
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov ebx, eax
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
jne 0x42838a
mov eax, dword [esp + 4]
shr eax, 1
mov word [esp + eax*2 + 0x218], 0
lea eax, [esp + 0x10]
mov dword [esp + 0x424], eax
mov byte [esp + 0x428], 0xa
lea eax, [esp + 0x21a]
mov dword [esp + 0x42c], eax
mov byte [esp + 0x430], 0xa
lea edx, [esp + 0x424]
mov eax, 0x428580
mov ecx, 1
call fcn.0041ecd8
mov eax, dword [0x436bc4]
cmp dword [eax], 0
je 0x42839e
mov ebp, 1
jmp 0x428507
inc esi
jmp 0x428282
cmp word [esi], 0x2e
jne 0x4283db
push 0
mov dword [esp + 0x438], esi
mov byte [esp + 0x43c], 0xa
lea ecx, [esp + 0x438]
mov edx, 1
mov eax, 0x42859c
call fcn.0042f6b4
mov ebp, 0x7b
jmp 0x428507
xor edx, edx
mov eax, esi
call fcn.0042fde8
mov esi, eax
mov dx, 0x20
mov eax, esi
call fcn.0041a834
test eax, eax
je 0x4283fa
mov word [eax], 0
push 0
mov dword [esp + 0x438], esi
mov byte [esp + 0x43c], 0xa
lea ecx, [esp + 0x438]
mov edx, 0x428620
lea eax, [esp + 0x14]
call fcn.0041a938
push esp
lea eax, [esp + 0x14]
push eax
push edi
call sub.advapi32.dll_RegOpenKeyW
mov ebx, eax
test ebx, ebx
je 0x428460
push 0
mov dword [esp + 0x438], esi
mov byte [esp + 0x43c], 0xa
lea ecx, [esp + 0x438]
mov edx, 1
mov eax, 0x42859c
call fcn.0042f6b4
mov ebp, ebx
jmp 0x428507
mov dword [esp + 4], 0x20a
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x21e]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 0x42857c
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov ebx, eax
test ebx, ebx
jne 0x4284de
mov eax, dword [esp + 4]
shr eax, 1
mov word [esp + eax*2 + 0x218], 0
mov dword [esp + 0x424], esi
mov byte [esp + 0x428], 0xa
lea eax, [esp + 0x21a]
mov dword [esp + 0x42c], eax
mov byte [esp + 0x430], 0xa
lea edx, [esp + 0x424]
mov eax, 0x428580
mov ecx, 1
call fcn.0041ecd8
jmp 0x428505
push 0
mov dword [esp + 0x438], esi
mov byte [esp + 0x43c], 0xa
lea ecx, [esp + 0x438]
mov edx, 1
mov eax, 0x42859c
call fcn.0042f6b4
mov ebp, ebx
mov eax, ebp
add esp, 0x43c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42864c
Capabilities:
Delete registry key
Persist via default file association registry key
Set registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdc4
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
push 0
mov eax, dword [esp + 8]
mov dword [esp + 0x228], eax
mov byte [esp + 0x22c], 0xa
lea ecx, [esp + 0x228]
mov edx, 0x428890
lea eax, [esp + 0x1c]
call fcn.0041a938
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 8]
push eax
call sub.advapi32.dll_RegOpenKeyW
mov edi, eax
test edi, edi
je 0x428787
cmp dword [esp + 8], 0
je 0x4286ba
mov eax, dword [esp + 8]
cmp word [eax], 0
jne 0x4286ee
push 0
mov eax, dword [esp + 8]
mov dword [esp + 0x228], eax
mov byte [esp + 0x22c], 0xa
lea ecx, [esp + 0x228]
mov edx, 1
mov eax, 0x4288c8
call fcn.0042f6b4
mov dword [esp + 0xc], edi
jmp 0x428880
lea ebx, [esp + 0x18]
jmp 0x4286f7
add ebx, 2
movzx esi, word [ebx]
test si, si
je 0x428705
cmp si, 0x5c
jne 0x4286f4
movzx ebp, word [ebx]
mov word [ebx], 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 0x2000000
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x20]
push eax
call sub.advapi32.dll_RegCreateKeyExW
mov edi, eax
test edi, edi
je 0x42876d
push 0
mov eax, dword [esp + 8]
mov dword [esp + 0x228], eax
mov byte [esp + 0x22c], 0xa
lea ecx, [esp + 0x228]
mov edx, 1
mov eax, 0x4288c8
call fcn.0042f6b4
mov dword [esp + 0xc], edi
jmp 0x428880
test bp, bp
je 0x428787
mov word [ebx], bp
add ebx, 2
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4286f7
cmp dword [esp + 8], 0
je 0x428798
mov eax, dword [esp + 8]
cmp word [eax], 0
jne 0x4287de
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edi, eax
test edi, edi
je 0x428872
push 0
mov eax, dword [esp + 8]
mov dword [esp + 0x228], eax
mov byte [esp + 0x22c], 0xa
lea ecx, [esp + 0x228]
mov edx, 1
mov eax, 0x4288c8
call fcn.0042f6b4
jmp 0x428872
mov eax, dword [esp + 8]
call fcn.0041a87c
inc eax
add eax, eax
push eax
mov eax, dword [esp + 0xc]
push eax
push 2
push 0
push 0x42894c
mov eax, dword [esp + 0x24]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edi, eax
test edi, edi
jne 0x428847
mov eax, dword [esp + 4]
mov dword [esp + 0x22c], eax
mov byte [esp + 0x230], 0xa
mov eax, dword [esp + 8]
mov dword [esp + 0x234], eax
mov byte [esp + 0x238], 0xa
lea edx, [esp + 0x22c]
mov eax, 0x428950
mov ecx, 1
call fcn.0041ecd8
jmp 0x428872
push 0
mov eax, dword [esp + 8]
mov dword [esp + 0x228], eax
mov byte [esp + 0x22c], 0xa
lea ecx, [esp + 0x228]
mov edx, 1
mov eax, 0x42896c
call fcn.0042f6b4
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0xc]
add esp, 0x23c
pop ebp
pop edi
pop esi
pop ebx
ret