joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
call section..rsrc
push 0x404f1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.00403920
test eax, eax
je 0x402bb1
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004021b0
call fcn.004020c0
push 0
push str.____AVP.Root
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x402be6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x10001
push 0x466
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
call fcn.00402340
call fcn.00402430
call fcn.00402520
call fcn.00402660
mov edi, dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
call edi
test eax, eax
jne 0x402c17
call fcn.004033b0
test eax, eax
je 0x402c17
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call edi
push 0x4045b8
mov ebx, eax
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x402c50
push 0x4045c8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x402c50
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 8], 0
je 0x402ca2
test ebx, ebx
je 0x402c70
push str._apppatch_
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x402c93
lea esi, [ebp - 0x10c]
call fcn.00401130
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call fcn.00401b70
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402db4
call fcn.004028b0
call fcn.00401520
jmp 0x402db4
test ebx, ebx
je 0x402d59
push str._apppatch_
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x402cfd
lea esi, [ebp - 0x10c]
call fcn.00401130
push 0x404ea0
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
test ax, ax
jne 0x402db4
push 0x404ea0
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
call edi
test eax, eax
je 0x402d95
lea ecx, [ebp - 1]
push ecx
jmp 0x402d89
call fcn.004028b0
push 0x404ea0
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
test ax, ax
jne 0x402d52
push 0x404ea0
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
call edi
test eax, eax
je 0x402d33
lea edx, [ebp - 1]
push edx
push 0
push 1
push 0x14
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
call edi
test eax, eax
mov eax, 0x404ebc
jne 0x402d43
mov eax, 0x404ecc
push eax
call fcn.00401aa0
test eax, eax
je 0x402d52
call fcn.00401b70
call fcn.00401520
jmp 0x402db4
lea esi, [ebp - 0x10c]
call fcn.00401130
push 0x404ea0
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
test ax, ax
jne 0x402db4
push 0x404ea0
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
call edi
test eax, eax
je 0x402d95
lea eax, [ebp - 1]
push eax
push 0
push 1
push 0x14
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
call edi
test eax, eax
mov eax, 0x404ebc
jne 0x402da5
mov eax, 0x404ecc
push eax
call fcn.00401aa0
test eax, eax
je 0x402db4
call fcn.00401b70
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403ad0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, 0xffffffff
test ecx, ecx
mov esi, dword [ebp + 8]
je 0x403af9
xor al, byte [esi]
movzx edx, al
shr eax, 8
mov edx, dword [edx*4 + section..data]
inc esi
xor eax, edx
dec ecx
jne 0x403ae4
xor eax, 0xffffffff
pop esi
leave
ret 0xc

Function at 0x43b645
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop edi
sub eax, eax
or eax, ecx
call fcn.0043b681
mov eax, ecx
sub eax, 0x1372d163
and eax, ecx
xor dword [edx], edi
or eax, eax
inc edx
dec ecx
add eax, 0x6f29354a
sub eax, ecx
cmp edx, ebx
jne fcn.0043b645
add eax, 0xf1fbd773
push eax
pop ecx
add eax, ecx
ret
Function at 0x403974
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x498020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403a0c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4039ec
xor eax, eax
push ebp
push 0x4039e5
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 0x403a28
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 0x4039ec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x498020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x498020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40484c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49c04c], 0
je 0x4048ad
cmp word [0x49c220], 0xd7b2
jne 0x404875
cmp dword [0x49c228], 0
jbe 0x404875
mov eax, 0x49c21c
call dword [0x49c238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x4048d4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49802c], 0
jne 0x4048c9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4060f8
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 0x406328
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40617b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406328
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40617b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406344
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406204
xor eax, eax
push ebp
push 0x4061fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405f34
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 0x4061e2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406364
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4061e2
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 0x406204
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 0x40631e
cmp byte [ebp - 0xd], 0
jne 0x40624b
cmp byte [ebp - 0x12], 0
je 0x40631e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406264
dec ebx
cmp byte [ebx], 0x2e
je 0x406273
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406263
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40631e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4062b0
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 0x40631e
cmp byte [ebp - 0xd], 0
je 0x40631e
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 0x40631e
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 0x408f90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408fe2
test eax, edx
je 0x408fe5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408fa5
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x408fcb
add ecx, 4
js 0x408fbb
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408fc8
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408ff1
test edx, edx
jne 0x408f98
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00404e5c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4099be
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4099df
cmp ebx, 3
je 0x4099df
cmp ebx, 0x7b
je 0x4099df
mov eax, esi
call fcn.00409960
test al, al
jne 0x4099e3
xor eax, eax
jmp 0x4099e5
mov al, 1
pop esi
pop ebx
ret

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

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

