joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432970
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x468948
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4329a9
inc eax
mov dword [esi + 0x10], eax
jmp 0x432abc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4329bd
mov eax, 0xffffffc7
jmp 0x432abe
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4329ce
cmp dword [esi + 8], eax
jne 0x4329bd
cmp dword [esi + 8], eax
jne 0x4329e7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4329e7
mov eax, 0xffffffc7
jmp 0x432abe
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4329fb
push eax
mov ecx, ebx
call fcn.004321a0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00402cd0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x432a2c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00402cf0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00431910
test eax, eax
mov dword [esp + 0x38], eax
je 0x432a5f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x592468
call fcn.00402ed0
mov eax, dword [esp + 0x38]
jmp 0x432abe
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004327d0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x432aa3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004327f0
mov esi, eax
test esi, esi
jne 0x432ad3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004327d0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x432a75
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x592468
call fcn.00402ed0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x592468
call fcn.00402ed0
mov eax, esi
jmp 0x432abe

Function at 0x435c00
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x435c60
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x435c60
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x435c60
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x435c60
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x435ca0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43bbb0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468f78
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.00461db0
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043b550
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.00461cde
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.0045e5a2
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.0045e5a2
push 1
push 0
push 0
mov ecx, esi
call fcn.0045e54a
push 1
push 0
push 1
mov ecx, esi
call fcn.0045e54a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00461e22
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43bd30
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468f98
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.00461db0
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043b550
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.00461cde
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 0x43bdf4
cmp dword [esp + 0x40], 1
jne 0x43bdf2
cmp ecx, eax
jge 0x43bdf4
mov eax, ecx
cmp eax, 0xc8
jge 0x43be00
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043bbb0
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.00461e22
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43c580
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x469003
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.0045c9c2
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.00462058
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00463574
test eax, eax
je 0x43c69c
mov ecx, dword [esp + 0x3c]
call fcn.00462085
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 0x43c660
push edi
mov ecx, esi
call fcn.0045f6e9
mov ecx, esi
call fcn.0043c800
cmp dword [esp + 0x38], 1
jne 0x43c695
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.0045f824
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 0x43f0c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43f0f3
push esi
call fcn.004421b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43f0ec
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 0x43f179
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43f162
mov eax, dword [esi + 8]
test eax, eax
je 0x43f117
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 0x43f15e
cmp eax, 2
je 0x43f162
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43f10a
cmp eax, 3
je 0x43f13d
cmp eax, 1
jne 0x43f10a
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 0x43f10a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43f10a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043f1a0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43f188
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043f1a0
add esp, 4
pop esi
ret

Function at 0x45d7b8
Capabilities:
Get graphical window text

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

Function at 0x45eea6
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 0x45eee8
call fcn.0046495f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45eee8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45eedf
xor eax, eax
jmp 0x45eef0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045eef6
pop edi
pop esi
pop ebx
ret 4

Function at 0x464e8f
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 0x464ebd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x464edb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00464df5
jmp 0x464edb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x464edb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00464df5
test edi, edi
mov eax, edi
jne 0x464ec5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403161
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x403161
lcall 0x5de5, 0x8b10c483
jmp loc.00791034
Function at 0x401344
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401356
mov eax, dword [0x47d08b]
shl eax, 2
mov dword [0x47d08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00472400
pop edx
call fcn.00472364
call fcn.00472440
push 0
call fcn.0047384c
pop ecx
push 0x47d034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x47d093], eax
push 0
jmp fcn.00477690
Function at 0x4071b8
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
push esp
push 0x101
call sub.WSOCK32.DLL_WSAStartup
test eax, eax
je 0x4071d1
xor eax, eax
jmp 0x4071d3
mov al, 1
add esp, 0x190
ret

