joyce8/EMBER2024-capa huggingface dataset:
Function at 0x520280
Capabilities:
Encode data using xor

Disassembly:
pushal
mov ecx, section..data
mov edx, 0x4029f35b
mov ebx, 0xd0a5cae6
mov ebp, 0x302
mov esi, 0x6e
call 0x52029f
xchg ecx, esi
pop eax
add eax, 0x16
mov edi, eax
xor dword [edi], edx
xor ebx, dword [edi]
xchg ebx, ebp
add edi, 4
loop 0x5202a7
jmp eax
Function at 0x1a648af
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
mov word [esp + 2], dx
pop word [esp + 7]
jmp 0x1a648bf
push word [esp + 0x11]
push word [esp + 5]
lea esp, [esp + 2]
jmp 0x1a648df
mov dword [esp + 0x80], edi
lea esp, [esp + 0x80]
jmp 0x1a64ab1
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x1a6402f
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x1a64a02

Function at 0x1a64b53
Capabilities:
Parse pe header

Disassembly:
push word [esp + 1]
mov dword [esp + 1], ecx
lea esp, [esp + 7]
mov byte [esp], ch
call fcn.01a648d5
push word [esp + 1]
jmp 0x1a648f9
Function at 0x417fd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.004054f0
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx edx, word [esp + 8]
sub edx, 0x41
lea ebx, [esp + 4]
call fcn.00414aa0
mov ebx, dword [esp + 4]
call fcn.00414ba0
cmp eax, 0xffffffff
jne 0x41804f
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00401148
add esp, 0x218
ret
push esi
call fcn.00417da0
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.00401148
add esp, 0x218
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x40cdc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
or ebp, 0xffffffff
jmp 0x40cde2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40cde9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40cdd8
mov eax, 1
add ebx, ebx
jne 0x40cdfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40cdf0
jne 0x40ce0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40cdf0
xor ecx, ecx
sub eax, 3
jb 0x40ce20
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40ce92
mov ebp, eax
add ebx, ebx
jne 0x40ce2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40ce38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40ce5c
inc ecx
add ebx, ebx
jne 0x40ce48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40ce3d
jne 0x40ce59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40ce3d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40ce7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40ce6d
jmp 0x40cdde
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40ce7c
add edi, ecx
jmp 0x40cdde
pop esi
mov edi, esi
mov ecx, 0x136
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40ce9a
cmp byte [edi], 7
jne 0x40ce9a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40ce9f
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40cf0e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40cecc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc068]
or eax, eax
je 0x40cf08
mov dword [ebx], eax
add ebx, 4
jmp 0x40cee9
call dword [esi + 0xc06c]
popal
jmp 0x402928
Function at 0x4051bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4087b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004042aa
and dword [ebp - 0x14], 0
cmp dword [0x40c910], 0
mov dword [ebp - 0x18], eax
jne 0x40526e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405316
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405316
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40c910], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40c914], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40c918], eax
call edi
push eax
call esi
mov dword [0x40c920], eax
test eax, eax
je 0x40526e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40c91c], eax
mov eax, dword [0x40c91c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4052c7
cmp dword [0x40c920], ecx
je 0x4052c7
push eax
call esi
push dword [0x40c920]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4052c7
test ebx, ebx
je 0x4052c7
call edi
test eax, eax
je 0x4052be
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4052be
test byte [ebp - 8], 1
jne 0x4052c7
or dword [ebp + 0x10], 0x200000
jmp 0x4052fa
mov eax, dword [0x40c914]
cmp eax, dword [ebp - 0x18]
je 0x4052fa
push eax
call esi
test eax, eax
je 0x4052fa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4052fa
mov eax, dword [0x40c918]
cmp eax, dword [ebp - 0x18]
je 0x4052fa
push eax
call esi
test eax, eax
je 0x4052fa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40c910]
call esi
test eax, eax
je 0x405316
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405318
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405526
leave
ret