Function at 0x40c4cc
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 0x40c505
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404abc
jmp 0x40c50e
mov eax, ebx
mov edx, esi
call fcn.00404a20
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c518
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 0x40c53a
movzx eax, byte [esp]
jmp 0x40c53c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40cbcc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ca44
mov eax, dword [0x49af2c]
cmp byte [eax], 0
je 0x40cc48
mov eax, dword [0x49acb4]
call fcn.004032dc
call fcn.00403080
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.00409bc4
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 0x40cc90
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cc7e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x49ac58]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x49e7f8]
call fcn.00405edc
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 0x40d55c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d632
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404a64
lea eax, [ebp - 4]
call fcn.00404eb4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404e5c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d61c
mov eax, ebx
call fcn.00402f24
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d615
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 - 4]
call fcn.00404e5c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d5ff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d644
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d5ff
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d61c
mov eax, dword [ebp - 0x10]
call fcn.00402f40
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d639
lea eax, [ebp - 4]
call fcn.004049cc
ret
Function at 0x420680
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4a09ec
cmp dword [edi], 0
jne 0x4206fc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4a09e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x498b90
mov ecx, 2
call fcn.00403114
mov edx, 0x420658
lea eax, [esi + 5]
call fcn.00420678
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00420678
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 0x4206d1
mov dword [0x4a09e8], 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 0x423060
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 - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4231ca
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404a64
mov eax, dword [ebp - 4]
call fcn.00422ae0
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4230b2
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00404f04
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0042344c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x423187
xor eax, eax
push ebp
push 0x423180
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00422c8c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004231d8
test al, al
je 0x42315e
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00404abc
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x42315e
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00404e5c
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x423158
mov eax, dword [ebp - 8]
call fcn.00404e5c
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404bc4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.00423060
dec ebx
cmp ebx, 0xffffffff
jne 0x423111
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423187
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00422c8c
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.00404e5c
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00422c78
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 0x4231d1
lea eax, [ebp - 0x3c]
call fcn.004049cc
lea eax, [ebp - 8]
mov edx, 2
call fcn.004049f0
ret
Function at 0x423187
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 - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4231ca
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404a64
mov eax, dword [ebp - 4]
call fcn.00422ae0
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4230b2
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00404f04
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0042344c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x423187
xor eax, eax
push ebp
push 0x423180
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00422c8c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004231d8
test al, al
je 0x42315e
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00404abc
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x42315e
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00404e5c
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x423158
mov eax, dword [ebp - 8]
call fcn.00404e5c
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404bc4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.00423060
dec ebx
cmp ebx, 0xffffffff
jne 0x423111
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423187
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00422c8c
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.00404e5c
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00422c78
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 0x4231d1
lea eax, [ebp - 0x3c]
call fcn.004049cc
lea eax, [ebp - 8]
mov edx, 2
call fcn.004049f0
ret

Function at 0x4231d8
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.0040348c
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 [0x49b0a0]
cmp byte [edx + 0xc], 0
je 0x42323c
mov edx, dword [0x49b090]
cmp dword [edx], 2
jne 0x42323c
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 0x423360
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
movzx eax, byte [ebp + 8]
call fcn.00422af4
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.00404e5c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4233bf
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x49ae14]
mov dl, 1
mov eax, dword [0x422980]
call fcn.0040cd98
call fcn.004043f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4233c8
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.00404e5c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x423420
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x49b0b0]
mov dl, 1
mov eax, dword [0x422980]
call fcn.0040cd98
call fcn.004043f0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00422b24
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 0x42367c
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 - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x423793
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.00422c8c
xor eax, eax
push ebp
push 0x42376e
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.004231d8
test al, al
je 0x423752
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0042355c
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00404abc
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x423752
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404e5c
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumValueA
test eax, eax
jne 0x42374e
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404e5c
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.00404bc4
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0042355c
pop ecx
inc edi
dec ebx
jne 0x423703
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423775
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.00422c8c
ret