joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10076690
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x10077120
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x20]
push eax
push 0x10
call fcn.10076fd0
mov ecx, dword [0x100a4578]
test ecx, ecx
jne 0x1007670e
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.SystemFunction036
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x100a4578], eax
push 0x10
mov eax, dword [ebp + 8]
push dword [eax]
call ecx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100775b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, ecx
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x100785b0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [esi], 0
mov dword [esi + 4], 0
push 0x40
call fcn.10080810
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x20], esi
mov dword [esi], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], 0
push 0xa4
call fcn.10080810
add esp, 4
push 0xa4
push 0
mov dword [ebp - 0x24], eax
push eax
call fcn.10084550
add esp, 0xc
mov dword [ebp - 0x10], 1
push 0x40
call fcn.10080810
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0xf
mov byte [ecx + 8], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0xf
mov byte [ecx + 0x20], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x48], 0
mov dword [ecx + 0x4c], 0xf
mov byte [ecx + 0x38], 0
mov dword [ecx + 0x50], 0
mov dword [ecx + 0x60], 0
mov dword [ecx + 0x64], 0xf
mov byte [ecx + 0x50], 0
mov dword [ecx + 0x68], 0
mov dword [ecx + 0x78], 0
mov dword [ecx + 0x7c], 0xf
mov byte [ecx + 0x68], 0
mov dword [ecx + 0x80], 0
mov dword [ecx + 0x90], 0
mov dword [ecx + 0x94], 0xf
mov byte [ecx + 0x80], 0
mov dword [ecx + 0x9c], 0
mov dword [ecx + 0xa0], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10079a00
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov al, byte [edx]
mov byte [ecx], al
mov al, byte [edx + 1]
mov byte [ecx + 1], al
mov al, byte [edx + 2]
mov byte [ecx + 2], al
mov al, byte [edx + 3]
mov byte [ecx + 3], al
mov al, byte [edx + 4]
mov byte [ecx + 4], al
mov al, byte [edx + 5]
mov byte [ecx + 5], al
mov al, byte [edx + 6]
mov byte [ecx + 6], al
mov al, byte [edx + 7]
mov byte [ecx + 7], al
mov al, byte [edx + 8]
mov byte [ecx + 8], al
mov al, byte [edx + 9]
mov byte [ecx + 9], al
mov al, byte [edx + 0xa]
mov byte [ecx + 0xa], al
mov al, byte [edx + 0xb]
mov byte [ecx + 0xb], al
mov al, byte [edx + 0xc]
mov byte [ecx + 0xc], al
mov al, byte [edx + 0xd]
mov byte [ecx + 0xd], al
mov al, byte [edx + 0xe]
mov byte [ecx + 0xe], al
mov al, byte [edx + 0xf]
mov byte [ecx + 0xf], al
mov al, byte [edx + 0x10]
mov byte [ecx + 0x10], al
mov al, byte [edx + 0x11]
mov byte [ecx + 0x11], al
mov al, byte [edx + 0x12]
mov byte [ecx + 0x12], al
mov al, byte [edx + 0x13]
mov byte [ecx + 0x13], al
mov al, byte [edx + 0x14]
mov byte [ecx + 0x14], al
mov al, byte [edx + 0x15]
mov byte [ecx + 0x15], al
mov al, byte [edx + 0x16]
mov byte [ecx + 0x16], al
mov al, byte [edx + 0x17]
mov byte [ecx + 0x17], al
mov al, byte [edx + 0x18]
mov byte [ecx + 0x18], al
mov al, byte [edx + 0x19]
mov byte [ecx + 0x19], al
mov al, byte [edx + 0x1a]
mov byte [ecx + 0x1a], al
mov al, byte [edx + 0x1b]
mov byte [ecx + 0x1b], al
mov al, byte [edx + 0x1c]
mov byte [ecx + 0x1c], al
mov al, byte [edx + 0x1d]
mov byte [ecx + 0x1d], al
mov al, byte [edx + 0x1e]
mov byte [ecx + 0x1e], al
mov al, byte [edx + 0x1f]
mov byte [ecx + 0x1f], al
mov eax, 8
jmp 0x10079b15
mov edx, dword [esp]
mov bh, byte [edx + str.cw]
mov edx, dword [esp + 4]
movzx edx, byte [edx + str.cw]
mov dh, byte [ebp + str.cw]
mov bl, byte [esi + str.cw]
xor bh, byte [ecx + eax*4 - 0x20]
mov byte [ecx + eax*4], bh
xor dl, byte [ecx + eax*4 - 0x1f]
mov byte [ecx + eax*4 + 1], dl
xor dh, byte [ecx + eax*4 - 0x1e]
mov byte [ecx + eax*4 + 2], dh
xor bl, byte [ecx + eax*4 - 0x1d]
mov byte [ecx + eax*4 + 3], bl
inc eax
cmp eax, 0x3c
je 0x10079b78
mov bh, byte [ecx + eax*4 - 4]
movzx edx, byte [ecx + eax*4 - 3]
movzx esi, bh
mov dword [esp], esi
movzx esi, dl
mov dword [esp + 4], esi
mov dh, byte [ecx + eax*4 - 2]
movzx ebp, dh
mov bl, byte [ecx + eax*4 - 1]
movzx esi, bl
mov edi, eax
and edi, 7
cmp edi, 4
je 0x10079ad0
test edi, edi
jne 0x10079af0
movzx edx, byte [ebp + str.cw]
mov dh, byte [esi + str.cw]
mov esi, dword [esp]
movzx ebx, byte [esi + str.cw]
mov esi, eax
shr esi, 3
mov bh, byte [esi + 0x100948fc]
mov esi, dword [esp + 4]
xor bh, byte [esi + str.cw]
jmp 0x10079af0
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100889b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100889dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100889dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x14735478
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x6e3b20d0
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4014ef
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401506
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40153b
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401537
cmp edi, eax
jae 0x40153b
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401529
cmp edi, eax
jb 0x40153f
xor eax, eax
jmp 0x401548
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x402e8c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [esi + 0x54]
mov ecx, eax
and ecx, 0xc
push edi
mov byte [ebp - 1], 1
cmp cl, 0xc
jne 0x402ed6
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0x10], eax
call edi
push dword [esi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call edi
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0x4e
jmp 0x402efd
shr eax, 2
test al, 1
je 0x402f06
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [esi + 4]
movzx ecx, di
push ecx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x402f39
push ebx
push 1
xor ebx, ebx
push ebx
push ebx
push dword [esi + 0x28]
push 0x43c254
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x402f38
or byte [esi + 0x58], 2
push 1
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop ebx
mov al, byte [ebp - 1]
pop edi
leave
ret

Function at 0x403300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403364
cmp dword [ebp + 0xc], 1
je 0x40333c
cmp dword [ebp + 0xc], 2
je 0x40333c
push 0xd
pop eax
jmp 0x403364
mov eax, dword [ebp - 4]
test edi, edi
je 0x40335e
test eax, eax
je 0x403359
test al, 1
jne 0x403337
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40335e
jmp 0x403337
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x4033bd
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x30
pop esi
push esi
push 0
push ebx
mov edi, ecx
call fcn.0040f7e0
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.0040f7e0
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40341a
cmp dword [ebp - 0x114], 6
jae 0x40341d
push 0x2c
pop esi
and dword [ebx + 4], 0
mov dword [ebx], esi
mov esi, dword [ebp + 8]
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], 1
test esi, esi
je 0x40343b
lea edi, [ebx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [0x4437fc]
mov ecx, dword [ebp - 4]
and dword [ebx + 0x28], 0
mov dword [ebx + 0x20], eax
mov eax, dword [ebp + 0xc]
pop edi
xor ecx, ebp
mov dword [ebx + 0x24], eax
pop esi
call fcn.0040f7ca
leave
ret 8
Function at 0x404862
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x443838]
push ebx
push esi
mov dword [ebp - 8], ecx
push edi
mov ecx, 0x443838
call dword [eax + 0xc]
mov edi, eax
xor ecx, ecx
push 2
mov esi, 0x100
pop edx
mov eax, esi
add edi, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040f865
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop ecx
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
push esi
push dword [ebp - 4]
push edi
push ecx
push edx
call ebx
cmp eax, 0xff
jne 0x40490b
push dword [ebp - 4]
add esi, esi
call fcn.0040f85a
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040f865
mov edx, dword [ebp + 8]
mov edx, dword [edx]
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
push esi
push dword [ebp - 4]
push edi
push ecx
push edx
call ebx
lea ecx, [esi - 1]
cmp eax, ecx
je 0x4048c5
push dword [ebp - 4]
push dword [ebp + 0x10]
call fcn.0040186f
push dword [ebp - 4]
call fcn.0040f85a
pop ecx
lea eax, [edi - 0x10]
call fcn.0040169e
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x405e65
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push edi
cmp esi, ebx
je 0x405e77
lea edi, [esi - 0x24]
jmp 0x405e79
xor edi, edi
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [edi + 4]
jne 0x405f7b
mov eax, dword [ebp + 8]
sub eax, 0xd
je 0x405f6d
sub eax, 0xe
je 0x405f73
sub eax, 0xa
je 0x405f0a
dec eax
je 0x405eaf
dec eax
je 0x405f0a
dec eax
jne 0x405f80
cmp byte [esi], bl
jne 0x405f80
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edi, dword [esi + 0x1c]
mov edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
xor eax, eax
cmp dword [ebp + 8], 0x26
lea ebx, [ecx + edx]
setne al
dec eax
and eax, 0xffffffec
add eax, 0xa
add eax, edi
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 0x10]
cmp dword [ebp + 8], ebx
jl 0x405f03
sub eax, dword [esi + 0x2c]
sub eax, ecx
mov ecx, dword [ebp + 8]
sub eax, edx
cmp ecx, eax
jle 0x405f03
mov ecx, eax
sub ecx, edi
add dword [ebp - 4], ecx
jmp 0x405f5f
cmp byte [esi], bl
je 0x405f80
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edi, dword [esi + 0x1c]
mov edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
xor eax, eax
cmp dword [ebp + 8], 0x25
lea ebx, [ecx + edx]
setne al
dec eax
and eax, 0xffffffec
add eax, 0xa
add eax, edi
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0xc]
cmp dword [ebp + 8], ebx
jl 0x405f5a
sub eax, dword [esi + 0x2c]
sub eax, ecx
mov ecx, dword [ebp + 8]
sub eax, edx
cmp ecx, eax
jle 0x405f5a
mov ecx, eax
sub ecx, edi
add dword [ebp - 8], ecx
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetCursorPos]
jmp 0x405f80
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x20], eax
call dword [sym.imp.USER32.dll_ReleaseCapture]
jmp 0x405f80
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
pop edi
xor eax, eax
pop ebx
leave
ret 8

