joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407259
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
mov ebx, 0x40e
push esi
mov edx, ebx
mov esi, ecx
call fcn.0040ae7b
cmp eax, 0xffffffff
jne 0x4072dc
push edi
mov edi, 0x80
lea eax, [ebp - 0x88]
push edi
push 0
push eax
call fcn.0041bcbc
add esp, 0xc
lea eax, [ebp - 0x88]
push eax
push edi
push 0xd
push ebx
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
and dword [ebp - 8], 0
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x88]
push str.__d__c
push eax
call fcn.0041b4fc
add esp, 0x10
pop edi
cmp eax, 1
jne 0x4072dc
mov ecx, dword [esi + 0x4c]
mov eax, dword [ebp - 8]
mov dword [ecx + 0xe9], eax
pop esi
pop ebx
leave
ret

Function at 0x407e65
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 0x14], ebx
lea ecx, [edi + 0xd8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
lea esi, [edi + 0x50]
mov dword [ebp - 8], ebx
call fcn.004019e0
test al, al
je 0x407eb7
mov ecx, dword [esi]
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0x36], eax
mov ecx, dword [esi]
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0x3a], eax
mov ecx, dword [esi]
mov eax, dword [ebp - 0xc]
mov dword [ecx + 0x42], eax
mov ecx, dword [esi]
mov eax, dword [ebp - 8]
mov dword [ecx + 0x46], eax
lea eax, [ebp - 0x98]
push eax
push 0x80
push 0xd
push 0x3f2
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x98]
push eax
call fcn.0040823b
cmp edx, ebx
ja 0x407eee
cmp eax, ebx
jbe 0x407ef3
mov ecx, dword [esi]
mov dword [ecx + 0x2e], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408dbf
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
push edi
push str.DGVOODOOCOMM
push edi
jmp 0x408eb0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push edi
push 0x407
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x408ea9
push 0x5b
pop ecx
inc edi
mov word [ebp + eax - 0x808], cx
lea eax, [edi + edi]
movzx ecx, word [eax + str._Running_]
test cx, cx
jne 0x408e02
lea ecx, [ebp - 0x808]
add ecx, eax
xor eax, eax
mov word [ecx], ax
mov eax, 0x400
sub eax, edi
push eax
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ebx, [edi + eax]
test esi, esi
je 0x408e82
xor edi, edi
push edi
push edi
push 0x40a
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x408e98
push 0x20
lea ecx, [ebp - 0x808]
mov eax, edi
pop edx
lea ecx, [ecx + ebx*2]
inc eax
mov word [ecx], dx
lea ecx, [ecx + 2]
movzx edx, word [eax*2 + str.__already_attached_]
test dx, dx
jne 0x408e60
add eax, ebx
xor ecx, ecx
mov word [ebp + eax*2 - 0x808], cx
jmp 0x408e98
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x808]
push eax
call fcn.00408a12
xor edi, edi
cmp eax, 0xffffffff
jne 0x408ea9
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x808]
push edi
push esi
push eax
call fcn.00408b87
push edi
push str.DGVOODOOCOMM
push esi
push 0xfffffffffffffffd
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
test esi, esi
jne 0x408ddc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push str.RT_CUSTOM
push 0x79
push 0
call edi
test eax, eax
je 0x40a2d0
mov ebx, dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 0
call ebx
test eax, eax
je 0x40a2d0
push eax
call fcn.0041b4ad
add esp, 4
mov esi, eax
push str.RT_CUSTOM
push 0x79
push 0
call edi
mov edi, eax
test edi, edi
je 0x40a2c7
push edi
push 0
call ebx
mov ebx, eax
test ebx, ebx
je 0x40a2c7
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40a2c7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40a2c7
push ebx
push eax
push esi
call fcn.0041bcf0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
ret
push esi
call fcn.0041b4b6
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x40ac74
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0xd
push edx
push dword [ecx + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop ebp
ret
Function at 0x40b3af
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push edx
push dword [ecx + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [ebp + 8]
mov edi, eax
mov ecx, edi
mov esi, dword [edi + 0x8c]
call fcn.0040afe0
mov ebx, eax
cmp esi, ebx
je 0x40b40a
mov ecx, dword [edi + esi*4 + 4]
push 0
call fcn.0040b593
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
mov ecx, dword [edi + ebx*4 + 4]
push 1
call fcn.0040b593
push eax
call esi
push ebx
mov ecx, edi
call fcn.0040b63c
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403404
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.004055fc
test esi, esi
jne 0x40343a
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.004056ec
jmp 0x403458
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004032a8
mov edi, eax
test esi, esi
je 0x403458
cmp dword [ebx], 0
je 0x403458
dec esi
jmp 0x403441
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4044b4
Capabilities:
Query or enumerate registry value

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

Function at 0x4053a8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x65b04c], 0
je 0x405409
cmp word [0x65b220], 0xd7b2
jne 0x4053d1
cmp dword [0x65b228], 0
jbe 0x4053d1
mov eax, 0x65b21c
call dword [0x65b238]
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 0x405430
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x64b034], 0
jne 0x405425
push 0
push 0x64b78c
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405580
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 [0x64b03c], 0
je 0x4055a6
mov edx, esi
mov eax, ebx
call dword [0x64b03c]
jmp 0x4055b5
mov eax, 8
call fcn.00402fac
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x65b04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405548
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 0x407208
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 0x407438
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40728b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407438
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40728b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407454
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x407314
xor eax, eax
push ebp
push 0x40730d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00407044
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 0x4072f2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x407474
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4072f2
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 0x407314
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 0x40742e
cmp byte [ebp - 0xd], 0
jne 0x40735b
cmp byte [ebp - 0x12], 0
je 0x40742e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x407374
dec ebx
cmp byte [ebx], 0x2e
je 0x407383
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x407373
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40742e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4073c0
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 0x40742e
cmp byte [ebp - 0xd], 0
je 0x40742e
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 0x40742e
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 0x40a4e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40a532
test eax, edx
je 0x40a535
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40a4f5
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 0x40a51b
add ecx, 4
js 0x40a50b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40a518
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 0x40a541
test edx, edx
jne 0x40a4e8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405a8c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40b095
test al, 0x10
je 0x40b099
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405a8c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40b0b9
test al, 0x10
jne 0x40b0bd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40e170
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 0x40e1a9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004056ec
jmp 0x40e1b2
mov eax, ebx
mov edx, esi
call fcn.00405650
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40e6e8
mov eax, dword [0x65a90c]
cmp byte [eax], 0
je 0x40e8ec
mov eax, dword [0x65a458]
call fcn.004038fc
call fcn.00403108
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.0040b544
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 0x40e934
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40e922
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x65a3c0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x65d7f8]
call fcn.00406fec
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 0x40f210
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 0x40f2e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405694
lea eax, [ebp - 4]
call fcn.00405ae4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405a8c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40f2d0
mov eax, ebx
call fcn.00402fac
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f2c9
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.00405a8c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f2b3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f2f8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f2b3
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 0x40f2d0
mov eax, dword [ebp - 0x10]
call fcn.00402fc8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f2ed
lea eax, [ebp - 4]
call fcn.004055fc
ret

