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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5664f8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5bf094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
lea esi, [edi + 0x40]
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call fcn.00404000
mov dword [ebp - 4], edi
mov ecx, dword [ebp + 0xc]
call fcn.00401440
mov edi, dword [ebp - 0x24]
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebx]
lea ecx, [esi + esi]
push edi
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x404b9e
mov esi, eax
cmp eax, 0xea
jne 0x404bd9
mov esi, dword [ebp - 0x20]
sub esi, edi
sar esi, 1
add esi, esi
push esi
lea ecx, [ebp - 0x24]
call fcn.00404000
jmp 0x404b57
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x404bb2
cmp eax, 2
je 0x404bb2
mov esi, 0xd
jmp 0x404bd9
test edi, edi
je 0x404bd7
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x404bd2
test al, 1
jne 0x404bcb
shr eax, 1
cmp word [edi + eax*2 - 2], 0
je 0x404bd7
mov esi, 0xd
jmp 0x404bd9
xor eax, eax
mov word [edi], ax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
mov esi, dword [ebp + 8]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
je 0x404c0a
mov edx, dword [ebp + 0x10]
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov word [esi], cx
push edx
mov ecx, esi
call fcn.00403410
jmp 0x404c2c
xor eax, eax
mov word [esi], ax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404c14
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, esi
call fcn.00403510
test edi, edi
je 0x404c39
push edi
call fcn.004b8946
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x405830
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 0xffffffff
jb 0x405848
mov eax, dword [eax]
push esi
lea edx, [ebp + 8]
push edx
lea edx, [ebp - 4]
push edx
lea edx, [ebp - 8]
push edx
push 0
push eax
mov eax, dword [ecx]
push eax
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x405870
mov esi, eax
jmp 0x40587d
mov esi, dword [ebp - 8]
sub esi, 4
neg esi
sbb esi, esi
and esi, 0xd
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0xc]
test esi, esi
pop esi
jne 0x40588f
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x406a30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55df76
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x5bf094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 6
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x98], edi
call fcn.004057d0
mov eax, dword [ebp - 0x90]
push str.Informers
lea ecx, [ebp - 0x80]
push 0x5c17f4
push ecx
mov dword [edi + 0x34], eax
call fcn.00404810
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 4], ebx
xor esi, esi
jmp 0x406aa6
mov edi, dword [ebp - 0x98]
push esi
lea edx, [ebp - 0x64]
push edx
mov ecx, edi
call fcn.00405d40
push eax
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov byte [ebp - 4], 1
call fcn.00405920
add esp, 0xc
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
push 0x2001f
push reloc.WS2_32.dll_accept
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.00404ef0
cmp dword [ebp - 0x34], 8
jb 0x406b05
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b8946
add esp, 4
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x50], 8
mov byte [ebp - 4], 6
jb 0x406b31
mov edx, dword [ebp - 0x64]
push edx
call fcn.004b8946
add esp, 4
mov eax, 7
xor ecx, ecx
push eax
mov word [ebp - 0x64], cx
xor edx, edx
push str.Enabled
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.00403510
mov byte [ebp - 4], 7
cmp esi, 0x1a
jae 0x406c1a
mov ecx, esi
and ecx, 0x1f
mov eax, 1
shl eax, cl
mov ecx, esi
shr ecx, 5
test dword [edi + ecx*4 + 0x34], eax
mov edi, dword [ebp - 0x2c]
setne al
cmp dword [ebp - 0x18], 8
jae 0x406b88
lea edi, [ebp - 0x2c]
xor edx, edx
push 4
cmp al, bl
lea eax, [ebp - 0x94]
push eax
push 4
setne dl
push ebx
push edi
mov edi, dword [ebp - 0x8c]
push edi
mov dword [ebp - 0x94], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x18], 8
jb 0x406bc8
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b8946
add esp, 4
mov byte [ebp - 4], bl
cmp edi, ebx
je 0x406bdc
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x8c], ebx
inc esi
mov dword [ebp - 0x88], ebx
cmp esi, 0x1a
jl 0x406aa0
cmp dword [ebp - 0x6c], 8
jb 0x406bfe
mov edx, dword [ebp - 0x80]
push edx
call fcn.004b8946
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret
push str.invalid_bitset_N__position
call fcn.00469b64
int3
Function at 0x406c30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55dfb8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5bf094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
push 0x2001f
push reloc.WS2_32.dll_accept
push 0x5c1794
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], esi
call fcn.00404ef0
push 8
xor eax, eax
mov edi, 1
push str.LiteMode
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
call fcn.00403510
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x406cb5
lea eax, [ebp - 0x2c]
push 4
lea ecx, [ebp - 0x30]
push ecx
push 4
push esi
mov dword [ebp - 0x30], edi
mov edi, dword [ebp - 0x3c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 1
jb 0x406ce9
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b8946
add esp, 4
push 0x3b
lea ecx, [ebp - 0x30]
call fcn.00405710
mov eax, dword [ebp - 0x30]
mov ecx, ebx
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x24], esi
call fcn.00406a30
cmp edi, esi
je 0x406d0e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret
Function at 0x406d30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55dfb8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5bf094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
push 0x2001f
push reloc.WS2_32.dll_accept
push 0x5c1794
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], esi
call fcn.00404ef0
push 8
xor eax, eax
push str.LiteMode
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
call fcn.00403510
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x406db4
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x3c]
push 4
lea ecx, [ebp - 0x30]
push ecx
push 4
push esi
push eax
push edi
mov dword [ebp - 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 1
jb 0x406de8
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b8946
add esp, 4
push 0x3d
lea ecx, [ebp - 0x30]
call fcn.004056b0
mov eax, dword [ebp - 0x30]
push 0x2b
lea ecx, [ebp - 0x30]
mov dword [ebx + 0x24], eax
call fcn.00405710
mov ecx, dword [ebp - 0x30]
mov dword [ebx + 0x28], ecx
cmp edi, esi
je 0x406e13
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret
Function at 0x4079f0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5bf094]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push edi
or ecx, 0x2001f
push ecx
xor ebx, ebx
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x208], ebx
call fcn.00406f60
mov edi, eax
cmp edi, ebx
je 0x407a6a
mov eax, dword [ebp - 0x210]
cmp eax, ebx
je 0x407a55
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
mov dword [ebp - 0x214], 0x100
call ebx
test eax, eax
jne 0x407ae8
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.004079f0
mov edi, eax
test edi, edi
jne 0x407b21
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push eax
push eax
push eax
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push edi
push edx
mov dword [ebp - 0x214], 0x100
call ebx
test eax, eax
je 0x407aa0
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp eax, edi
je 0x407b03
push eax
call ebx
mov dword [ebp - 0x210], edi
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x20c], edi
push eax
cmp ecx, edi
je 0x407b4b
mov edx, dword [esi]
push edx
call fcn.00406ed0
jmp 0x407b54
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x407a55
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 0x210]
cmp eax, edi
je 0x407b63
push eax
call ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b92b7
mov esp, ebp
pop ebp
ret 4
Function at 0x409500
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e06b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5bf094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0046a891
push 4
mov dword [ebp - 4], 0
call fcn.004b92c6
mov edi, eax
add esp, 4
test edi, edi
je 0x409580
call fcn.0046a1ae
mov dword [edi], eax
call fcn.00469f6b
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00469ea0
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x409576
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00469ec8
jmp 0x409582
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4095f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e06b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5bf094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0046a891
push 4
mov dword [ebp - 4], 0
call fcn.004b92c6
mov edi, eax
add esp, 4
test edi, edi
je 0x409670
call fcn.0046a1ae
mov dword [edi], eax
call fcn.00469f6b
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00469ea0
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x409666
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00469ec8
jmp 0x409672
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56dd38
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5bf094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x40c561
cmp byte [edi + 0x49], bl
je 0x40c561
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x40c555
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x40c4b5
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40c4cd
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40c4f6
dec eax
je 0x40c4fa
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x40c550
jmp 0x40c55c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40c50a
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x40c533
cmp ebx, 0x10
jae 0x40c519
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004ba791
add esp, 0x10
cmp esi, eax
jne 0x40c54d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x40c559
test esi, esi
jne 0x40c4c1
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040c390
jmp 0x40c4bb
lea ecx, [ebp - 0x2c]
call fcn.004dace0
xor al, al
jmp 0x40c563
lea ecx, [ebp - 0x2c]
call fcn.004dace0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret
Function at 0x416860
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55eca8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5bf094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
xor esi, esi
mov dword [ebp - 0x18], esi
push 0x20
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call fcn.00412010
mov edi, dword [ebp - 0x24]
mov dword [ebp - 4], esi
mov esi, dword [ebp - 0x28]
mov eax, edi
sub eax, esi
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
call fcn.00401440
lea ecx, [ebp - 0x10]
push ecx
push esi
lea edx, [ebp - 0x18]
push edx
push 0
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x416979
mov ebx, eax
cmp eax, 0xea
jne 0x416986
mov ecx, edi
sub ecx, esi
lea edx, [ecx + ecx]
mov dword [ebp - 0x10], edx
mov ebx, edx
cmp ecx, edx
jbe 0x416912
lea ebx, [esi + edx]
cmp ebx, edi
je 0x4168b3
push 0
push edi
push ebx
call fcn.004b8d30
mov edi, ebx
add esp, 0xc
mov dword [ebp - 0x24], edi
jmp 0x4168b3
jae 0x4168b3
mov eax, esi
sub eax, edi
add eax, edx
or edx, 0xffffffff
sub edx, eax
cmp edx, ecx
jb 0x4169c4
add ecx, eax
mov eax, dword [ebp - 0x20]
sub eax, esi
cmp ecx, eax
jbe 0x41695a
mov edx, eax
shr edx, 1
or esi, 0xffffffff
sub esi, edx
cmp esi, eax
jae 0x416943
xor eax, eax
jmp 0x416945
add eax, edx
cmp eax, ecx
jae 0x41694b
mov eax, ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00402ab0
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov eax, esi
sub eax, edi
add eax, ebx
je 0x41696e
push eax
push 0
push edi
call fcn.004b9850
add esp, 0xc
lea edi, [esi + ebx]
mov dword [ebp - 0x24], edi
jmp 0x4168b3
mov ebx, dword [ebp - 0x18]
sub ebx, 3
neg ebx
sbb ebx, ebx
and ebx, 0xd
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
cmp ebx, edi
je 0x4169ce
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
push eax
mov ecx, ebx
call fcn.004134f0
cmp esi, edi
je 0x4169ae
push esi
call fcn.004b8946
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push str.vector_T__too_long
call fcn.00469b17
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00412010
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x28]
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
cmp esi, edx
je 0x4169ff
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
jmp 0x416a0c
cmp eax, edi
je 0x416a0c
push eax
call fcn.004b8946
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x419130
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f04b
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x5bf094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
lea ecx, [esi + 0x10]
call fcn.0040f090
xor edi, edi
push 0x400
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x7c], 0x1000
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x88], edi
call fcn.0040f3a0
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x90]
push 0x400
push edi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x4191db
push 1
push str.mailru::process_enumerate::refresh
push str.C:_trunkSputnikLib_process_enumerate.hpp
push 0x36
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x74]
call fcn.00403e00
push 0x5a15c8
lea ecx, [ebp - 0x74]
push ecx
call fcn.004b9346
mov edx, dword [ebp - 0x7c]
mov ecx, dword [esi + 4]
mov ebx, dword [esi]
shr edx, 2
lea eax, [edi + edx*4]
mov dword [ebp - 0x78], eax
cmp ebx, ecx
je 0x419211
mov eax, ecx
sub eax, ecx
sar eax, 2
add eax, eax
add eax, eax
push eax
push ecx
push ebx
mov dword [ebp - 0x80], eax
call fcn.004b8d30
mov ecx, dword [ebp - 0x80]
add esp, 0xc
add ecx, ebx
mov dword [esi + 4], ecx
mov edx, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x78]
mov eax, dword [esi]
push edx
push ecx
push edi
push eax
mov ecx, esi
call fcn.00412680
mov eax, dword [esi + 4]
mov esi, dword [esi]
mov edx, eax
sub edx, esi
sar edx, 2
push edx
push eax
push esi
call fcn.00414490
add esp, 0xc
test edi, edi
je 0x419248
push edi
call fcn.004b8946
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret

Function at 0x419e80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561188
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5bf094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.004b91ea
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push 0
lea edx, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov dword [ebp - 4], 0
mov byte [ecx], 0
call fcn.004025c0
mov dword [esi], vtable.boost::filesystem2::basic_filesystem_error_class_boost::filesystem2::basic_path_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____struct_boost::filesystem2::wpath_traits__.0
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov edi, dword [edi + 0x34]
mov dword [esi + 0x34], edi
test edi, edi
je 0x419f0f
add edi, 4
mov ecx, 1
lock xadd dword [edi], ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4