joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000209a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x138]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
movzx ecx, word [ecx + 0x46]
cmp eax, ecx
jae 0x10002109
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x24]
and eax, 0x20
cmp eax, 0
je 0x10002044
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x24]
or ecx, 0x60000000
mov dword [eax + 0x24], ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x24]
shr eax, 0x1d
mov ecx, eax
sub ecx, 6
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
ja 0x1000209f
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax*4 + 0x1004c260]
jmp ecx
mov dword [ebp - 0x1c], 0x10
jmp 0x100020a6
mov dword [ebp - 0x1c], 2
jmp 0x100020a6
mov dword [ebp - 0x1c], 0x20
jmp 0x100020a6
mov dword [ebp - 0x1c], 4
jmp 0x100020a6
jmp 0x1000209f
mov dword [ebp - 0x1c], 0x40
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x144]
mov esi, dword [ebp - 0x14]
add edx, dword [esi + 0xc]
mov esi, esp
lea edi, [ebp - 0x1c]
mov dword [esi + 0xc], edi
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
mov dword [esi], edx
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
cmp eax, 0
jne 0x100020ed
mov dword [ebp - 0xc], 9
jmp 0x10002110
jmp 0x100020f2
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
add eax, 0x28
mov dword [ebp - 0x14], eax
jmp 0x10002011
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
add esp, 0x2c
pop esi
pop edi
pop ebp
ret
Function at 0x10003880
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edx
mov byte [ebp - 0x15], 0x10
mov al, byte [ebp - 0x15]
mov cl, al
add cl, 0xff
mov byte [ebp - 0x15], cl
cmp al, 0
je 0x100038fb
movzx eax, byte [ebp - 0x15]
mov ecx, dword [ebp - 0x10]
mov dl, byte [ecx + eax]
movzx eax, byte [ebp - 0x15]
mov ecx, dword [ebp - 0xc]
mov byte [ecx + eax], dl
movzx eax, dl
movzx ecx, byte [ebp - 0x15]
mov esi, dword [ebp - 0x14]
movzx edi, byte [esi + ecx]
xor edi, eax
mov eax, edi
mov dl, al
mov byte [esi + ecx], dl
movzx eax, byte [ebp - 0x15]
add eax, 0x10
mov ecx, dword [ebp - 0x10]
mov dl, byte [ecx + eax]
movzx eax, byte [ebp - 0x15]
add eax, 0x10
mov ecx, dword [ebp - 0xc]
mov byte [ecx + eax], dl
jmp 0x1000389e
add esp, 0x10
pop esi
pop edi
pop ebp
ret

Function at 0x100039d0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0x10
mov al, byte [ebp - 5]
mov cl, al
add cl, 0xff
mov byte [ebp - 5], cl
cmp al, 0
je 0x10003a14
movzx eax, byte [ebp - 5]
mov ecx, dword [ebp - 4]
movzx eax, byte [ecx + eax]
mov dl, byte [eax + 0x1004c3c4]
movzx eax, byte [ebp - 5]
mov ecx, dword [ebp - 4]
mov byte [ecx + eax], dl
jmp 0x100039e0
add esp, 8
pop ebp
ret
Function at 0x10003cc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
mov byte [ebp - 0x11], 0x10
mov al, byte [ebp - 0x11]
mov cl, al
add cl, 0xff
mov byte [ebp - 0x11], cl
cmp al, 0
je 0x10003d0f
movzx eax, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
movzx eax, byte [ecx + eax]
movzx ecx, byte [ebp - 0x11]
mov edx, dword [ebp - 0x10]
movzx esi, byte [edx + ecx]
xor esi, eax
mov eax, esi
mov bl, al
mov byte [edx + ecx], bl
jmp 0x10003cd8
add esp, 0xc
pop esi
pop ebx
pop ebp
ret

