joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405690
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x20]
test eax, eax
je 0x405798
mov esi, dword [ebp + 8]
test esi, esi
je 0x405798
cmp byte [esi], 0
je 0x405798
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x405798
mov eax, dword [ebp + 0x10]
test eax, eax
mov dword [ebx], 0
jne 0x4056ec
mov ecx, dword [edi + 8]
push 0
push 0
lea eax, [ebp + 0x10]
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405798
mov eax, dword [ebp + 0x10]
dec eax
je 0x405758
sub eax, 3
je 0x40572c
sub eax, 3
jne 0x405788
push 0x10
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x405784
mov edx, dword [edi + 8]
push edx
push esi
mov ecx, eax
call fcn.00405fa0
mov dword [ebx], eax
mov ecx, dword [ebx]
pop edi
xor eax, eax
test ecx, ecx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
push 0x10
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x405784
mov ecx, dword [edi + 8]
push ecx
push esi
mov ecx, eax
call fcn.00405e90
mov dword [ebx], eax
mov ecx, dword [ebx]
pop edi
xor eax, eax
test ecx, ecx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
push 0x10
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x405784
mov edx, dword [edi + 8]
push edx
push esi
mov ecx, eax
call fcn.00405d20
mov dword [ebx], eax
mov ecx, dword [ebx]
pop edi
xor eax, eax
test ecx, ecx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
xor eax, eax
mov dword [ebx], eax
mov ecx, dword [ebx]
pop edi
xor eax, eax
test ecx, ecx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc

Function at 0x4057d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4116b8]
push esi
mov esi, ecx
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x20]
test eax, eax
je 0x405892
mov eax, 0x80
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x104]
push edx
mov edx, dword [esi + 0x14]
push 0
lea eax, [ebp - 0x108]
push eax
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x84]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x405892
mov edx, dword [esi + 0x14]
inc edx
push edi
mov edi, dword [ebp + 8]
mov dword [esi + 0x14], edx
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x405870
mov ecx, dword [esi + 8]
cmp byte [ebp - 0x84], 0x5c
mov dword [edi + 4], ecx
lea ecx, [edi + 0xc]
jne 0x405864
lea edx, [ebp - 0x83]
push edx
jmp 0x40586b
lea eax, [ebp - 0x84]
push eax
call fcn.004065f0
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x40587d
mov ecx, dword [esi + 0x1c]
mov dword [edi + 0x1c], ecx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
call fcn.0040cbe2
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
call fcn.0040cbe2
mov esp, ebp
pop ebp
ret 4
Function at 0x405a30
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], esi
jne 0x405a53
pop edi
mov eax, 0x80040009
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
mov ebx, 0x40ee48
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
call fcn.00406300
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 0x20019
mov dword [ebp - 8], edi
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
call fcn.00406300
cmp dword [ebp - 8], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], 0x20019
mov dword [ebp - 0x2c], edi
jne 0x405ac9
mov eax, dword [esi + 8]
mov dword [ebp - 0x24], eax
cmp byte [ebx], 0x5c
jne 0x405ab4
lea ecx, [ebx + 1]
push ecx
jmp 0x405ab5
push ebx
lea ecx, [ebp - 0x1c]
call fcn.004065f0
cmp dword [ebp - 8], edi
jne 0x405ac9
mov dword [ebp - 0xc], 0xe
lea ecx, [ebp - 0x28]
call fcn.00405960
mov esi, eax
cmp esi, edi
jl 0x405b73
cmp dword [ebp - 8], edi
je 0x405ae3
mov dword [ebp - 0x14], edi
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x28]
call fcn.004057d0
test eax, eax
je 0x405b24
cmp byte [ebp - 0x39], 0xff
lea eax, [ebp - 0x40]
jne 0x405aff
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405a30
test eax, eax
jl 0x405b24
cmp dword [ebp - 8], edi
je 0x405b14
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x28]
call fcn.004057d0
test eax, eax
jne 0x405af3
cmp dword [ebp - 8], edi
je 0x405b3a
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x405b3a
mov dword [ebp - 8], edi
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push ebx
push eax
call esi
test eax, eax
push ebx
jg 0x405b5c
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call esi
mov esi, eax
jmp 0x405b73
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
cmp dword [ebp - 0x2c], edi
mov ebx, 0x40ee48
mov dword [ebp - 0x4c], ebx
je 0x405b91
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x405b91
mov dword [ebp - 0x2c], edi
lea ecx, [ebp - 0x40]
call fcn.00406500
cmp dword [ebp - 8], edi
mov dword [ebp - 0x28], ebx
pop ebx
je 0x405bb3
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x405bb3
mov dword [ebp - 8], edi
lea ecx, [ebp - 0x1c]
call fcn.00406500
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4089e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, 0x80004005
push edi
mov dword [ebp - 0xc], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4089f7
push str.RealPlayer_CmdLine_Proc_Mutex
push 1
sub eax, edx
push 0
lea edi, [eax + 5]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
mov dword [ebp - 0x10], esi
je 0x408b28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408a38
push 0x7530
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.RealPlayer_CmdLine_Shmem
push edi
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x408b1a
push edi
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x408b0d
mov esi, dword [ebp + 8]
lea ecx, [edi - 4]
mov eax, ecx
shr ecx, 2
mov dword [ebx], edi
lea edi, [ebx + 4]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 1
lea ecx, [ebp - 8]
push str.RealPlayer_CmdLine_Trigger_Event
xor esi, esi
push ecx
mov dword [ebp - 8], esi
call fcn.0040d090
push 1
lea edx, [ebp - 4]
push str.RealPlayer_CmdLine_ProcessingDone_Event
push edx
mov dword [ebp - 4], esi
call fcn.0040d090
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add esp, 0x18
cmp eax, esi
je 0x408af6
cmp ecx, esi
je 0x408ae4
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
push 0x2710
call dword [eax + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], esi
cmp eax, esi
je 0x408af6
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], esi
cmp ecx, esi
je 0x408b03
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebp - 4], esi
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409270
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
push eax
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0x409240
push 0
push 0
mov dword [ebp - 4], edi
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x4092d9
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4092d0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4092e8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
push edx
push eax
mov ecx, edi
call fcn.00408c90
mov ecx, dword [edi + 0xc04]
xor eax, eax
test ecx, ecx
je 0x409301
mov edx, dword [edi + 0xc08]
push edx
push ebx
call ecx
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4093d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4116b8]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x40944d
push edi
xor eax, eax
mov byte [ebp - 0x404], bl
mov ecx, 0xff
lea edi, [ebp - 0x403]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xc]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x10]
push eax
push ecx
lea edx, [ebp - 0x404]
push edx
mov dword [ebp + 8], ebx
call dword [sym.imp.MSVCR71.dll_vsprintf]
add esp, 0xc
cmp eax, ebx
pop edi
jle 0x40944d
push ebx
lea ecx, [ebp + 8]
push ecx
push eax
mov eax, dword [esi + 4]
lea edx, [ebp - 0x404]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0040cbe2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
pop ebx
call fcn.0040cbe2
mov esp, ebp
pop ebp
ret
Function at 0x4098c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
push 0x1c
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], eax
push ecx
mov dword [ebp - 8], eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x4098f9
pop edi
mov esp, ebp
pop ebp
ret 0x14
push esi
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x40997e
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40997e
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 0x14]
add eax, esi
lea ecx, [ecx + eax + 0x18]
movzx eax, word [eax + 6]
push ebx
sub edi, esi
xor ebx, ebx
test eax, eax
mov dword [ebp + 8], eax
jbe 0x409958
lea eax, [ecx + 0x10]
mov ecx, dword [eax]
mov edx, dword [eax - 8]
cmp ecx, edx
mov esi, dword [eax - 4]
ja 0x409943
mov ecx, edx
cmp edi, esi
jb 0x40994d
add ecx, esi
cmp edi, ecx
jbe 0x409963
mov ecx, dword [ebp + 8]
inc ebx
add eax, 0x28
cmp ebx, ecx
jb 0x409935
pop ebx
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
inc ebx
mov dword [edx], ebx
sub edi, esi
pop ebx
mov dword [eax], edi
pop esi
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 0x14
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40a020
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x4116b8]
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx]
xor esi, esi
cmp eax, esi
push edi
mov dword [ebp - 0x264], esi
jne 0x40a1a6
mov eax, dword [ebx + 0x10]
cmp eax, esi
je 0x40a18f
push str.EnumProcesses
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
xor eax, eax
test edx, edx
mov ecx, 0x100
lea edi, [ebp - 0x668]
mov dword [ebp - 0x258], esi
rep stosd dword es:[edi], eax
je 0x40a18f
lea eax, [ebp - 0x258]
push eax
push 0x400
lea ecx, [ebp - 0x668]
push ecx
call edx
test eax, eax
mov dword [ebp - 0x264], eax
je 0x40a18f
mov eax, dword [ebp - 0x258]
shr eax, 2
test eax, eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x260], esi
jbe 0x40a18f
mov edi, edi
mov edx, dword [ebp - 0x260]
xor eax, eax
mov ecx, 0x4a
lea edi, [ebp - 0x254]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + edx*4 - 0x668]
push eax
push 0
push 0x410
mov dword [ebp - 0x254], 0x128
mov dword [ebp - 0x24c], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40a166
mov eax, dword [ebx + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
call edi
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x25c], ecx
je 0x40a15f
lea ecx, [ebp - 0x25c]
push ecx
push 4
lea edx, [ebp - 0x268]
push edx
push esi
call eax
test eax, eax
je 0x40a15f
mov eax, dword [ebx + 0x10]
push str.GetModuleBaseNameA
push eax
call edi
test eax, eax
je 0x40a15f
mov edx, dword [ebp - 0x268]
push 0x103
lea ecx, [ebp - 0x230]
push ecx
push edx
push esi
call eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [ebp + 8]
mov eax, dword [ebp - 0x260]
mov ecx, dword [ebp - 0x258]
add esp, 8
inc eax
cmp eax, ecx
mov dword [ebp - 0x260], eax
jb 0x40a0c0
mov eax, dword [ebp - 0x264]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0040cbe2
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 8]
cmp eax, esi
je 0x40a261
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Process32First
push eax
call edi
mov ecx, dword [ebx + 8]
push str.Process32Next
push ecx
mov esi, eax
call edi
test esi, esi
mov dword [ebp - 0x25c], eax
je 0x40a261
test eax, eax
je 0x40a261
xor eax, eax
mov ecx, 0x4a
lea edi, [ebp - 0x12c]
rep stosd dword es:[edi], eax
mov eax, dword [ebx]
lea edx, [ebp - 0x12c]
push edx
push eax
mov dword [ebp - 0x12c], 0x128
call esi
mov esi, dword [ebp + 8]
mov edi, eax
test edi, edi
je 0x40a24e
lea ecx, [ebp - 0x12c]
push ecx
push ebx
call esi
add esp, 8
test edi, edi
je 0x40a24e
mov eax, dword [ebx]
lea edx, [ebp - 0x12c]
push edx
push eax
mov dword [ebp - 0x12c], 0x128
call dword [ebp - 0x25c]
test eax, eax
je 0x40a24e
lea ecx, [ebp - 0x12c]
push ecx
push ebx
call esi
add esp, 8
jmp 0x40a221
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0040cbe2
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.0040cbe2
mov esp, ebp
pop ebp
ret 4
Function at 0x40ac30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcb4
mov eax, dword [0x4116b8]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov esi, ecx
call fcn.0040a530
push str._Process_Info__r_n
push esi
call fcn.004093d0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.ProcessId:__lu_r_n
push esi
call fcn.004093d0
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x484], bl
mov ecx, 0xff
lea edi, [ebp - 0x483]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
stosb byte es:[edi], al
push 0x400
lea eax, [ebp - 0x484]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x484]
push ecx
push str.Name:__s_r_n
push esi
call fcn.004093d0
xor eax, eax
mov byte [ebp - 0xc84], bl
mov ecx, 0x1ff
lea edi, [ebp - 0xc83]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x84], bl
mov ecx, 0x1f
lea edi, [ebp - 0x83]
rep stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
lea edx, [ebp - 0xc84]
push edx
push 0x800
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x484]
push eax
mov dword [ebp - 0xc88], ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40ad5b
lea ecx, [ebp - 0xc8c]
push ecx
lea edx, [ebp - 0xc88]
push edx
push 0x40e7cc
lea eax, [ebp - 0xc84]
push eax
mov dword [ebp - 0xc8c], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40ad5b
mov eax, dword [ebp - 0xc88]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
lea eax, [ebp - 0x84]
push str._lu._lu._lu._lu
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x18
lea ecx, [ebp - 0x84]
push ecx
push str.Version:__s_r_n
push esi
call fcn.004093d0
mov eax, dword [esi + 0x10]
add esp, 0xc
cmp eax, ebx
je 0x40ae08
push str.GetProcessMemoryInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x40ae08
xor edx, edx
mov dword [ebp - 0xcb4], edx
mov dword [ebp - 0xcb0], edx
mov dword [ebp - 0xcac], edx
mov dword [ebp - 0xca8], edx
mov dword [ebp - 0xca4], edx
mov dword [ebp - 0xca0], edx
mov dword [ebp - 0xc9c], edx
mov dword [ebp - 0xc98], edx
push 0x28
lea eax, [ebp - 0xcb4]
mov dword [ebp - 0xc94], edx
push eax
mov dword [ebp - 0xc90], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x40ae08
mov ecx, dword [ebp - 0xca8]
push ecx
push str.WorkingSetSize:__lu_Bytes_r_n
push esi
call fcn.004093d0
mov edx, dword [ebp - 0xc94]
push edx
push str.PagefileUsage:__lu_Bytes_r_n
push esi
call fcn.004093d0
add esp, 0x18
push 0x40f820
push esi
call fcn.004093d0
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
call fcn.0040cbe2
mov esp, ebp
pop ebp
ret
Function at 0x40af40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
push edi
je 0x40af56
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40afac
push esi
push 0x2001f
push 0
push edi
push ebx
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40afac
xor edx, edx
test eax, eax
sete dl
pop edi
mov dword [esi], 0
pop esi
pop ebx
mov eax, edx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp - 4], 1
jne 0x40afdb
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x40afdb
mov eax, edx
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40afc0
mov ecx, dword [esi]
sub eax, edi
inc eax
push eax
push edx
push 1
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edx, edx
test eax, eax
sete dl
pop edi
pop esi
pop ebx
mov eax, edx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40b090
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4116b8]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x414], ecx
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x40b1b1
lea eax, [ebp - 0x408]
push eax
push 0x2001f
push ebx
push edi
push esi
mov dword [ebp - 0x408], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b19e
mov edx, dword [ebp - 0x408]
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x410]
push ecx
push esi
push esi
push esi
push edx
mov dword [ebp - 0x410], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x40b19e
mov dword [ebp - 0x40c], esi
mov esi, dword [ebp - 0x410]
dec esi
js 0x40b186
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x40b130
mov edx, dword [ebp - 0x408]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x404]
push ecx
push esi
push edx
mov dword [ebp - 0x40c], 0x400
call edi
cmp eax, 0x103
je 0x40b183
test eax, eax
jne 0x40b180
mov ecx, dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push eax
push ecx
mov ecx, dword [ebp - 0x414]
call fcn.0040b090
mov ebx, eax
dec esi
jns 0x40b130
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp - 0x408]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0040cbe2
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, 1
pop ebx
call fcn.0040cbe2
mov esp, ebp
pop ebp
ret 8
Function at 0x40b1d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
cmp dword [esi], 0
mov dword [ebp - 4], 0
jne 0x40b1ee
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov ebx, dword [ebp + 0x14]
push edi
lea edi, [ebx + 1]
push edi
call dword [sym.imp.MSVCR71.dll_malloc]
mov dword [ebp - 8], edi
xor edi, edi
add esp, 4
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x40b2ec
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [esi]
push eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [esi]
cmp esi, edi
mov dword [ebp + 8], eax
mov dword [ebp + 0x14], edi
je 0x40b248
push edi
push edi
push edi
push edi
lea edx, [ebp + 0x14]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x10], 1
jne 0x40b2ca
cmp dword [ebp + 0x14], edi
jbe 0x40b2ca
mov esi, dword [ebp + 0x10]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40b281
mov eax, dword [ebp - 8]
cmp ebx, eax
jb 0x40b27a
mov ebx, eax
mov eax, dword [ebp - 0xc]
push ebx
push eax
jmp 0x40b2b1
mov edi, dword [ebp + 0xc]
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b290
sub eax, edx
cmp ebx, eax
jae 0x40b2a1
mov eax, ebx
jmp 0x40b2af
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b2a6
sub eax, edx
push eax
push edi
push esi
call dword [sym.imp.MSVCR71.dll_strncpy]
mov eax, dword [ebp + 8]
xor ecx, ecx
add esp, 0xc
test eax, eax
sete cl
mov dword [ebp - 4], ecx
jmp 0x40b2df
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push ebx
push edx
push eax
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10