joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452bbe
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x452beb
call fcn.00453b30
mov dword [eax], esi
call fcn.00453b1d
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0045219a
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x452c09
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00453b43
pop ecx
jmp 0x452be6
test byte [esp + 0xc], 0x80
je 0x452c15
and eax, 0xfffffffe
jmp 0x452c18
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x452bfa
xor eax, eax
pop esi
ret

Function at 0x464f5b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00458bb6
xor ebx, ebx
cmp dword [0x49efb8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x465030
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x464f9b
xor eax, eax
jmp 0x4650f4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x464f94
push eax
call fcn.00458b53
mov dword [esp], 0x47c788
push edi
mov dword [0x49efb8], eax
call esi
push eax
call fcn.00458b53
mov dword [esp], 0x47c774
push edi
mov dword [0x49efbc], eax
call esi
push eax
call fcn.00458b53
mov dword [0x49efc0], eax
lea eax, [ebp - 8]
push eax
call fcn.00452d02
test eax, eax
pop ecx
pop ecx
je 0x464ffe
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045209e
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x465030
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00458b53
cmp eax, ebx
pop ecx
mov dword [0x49efc8], eax
je 0x465030
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00458b53
pop ecx
mov dword [0x49efc4], eax
mov eax, dword [0x49efc4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4650a9
cmp dword [0x49efc8], esi
je 0x4650a9
push eax
call fcn.00458bbf
pop ecx
call eax
cmp eax, ebx
je 0x465076
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x49efc8]
call fcn.00458bbf
pop ecx
call eax
test eax, eax
je 0x465076
test byte [ebp - 0x18], 1
jne 0x4650a9
lea eax, [ebp - 0xc]
push eax
call fcn.00452d39
test eax, eax
pop ecx
je 0x465091
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045209e
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4650a0
or dword [ebp + 0x10], 0x200000
jmp 0x4650da
or dword [ebp + 0x10], 0x40000
jmp 0x4650da
mov eax, dword [0x49efbc]
cmp eax, esi
je 0x4650da
push eax
call fcn.00458bbf
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4650da
mov eax, dword [0x49efc0]
cmp eax, esi
je 0x4650da
push dword [ebp - 4]
push eax
call fcn.00458bbf
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x49efb8]
call fcn.00458bbf
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46e810
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x49a7f0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0046e7a5
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00454dc0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x46e85f
cmp dword [ebp - 0x1c], 5
jb 0x46e877
jmp 0x46e873
cmp dword [ebp - 0x10], 1
jne 0x46e877
cmp dword [ebp - 0x1c], 4
ja 0x46e873
jne 0x46e877
cmp dword [ebp - 0x18], 0
jbe 0x46e877
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x47e84c
call fcn.00418930
test eax, eax
jge 0x46e898
mov byte [0x4a041c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004507b7
add ebp, 0x78
leave
ret

Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43200c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4029e0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402a1d
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402a3d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404af0
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402c04
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404870
test esi, esi
jne 0x402c3a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404960
jmp 0x402c58
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402ab8
mov edi, eax
test esi, esi
je 0x402c58
cmp dword [ebx], 0
je 0x402c58
dec esi
jmp 0x402c41
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403988
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4a8020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403a20
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403a00
xor eax, eax
push ebp
push 0x4039f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403a3c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403a00
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4a8020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4a8020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4046f4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ac04c], 0
je 0x404755
cmp word [0x4ac220], 0xd7b2
jne 0x40471d
cmp dword [0x4ac228], 0
jbe 0x40471d
mov eax, 0x4ac21c
call dword [0x4ac238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a8090
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40477c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a8030], 0
jne 0x404771
push 0
push 0x4a8088
push 0x4a8090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406ae0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406b46
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404af0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004033f0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406b30
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406b4d
lea eax, [ebp - 0x10]
call fcn.00404870
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404d40
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4097d9
test al, 0x10
jne 0x4097dd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c908
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c941
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404960
jmp 0x40c94a
mov eax, ebx
mov edx, esi
call fcn.004048c4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c954
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c975
mov al, byte [esp]
jmp 0x40c977
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d148
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cfc0
mov eax, dword [0x4ab23c]
cmp byte [eax], 0
je 0x40d1c4
mov eax, dword [0x4aaf94]
call fcn.0040304c
call fcn.00402960
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409b90
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40d20c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d1fa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4aaf2c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ac668]
call fcn.00405fd8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40dab4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40db8a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404908
lea eax, [ebp - 8]
call fcn.00404d90
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404d40
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40db74
mov eax, ebx
call fcn.004027f8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40db6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404d40
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40db57
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40db9c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40db57
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40db74
mov eax, dword [ebp - 0x10]
call fcn.00402818
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40db91
lea eax, [ebp - 8]
call fcn.00404870
ret

