joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406f1c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push edi
push 0x4015ff
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406083
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406801
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x405dfa
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406dfb
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x4069f1
push edi
push edi
call esi
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push edi
push ebx
push 0x4069a4
push edi
push edi
call esi
inc ebx
cmp ebx, 0x1a
jl 0x406f87
call fcn.00406d75
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40700c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
lea eax, [ebp - 0x1a0]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.004053ac
test eax, eax
je 0x407081
call fcn.00406820
cmp byte [str.f_], 0
je 0x40704a
push str.f_
call fcn.004058b1
test eax, eax
pop ecx
jne 0x407081
cmp dword [0x491e90], 0
je 0x407073
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x491974
push eax
mov dword [ebp - 0xc], 0x406fed
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
call fcn.00404afc
test eax, eax
je 0x407081
call fcn.00406f1c
xor eax, eax
leave
ret 0x10
Function at 0x4018a8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [ebp - 0x1c], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4090f1
call sub.msvcrt.dll_fwrite
mov edi, 2
mov ebx, 0
jmp 0x4018e9
inc edi
lea esi, [ebx + str._m_m________0..7_or_aeae_l__or_pq_l_]
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.zlibauto:
mov dword [esp + 4], str._s__s_n
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov al, byte [esi]
inc ebx
inc esi
test al, al
jne 0x40190e
cmp edi, 0xa
jne 0x401940
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4090f1
call sub.msvcrt.dll_fwrite
jmp 0x4018e8
cmp edi, 0xc
jle 0x4018e8
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
ret
Function at 0x402ba8
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push ebx
sub esp, 0x1c
call fcn.00406fc0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0040194d
mov ebx, eax
cmp eax, 4
jg 0x402bf3
cmp byte [0x40d021], 0
je 0x402bde
call fcn.004016d2
call fcn.004023f7
mov ebx, eax
cmp eax, 4
jg 0x402bf3
cmp byte [0x40d021], 0
je 0x402c0b
mov dword [esp], 0xa
call sub.msvcrt.dll_putchar
mov dword [esp], str.PAUSE
call sub.msvcrt.dll_system
mov eax, ebx
add esp, 0x1c
pop ebx
leave
ret
Function at 0x406cb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x406cd6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x406d6a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x406d25
cmp eax, 0x40
je 0x406d25
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x406cc9
cmp eax, 0x40
je 0x406cc9
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x406cc9
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sub.msvcrt.dll__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x403154
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.00404e38
test esi, esi
jne 0x40318a
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.00404f28
jmp 0x4031a8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403058
mov edi, eax
test esi, esi
je 0x4031a8
cmp dword [ebx], 0
je 0x4031a8
dec esi
jmp 0x403191
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403d50
Capabilities:
Query or enumerate registry value

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

Function at 0x404c04
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c404c], 0
je 0x404c65
cmp word [0x4c4220], 0xd7b2
jne 0x404c2d
cmp dword [0x4c4228], 0
jbe 0x404c2d
mov eax, 0x4c421c
call dword [0x4c4238]
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 0x404c8c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4be02c], 0
jne 0x404c81
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404dbc
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 [0x4be034], 0
je 0x404de2
mov edx, esi
mov eax, ebx
call dword [0x4be034]
jmp 0x404df1
mov eax, 8
call fcn.00402d68
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4c404d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404d84
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 0x406648
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 0x406878
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4066cb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406878
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4066cb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406894
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406754
xor eax, eax
push ebp
push 0x40674d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406484
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 0x406732
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4068b4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406732
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 0x406754
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 0x40686e
cmp byte [ebp - 0xd], 0
jne 0x40679b
cmp byte [ebp - 0x12], 0
je 0x40686e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4067b4
dec ebx
cmp byte [ebx], 0x2e
je 0x4067c3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4067b3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40686e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406800
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 0x40686e
cmp byte [ebp - 0xd], 0
je 0x40686e
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 0x40686e
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 0x409208
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x409298
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x409298
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40924b
test edx, 3
jne 0x40923a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x409245
jmp 0x40924b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40924b
cmp dword [ecx - 8], 1
je 0x409255
mov edx, ebx
or edx, 3
call fcn.00405584
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x409267
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404e38

Function at 0x4092a4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x409334
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x409334
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4092e7
test edx, 3
jne 0x4092d6
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4092e1
jmp 0x4092e7
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4092e7
cmp dword [ecx - 8], 1
je 0x4092f1
mov edx, ebx
or edx, 3
call fcn.00405584
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x409303
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404e38

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

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

Function at 0x40d194
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 0x40d1cd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404f28
jmp 0x40d1d6
mov eax, ebx
mov edx, esi
call fcn.00404e8c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d70c
mov eax, dword [0x4c37ec]
cmp byte [eax], 0
je 0x40d910
mov eax, dword [0x4c3450]
call fcn.0040359c
call fcn.00402ec4
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.00409fd8
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 0x40d958
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d946
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4c33c4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c67f8]
call fcn.0040642c
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 0x40e21c
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 0x40e2f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404ed0
lea eax, [ebp - 4]
call fcn.0040534c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004052fc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e2dc
mov eax, ebx
call fcn.00402d68
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e2d5
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.004052fc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e2bf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e304
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e2bf
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 0x40e2dc
mov eax, dword [ebp - 0x10]
call fcn.00402d84
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e2f9
lea eax, [ebp - 4]
call fcn.00404e38
ret

Function at 0x420ae4
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.00420820
dec esi
jne 0x420b06
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x421c78
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4c7308
cmp dword [edi], 0
jne 0x421cf4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4c7304]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4beb74
mov ecx, 2
call fcn.00402f58
mov edx, 0x421c50
lea eax, [esi + 5]
call fcn.00421c70
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421c70
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 0x421cc9
mov dword [0x4c7304], 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 0x4255d8
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 0x425742
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404ed0
mov eax, dword [ebp - 4]
call fcn.004250ac
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x42562a
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040539c
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.00425984
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4256ff
xor eax, eax
push ebp
push 0x4256f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0042521c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00425750
test al, al
je 0x4256d6
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00404f28
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4256d6
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.004052fc
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x4256d0
mov eax, dword [ebp - 8]
call fcn.004052fc
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00405030
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004255d8
dec ebx
cmp ebx, 0xffffffff
jne 0x425689
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4256ff
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0042521c
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.004052fc
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00425208
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 0x425749
lea eax, [ebp - 0x3c]
call fcn.00404e38
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404e5c
ret
Function at 0x4256ff
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 0x425742
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404ed0
mov eax, dword [ebp - 4]
call fcn.004250ac
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x42562a
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040539c
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.00425984
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4256ff
xor eax, eax
push ebp
push 0x4256f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0042521c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00425750
test al, al
je 0x4256d6
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00404f28
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4256d6
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.004052fc
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x4256d0
mov eax, dword [ebp - 8]
call fcn.004052fc
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00405030
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004255d8
dec ebx
cmp ebx, 0xffffffff
jne 0x425689
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4256ff
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0042521c
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.004052fc
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00425208
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 0x425749
lea eax, [ebp - 0x3c]
call fcn.00404e38
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404e5c
ret

Function at 0x425750
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.0040371c
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 [0x4c39bc]
cmp byte [edx + 0xc], 0
je 0x4257b4
mov edx, dword [0x4c39ac]
cmp dword [edx], 2
jne 0x4257b4
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