joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457ef0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49ac08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0049161c
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00457890
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0049154a
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0048dd39
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0048dd39
push 1
push 0
push 0
mov ecx, esi
call fcn.0048dce1
push 1
push 0
push 1
mov ecx, esi
call fcn.0048dce1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0049168e
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x458070
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49ac28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0049161c
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00457890
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0049154a
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x458134
cmp dword [esp + 0x40], 1
jne 0x458132
cmp ecx, eax
jge 0x458134
mov eax, ecx
cmp eax, 0xc8
jge 0x458140
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00457ef0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0049168e
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4588b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49ac93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0048c151
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004918c4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00492e1c
test eax, eax
je 0x4589cc
mov ecx, dword [esp + 0x3c]
call fcn.004918f1
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x458990
push edi
mov ecx, esi
call fcn.0048eebb
mov ecx, esi
call fcn.00458b30
cmp dword [esp + 0x38], 1
jne 0x4589c5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0048f025
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x45b3e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x45b413
push esi
call fcn.0045e4e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45b40c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x45b499
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45b482
mov eax, dword [esi + 8]
test eax, eax
je 0x45b437
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45b47e
cmp eax, 2
je 0x45b482
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45b42a
cmp eax, 3
je 0x45b45d
cmp eax, 1
jne 0x45b42a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45b42a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45b42a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0045b4c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45b4a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0045b4c0
add esp, 4
pop esi
ret

Function at 0x46aad0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0a00
push 0x47c27c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.0047aca0
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46ac80
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x46acc1
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x46ad2e
cmp dword [esp + 0x1c], 2
jne 0x46ad2e
cmp dword [esp + 0x10], 5
jne 0x46ad2e
cmp dword [esp + 0x14], 1
jne 0x46ad2e
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x46ad18
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x46ad09
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x46ad11
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
test eax, eax
je 0x46ad2e
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret

Function at 0x46d3b0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x4dc764]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x46d3c3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x46d404
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x4dc80c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x46d436
mov bl, byte [esp + ecx + 0x4c]
jmp 0x46d43a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x46d42b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x46d458
mov bl, byte [esp + ecx + 0x4c]
jmp 0x46d45c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x46d44d
xor ecx, ecx
mov eax, 0x4dc774
xor ebx, ebx
mov bl, byte [ecx + 0x4dc81c]
cmp byte [esp + ebx + 0x14], 0
je 0x46d487
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x4dc834]
cmp byte [esp + ebx + 0x14], 0
je 0x46d49e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x46d46e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x46d3f7
lea edx, [esp + 0x84]
push edx
call fcn.0046d4e0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x48cf47
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48cf7f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048afd4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048afac
jmp 0x48cf8b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48e641
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48e683
call fcn.00494328
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48e683
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48e67a
xor eax, eax
jmp 0x48e68b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048e691
pop edi
pop esi
pop ebx
ret 4

Function at 0x494858
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x494886
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4948a4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004947be
jmp 0x4948a4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4948a4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004947be
test edi, edi
mov eax, edi
jne 0x49488e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40624e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x43ea44], esi
push edi
jne 0x406288
mov ecx, 0x43ea40
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x406264
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x43ee40
jl 0x40625f
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x4062bd
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43ea40]
xor eax, esi
inc ecx
dec edx
jne 0x4062a0
pop edi
pop esi
not eax
ret 0xc

Function at 0x44ae5f
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x44ae7c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x44ae6d
add dl, dl
jne 0x44ae87
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x44aed3
xor eax, eax
add dl, dl
jne 0x44ae94
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x44af70
add dl, dl
jne 0x44aea3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x44aeae
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x44aeb9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x44aec4
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x44aece
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x44ae73
mov eax, 1
add dl, dl
jne 0x44aee1
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x44aeec
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x44aed8
sub eax, 2
jne 0x44af1b
mov ecx, 1
add dl, dl
jne 0x44af01
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x44af0c
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x44aef8
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x44ae73
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x44af32
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x44af3d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x44af29
cmp eax, 0x7d00
jae 0x44af60
cmp eax, 0x500
jb 0x44af5b
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x44ae73
cmp eax, 0x7f
ja 0x44af63
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x44ae73
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x44af8c
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x44ae73
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x402420
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x4023a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
mov esp, ebp
pop ebp
ret