Function at 0x40e09c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40e100
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404af0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409420
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e107
lea eax, [ebp - 0xc]
call fcn.00404870
ret

Function at 0x4229c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4ac88c
cmp dword [edi], 0
jne 0x422a3c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4ac888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4a8544
mov ecx, 2
call fcn.00402a78
mov edx, 0x422998
lea eax, [esi + 5]
call fcn.004229b8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004229b8
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 0x422a11
mov dword [0x4ac888], 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 0x423218
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 0x423381
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404908
mov eax, dword [ebp - 0x10]
call fcn.00422ea4
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x42326a
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404de0
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.004236bc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42333f
xor eax, eax
push ebp
push 0x423338
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00423014
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004233b0
test al, al
je 0x423316
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404960
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x423316
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.00404d40
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x423310
mov eax, dword [ebp - 0x14]
call fcn.00404d40
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404a78
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00423218
dec ebx
cmp ebx, 0xffffffff
jne 0x4232c9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42333f
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00423014
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404d40
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00423000
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 0x423388
lea eax, [ebp - 0x3c]
call fcn.00404870
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404894
ret
Function at 0x42333f
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 0x423381
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404908
mov eax, dword [ebp - 0x10]
call fcn.00422ea4
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x42326a
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404de0
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.004236bc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42333f
xor eax, eax
push ebp
push 0x423338
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00423014
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004233b0
test al, al
je 0x423316
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404960
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x423316
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.00404d40
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x423310
mov eax, dword [ebp - 0x14]
call fcn.00404d40
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404a78
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00423218
dec ebx
cmp ebx, 0xffffffff
jne 0x4232c9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42333f
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00423014
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404d40
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00423000
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 0x423388
lea eax, [ebp - 0x3c]
call fcn.00404870
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404894
ret

Function at 0x4233b0
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.004032bc
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 [0x4ab3b0]
cmp byte [edx + 0xc], 0
je 0x423414
mov edx, dword [0x4ab3a4]
cmp dword [edx], 2
jne 0x423414
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 0x423418
Capabilities:
Query or enumerate registry value

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 0x4234d0
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.004233b0
test al, al
je 0x4234b2
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00404960
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x4234b2
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
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.00404d40
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.00404d40
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404a78
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x42346b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4234d7
lea eax, [ebp - 0x2c]
call fcn.00404870
lea eax, [ebp - 0xc]
call fcn.00404870
ret

Function at 0x4235d0
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.00422eb8
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.00404d40
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x42362e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4ab10c]
mov dl, 1
mov eax, dword [0x422d44]
call fcn.0040d314
call fcn.004042ac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x423638
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.00404d40
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x423690
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4ab3bc]
mov dl, 1
mov eax, dword [0x422d44]
call fcn.0040d314
call fcn.004042ac
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00422ee8
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 0x4238e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4239f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.00423014
xor eax, eax
push ebp
push 0x4239d2
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004233b0
test al, al
je 0x4239b6
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004237c0
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00404960
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x4239b6
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
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.00404d40
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumValueA
test eax, eax
jne 0x4239b2
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404d40
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.00404a78
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004237c0
pop ecx
inc edi
dec ebx
jne 0x423967
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4239d9
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.00423014
ret