Function at 0x10004940
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 0xe8], eax
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe0], edx
mov eax, dword [esp + 0xe4]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x10004a89
jmp 0x10004982
mov eax, dword [esp + 0x2c]
sub eax, 1
mov dword [esp + 0x28], eax
je 0x100049b1
jmp 0x10004998
mov eax, dword [esp + 0x2c]
add eax, 0xfffffffe
sub eax, 2
mov dword [esp + 0x24], eax
jb 0x10004a89
jmp 0x10004a8e
call fcn.10004ab0
xor ecx, ecx
and al, 1
movzx edx, al
cmp ecx, edx
jne 0x10004a4d
mov eax, esp
mov dword [eax + 4], 1
mov dword [eax], 2
lea ecx, [esp + 0x30]
call fcn.10004f40
sub esp, 8
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], eax
call fcn.100060e0
lea ecx, str.HalleBerry_couldnt_find_a_proper_key_for_exename
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10004b20
mov ecx, esp
lea edx, [esp + 0xc8]
mov dword [ecx], edx
mov ecx, eax
call fcn.10005010
sub esp, 4
lea ecx, [esp + 0xc8]
call fcn.10005040
mov dword [esp], eax
call fcn.10004570
lea ecx, [esp + 0xc8]
call fcn.10005060
lea ecx, [esp + 0x30]
call fcn.10005090
mov dword [esp + 0xec], 0
jmp 0x10004a99
mov eax, dword [esp + 0xe0]
mov ecx, esp
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 8], 0x100050c0
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
call eax
sub esp, 0x18
mov dword [esp + 0x1c], eax
jmp 0x10004a8e
mov dword [esp + 0xec], 1
mov eax, dword [esp + 0xec]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10013e10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x74
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x28]
call fcn.100042c0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
call fcn.10005040
lea ecx, [0x1004c27c]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1001e557
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x10013e65
mov byte [ebp - 5], 0
mov dword [ebp - 0x30], 1
jmp 0x10013f65
xor eax, eax
mov ecx, 2
mov edx, dword [ebp - 0x2c]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
call fcn.1001e263
mov ecx, dword [ebp - 0x2c]
mov dword [esp], ecx
mov dword [ebp - 0x4c], eax
call fcn.1001f9f4
xor ecx, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [ebp - 0x50], ecx
call fcn.1001e263
mov ecx, dword [ebp - 0x34]
mov dword [esp], ecx
mov dword [ebp - 0x54], eax
call fcn.1001fa60
mov ecx, 1
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
mov dword [esp], esi
mov dword [esp + 4], 1
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [ebp - 0x58], ecx
call fcn.1001e4ab
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [ebp - 0x5c], eax
call fcn.10013f80
mov ecx, dword [ebp - 0x38]
cmp ecx, 0
mov byte [ebp - 0x5d], al
mov dword [ebp - 0x64], ecx
je 0x10013f31
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call fcn.1001fa69
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.1001e6a2
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0xc]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [ebp - 0x68], eax
call fcn.10014050
and al, 1
mov byte [ebp - 0x39], al
mov al, byte [ebp - 0x39]
and al, 1
mov byte [ebp - 5], al
mov dword [ebp - 0x30], 1
lea ecx, [ebp - 0x28]
call fcn.10005060
mov al, byte [ebp - 5]
and al, 1
movzx eax, al
add esp, 0x74
pop esi
pop ebp
ret