Function at 0x407428
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
mov eax, 0x480420
push ebx
push esi
push edi
call fcn.00472bac
mov word [ebp - 0x1c], 8
xor edx, edx
mov dword [ebp - 4], edx
inc dword [ebp - 0x10]
mov word [ebp - 0x1c], 0x14
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x44]
call fcn.004071b8
test al, al
je 0x4074d0
push 0x100
lea ecx, [ebp - 0x12c]
push ecx
call sub.WSOCK32.DLL_gethostname
test eax, eax
jne 0x4074d0
lea eax, [ebp - 0x12c]
push eax
call sub.WSOCK32.DLL_gethostbyname
mov esi, eax
xor ebx, ebx
mov eax, dword [esi + 0xc]
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x4074d0
mov word [ebp - 0x1c], 0x20
mov eax, dword [esi + 0xc]
push edi
xor edx, edx
lea ecx, [ebp - 8]
mov dword [ebp - 8], edx
push ecx
inc dword [ebp - 0x10]
call fcn.004071dc
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
add esp, 8
mov ecx, dword [eax]
mov edx, dword [edx]
call dword [ecx + 0x38]
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0047b94c
inc ebx
jmp 0x407488
mov al, 1
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x10]
call fcn.0047b94c
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bd4c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
xor esi, esi
jmp 0x40bdab
lea eax, [ebp - 4]
push eax
push ebx
push edi
call sub.ADVAPI32.DLL_RegOpenKeyA
test eax, eax
je 0x40bd71
inc esi
jmp 0x40bdab
lea edx, [ebp - 8]
push edx
push ebx
mov ecx, dword [ebp + 0xc]
push ecx
call sub.ADVAPI32.DLL_RegCreateKeyA
mov eax, dword [ebp + 0x18]
push eax
push ebx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ebp - 4]
push eax
call fcn.0040bd4c
add esp, 0x14
mov edx, dword [ebp - 4]
push edx
call sub.ADVAPI32.DLL_RegCloseKey
mov ecx, dword [ebp - 8]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
inc esi
push 0x100
push ebx
push esi
push edi
call sub.ADVAPI32.DLL_RegEnumKeyA
test eax, eax
je 0x40bd5f
xor esi, esi
mov dword [ebp - 0x14], 0x100
mov dword [ebp - 0x10], 0x100
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 0x18]
push edx
push ecx
push 0
push eax
push ebx
push esi
push edi
call sub.ADVAPI32.DLL_RegEnumValueA
cmp eax, 0x103
je 0x40be37
cmp eax, 0xea
jne 0x40bdf7
inc esi
jmp 0x40bdbe
test eax, eax
jne 0x40be37
cmp dword [ebp + 0x10], 0
jne 0x40be1c
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push 0
push ebx
mov ecx, dword [ebp + 0xc]
push ecx
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x40be1c
inc esi
jmp 0x40bdbe
mov eax, dword [ebp - 0x10]
push eax
mov edx, dword [ebp + 0x18]
push edx
mov ecx, dword [ebp - 0xc]
push ecx
push 0
push ebx
mov eax, dword [ebp + 0xc]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
inc esi
jmp 0x40bdbe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41bf18
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x486c10
cmp dword [edi], 0
jne 0x41bf94
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x486c0c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x48239c
mov ecx, 2
call fcn.004303b8
mov edx, 0x41bef0
lea eax, [esi + 5]
call fcn.0041bf10
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041bf10
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41bf69
mov dword [0x486c0c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41d34c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41d4b5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00431cf8
mov eax, dword [ebp - 0x10]
call fcn.0041d0b4
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x41d39e
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.004321b0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0041d8c8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41d473
xor eax, eax
push ebp
push 0x41d46c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0041d224
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0041d4c4
test al, al
je 0x41d44a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00431d50
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x41d44a
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00432110
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
jne 0x41d444
mov eax, dword [ebp - 0x14]
call fcn.00432110
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00431e50
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0041d34c
dec ebx
cmp ebx, 0xffffffff
jne 0x41d3fd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d473
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0041d224
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 0x10]
call fcn.00432110
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0041d210
push eax
call sub.ADVAPI32.DLL_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d4bc
lea eax, [ebp - 0x3c]
call fcn.00431c60
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00431c84
ret
Function at 0x41d473
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41d4b5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00431cf8
mov eax, dword [ebp - 0x10]
call fcn.0041d0b4
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x41d39e
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.004321b0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0041d8c8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41d473
xor eax, eax
push ebp
push 0x41d46c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0041d224
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0041d4c4
test al, al
je 0x41d44a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00431d50
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x41d44a
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00432110
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
jne 0x41d444
mov eax, dword [ebp - 0x14]
call fcn.00432110
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00431e50
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0041d34c
dec ebx
cmp ebx, 0xffffffff
jne 0x41d3fd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d473
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0041d224
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 0x10]
call fcn.00432110
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0041d210
push eax
call sub.ADVAPI32.DLL_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d4bc
lea eax, [ebp - 0x3c]
call fcn.00431c60
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00431c84
ret

Function at 0x41d4c4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00430a40
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x48676c]
cmp byte [edx + 0xc], 0
je 0x41d528
mov edx, dword [0x486764]
cmp dword [edx], 2
jne 0x41d528
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x41d52c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x41d5e4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0041d4c4
test al, al
je 0x41d5c6
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00431d50
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x41d5c6
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00432110
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.00432110
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00431e50
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x41d57f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d5eb
lea eax, [ebp - 0x2c]
call fcn.00431c60
lea eax, [ebp - 0xc]
call fcn.00431c60
ret

Function at 0x41d7dc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0041d0c8
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00432110
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x41d83a
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x486748]
mov dl, 1
mov eax, dword [0x41cfc0]
call fcn.00423d4c
call fcn.004318c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41d844
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00432110
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x41d89c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x486744]
mov dl, 1
mov eax, dword [0x41cfc0]
call fcn.00423d4c
call fcn.004318c0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d0f8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x420654
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00432110
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42066d
test al, 0x10
jne 0x420671
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret