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

Disassembly:
push 0xffffffffffffffff
push 0x47e538
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.00475499
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00442dc0
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.004753c7
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.00471bae
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.00471bae
push 1
push 0
push 0
mov ecx, esi
call fcn.00471b56
push 1
push 0
push 1
mov ecx, esi
call fcn.00471b56
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047550b
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4435a0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47e558
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.00475499
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00442dc0
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.004753c7
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 0x443664
cmp dword [esp + 0x40], 1
jne 0x443662
cmp ecx, eax
jge 0x443664
mov eax, ecx
cmp eax, 0xc8
jge 0x443670
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00443420
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.0047550b
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x443df0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47e5c3
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.0046ffcf
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.00475741
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00476cdc
test eax, eax
je 0x443f0c
mov ecx, dword [esp + 0x3c]
call fcn.0047576e
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 0x443ed0
push edi
mov ecx, esi
call fcn.00472d2d
mov ecx, esi
call fcn.00444070
cmp dword [esp + 0x38], 1
jne 0x443f05
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.00472e97
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 0x446920
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x446953
push esi
call fcn.00449a30
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44694c
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 0x4469d9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4469c2
mov eax, dword [esi + 8]
test eax, eax
je 0x446977
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 0x4469be
cmp eax, 2
je 0x4469c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44696a
cmp eax, 3
je 0x44699d
cmp eax, 1
jne 0x44696a
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 0x44696a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44696a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00446a00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4469e8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00446a00
add esp, 4
pop esi
ret

Function at 0x453f20
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x453fc3
test eax, eax
jbe 0x453fc3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x453fc3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x453f6e
xor esi, esi
jmp 0x453f74
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x453f9f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0040bdb0
add esi, eax
push esi
mov ebx, esi
call fcn.0040bdb0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x453f80
pop ebp
test edi, edi
pop edi
jne 0x453fc3
test ebx, ebx
je 0x453fc3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045f6d0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x454105
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45421d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45421d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00470421
mov esi, eax
test esi, esi
je 0x45421d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45421d
mov ecx, esi
call fcn.00454070
cmp edi, eax
jge 0x45421d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4541a3
mov dword [esp + 0x34], 1
jmp 0x4541fe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45421d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00453600
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x470dc4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x470dfc
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.0046ee51
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046ee29
jmp 0x470e08
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4724b6
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 0x4724f8
call fcn.004781de
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4724f8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4724ef
xor eax, eax
jmp 0x472500
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00472506
pop edi
pop esi
pop ebx
ret 4
Function at 0x47870e
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 0x47873c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47875a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00478674
jmp 0x47875a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47875a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00478674
test edi, edi
mov eax, edi
jne 0x478744
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x415530
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x439434
mov esi, eax
call dword [0x42e088]
cmp dword [0x438018], 0xffffffff
je 0x4155b2
cmp dword [0x43801c], 0xffffffff
jne 0x4155b2
test esi, esi
je 0x4155b2
mov eax, dword [0x43800c]
mov dword [0x439328], esi
mov esi, dword [0x42e0dc]
push eax
call esi
mov ecx, dword [0x438008]
push ecx
call esi
mov edx, dword [0x438004]
push edx
call esi
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x414630
push 0
push 0
call fcn.0042213c
add esp, 0x18
test eax, eax
jne 0x4155c5
mov ecx, dword [0x438008]
push ecx
call dword [0x42e0cc]
mov dword [0x43801c], 0xffffffff
push 0x439434
call dword [0x42e084]
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [0x438004]
push 0xffffffffffffffff
push edx
mov dword [0x43801c], eax
call dword [0x42e0bc]
push 0x439434
call dword [0x42e084]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x420d30
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
movzx ecx, di
shr edi, 0x10
test esi, esi
jne 0x420d4c
pop edi
lea eax, [esi + 1]
pop esi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x420e57
jmp 0x420d60
mov eax, ebx
cmp ebx, 0x15b0
jb 0x420d6f
mov eax, 0x15b0
sub ebx, eax
mov dword [ebp + 0x10], ebx
cmp eax, 0x10
jl 0x420e1c
mov edx, eax
shr edx, 4
mov ebx, edx
neg ebx
shl ebx, 4
add eax, ebx
jmp 0x420d90
movzx ebx, byte [esi]
add ecx, ebx
movzx ebx, byte [esi + 1]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 2]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 3]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 4]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 5]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 6]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 7]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 8]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 9]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xa]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xb]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xc]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xd]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xe]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xf]
add edi, ecx
add ecx, ebx
add edi, ecx
add esi, 0x10
dec edx
jne 0x420d90
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x420e2b
movzx edx, byte [esi]
add ecx, edx
inc esi
add edi, ecx
dec eax
jne 0x420e20
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
jne 0x420d60
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
pop ebp
ret
Function at 0x401437
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x401476
mov edx, dword [ecx + 0xc]
push ebx
mov dword [ebp + 8], eax
push edi
mov eax, dword [ecx + 4]
movzx ebx, byte [esi]
mov edi, eax
and edi, 0xff
xor edi, ebx
inc esi
shr eax, 8
mov edi, dword [edx + edi*4]
xor eax, edi
dec dword [ebp + 8]
mov dword [ecx + 4], eax
jne 0x401453
pop edi
pop ebx
mov eax, dword [ecx + 4]
pop esi
pop ebp
ret 0xc

Function at 0x401d28
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
call fcn.00401e93
push 4
call fcn.004042d7
test eax, eax
pop ecx
je 0x401e02
lea eax, [ebp - 8]
xor ebx, ebx
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
mov esi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push dword [ebp + 8]
push dword [0x4acd44]
call esi
test eax, eax
je 0x401d7b
xor eax, eax
inc eax
jmp 0x401e04
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x401dfb
cmp dword [ebp - 4], ebx
je 0x401dfb
push dword [ebp - 4]
call fcn.0045c821
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
jne 0x401da2
call fcn.0046949d
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x4acd44]
call esi
push eax
mov ecx, edi
call fcn.0040427e
mov esi, eax
cmp esi, ebx
je 0x401dee
push dword [ebp - 0x10]
mov ecx, edi
push dword [ebp - 0xc]
call fcn.00401eb9
push dword [edi + 0x14]
lea ecx, [edi + 0xc]
mov dword [edi + 0x38], ebx
call fcn.0046c575
push dword [ebp - 0xc]
call fcn.0045c738
pop ecx
mov eax, esi
jmp 0x401e04
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4028f7
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov eax, 0x478f98
call fcn.0045c5c4
push ecx
push ecx
push ebx
push esi
mov esi, ecx
lea eax, [ebp - 0x10]
push edi
xor ebx, ebx
push eax
mov dword [esi + 0x28], ebx
call fcn.00402650
mov eax, dword [eax]
xor ecx, ecx
cmp dword [eax - 8], ebx
sete cl
mov edi, ecx
lea ecx, [ebp - 0x10]
call fcn.0046c488
cmp edi, ebx
mov ecx, esi
je 0x4029d4
lea eax, [ebp - 0x10]
push eax
call fcn.0040262c
cmp dword [esi + 0x20], ebx
mov dword [ebp - 4], ebx
jne 0x40296b
mov ecx, esi
call fcn.00403b11
test eax, eax
jne 0x40296b
cmp dword [esi + 0x28], ebx
lea ecx, [ebp - 0x10]
setge al
or dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.0046c488
mov eax, esi
jmp 0x402a5f
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
je 0x4029a0
mov eax, dword [eax - 8]
lea ecx, [ebp - 0x10]
add eax, 0xfffffffe
push eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.0046998f
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0046c575
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0046c488
mov ecx, esi
call fcn.00403bfd
push dword [ebp - 0x10]
push dword [esi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, eax
and eax, 0xffff
or eax, 0x80070000
mov ecx, esi
neg edi
sbb edi, edi
and edi, eax
call fcn.00402a6e
mov dword [esi + 0x28], edi
lea ecx, [ebp - 0x10]
jmp 0x402a4e
lea eax, [ebp - 0x14]
push eax
call fcn.00402650
push 2
pop edi
push dword [0x486864]
mov dword [ebp - 4], edi
push dword [ebp - 0x14]
call fcn.0045cd55
pop ecx
test eax, eax
pop ecx
jne 0x4029ff
lea ecx, [ebp - 0x14]
call fcn.0046c413
cmp dword [esi + 0x24], ebx
jne 0x402a2a
push ebx
push ebx
push ebx
push ebx
push 0xf003f
push ebx
mov ecx, esi
call fcn.004027bf
test eax, eax
jne 0x402a2a
push ebx
push ebx
push ebx
push ebx
push edi
push ebx
mov ecx, esi
call fcn.004027bf
test eax, eax
je 0x402a4b
push dword [ebp - 0x14]
push dword [esi + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, eax
and eax, 0xffff
or eax, 0x80070000
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x28], ecx
lea ecx, [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.0046c488
xor eax, eax
cmp dword [esi + 0x28], ebx
setge al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x402e06
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x479024
call fcn.0045c5c4
sub esp, 0x10
push ebx
push esi
push dword [ebp + 0xc]
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp + 0xc]
mov dword [esi + 0x28], ebx
call fcn.0046c4f6
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
cmp dword [eax - 8], ebx
jne 0x402e55
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00402650
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0046c575
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0046c488
push dword [0x486864]
push dword [ebp + 0xc]
call fcn.0045cd55
pop ecx
test eax, eax
pop ecx
jne 0x402e71
lea ecx, [ebp + 0xc]
call fcn.0046c413
cmp dword [esi + 0x24], ebx
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
jne 0x402eab
push ebx
push ebx
push ebx
push ebx
push 0xf003f
push ebx
mov ecx, esi
call fcn.004027bf
test eax, eax
jne 0x402eab
push ebx
push ebx
push ebx
push ebx
push 1
push ebx
mov ecx, esi
call fcn.004027bf
test eax, eax
je 0x402f65
lea eax, [ebp - 0x10]
lea ecx, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
push ebx
push ebx
call fcn.0046c86c
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push dword [esi + 0x24]
call edi
mov ecx, eax
and eax, 0xffff
or eax, 0x80070000
push 0xffffffffffffffff
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x28], ecx
lea ecx, [ebp + 0xc]
call fcn.0046c8bb
cmp dword [esi + 0x28], ebx
jl 0x402f65
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x402f01
cmp eax, dword [ebp - 0x18]
je 0x402f01
mov dword [esi + 0x28], 0x8007000d
cmp dword [esi + 0x28], ebx
jl 0x402f65
cmp dword [ebp + 8], ebx
je 0x402f71
cmp dword [ebp - 0x10], ebx
jbe 0x402f65
push dword [ebp - 0x10]
call fcn.0046b66c
pop ecx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x18]
lea ecx, [ebp + 0xc]
push eax
push ebx
push ebx
call fcn.0046c86c
push eax
push dword [esi + 0x24]
call edi
mov ecx, eax
and eax, 0xffff
or eax, 0x80070000
push 0xffffffffffffffff
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x28], ecx
lea ecx, [ebp + 0xc]
call fcn.0046c8bb
cmp dword [esi + 0x28], ebx
jge 0x402f65
push dword [ebp - 0x14]
call fcn.0046b695
pop ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x402f71
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
pop edi
cmp eax, ebx
je 0x402f7e
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x402f8a
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
xor eax, eax
cmp dword [esi + 0x28], ebx
lea ecx, [ebp + 0xc]
setge al
or dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.0046c488
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x402fb2
Capabilities:
Set registry value

Disassembly:
mov eax, 0x479040
call fcn.0045c5c4
push ecx
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp + 8]
mov dword [esi + 0x28], ebx
call fcn.0046c4f6
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
cmp dword [eax - 8], ebx
jne 0x402fff
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00402650
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0046c575
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0046c488
push dword [0x486864]
push dword [ebp + 8]
call fcn.0045cd55
pop ecx
test eax, eax
pop ecx
jne 0x40301b
lea ecx, [ebp + 8]
call fcn.0046c413
cmp dword [esi + 0x24], ebx
jne 0x403049
push ebx
push ebx
push ebx
push ebx
push 0xf003f
push 1
mov ecx, esi
call fcn.004027bf
test eax, eax
jne 0x403049
push ebx
push ebx
push ebx
push ebx
push 2
push 1
mov ecx, esi
call fcn.004027bf
test eax, eax
je 0x403074
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, eax
and eax, 0xffff
or eax, 0x80070000
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x28], ecx
xor eax, eax
cmp dword [esi + 0x28], ebx
lea ecx, [ebp + 8]
setge al
or dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.0046c488
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x40326d
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x47907f
call fcn.0045c5c4
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [esi + 0x28], ebx
mov eax, dword [0x4a94a4]
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x24], ebx
mov dword [ebp - 4], 1
jne 0x4032c3
push ebx
push ebx
push ebx
push ebx
push 0xf003f
push ebx
call fcn.004027bf
test eax, eax
jne 0x4032c3
push ebx
push ebx
push ebx
push ebx
push 8
push ebx
mov ecx, esi
call fcn.004027bf
test eax, eax
je 0x403362
push edi
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x14]
mov eax, 0x12c
push ebx
push ecx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.0046c86c
push eax
push dword [ebp + 0xc]
push dword [esi + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, 0xffff
mov ecx, eax
and eax, edi
or eax, 0x80070000
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x28], ecx
and ecx, edi
cmp ecx, 0xea
jne 0x40334f
push ebx
lea ecx, [ebp - 0x10]
call fcn.0046c8bb
mov ecx, esi
call fcn.004031dd
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x14]
inc eax
push ebx
push ecx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.0046c86c
push eax
push dword [ebp + 0xc]
push dword [esi + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, eax
and eax, edi
or eax, 0x80070000
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x28], ecx
cmp dword [esi + 0x28], ebx
pop edi
lea ecx, [ebp - 0x10]
jl 0x40335c
push 0xffffffffffffffff
jmp 0x40335d
push ebx
call fcn.0046c8bb
cmp dword [esi + 0x28], ebx
mov ecx, dword [ebp + 8]
jl 0x40337c
lea eax, [ebp - 0x10]
push eax
call fcn.0046c1fd
mov dword [ebp - 0x18], 1
jmp 0x40338d
push 0x4acd28
call fcn.0046c4f6
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0046c488
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8