Function at 0x1001c340
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
movsd xmm0, qword [ecx]
movsd qword [esp + 0x20], xmm0
lea ecx, [esp + 0x20]
call fcn.1001c490
mov ecx, dword [esp + 0x30]
movsd xmm0, qword [ecx]
movsd qword [esp + 0x18], xmm0
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
call fcn.1001c490
mov ecx, dword [esp + 0x14]
sub ecx, eax
setb bl
mov eax, dword [esp + 0x10]
sub eax, edx
setl bh
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov byte [esp + 7], bh
mov byte [esp + 6], bl
je 0x1001c3ba
mov al, byte [esp + 7]
mov byte [esp + 6], al
mov al, byte [esp + 6]
and al, 1
movzx eax, al
lea esp, [ebp - 4]
pop ebx
pop ebp
ret
Function at 0x10025233
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x761be0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19c000]
push edi
or ebp, 0xffffffff
jmp 0x761c02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x761c09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x761bf8
mov eax, 1
add ebx, ebx
jne 0x761c1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x761c2c
jne 0x761c4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x761c4b
dec eax
add ebx, ebx
jne 0x761c38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x761c10
add ebx, ebx
jne 0x761c47
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x761c9d
xor ecx, ecx
sub eax, 3
jb 0x761c63
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x761cd2
sar eax, 1
mov ebp, eax
jmp 0x761c6e
add ebx, ebx
jne 0x761c6e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x761c3c
inc ecx
add ebx, ebx
jne 0x761c7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x761c3c
add ebx, ebx
jne 0x761c89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x761c7e
jne 0x761c9a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x761c7e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x761cbc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x761cae
jmp 0x761bfe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x761cbc
add edi, ecx
jmp 0x761bfe
pop esi
mov edi, esi
mov ecx, 0x4bab
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x761cda
cmp byte [edi], 0x22
jne 0x761cda
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x761cdf
lea edi, [esi + 0x35e000]
mov eax, dword [edi]
or eax, eax
je 0x761d57
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x362e44]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x362f84]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x761d0c
mov ecx, edi
jns 0x761d3b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x362f8c]
or eax, eax
je 0x761d51
mov dword [ebx], eax
add ebx, 4
jmp 0x761d29
call dword [esi + 0x362f88]
mov ebp, dword [esi + 0x362f90]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x761d8b
sub esp, 0xffffff80
jmp 0x4a7805
Function at 0x408110
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x401396
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x4012a0
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
call fcn.00406990
mov esi, dword [fcn.00401180]
mov edx, eax
lea ecx, [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x1c]
call dword [fcn.004011a4]
call fcn.00406990
mov edx, eax
lea ecx, [ebp - 0x24]
call esi
mov edi, dword [fcn.00401144]
mov edx, 0x404a00
lea ecx, [ebp - 0x20]
call edi
mov edx, 0x4049a0
lea ecx, [ebp - 0x1c]
call edi
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x20]
push eax
lea edx, [ebp - 0x1c]
push ecx
lea eax, [ebp - 0x28]
push edx
push eax
mov dword [ebp - 0x28], 0x80000001
call fcn.00408210
mov edx, eax
lea ecx, [ebp - 0x18]
call esi
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x20]
push ecx
lea eax, [ebp - 0x1c]
push edx
push eax
push 3
call dword [fcn.00401148]
add esp, 0x10
push 0x4081f4
jmp 0x4081f3
ret
Function at 0x40861d
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x428]
push 0x214
push edi
push eax
mov esi, edx
mov dword [ebp - 0x42c], edi
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
mov word [ebp - 0x214], ax
mov ebx, 0x104
lea eax, [ebp - 0x214]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x408722
lea ecx, [ebp - 0x214]
call fcn.0040e561
lea eax, [ebp - 0x214]
mov edx, ebx
push eax
lea ecx, [ebp - 0x420]
call fcn.004084a5
push 0x401ce4
lea ecx, [ebp - 0x214]
call fcn.0040ed30
test eax, eax
js 0x4086fd
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4086fd
lea eax, [ebp - 0x214]
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 8]
neg eax
push edi
sbb eax, eax
and eax, 0xffffffe0
add eax, 0x40
or eax, 4
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x42c]
push eax
push edi
call dword [sym.imp.IEADVPACK.dll_ExecuteCabW]
jmp 0x408722
test byte [ebp + 0x10], 4
jne 0x408722
lea eax, [ebp - 0x214]
push eax
push 0x40
push 0xc
push 0xb
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.SHLWAPI.dll_ShellMessageBoxW]
add esp, 0x18
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423440
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40873a
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x424]
mov esi, 0x20019
push eax
push esi
xor edi, edi
push edi
push 0x4013d0
push reloc.SHLWAPI.dll_ParseURLW
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4088a8
lea eax, [ebp - 0x41c]
push eax
push esi
push edi
push 0x40141c
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40889c
push ebx
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x420]
mov esi, edi
push eax
lea eax, [ebp - 0x20c]
mov ebx, 0x104
push eax
push edi
jmp 0x408875
lea eax, [ebp - 0x418]
push eax
push 0x2001f
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408806
push 4
push 0x401434
push 1
push edi
push 0x401438
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
lea eax, [ebp - 0x20c]
mov edx, ebx
push eax
push 0x4013d0
lea ecx, [ebp - 0x414]
call fcn.0040eaa3
test eax, eax
js 0x408861
lea eax, [ebp - 0x418]
push eax
push 0x2001f
push edi
lea eax, [ebp - 0x414]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408861
push dword [ebp - 0x418]
push edi
push edi
call dword [sym.imp.IEADVPACK.dll_RegRestoreAllW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x420]
inc esi
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x41c]
mov dword [ebp - 0x420], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x4087bb
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00423440
mov esp, ebp
pop ebp
ret
Function at 0x4088bd
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
lea edi, [ebp - 0x1c]
mov esi, 0x401458
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
push 0x18
pop ecx
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x7c]
mov esi, 0x401470
rep movsd dword es:[edi], dword [esi]
test eax, eax
je 0x408993
lea eax, [ebp - 0x288]
xor esi, esi
push eax
push 0xf003f
push esi
push 0x4014d0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408993
push 0x204
lea eax, [ebp - 0x280]
mov dword [ebp - 0x284], esi
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x28c], 0x208
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x284]
push eax
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x288]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40896e
cmp dword [ebp - 0x28c], esi
jne 0x408987
push 0x60
lea eax, [ebp - 0x7c]
push eax
push 1
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x288]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x288]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00423440
mov esp, ebp
pop ebp
ret

