joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e22
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4014
call fcn.004133d0
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
lea edi, [esi + 0x10]
cmp ebx, 0x1c
jb 0x402f73
cmp dword [esi], 0x80000001
jne 0x402f73
and dword [ebp - 0x4010], 0
cmp dword [esi + 4], 0
jbe 0x402f62
mov ecx, dword [edi]
jmp 0x402e74
cmp byte [esi + ecx], 0
je 0x402e7e
inc ecx
mov dword [ebp - 0x400c], ecx
cmp ebx, ecx
ja 0x402e6d
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
cmp ebx, eax
jb 0x402f73
cmp ebx, ecx
je 0x402f73
xor eax, eax
push 0x2000
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x2004]
push eax
call fcn.00404150
mov eax, dword [edi]
mov ecx, 0x1000
and dword [ebp - 0x4008], 0
add eax, esi
push ecx
push eax
push ecx
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x4008]
push eax
call fcn.00407765
add esp, 0x20
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x4004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
push eax
push 0x8000080
push 2
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x4004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4014], eax
cmp eax, 0xffffffff
je 0x402f73
push 0
lea ecx, [ebp - 0x400c]
push ecx
push dword [edi + 8]
mov ecx, dword [edi + 4]
add ecx, esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402f67
mov eax, dword [ebp - 0x400c]
cmp eax, dword [edi + 8]
jne 0x402f67
push dword [ebp - 0x4014]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4010]
add edi, 0xc
inc eax
mov dword [ebp - 0x4010], eax
cmp eax, dword [esi + 4]
jb 0x402e69
xor eax, eax
inc eax
jmp 0x402f7d
push dword [ebp - 0x4014]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040310d
mov esp, ebp
pop ebp
ret
Function at 0x4073e1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43302c]
jne 0x4073eb
repz ret
jmp fcn.004092ed

Function at 0x4124a3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409781
and dword [ebp - 4], 0
cmp dword [0x435474], 0
mov ebx, eax
jne 0x412554
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x412605
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x412605
push eax
call fcn.0040970f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x435474], eax
call esi
push eax
call fcn.0040970f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x435478], eax
call esi
push eax
call fcn.0040970f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43547c], eax
call esi
push eax
call fcn.0040970f
pop ecx
mov dword [0x435484], eax
test eax, eax
je 0x412554
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040970f
pop ecx
mov dword [0x435480], eax
mov eax, dword [0x435480]
cmp eax, ebx
je 0x4125ac
cmp dword [0x435484], ebx
je 0x4125ac
push eax
call fcn.0040978a
push dword [0x435484]
mov esi, eax
call fcn.0040978a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4125ac
test edi, edi
je 0x4125ac
call esi
test eax, eax
je 0x4125a3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4125a3
test byte [ebp - 0xc], 1
jne 0x4125ac
or dword [ebp + 0x10], 0x200000
jmp 0x4125e5
mov eax, dword [0x435478]
cmp eax, ebx
je 0x4125e5
push eax
call fcn.0040978a
pop ecx
test eax, eax
je 0x4125e5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4125e5
mov eax, dword [0x43547c]
cmp eax, ebx
je 0x4125e5
push eax
call fcn.0040978a
pop ecx
test eax, eax
je 0x4125e5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x435474]
call fcn.0040978a
pop ecx
test eax, eax
je 0x412605
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x412607
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
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 [0x4ac020]
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 [0x4ac020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ac020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4046f4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b004c], 0
je 0x404755
cmp word [0x4b0220], 0xd7b2
jne 0x40471d
cmp dword [0x4b0228], 0
jbe 0x40471d
mov eax, 0x4b021c
call dword [0x4b0238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ac090
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 [0x4ac030], 0
jne 0x404771
push 0
push 0x4ac088
push 0x4ac090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4061cc
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4063fc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40624f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4063fc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40624f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406418
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4062d8
xor eax, eax
push ebp
push 0x4062d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406014
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4062b6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406438
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4062b6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4062d8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4063f2
cmp byte [ebp - 0xd], 0
jne 0x40631f
cmp byte [ebp - 0x12], 0
je 0x4063f2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406338
dec ebx
cmp byte [ebx], 0x2e
je 0x406347
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406337
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4063f2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406384
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4063f2
cmp byte [ebp - 0xd], 0
je 0x4063f2
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4063f2
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
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 0x4097d4
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 0x4097ed
test al, 0x10
jne 0x4097f1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c904
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 0x40c93d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404960
jmp 0x40c946
mov eax, ebx
mov edx, esi
call fcn.004048c4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c950
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 0x40c971
mov al, byte [esp]
jmp 0x40c973
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d144
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cfbc
mov eax, dword [0x4af380]
cmp byte [eax], 0
je 0x40d1c0
mov eax, dword [0x4af088]
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.00409b8c
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 0x40d208
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d1f6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4af010]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b0668]
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 0x40dab0
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 0x40db86
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 0x40db70
mov eax, ebx
call fcn.004027f8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40db69
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 0x40db53
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40db98
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40db53
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 0x40db70
mov eax, dword [ebp - 0x10]
call fcn.00402818
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40db8d
lea eax, [ebp - 8]
call fcn.00404870
ret

Function at 0x40e098
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 0x40e0fc
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.00409434
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e103
lea eax, [ebp - 0xc]
call fcn.00404870
ret

Function at 0x422a10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4b088c
cmp dword [edi], 0
jne 0x422a8c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4b0888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4ac544
mov ecx, 2
call fcn.00402a78
mov edx, 0x4229e8
lea eax, [esi + 5]
call fcn.00422a08
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00422a08
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 0x422a61
mov dword [0x4b0888], 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 0x423268
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 0x4233d1
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.00422ef4
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x4232ba
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.0042370c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42338f
xor eax, eax
push ebp
push 0x423388
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00423064
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00423400
test al, al
je 0x423366
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 0x423366
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 0x423360
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.00423268
dec ebx
cmp ebx, 0xffffffff
jne 0x423319
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42338f
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00423064
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.00423050
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 0x4233d8
lea eax, [ebp - 0x3c]
call fcn.00404870
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404894
ret
Function at 0x42338f
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 0x4233d1
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.00422ef4
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x4232ba
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.0042370c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42338f
xor eax, eax
push ebp
push 0x423388
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00423064
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00423400
test al, al
je 0x423366
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 0x423366
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 0x423360
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.00423268
dec ebx
cmp ebx, 0xffffffff
jne 0x423319
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42338f
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00423064
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.00423050
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 0x4233d8
lea eax, [ebp - 0x3c]
call fcn.00404870
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404894
ret

Function at 0x423400
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 [0x4af514]
cmp byte [edx + 0xc], 0
je 0x423464
mov edx, dword [0x4af508]
cmp dword [edx], 2
jne 0x423464
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 0x423468
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 0x423520
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.00423400
test al, al
je 0x423502
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 0x423502
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 0x4234bb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423527
lea eax, [ebp - 0x2c]
call fcn.00404870
lea eax, [ebp - 0xc]
call fcn.00404870
ret

Function at 0x423620
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.00422f08
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 0x42367e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4af21c]
mov dl, 1
mov eax, dword [0x422d94]
call fcn.0040d310
call fcn.004042ac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x423688
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 0x4236e0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4af520]
mov dl, 1
mov eax, dword [0x422d94]
call fcn.0040d310
call fcn.004042ac
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00422f38
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