Function at 0x405560
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.004293e7
add esp, 4
lea ecx, [eax + eax + 2]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 8]
call fcn.00405520
mov edx, dword [ebp - 8]
mov dword [edx + 8], 1
cmp dword [ebp - 4], 0x800
jbe 0x4055a0
mov dword [ebp - 0xc], 0x800
jmp 0x4055a6
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.00429c33
add esp, 0xc
mov edx, dword [ebp - 8]
mov byte [edx + 0x10], 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
call fcn.00407160
and eax, 8
jne 0x405640
mov ecx, dword [ebp - 8]
cmp dword [ecx + 4], 0
je 0x405640
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0xc]
call fcn.00407160
and eax, 2
je 0x405601
push 2
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
call fcn.00406ba0
movzx ecx, al
test ecx, ecx
jne 0x40561d
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0xc]
call fcn.00407160
and eax, 2
jne 0x405640
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
cmp dword [ecx + 4], 0
je 0x405640
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
push 1
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
call fcn.00407160
and eax, 2
je 0x40565b
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0xc]
call fcn.00406bf0
mov edx, dword [ebp - 8]
mov byte [edx + 0x11], 1
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x405670
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 8], 4
push 4
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x14
push edx
call fcn.00429c80
add esp, 0xc
mov eax, dword [ebp - 4]
mov byte [eax + 0x10], 1
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0xc]
call fcn.00407160
and eax, 8
jne 0x40571a
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
je 0x40571a
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
call fcn.00407160
and eax, 2
je 0x4056da
push 2
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0xc]
call fcn.00406ba0
movzx edx, al
test edx, edx
jne 0x4056f6
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
call fcn.00407160
and eax, 2
jne 0x40571a
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
cmp dword [edx + 4], 0
je 0x40571a
push 4
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
push 4
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
call fcn.00407160
and eax, 2
je 0x405735
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0xc]
call fcn.00406bf0
mov edx, dword [ebp - 4]
mov byte [edx + 0x11], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x405af0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 0xc], 0
jne 0x405b02
jmp 0x405bfe
mov eax, dword [ebp - 4]
mov dword [eax + 8], 3
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0xc]
call fcn.00407160
and eax, 8
jne 0x405b88
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
je 0x405b88
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
call fcn.00407160
and eax, 2
je 0x405b49
push 2
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0xc]
call fcn.00406ba0
movzx edx, al
test edx, edx
jne 0x405b65
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
call fcn.00407160
and eax, 2
jne 0x405b88
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
cmp dword [edx + 4], 0
je 0x405b88
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 3
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0xc]
call fcn.00407160
and eax, 2
je 0x405ba3
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0xc]
call fcn.00406bf0
mov eax, dword [ebp - 4]
mov byte [eax + 0x11], 1
mov ecx, dword [ebp - 4]
add ecx, 0x1c
call fcn.004073d0
cmp eax, dword [ebp + 0xc]
jae 0x405bc9
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x1c
call fcn.00407270
mov ecx, dword [ebp - 4]
add ecx, 0x1c
call fcn.00407520
mov ecx, dword [ebp - 4]
add ecx, 0x1c
call fcn.004073d0
add eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x1c
call fcn.004074a0
mov ecx, dword [ebp - 4]
add ecx, 0x1c
call fcn.004073d0
cmp eax, dword [ebp + 0xc]
jb 0x405bd4
mov esp, ebp
pop ebp
ret 8
Function at 0x405de0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f759
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x45281c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x405e29
jmp 0x405ec4
mov edx, dword [ebp - 0x38]
mov dword [edx + 8], 7
mov ecx, dword [ebp - 0x38]
add ecx, 0x34
call fcn.00407790
cmp dword [ebp + 0xc], 2
ja 0x405e46
jmp 0x405ec4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2 - 2]
test edx, edx
jne 0x405e5e
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2]
push eax
call fcn.0042a30d
add esp, 8
sub eax, dword [ebp + 8]
sar eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x10]
jae 0x405ec4
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
push ecx
lea ecx, [ebp - 0x34]
call fcn.004077f0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x38]
add ecx, 0x34
call fcn.004076a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00407830
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x405e5e
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ecx + 0xc]
call fcn.00407160
and eax, 8
jne 0x405f42
mov edx, dword [ebp - 0x38]
cmp dword [edx + 4], 0
je 0x405f42
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0xc]
call fcn.00407160
and eax, 2
je 0x405f01
push 2
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ecx + 0xc]
call fcn.00406ba0
movzx edx, al
test edx, edx
jne 0x405f1d
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0xc]
call fcn.00407160
and eax, 2
jne 0x405f42
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0xc]
cmp dword [edx + 4], 0
je 0x405f42
mov eax, dword [ebp + 0xc]
shl eax, 1
push eax
mov ecx, dword [ebp + 8]
push ecx
push 7
push 0
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ecx + 0xc]
call fcn.00407160
and eax, 2
je 0x405f5d
mov edx, dword [ebp - 0x38]
mov ecx, dword [edx + 0xc]
call fcn.00406bf0
mov eax, dword [ebp - 0x38]
mov byte [eax + 0x11], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc