joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d84c
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0040d8cf
jae 0x40d85a
xor ecx, ecx
call fcn.0040d8cf
jae 0x40d889
xor eax, eax
call fcn.0040d8cf
jae 0x40d899
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0040d8cf
adc al, al
jae 0x40d87b
jne 0x40d8c5
stosb byte es:[edi], al
jmp 0x40d85d
call fcn.0040d8db
sub ecx, ebx
jne 0x40d8a2
call fcn.0040d8d9
jmp 0x40d8c1
lodsb al, byte [esi]
shr eax, 1
je 0x40d8eb
adc ecx, ecx
jmp 0x40d8be
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.0040d8d9
cmp eax, 0x7d00
jae 0x40d8be
cmp ah, 5
jae 0x40d8bf
cmp eax, 0x7f
ja 0x40d8c0
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40d85d
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x40dc18
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov esi, dword [ebx]
mov eax, dword [eax]
mov edx, dword [edx + 4]
mov dword [ebp - 4], esi
mov esi, dword [ebx + 4]
mov dword [ebp - 8], esi
mov esi, dword [ebx + 8]
mov dword [ebp - 0xc], esi
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, 0x20
jmp 0x40dc87
add ecx, 0x9e3779b9
mov esi, edx
shl esi, 4
add esi, dword [ebp - 4]
lea edi, [ecx + edx]
xor esi, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 8]
xor esi, edi
add eax, esi
mov esi, eax
shl esi, 4
add esi, dword [ebp - 0xc]
lea edi, [ecx + eax]
xor esi, edi
mov edi, eax
shr edi, 5
add edi, dword [ebp - 0x10]
xor esi, edi
add edx, esi
mov esi, ebx
add ebx, 0xffffffff
test esi, esi
jg 0x40dc4f
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40e67c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
xor eax, eax
push ebx
push esi
push edi
xor esi, esi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
lea edx, [ebp - 0xc]
push eax
push 0
push 0
push 0
push edx
lea ecx, [ebp - 0x114]
push ecx
push esi
push edi
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov ebx, eax
test ebx, ebx
jne 0x40e71b
mov dword [ebp - 0xc], 0xc8
push str.HIDVid_3689Pid_8762
call fcn.00405d1c
pop ecx
push eax
lea eax, [ebp - 0x110]
push eax
push 0x46ddf2
call fcn.00405e88
add esp, 0xc
test eax, eax
jne 0x40e71b
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0xc]
jne 0x40e718
mov ecx, dword [ebp + 0x10]
mov esi, 0x46de1e
mov edi, ecx
lea edx, [ebp - 0x110]
mov eax, edi
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00405ce0
add esp, 8
mov eax, 1
jmp 0x40e726
inc dword [ebp - 0x10]
inc esi
test ebx, ebx
je 0x40e69b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x139ee
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [0x20550]
and dword [ebp - 4], 0
push esi
mov esi, dword [0x2054c]
push edi
mov edi, dword [0x20554]
add eax, edi
add eax, dword [0x20548]
xor ecx, esi
xor edx, esi
add eax, esi
mov esi, dword [ebp + 0xc]
mov edi, dword [esi + 4]
mov dword [ebp - 0xc], edi
mov edi, dword [esi]
mov dword [ebp + 0xc], edi
mov edi, dword [esi + 0xc]
mov esi, dword [esi + 8]
mov dword [ebp - 8], 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
add dword [ebp - 4], eax
dec dword [ebp - 8]
mov esi, edx
shl esi, 4
add esi, dword [ebp + 0xc]
mov edi, edx
shr edi, 5
add edi, dword [ebp - 0xc]
xor esi, edi
mov edi, dword [ebp - 4]
add edi, edx
xor esi, edi
add ecx, esi
mov esi, ecx
shl esi, 4
add esi, dword [ebp - 0x10]
mov edi, ecx
shr edi, 5
add edi, dword [ebp - 0x14]
xor esi, edi
mov edi, dword [ebp - 4]
add edi, ecx
xor esi, edi
add edx, esi
cmp dword [ebp - 8], 0
ja 0x13a44
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov dword [eax + 4], edx
pop esi
leave
ret 8

Function at 0x13a9a
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov ecx, dword [0x20554]
push esi
mov esi, dword [eax + 4]
mov eax, dword [0x20550]
add ecx, eax
mov eax, dword [ebp + 0xc]
add ecx, dword [0x2054c]
push edi
mov edi, dword [eax + 0xc]
add ecx, dword [0x20548]
mov dword [ebp - 0xc], edi
mov edi, dword [eax + 8]
mov dword [ebp + 0xc], edi
mov edi, dword [eax + 4]
mov eax, dword [eax]
mov edx, ecx
mov dword [ebp - 8], 0x20
shl edx, 5
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 4]
shl eax, 4
add eax, dword [ebp + 0xc]
dec dword [ebp - 8]
shr edi, 5
add edi, dword [ebp - 0xc]
xor eax, edi
mov edi, dword [ebp - 4]
add edi, edx
xor eax, edi
sub esi, eax
mov eax, esi
shl eax, 4
add eax, dword [ebp - 0x10]
mov edi, esi
shr edi, 5
add edi, dword [ebp - 0x14]
xor eax, edi
lea edi, [edx + esi]
xor eax, edi
sub dword [ebp - 4], eax
sub edx, ecx
cmp dword [ebp - 8], 0
ja 0x13aee
mov eax, dword [0x2054c]
xor eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [0x2054c]
xor eax, esi
pop edi
mov dword [ecx + 4], eax
pop esi
leave
ret 8
Function at 0x401370
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
sub esp, 0x204
mov eax, dword [0x4dffd0]
xor eax, esp
mov dword [esp + 0x200], eax
push ebp
mov ebp, dword [esp + 0x214]
push esi
mov esi, dword [esp + 0x210]
test esi, esi
push edi
mov edi, dword [esp + 0x218]
je 0x40141c
test edi, edi
je 0x40141c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40141c
test al, 0x10
jne 0x40141c
push ebx
push 0x1fe
lea eax, [esp + 0x16]
push 0
push eax
mov ebx, 0x80004005
mov word [esp + 0x1c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push 0x100
lea ecx, [esp + 0x18]
push ecx
push 0
push edi
push 0x4b43fc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x401401
lea edx, [esp + 0x10]
push edx
mov ecx, ebp
call dword [0x4b3378]
xor ebx, ebx
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.0048e5b2
add esp, 0x204
ret
mov ecx, dword [esp + 0x20c]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 0x80004005
call fcn.0048e5b2
add esp, 0x204
ret

Function at 0x4017d0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
sub esp, 0x804
mov eax, dword [0x4dffd0]
xor eax, esp
mov dword [esp + 0x800], eax
push ebx
mov ebx, dword [esp + 0x810]
push esi
mov esi, dword [esp + 0x810]
test esi, esi
jne 0x401814
pop esi
mov eax, 0x80004005
pop ebx
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.0048e5b2
add esp, 0x804
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4017f8
test al, 0x10
jne 0x4017f8
push edi
push 0x7fe
lea eax, [esp + 0x12]
push 0
push eax
mov edi, 0x80004005
mov word [esp + 0x18], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push 0x400
lea ecx, [esp + 0x14]
push ecx
push 0
push str.SPRoot
push str.SPRoot
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40187e
lea edx, [esp + 0xc]
push edx
mov ecx, ebx
call dword [0x4b3378]
push ebx
call fcn.004017a0
add esp, 4
xor edi, edi
mov ecx, dword [esp + 0x80c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048e5b2
add esp, 0x804
ret
Function at 0x401970
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
sub esp, 0x804
mov eax, dword [0x4dffd0]
xor eax, esp
mov dword [esp + 0x800], eax
push ebp
mov ebp, dword [esp + 0x814]
push esi
mov esi, dword [esp + 0x810]
test esi, esi
push edi
mov edi, dword [esp + 0x818]
je 0x401a1c
test edi, edi
je 0x401a1c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401a1c
test al, 0x10
jne 0x401a1c
push ebx
push 0x7fe
lea eax, [esp + 0x16]
push 0
push eax
mov ebx, 0x80004005
mov word [esp + 0x1c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push 0x400
lea ecx, [esp + 0x18]
push ecx
push 0
push edi
push str.ProductInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x401a01
lea edx, [esp + 0x10]
push edx
mov ecx, ebp
call dword [0x4b3378]
xor ebx, ebx
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.0048e5b2
add esp, 0x804
ret
mov ecx, dword [esp + 0x80c]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 0x80004005
call fcn.0048e5b2
add esp, 0x804
ret

Function at 0x401ce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401cf9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401d34
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401d30
lea ebx, [ebx]
cmp esi, eax
jae 0x401d34
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401d20
cmp esi, eax
jb 0x401d3a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401e40
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401eb6
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x401e85
cmp eax, 2
jne 0x401ea1
test esi, esi
mov eax, dword [esp + 0x14]
je 0x401eb0
test eax, eax
je 0x401eab
test al, 1
jne 0x401ea1
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x401eb0
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x401ec0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
je 0x401f1c
push ebx
push edi
mov edi, dword [esp + 0x10]
movzx ecx, byte [edi]
mov dx, ax
shr dx, 0xc
movzx edx, dl
mov ebx, ecx
shl eax, 4
shr ebx, 4
xor edx, ebx
xor ax, word [edx*2 + 0x4b439c]
and ecx, 0xf
movzx eax, ax
mov dx, ax
shr dx, 0xc
movzx edx, dl
shl eax, 4
xor edx, ecx
xor ax, word [edx*2 + 0x4b439c]
sub esi, 1
add edi, 1
test esi, esi
movzx eax, ax
jne 0x401ed1
pop edi
pop ebx
pop esi
ret

Function at 0x4021a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [eax + 0x2c]
mov ecx, dword [esp + 8]
mov dword [ecx], edx
mov edx, dword [eax + 0x30]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x34]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0x38]
mov dword [ecx + 0xc], eax
xor eax, eax
xor byte [eax + ecx], 0x7a
add eax, 1
cmp eax, 0x10
jb 0x4021c1
ret

Function at 0x4021d0
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x40221c
mov eax, dword [esp + 8]
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test eax, eax
mov dword [esi], eax
je 0x402213
push 0x3fe0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x402219
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
xor eax, eax
pop esi
ret 4
mov dword [esi + 4], eax
mov eax, 1
pop esi
ret 4

Function at 0x402380
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
test edi, edi
je 0x4023c6
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
mov ecx, edi
sub ecx, esi
push ecx
mov ecx, dword [eax + 0x1c]
lea edx, [esi + ebx]
push edx
push ecx
mov dword [esp + 0x30], 0
call ebp
test eax, eax
je 0x4023cf
add esi, dword [esp + 0x1c]
cmp edi, esi
jne 0x402398
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xe00c0009
pop ebx
ret 0xc

Function at 0x4023e0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
test edi, edi
je 0x402426
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
mov ecx, edi
sub ecx, esi
push ecx
mov ecx, dword [eax + 0x1c]
lea edx, [esi + ebx]
push edx
push ecx
mov dword [esp + 0x30], 0
call ebp
test eax, eax
je 0x40242f
add esi, dword [esp + 0x1c]
cmp edi, esi
jne 0x4023f8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xe00c000b
pop ebx
ret 0xc
Function at 0x4025c0
Capabilities:
Get common file path
Get program files directory

Disassembly:
sub esp, 0x218
mov eax, dword [0x4dffd0]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [0x4dc1f0]
cmp eax, 4
jne 0x40266c
push 0x208
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x402667
push str.Internet_Exploreriexplore.exe
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0xc], 0
call fcn.0043a9c0
add esp, 0xc
test eax, eax
je 0x402667
mov eax, dword [esp]
shr eax, 0x10
mov dword [0x4dc1f0], eax
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0048e5b2
add esp, 0x218
ret
mov eax, dword [0x4dc1f0]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0048e5b2
add esp, 0x218
ret
Function at 0x403670
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4a8339
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4dffd0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dffd0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
xor eax, eax
test ecx, ecx
je 0x4037b2
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
push ecx
mov dword [esi + 0x20], eax
lea ecx, [esp + 0x1c]
mov dword [esi + 0x24], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], 0
call dword [sym.imp.MSVCP80.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
test eax, eax
je 0x403716
cmp byte [eax], 0
mov ecx, eax
je 0x403716
jmp 0x403700
mov al, byte [ecx]
cmp al, 0x41
jl 0x40370e
cmp al, 0x5a
jg 0x40370e
add al, 0x20
mov byte [ecx], al
add ecx, 1
cmp byte [ecx], 0
jne 0x403700
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
push eax
push 0
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP80.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
push eax
call fcn.00401ec0
movzx eax, ax
add esp, 8
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
mov edi, eax
cmp edi, 0x25
jbe 0x403753
mov edi, 0x25
push edi
push 0
lea ecx, [esp + 0x20]
lea ebx, [edi + 2]
lea ebp, [esi + 3]
call dword [sym.imp.MSVCP80.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
push eax
push ebp
call sub.MSVCR80.dll_memcpy
mov cx, word [esp + 0x20]
add esp, 0xc
test ebp, ebp
mov byte [esi], bl
mov word [esi + 1], cx
je 0x40379b
test edi, edi
je 0x40379b
xor eax, eax
test edi, edi
jbe 0x40379b
lea esp, [esp]
xor byte [eax + ebp], 0x5a
add eax, 1
cmp eax, edi
jb 0x403790
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0048e5b2
add esp, 0x30
ret
Function at 0x4038f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a8379
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4dffd0]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x4dffd0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0x4b4644
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0
call dword [0x4b3378]
mov ecx, 0x4e019c
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
mov ecx, esi
call fcn.004021d0
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0048e5b2
add esp, 0x2c
ret
Function at 0x403ae0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x318
mov eax, dword [0x4dffd0]
xor eax, esp
mov dword [esp + 0x314], eax
push ebx
push ebp
mov ebp, dword [esp + 0x328]
push esi
mov esi, dword [esp + 0x328]
push edi
xor ebx, ebx
push 0x206
lea eax, [esp + 0x122]
push ebx
push eax
mov word [esp + 0x128], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ecx, 0x4e01d4
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
mov ecx, esi
mov edi, eax
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push edi
push 0x4b4674
lea ecx, [esp + 0x128]
push 0x104
push ecx
call fcn.004028d0
add esp, 0x14
lea edx, [esp + 0x10]
push edx
push 0x20219
push ebx
lea eax, [esp + 0x128]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x403b84
mov eax, 0xe00c0012
jmp 0x403c03
push 0xfe
lea ecx, [esp + 0x22]
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov word [esp + 0x28], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.Name
push edx
mov dword [esp + 0x30], 0xfe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, ebx
jne 0x403bf1
cmp dword [esp + 0x14], 1
jne 0x403bf1
push str..Pipe_
mov ecx, ebp
call dword [0x4b3378]
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
jmp 0x403bf6
mov esi, 0xe00c001f
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x324]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048e5b2
add esp, 0x318
ret 8
Function at 0x404f50
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x303c
call fcn.0048e800
mov eax, dword [0x4dffd0]
xor eax, esp
mov dword [esp + 0x3038], eax
push esi
xor esi, esi
push 0x1ffc
lea eax, [esp + 0x44]
push esi
push eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x48], esi
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x2000
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x14], esi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x40506e
push ebp
mov ebp, dword [esp + 0xc]
push edi
push 0xffe
lea eax, [esp + 0x204a]
push esi
push eax
shr ebp, 2
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov word [esp + 0x2050], si
call sub.MSVCR80.dll_memset
add esp, 0xc
xor edi, edi
cmp ebp, esi
jbe 0x40506c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x404fea
xor esi, esi
mov eax, dword [esp + edi*4 + 0x48]
push eax
push esi
push 0x410
call ebx
mov esi, eax
test esi, esi
je 0x405060
lea ecx, [esp + 0x1c]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x405060
mov ecx, dword [esp + 0x18]
push 0x1000
lea eax, [esp + 0x204c]
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
mov eax, dword [esp + 0x3050]
lea edx, [esp + 0x2048]
push edx
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x405060
push 0x28
lea ecx, [esp + 0x24]
push ecx
push esi
call sub.PSAPI.DLL_GetProcessMemoryInfo
mov edx, dword [esp + 0x28]
shr edx, 0xa
add dword [esp + 0x10], edx
add edi, 1
cmp edi, ebp
jb 0x404fe8
mov esi, dword [esp + 0x10]
pop ebx
pop edi
pop ebp
mov eax, dword [esp + 0x3044]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405091
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x303c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0048e5b2
add esp, 0x303c
ret