Function at 0x405526
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4087b0]
jne 0x405530
repz ret
jmp fcn.00406693
Function at 0x403350
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.00404d6c
test esi, esi
jne 0x403386
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.00404e5c
jmp 0x4033a4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403254
mov edi, eax
test esi, esi
je 0x4033a4
cmp dword [ebx], 0
je 0x4033a4
dec esi
jmp 0x40338d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4033d8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x1239008], 0x8088405
inc edx
mov dword [ebx + 0x1239008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403c44
Capabilities:
Query or enumerate registry value

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

Function at 0x404b38
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x123e04c], 0
je 0x404b99
cmp word [0x123e220], 0xd7b2
jne 0x404b61
cmp dword [0x123e228], 0
jbe 0x404b61
mov eax, 0x123e21c
call dword [0x123e238]
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 0x404bc0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x1239030], 0
jne 0x404bb5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404cf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x1239034], 0
je 0x404d16
mov edx, esi
mov eax, ebx
call dword [0x1239034]
jmp 0x404d25
mov eax, 8
call fcn.00402f64
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x123e04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404cb8
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x409790
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4097e2
test eax, edx
je 0x4097e5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4097a5
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 0x4097cb
add ecx, 4
js 0x4097bb
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4097c8
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 0x4097f1
test edx, edx
jne 0x409798
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004051fc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a12d
test al, 0x10
je 0x40a131
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004051fc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a151
test al, 0x10
jne 0x40a155
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d82c
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 0x40d865
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404e5c
jmp 0x40d86e
mov eax, ebx
mov edx, esi
call fcn.00404dc0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40dda4
mov eax, dword [0x123d4f0]
cmp byte [eax], 0
je 0x40dfa8
mov eax, dword [0x123d134]
call fcn.0040352c
call fcn.004030c0
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.0040a364
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 0x40dff0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40dfde
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x123d0b0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x12407f8]
call fcn.00406524
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 0x40e8cc
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 0x40e9a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404e04
lea eax, [ebp - 4]
call fcn.00405254
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004051fc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e98c
mov eax, ebx
call fcn.00402f64
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e985
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.004051fc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e96f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e9b4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e96f
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 0x40e98c
mov eax, dword [ebp - 0x10]
call fcn.00402f80
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e9a9
lea eax, [ebp - 4]
call fcn.00404d6c
ret

Function at 0x425a68
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004257a4
dec esi
jne 0x425a8a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x426bfc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x12429f0
cmp dword [edi], 0
jne 0x426c78
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x12429ec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x1239c18
mov ecx, 2
call fcn.00403154
mov edx, 0x426bd4
lea eax, [esi + 5]
call fcn.00426bf4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00426bf4
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 0x426c4d
mov dword [0x12429ec], 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 0x429750
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 0x4298ba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404e04
mov eax, dword [ebp - 4]
call fcn.0042920c
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4297a2
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004052a4
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.00429b2c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x429877
xor eax, eax
push ebp
push 0x429870
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0042937c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004298c8
test al, al
je 0x42984e
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00404e5c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x42984e
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.004051fc
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x429848
mov eax, dword [ebp - 8]
call fcn.004051fc
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404f64
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.00429750
dec ebx
cmp ebx, 0xffffffff
jne 0x429801
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429877
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0042937c
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.004051fc
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00429368
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 0x4298c1
lea eax, [ebp - 0x3c]
call fcn.00404d6c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404d90
ret
Function at 0x429877
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 0x4298ba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404e04
mov eax, dword [ebp - 4]
call fcn.0042920c
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4297a2
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004052a4
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.00429b2c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x429877
xor eax, eax
push ebp
push 0x429870
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0042937c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004298c8
test al, al
je 0x42984e
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00404e5c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x42984e
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.004051fc
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x429848
mov eax, dword [ebp - 8]
call fcn.004051fc
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404f64
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.00429750
dec ebx
cmp ebx, 0xffffffff
jne 0x429801
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429877
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0042937c
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.004051fc
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00429368
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 0x4298c1
lea eax, [ebp - 0x3c]
call fcn.00404d6c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404d90
ret

Function at 0x4298c8
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.004036dc
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 [0x123d6dc]
cmp byte [edx + 0xc], 0
je 0x42992c
mov edx, dword [0x123d6c4]
cmp dword [edx], 2
jne 0x42992c
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