Function at 0x42ae4c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x42ae9a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0042ab20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42aeb3
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x42aebc
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.0042ab20
dec esi
jne 0x42aede
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x42c6a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x65f9f0
cmp dword [edi], 0
jne 0x42c71c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x65f9ec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x64bdf0
mov ecx, 2
call fcn.004031a8
mov edx, 0x42c678
lea eax, [esi + 5]
call fcn.0042c698
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042c698
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 0x42c6f1
mov dword [0x65f9ec], 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 0x4314cc
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 0x431636
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405694
mov eax, dword [ebp - 4]
call fcn.00430f88
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x43151e
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00405b34
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.00431a3c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4315f3
xor eax, eax
push ebp
push 0x4315ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004310f8
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00431664
test al, al
je 0x4315ca
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.004056ec
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4315ca
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.00405a8c
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x4315c4
mov eax, dword [ebp - 8]
call fcn.00405a8c
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.004057f4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004314cc
dec ebx
cmp ebx, 0xffffffff
jne 0x43157d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4315f3
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004310f8
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.00405a8c
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004310e4
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 0x43163d
lea eax, [ebp - 0x3c]
call fcn.004055fc
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405620
ret
Function at 0x4315f3
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 0x431636
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405694
mov eax, dword [ebp - 4]
call fcn.00430f88
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x43151e
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00405b34
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.00431a3c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4315f3
xor eax, eax
push ebp
push 0x4315ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004310f8
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00431664
test al, al
je 0x4315ca
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.004056ec
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4315ca
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.00405a8c
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x4315c4
mov eax, dword [ebp - 8]
call fcn.00405a8c
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.004057f4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004314cc
dec ebx
cmp ebx, 0xffffffff
jne 0x43157d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4315f3
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004310f8
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.00405a8c
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004310e4
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 0x43163d
lea eax, [ebp - 0x3c]
call fcn.004055fc
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405620
ret

Function at 0x431664
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.00403cd0
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 [0x65abbc]
cmp byte [edx + 0xc], 0
je 0x4316c8
mov edx, dword [0x65ab98]
cmp dword [edx], 2
jne 0x4316c8
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