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

Disassembly:
push 0x280
mov eax, 0x455a64
call fcn.00433180
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x284], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x288], eax
test edi, edi
jne 0x44fc1e
test ebx, ebx
je 0x44fc1e
push 0x57
pop eax
jmp 0x44fdf0
xor eax, eax
lea ecx, [ebp - 0x280]
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x25c]
push 0x109
push eax
call fcn.0044e8ee
mov dword [ebp - 0x280], 0x40edcc
and dword [ebp - 4], 0
lea eax, [ebp - 0x12c]
push 0
push 0x109
push eax
lea ecx, [ebp - 0x150]
call fcn.0044e8ee
and dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x280]
push esi
mov dword [ebp - 0x150], 0x40edcc
call fcn.0044f11d
mov esi, eax
test esi, esi
jne 0x44fdc7
test ebx, ebx
jne 0x44fcb3
test edi, edi
jne 0x44fcb3
push eax
push eax
push dword [ebp - 0x288]
push eax
push dword [ebp - 0x270]
push dword [ebp - 0x284]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
jmp 0x44fdc7
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 0x270]
push dword [ebp - 0x284]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x44fdc7
cmp dword [ebp - 0x18], 2
je 0x44fd09
cmp dword [ebp - 0x18], 7
je 0x44fd09
cmp dword [ebp - 0x18], 1
je 0x44fd09
test ebx, ebx
jne 0x44fcf9
mov eax, dword [ebp - 0x14]
jmp 0x44fdc5
push edi
push ebx
push dword [ebp - 0x288]
push dword [ebp - 0x28c]
jmp 0x44fc9a
push dword [ebp - 0x14]
lea ecx, [ebp - 0x150]
call fcn.0044f25b
mov esi, eax
test esi, esi
jne 0x44fdc7
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x140]
push dword [ebp - 0x288]
push dword [ebp - 0x28c]
push dword [ebp - 0x270]
push dword [ebp - 0x284]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x44fdc7
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x150]
dec eax
push eax
call fcn.0044ea47
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x150]
call fcn.0044f201
mov esi, eax
test esi, esi
jne 0x44fdc7
mov ecx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x1c], ecx
test ebx, ebx
jne 0x44fd84
lea eax, [ecx + ecx]
jmp 0x44fdc5
mov eax, dword [edi]
shr eax, 1
cmp ecx, eax
jbe 0x44fd93
mov esi, 0xea
jmp 0x44fd7f
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x150]
and dword [ebp - 0x20], 0
dec eax
push eax
call fcn.0044ea47
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x150]
call fcn.0044f279
mov esi, eax
test esi, esi
jne 0x44fdc7
mov eax, dword [ebp - 0x20]
add eax, eax
mov dword [edi], eax
mov ebx, 0x40edcc
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x150], ebx
call fcn.0044e949
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x280], ebx
call fcn.0044e949
mov eax, esi
call fcn.0043312a
ret 0x18
Function at 0x4045d0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0xffffffffffffffff
push 0x41c238
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [esp + 0x70]
push edi
push eax
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 8], eax
push ecx
push edx
push eax
push eax
push eax
push 1
push eax
lea eax, [esp + 0x20]
push eax
push 0x3e8
lea ecx, [esp + 0x98]
mov dword [esp + 0x90], 0
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x28], 0xc
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x64]
xor eax, eax
pop edi
mov dword fs:[0], ecx
add esp, 0x6c
ret 4
Function at 0x405750
Capabilities:
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x41c552
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x514
push esi
push edi
mov edi, ecx
lea ecx, [esp + 8]
mov dword [esp + 0x524], 1
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x530]
mov byte [esp + 0x524], 2
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x405801
lea ecx, [esp + 0x52c]
push 0x4291ac
lea edx, [esp + 0x10]
push ecx
push edx
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x530]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x530], 3
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x528], 4
call fcn.0041b82a
lea ecx, [esp + 0x18]
mov byte [esp + 0x524], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x524], 2
call sub.MFC42.DLL_CString::CString
jmp 0x405812
lea eax, [esp + 0x52c]
lea ecx, [esp + 8]
push eax
call fcn.0041b82a
lea ecx, [esp + 0x1c]
push ecx
push 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x5c
lea ecx, [esp + 0x530]
call sub.MFC42.DLL_CString::ReverseFind
lea edx, [esp + 0x10]
push eax
push edx
lea ecx, [esp + 0x534]
call sub.MFC42.DLL_CString::Left
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push eax
mov byte [esp + 0x528], 5
call esi
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 8]
lea ecx, [esp + 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov ecx, edi
call fcn.00405950
lea edx, [esp + 0x1c]
push edx
call esi
lea eax, [esp + 0x52c]
lea ecx, [esp + 0xc]
push eax
push 0x42919c
push ecx
call sub.MFC42.DLL_operator_1
push 0x429128
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0x530], 6
call sub.MFC42.DLL_operator
lea ecx, [esp + 0xc]
mov byte [esp + 0x524], 8
call sub.MFC42.DLL_CString::CString
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.0041b7f4
call fcn.00416710
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x524], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x524], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x524], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x52c]
mov byte [esp + 0x524], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x530]
mov dword [esp + 0x524], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x51c]
pop edi
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0x520
ret 8
Function at 0x405950
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0xffffffffffffffff
push 0x41c568
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [esp + 0x70]
push edi
push eax
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 8], eax
push ecx
push edx
push eax
push eax
push eax
push 1
push eax
lea eax, [esp + 0x20]
push eax
push 0x3e8
lea ecx, [esp + 0x98]
mov dword [esp + 0x90], 0
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x28], 0xc
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x64]
xor eax, eax
pop edi
mov dword fs:[0], ecx
add esp, 0x6c
ret 4
Function at 0x40e9c0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41d847
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x64]
lea eax, [esp + 0x10]
push 3
push eax
add ecx, 0xe4
mov dword [esp + 0x138], 0
call sub.MFC42.DLL_CString::Left
push str.SizeOfSystemDir
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 1
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x138]
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push 0x104
push edx
push 0x42a438
push eax
push str.FileGroup
mov byte [esp + 0x148], 2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x24]
mov esi, eax
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov ebx, eax
test esi, esi
je 0x40eb55
test ebx, ebx
jbe 0x40eb55
mov eax, dword [edi + 0x74]
mov esi, dword [eax]
cmp esi, eax
je 0x40eab2
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
mov edx, dword [esi + 8]
lea ecx, [esp + 0x18]
push edx
call fcn.0041b7f4
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x10]
push ecx
mov eax, dword [eax]
push eax
call ebp
add esp, 8
test eax, eax
je 0x40eaec
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 2
call sub.MFC42.DLL_CString::CString
mov esi, dword [esi]
mov eax, dword [edi + 0x74]
cmp esi, eax
jne 0x40ea77
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
test esi, esi
mov byte [esp + 0x130], 4
je 0x40eb05
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x42a438
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.0040e4b0
mov ebp, eax
jmp 0x40eb07
mov esi, dword [esi + 8]
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 2
add dword [esi + 4], ebx
call sub.MFC42.DLL_CString::CString
jmp 0x40eb55
xor ebp, ebp
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
mov byte [esp + 0x134], 2
call fcn.0041b82a
mov dword [ebp + 4], ebx
mov esi, dword [edi + 0x74]
push 0xc
mov ebx, dword [esi + 4]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ecx, esi
test esi, esi
jne 0x40eb36
mov ecx, eax
test ebx, ebx
mov dword [eax], ecx
jne 0x40eb3e
mov ebx, eax
mov dword [eax + 4], ebx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
add eax, 8
test eax, eax
je 0x40eb52
mov dword [eax], ebp
inc dword [edi + 0x78]
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x130], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x138]
mov dword [esp + 0x130], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x124
ret 4
Function at 0x40ef80
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
mov ebp, ecx
je 0x40efea
mov eax, dword [ebp + 4]
test eax, eax
je 0x40efea
mov byte [edi], 0
mov eax, dword [ebp + 4]
test byte [eax + 0xc], 0x10
jne 0x40eff7
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push eax
push 1
lea eax, [esp + 0x1c]
push 1
push eax
call ebx
add esp, 0x10
test eax, eax
jbe 0x40efe7
mov al, byte [esp + 0x14]
cmp al, 0xd
je 0x40efce
cmp al, 0xa
je 0x40efce
mov byte [esi + edi], al
inc esi
jmp 0x40efd2
test esi, esi
jne 0x40eff3
mov eax, dword [ebp + 4]
test byte [eax + 0xc], 0x10
je 0x40efa9
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
mov byte [edi], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
mov byte [esi + edi], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
Function at 0x4110c0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x41dd36
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push ebp
mov ebp, dword [esp + 0xb64]
push esi
lea eax, [esp + 0x18]
push edi
push eax
mov dword [esp + 0x14], ecx
push ebp
call ebx
mov dword [esp + 0x14], eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x15c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x15c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x429edc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x160]
push ecx
call ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
jne 0x411251
cmp esi, eax
jne 0x411251
or ecx, eax
mov edi, ebp
xor eax, eax
lea edx, [esp + 0x65c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x660]
push ecx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
xor ebx, ebx
add esp, 8
cmp eax, ebx
je 0x41124d
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x65c]
push edx
mov ecx, esi
mov byte [eax], bl
call fcn.004110c0
test eax, eax
je 0x41124d
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebp
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push str.Made_Dir:
push ecx
mov dword [esp + 0xb70], ebx
call sub.MFC42.DLL_operator_1
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov byte [esp + 0xb6c], 1
call fcn.0041b7f4
mov ecx, esi
call fcn.00411280
lea ecx, [esp + 0x10]
mov byte [esp + 0xb64], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0xb64], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x411258
xor eax, eax
jmp 0x41125d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov ecx, dword [esp + 0xb5c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xb58
ret 4
Function at 0x411280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41dd70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 4]
push 0x429044
lea ecx, [esp + 0x18]
lea eax, [esi + 0xc8]
push eax
push ecx
call sub.MFC42.DLL_operator
lea edx, [esi + 0xd0]
mov byte [esp + 0x24], 1
push edx
push eax
lea eax, [esp + 0x18]
push eax
call sub.MFC42.DLL_operator_2
push 0x429044
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_operator
add esi, 0xe8
lea edx, [esp + 8]
push esi
push eax
push edx
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_operator_2
push str.FileList.log
push eax
lea eax, [esp + 0xc]
mov byte [esp + 0x2c], 4
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 8]
mov byte [esp + 0x24], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 6
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 4]
push 0x429ee0
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x41139c
lea edx, [esp + 0x2c]
push 0x429a58
lea eax, [esp + 0x1c]
push edx
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_fputs]
add esp, 8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 4]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x4113d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41ddac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x514
push esi
push edi
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 4]
push 0x429044
lea ecx, [esp + 0x18]
lea eax, [esi + 0xc8]
push eax
push ecx
call sub.MFC42.DLL_operator
lea edx, [esi + 0xd0]
mov dword [esp + 0x524], 0
push edx
push eax
lea eax, [esp + 0x20]
push eax
call sub.MFC42.DLL_operator_2
push 0x429044
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x530], 1
call sub.MFC42.DLL_operator
add esi, 0xe8
lea edx, [esp + 0xc]
push esi
push eax
push edx
mov byte [esp + 0x530], 2
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x524], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x524], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x524], 4
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0xc]
push str.FileList.log
lea ecx, [esp + 0xc]
push eax
push ecx
call sub.MFC42.DLL_operator
mov edi, dword [esp + 8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x80
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 2
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0x30]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop edi
cmp eax, 0xffffffff
pop esi
jne 0x4114f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4114f9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x51c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x514]
mov dword fs:[0], ecx
add esp, 0x520
ret
Function at 0x412c10
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x41e130
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
lea ecx, [esp + 4]
mov dword [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString_2
push 0
push 0x429044
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::Find_3
mov esi, eax
cmp esi, 0xffffffff
jne 0x412c74
lea eax, [esp + 0x24]
lea ecx, [esp + 4]
push eax
call fcn.0041b82a
jmp 0x412cd6
lea ecx, [esp + 0x10]
push esi
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x20], 4
call fcn.0041b82a
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x24]
mov eax, dword [edx - 8]
sub eax, esi
dec eax
push eax
lea eax, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 5
call fcn.0041b82a
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push str.HKEY_LOCAL_MACHINE
push ecx
call edi
test eax, eax
mov esi, 0x80000002
je 0x412cf6
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 8]
push str.HKEY_CLASSES_ROOT
push edx
call edi
test eax, eax
jne 0x412d0b
mov esi, 0x80000000
mov eax, dword [esp + 8]
push str.HKEY_CURRENT_USER
push eax
call edi
test eax, eax
jne 0x412d20
mov esi, 0x80000001
mov ecx, dword [esp + 8]
push str.HKEY_CURRENT_CONFIG
push ecx
call edi
test eax, eax
jne 0x412d35
mov esi, 0x80000005
mov edx, dword [esp + 8]
push str.HKEY_USERS
push edx
call edi
test eax, eax
pop edi
jne 0x412d4b
mov esi, 0x80000003
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push 2
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412dd7
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
push 0
call esi
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x4132d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41e240
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString_2
mov bl, 2
push 0
push 0x429044
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::Find_3
mov esi, eax
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 3
call fcn.0041b82a
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x18]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x30]
sub eax, esi
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 4
call fcn.0041b82a
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push str.HKEY_LOCAL_MACHINE
push eax
call esi
test eax, eax
mov edi, 0x80000002
je 0x4133a1
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0xc]
push str.HKEY_CLASS_ROOT
push ecx
call esi
test eax, eax
jne 0x4133b6
mov edi, 0x80000000
mov edx, dword [esp + 0xc]
push str.HKEY_CURRENT_USER
push edx
call esi
test eax, eax
jne 0x4133cb
mov edi, 0x80000001
mov eax, dword [esp + 0xc]
push str.HKEY_CURRENT_CONFIG
push eax
call esi
test eax, eax
jne 0x4133e0
mov edi, 0x80000005
mov ecx, dword [esp + 0xc]
push str.HKEY_USERS
push ecx
call esi
test eax, eax
jne 0x4133f5
mov edi, 0x80000003
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 5
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push 1
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x413483
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4