Function at 0x4089ee
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 0x10]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
xor edi, edi
push eax
push edi
push 4
pop ebx
push ebx
push edi
push edi
push edi
push 0x401548
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x408a90
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 3
push edi
push edi
push edi
push 0x401608
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x408a85
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x14], ebx
push eax
push edi
push edi
mov esi, 0x401620
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or dword [ebp - 4], 0x100000
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push edi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jle 0x408a9b
movzx esi, si
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408fc3
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
test ebx, ebx
je 0x40916a
call fcn.00408aa9
call fcn.00408580
call fcn.0040cdc2
call fcn.00408b03
call dword [sym.imp.SHELL32.dll_SHFlushSFCache]
call fcn.00410fbc
cmp eax, 2
jne 0x4090ac
and dword [ebp - 0x11c], 0
lea ecx, [ebp - 0x11c]
call fcn.004116e9
mov esi, dword [ebp - 0x11c]
test eax, eax
js 0x40908b
and dword [ebp - 0x11c], 0
lea edx, [ebp - 0x11c]
push ecx
mov ecx, dword [esi + 0x18]
call fcn.00414cec
test eax, eax
js 0x409080
push 0x401c40
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], esi
push eax
push dword [ebp - 0x11c]
mov ecx, esi
mov dword [ebp - 0x120], 0x80004005
mov dword [0x4247cc], 0x40fb00
mov dword [0x4247c8], 0x40fad0
call fcn.0040fc40
lea ecx, [ebp - 0x11c]
call fcn.004096cd
test esi, esi
je 0x4090ac
mov eax, dword [esi]
mov edi, esp
push esi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4255c0]
call esi
cmp edi, esp
je 0x4090ac
mov ecx, 4
int 0x29
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.msvcrt.dll__time64]
pop ecx
push 2
push 8
lea eax, [ebp - 0x124]
push eax
push 0xb
push 0x401c48
push 0x401c60
call dword [sym.imp.SHLWAPI.dll_SHRegSetUSValueW]
mov esi, 0x114
lea eax, [ebp - 0x118]
push esi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x118], esi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x409177
push 6
pop esi
cmp dword [ebp - 0x114], esi
ja 0x40911b
jne 0x409177
cmp dword [ebp - 0x110], 1
jb 0x409177
push ecx
push 0x401cb4
mov ecx, ebx
call fcn.004089a8
cmp dword [ebp - 0x114], esi
ja 0x40913b
jne 0x409177
cmp dword [ebp - 0x110], 2
jb 0x409177
lea eax, [ebp - 0x11c]
push eax
push 0x60000
push 8
push 0x4017b0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409177
mov ecx, dword [ebp - 0x11c]
call fcn.0040d2e6
jmp 0x409177
push ecx
push 0x401cb4
xor ecx, ecx
call fcn.004089a8
test ebx, ebx
je 0x409180
call fcn.004089ee
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423440
mov esp, ebp
pop ebp
ret