Function at 0x409f9e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
test eax, eax
je 0x409fab
lea esi, [eax - 0x50]
jmp 0x409fad
xor esi, esi
cmp byte [eax + 0x1c], 0
je 0x409fe1
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 8], 2
jne 0x409fd2
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x409fe7
cmp dword [ebp + 8], 0
jne 0x409fe1
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 8], 1
je 0x409ff9
mov eax, dword [ebp + 0xc]
shr eax, 0x10
cwde
push eax
movsx eax, word [ebp + 0xc]
push eax
call fcn.0042578e
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x40a446
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp eax, ebx
jne 0x40a45f
xor al, al
jmp 0x40a484
mov ecx, dword [edi]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ebx
push ebx
push ebx
push ecx
push eax
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x40a481
mov eax, dword [ebp - 4]
cmp eax, ebx
jne 0x40a48a
xor al, al
pop esi
pop edi
pop ebx
leave
ret 8
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040f865
mov edi, dword [edi]
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push edi
push dword [eax + 4]
call esi
test eax, eax
je 0x40a4c5
push dword [ebp - 8]
call fcn.0040f85a
pop ecx
mov al, bl
jmp 0x40a483
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.0040186f
mov bl, 1
jmp 0x40a4b8

Function at 0x40a5ca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7fa0]
mov eax, 0x8020
call fcn.0041b020
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp + 0x7f9c], eax
mov eax, dword [ebp + 0x7fa8]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], esi
call fcn.00401cad
xor esi, esi
mov dword [ebp - 0x68], esi
push esi
push esi
lea eax, [ebp - 0x80]
push eax
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x68]
mov eax, dword [ebp - 0x7c]
push dword [eax + 4]
mov dword [ebp - 0x74], 0x3fff
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x6c], eax
cmp eax, esi
jne 0x40a659
mov edi, dword [ebp - 0x74]
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x443838
lea esi, [ebp - 0x70]
call fcn.004011de
mov ebx, esi
mov esi, dword [ebp - 0x78]
call fcn.0040444c
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff0
call fcn.0040169e
inc dword [ebp - 0x68]
xor esi, esi
cmp dword [ebp - 0x6c], esi
je 0x40a604
cmp dword [ebp - 0x6c], 0x103
mov ecx, dword [ebp + 0x7f9c]
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f7ca
add ebp, 0x7fa0
leave
ret 4
Function at 0x40a5f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7fa0]
mov eax, 0x8020
call fcn.0041b020
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp + 0x7f9c], eax
mov eax, dword [ebp + 0x7fa8]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], esi
call fcn.00401cad
xor esi, esi
mov dword [ebp - 0x68], esi
push esi
push esi
lea eax, [ebp - 0x80]
push eax
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x68]
mov eax, dword [ebp - 0x7c]
push dword [eax + 4]
mov dword [ebp - 0x74], 0x3fff
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x6c], eax
cmp eax, esi
jne 0x40a659
mov edi, dword [ebp - 0x74]
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x443838
lea esi, [ebp - 0x70]
call fcn.004011de
mov ebx, esi
mov esi, dword [ebp - 0x78]
call fcn.0040444c
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff0
call fcn.0040169e
inc dword [ebp - 0x68]
xor esi, esi
cmp dword [ebp - 0x6c], esi
je 0x40a604
cmp dword [ebp - 0x6c], 0x103
mov ecx, dword [ebp + 0x7f9c]
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f7ca
add ebp, 0x7fa0
leave
ret 4

Function at 0x40a687
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7fac]
mov eax, 0x802c
call fcn.0041b020
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp + 0x7fa8], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], esi
call fcn.004045a0
and dword [ebp - 0x5c], 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor eax, eax
lea ecx, [ebp - 0x64]
push ecx
push eax
lea ecx, [ebp - 0x74]
push ecx
push eax
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x5c]
mov esi, 0x3fff
push dword [edi + 4]
mov dword [ebp - 0x60], esi
call ebx
test eax, eax
jne 0x40a7ab
push dword [ebp - 0x64]
mov dword [ebp - 0x60], esi
call fcn.0040f865
pop ecx
lea ecx, [ebp - 0x64]
push ecx
push eax
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x74]
push eax
push 0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x5c]
push dword [edi + 4]
call ebx
cmp dword [ebp - 0x74], 1
mov dword [ebp - 0x70], eax
jne 0x40a7af
test eax, eax
jne 0x40a773
mov edi, dword [ebp - 0x60]
lea eax, [ebp - 0x58]
push eax
mov ecx, 0x443838
lea esi, [ebp - 0x78]
call fcn.004011de
push dword [ebp - 0x68]
lea eax, [ebp - 0x6c]
call fcn.00401895
lea eax, [ebp - 0x6c]
push eax
mov eax, esi
mov esi, dword [ebp - 0x7c]
push eax
call fcn.0040a862
mov eax, dword [ebp - 0x6c]
add eax, 0xfffffff0
call fcn.0040169e
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
call fcn.0040169e
mov edi, dword [ebp - 0x80]
push dword [ebp - 0x68]
call fcn.0040f85a
inc dword [ebp - 0x5c]
cmp dword [ebp - 0x70], 0
pop ecx
je 0x40a6c2
cmp dword [ebp - 0x70], 0x103
sete al
mov ecx, dword [ebp + 0x7fa8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f7ca
add ebp, 0x7fac
leave
ret
xor al, al
jmp 0x40a793
push dword [ebp - 0x68]
call fcn.0040f85a
pop ecx
jmp 0x40a7ab
Function at 0x40bd97
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x40bda5
push 0xd
pop eax
jmp 0x40bdd8
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40bdac
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40c160
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
push ecx
push dword [esi]
mov dword [ebp - 0x21c], ecx
xor edi, edi
or eax, 0x2001f
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
call fcn.00403368
mov ebx, eax
cmp ebx, edi
je 0x40c1c6
cmp dword [ebp - 0x214], edi
je 0x40c1bf
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40c25e
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40c1ee
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.0040c160
mov dword [ebp - 0x220], eax
cmp eax, edi
jne 0x40c26f
lea eax, [ebp - 0x228]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call ebx
test eax, eax
je 0x40c1ce
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], edi
je 0x40c239
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], edi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], edi
call fcn.0040c2c0
mov esi, eax
cmp dword [ebp - 0x214], edi
je 0x40c25c
push dword [ebp - 0x214]
call ebx
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f7ca
leave
ret 4
cmp dword [ebp - 0x214], edi
je 0x40c283
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x40c25e

Function at 0x40c2c0
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x444620], 0
jne 0x40c2f0
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40c2e9
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x444624], eax
mov byte [0x444620], 1
mov eax, dword [0x444624]
test eax, eax
je 0x40c308
push 0
push dword [esi + 4]
push dword [esp + 0xc]
push dword [esi]
call eax
jmp 0x40c314
push dword [esp + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
ret 4