joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a24f
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x101d778
call fcn.0101caf8
sub esp, 0x444
mov eax, dword [0x1023fb4]
push ebx
mov dword [ebp - 0x10], eax
xor ebx, ebx
push esi
mov eax, 0x80000002
push edi
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x448], 0x80000001
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x430], eax
lea edi, [ebp - 0x44c]
mov esi, 0x10023f0
push 0x20019
push esi
push dword [ebp - 0x430]
lea ecx, [ebp - 0x424]
call fcn.0100985e
test eax, eax
jne 0x100a453
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x440]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x100a448
cmp dword [ebp - 0x440], ebx
mov dword [ebp - 0x428], ebx
jbe 0x100a448
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x428]
mov dword [ebp - 0x438], 0x104
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x100a430
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x424]
mov dword [ebp - 0x438], 0x104
call fcn.0100652a
test eax, eax
jne 0x100a430
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x42c]
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::MakeLower
push 0x10023d0
lea ecx, [ebp - 0x42c]
call sub.MFC42u.DLL_CString::Find_2
cmp eax, 0xffffffff
jne 0x100a422
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x434]
call sub.MFC42u.DLL_CString::CString_2
mov ecx, dword [ebp - 0x43c]
lea eax, [ebp - 0x434]
push eax
mov byte [ebp - 4], 2
call fcn.01008cf1
push 0x24
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x450], ecx
cmp ecx, ebx
mov byte [ebp - 4], 3
je 0x100a401
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x434]
push esi
push dword [ebp - 0x430]
call fcn.01008e71
jmp 0x100a403
xor eax, eax
mov ecx, dword [ebp - 0x43c]
push eax
mov byte [ebp - 4], 2
call fcn.01009a4a
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
inc dword [ebp - 0x428]
mov eax, dword [ebp - 0x428]
cmp eax, dword [ebp - 0x440]
jb 0x100a2fd
lea ecx, [ebp - 0x424]
call fcn.0100650c
add edi, 4
mov eax, dword [edi]
cmp eax, ebx
mov dword [ebp - 0x430], eax
jne 0x100a2a7
lea ecx, [ebp - 0x424]
call fcn.0100650c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0101bddf
leave
ret
Function at 0x100b25d
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x101d8ff
call fcn.0101caf8
sub esp, 0x438
mov eax, dword [0x1023fb4]
push ebx
push esi
mov dword [ebp - 0x10], eax
mov eax, 0x80000002
xor ebx, ebx
push edi
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], 0x80000001
mov dword [ebp - 0x438], ebx
mov edi, eax
lea esi, [ebp - 0x440]
mov dword [ebp - 0x424], ebx
push 0x2001f
push 0x1002350
push edi
lea ecx, [ebp - 0x424]
mov dword [ebp - 4], ebx
call fcn.0100985e
test eax, eax
jne 0x100b3fe
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x430]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x100b3bd
cmp dword [ebp - 0x430], ebx
mov dword [ebp - 0x428], ebx
jbe 0x100b3bd
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x428]
mov dword [ebp - 0x42c], 0x104
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x100b3a5
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x424]
mov dword [ebp - 0x42c], 0x104
call fcn.0100652a
test eax, eax
jne 0x100b3a5
push 0x14
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x444], ecx
cmp ecx, ebx
mov byte [ebp - 4], 1
je 0x100b394
push edi
push 0x10025c8
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0100898e
jmp 0x100b396
xor eax, eax
mov ecx, dword [ebp - 0x434]
push eax
mov byte [ebp - 4], bl
call fcn.0100950a
inc dword [ebp - 0x428]
mov eax, dword [ebp - 0x428]
cmp eax, dword [ebp - 0x430]
jb 0x100b301
lea ecx, [ebp - 0x424]
call fcn.0100650c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.0100650c
add esi, 4
mov edi, dword [esi]
cmp edi, ebx
jne 0x100b2a3
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0101bddf
leave
ret
lea ecx, [ebp - 0x424]
call fcn.0100650c
xor eax, eax
jmp 0x100b3e7
Function at 0x100b6cf
Capabilities:
Enumerate files on windows
Persist via run registry key

Disassembly:
mov eax, 0x101d977
call fcn.0101caf8
sub esp, 0x698
mov eax, dword [0x1023fb4]
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], eax
push esi
mov eax, 0x80000002
push edi
mov dword [ebp - 0x684], ecx
mov dword [ebp - 0x6a0], eax
mov dword [ebp - 0x69c], 0x80000001
mov dword [ebp - 0x698], ebx
mov dword [ebp - 0x694], 0x10026c4
mov dword [ebp - 0x690], 0x10026b4
mov dword [ebp - 0x68c], ebx
mov dword [ebp - 0x674], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x67c], eax
mov dword [ebp - 0x678], ebx
push 0x20019
push 0x1002630
push dword [ebp - 0x67c]
lea ecx, [ebp - 0x674]
call fcn.0100985e
test eax, eax
jne 0x100b8af
mov eax, dword [ebp - 0x678]
mov edi, dword [ebp + eax - 0x694]
cmp edi, ebx
mov dword [ebp - 0x688], 0x104
je 0x100b8a4
lea eax, [ebp - 0x688]
push eax
push edi
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x674]
call fcn.0100652a
test eax, eax
jne 0x100b8a4
lea ecx, [ebp - 0x674]
call fcn.0100650c
push ebx
push 0x1002624
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push ebx
push eax
call dword [sym.imp.msvcrt.dll__wmakepath]
add esp, 0x14
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x680], eax
je 0x100b8af
test byte [ebp - 0x670], 2
je 0x100b80d
lea eax, [ebp - 0x644]
push 0x1002304
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x100b87b
test byte [ebp - 0x670], 0x10
jne 0x100b87b
push 0x1c
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x6a4], ecx
cmp ecx, ebx
mov byte [ebp - 4], 1
je 0x100b837
call fcn.010090c1
mov esi, eax
jmp 0x100b839
xor esi, esi
cmp esi, ebx
mov byte [ebp - 4], bl
je 0x100b87b
lea eax, [ebp - 0x218]
push eax
push edi
push 0x1002630
push dword [ebp - 0x67c]
lea eax, [ebp - 0x670]
push eax
mov ecx, esi
call fcn.0100af7d
test eax, eax
je 0x100b873
mov ecx, dword [ebp - 0x684]
push esi
call fcn.01009a4a
jmp 0x100b87b
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
lea eax, [ebp - 0x670]
push eax
push dword [ebp - 0x680]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100b7ec
push dword [ebp - 0x680]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x100b8af
lea ecx, [ebp - 0x674]
call fcn.0100650c
add dword [ebp - 0x678], 4
mov eax, dword [ebp - 0x678]
mov eax, dword [ebp + eax - 0x6a0]
cmp eax, ebx
mov dword [ebp - 0x67c], eax
jne 0x100b73c
lea ecx, [ebp - 0x674]
call fcn.0100650c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0101bddf
leave
ret
Function at 0x100c7ff
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x101dab4
call fcn.0101caf8
sub esp, 0x44
mov eax, dword [0x1023fb4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov dword [ebp - 0x10], eax
mov esi, ecx
jne 0x100c829
mov eax, 0x80004003
jmp 0x100c933
push edi
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::CString_1
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString_1
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::operator
lea eax, [ebx + 0x14]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::operator
lea eax, [ebx + 0x18]
push eax
lea ecx, [ebp - 0x1c]
call sub.MFC42u.DLL_CString::operator
push 0xd
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xa0]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
and dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0x104d
push dword [esi + 0x9c]
mov dword [ebp - 0x50], 5
mov dword [ebp - 0x30], ebx
call edi
test eax, eax
jge 0x100c8bd
mov esi, 0x80004005
jmp 0x100c90c
mov ecx, dword [ebp - 0x1c]
inc eax
mov dword [esi + 0xa0], eax
xor eax, eax
inc eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x50]
push eax
push 0
mov ebx, 0x104c
push ebx
push dword [esi + 0x9c]
mov dword [ebp - 0x3c], ecx
call edi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
push 0
push ebx
push dword [esi + 0x9c]
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x48], 2
call edi
xor esi, esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::CString
mov eax, esi
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0101bddf
leave
ret 4

Function at 0x100c950
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0xd
mov ebx, ecx
pop ecx
xor eax, eax
push eax
push eax
push 0x1004
push dword [ebx + 0x9c]
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x34], 4
mov dword [ebp - 0x2c], eax
call esi
mov edi, eax
jmp 0x100c9cf
lea eax, [ebp - 0x34]
push eax
push 0
push 0x104b
push dword [ebx + 0x9c]
mov dword [ebp - 0x30], edi
call esi
cmp eax, 1
jne 0x100c9cf
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100c9b2
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [ebp + 8], 1
jne 0x100c9cf
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x34]
push eax
push 0
push 0x104c
push dword [ebx + 0x9c]
call esi
dec edi
jns 0x100c98a
xor eax, eax
cmp dword [ebp + 8], eax
jne 0x100c9e8
push eax
push eax
push 0x1009
push dword [ebx + 0x9c]
call esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100d643
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
push edi
mov esi, ecx
push 0x4653
push esi
call fcn.01018e13
mov ecx, esi
mov edi, eax
call fcn.0100caa3
test eax, eax
jl 0x100d682
mov ecx, esi
call fcn.0100d4af
test eax, eax
jl 0x100d682
push 1
push 0x4652
push esi
call fcn.01018e13
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x100d6be
push 0x4654
push esi
call fcn.01018e13
test eax, eax
je 0x100d6be
push 0x1001b3c
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push 0x4652
push esi
call fcn.01018e13
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
test edi, edi
je 0x100d6be
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret

Function at 0x100da3e
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x100da58
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01018e13
test eax, eax
jne 0x100da5f
mov eax, 0x80004005
jmp 0x100da6a
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop ebp
ret 8
Function at 0x100edcf
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x101df5d
call fcn.0101caf8
sub esp, 0x22c
mov eax, dword [0x1023fb4]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0xffffffffffffffff
mov edi, ecx
push 0
mov ecx, ebx
mov dword [ebp - 0x10], eax
call sub.MFC42u.DLL_CStringArray::SetSize
lea ecx, [ebp - 0x224]
call sub.MFC42u.DLL_CString::CString_1
push dword [edi + 0xb8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x224]
push 0x100337c
push eax
call sub.MFC42u.DLL_CString::Format_1
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x100ee49
xor esi, esi
jmp 0x100efda
lea ecx, [ebp - 0x21c]
push 0x100336c
call sub.MFC42u.DLL_CString::CString_2
cmp dword [ebp + 0x10], 0
je 0x100eea9
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
mov byte [ebp - 4], 1
call fcn.01018c93
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString
push dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea ecx, [ebp - 0x220]
jmp 0x100eec8
push 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
mov byte [ebp - 4], 4
call fcn.01019c05
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x238]
call sub.MFC42u.DLL_CStdioFile::CStdioFile
push 0
push 0x4000
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CStdioFile::Open
test eax, eax
je 0x100efc9
push 0x10
lea ecx, [ebp - 0x238]
call sub.MFC42u.DLL_CFile::GetLength
push 0x1e
pop ecx
xor edx, edx
div ecx
mov ecx, ebx
push eax
call sub.MFC42u.DLL_CStringArray::SetSize
lea ecx, [ebp - 0x220]
call sub.MFC42u.DLL_CString::CString_1
or dword [edi + 0xb0], 0xffffffff
mov byte [ebp - 4], 6
jmp 0x100ef94
push 0x1003364
lea ecx, [ebp - 0x220]
call sub.MFC42u.DLL_CString::TrimRight_1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0101c24c
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 7
call sub.MFC42u.DLL_CString::TrimLeft
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 8], 0
je 0x100ef85
inc dword [esi]
mov eax, dword [esi]
lea ecx, [ebp - 0x220]
push ecx
push eax
mov ecx, ebx
call sub.MFC42u.DLL_CStringArray::SetAtGrow
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_CString::CString
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x238]
push eax
call sub.MFC42u.DLL_CStdioFile::ReadString
test eax, eax
jne 0x100ef35
lea ecx, [ebp - 0x238]
call sub.MFC42u.DLL_CStdioFile::Close
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CString::CString
xor esi, esi
inc esi
jmp 0x100efcb
xor esi, esi
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 0
call fcn.0101c498
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0101bddf
leave
ret 0xc
Function at 0x10100c2
Capabilities:
Manipulate boot configuration

Disassembly:
mov eax, 0x101e053
call fcn.0101caf8
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov esi, ecx
push 0x6a
mov dword [ebp - 0x10], esi
call fcn.0101c354
lea eax, [esi + 0x90]
mov dword [ebp - 4], ebx
mov dword [eax], 0x1001d90
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
lea ecx, [esi + 0x9c]
mov byte [ebp - 4], 1
mov dword [esi], 0x10035fc
mov dword [eax], 0x10035d4
call sub.MFC42u.DLL_CStringArray::CStringArray
lea ecx, [esi + 0xc0]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString_1
lea edi, [esi + 0xcc]
mov ecx, edi
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString_1
push 0x10035b8
mov ecx, edi
mov byte [ebp - 4], 5
mov dword [esi + 0xc4], ebx
call sub.MFC42u.DLL_CString::operator_1
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x101155b
Capabilities:
Check if file exists
Get file attributes
Set file attributes
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
mov esi, ecx
je 0x1011646
cmp word [eax], di
je 0x1011646
push dword [esi + 0xcc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push dword [esi + 0xcc]
mov dword [ebp - 0x10], eax
call ebx
mov eax, dword [esi + 0xcc]
push edi
push edi
push 5
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x1011637
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x10115d3
mov dword [ebp - 8], edi
jmp 0x10115fd
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 8], eax
add eax, 3
and eax, 0xfffffffc
call fcn.0101cb40
mov eax, esp
push dword [ebp - 8]
push dword [ebp - 0xc]
push eax
call fcn.01010499
mov dword [ebp - 8], eax
push edi
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push dword [eax - 8]
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc edi
push dword [ebp - 0x10]
push dword [esi + 0xcc]
call ebx
mov eax, edi
jmp 0x1011648
xor eax, eax
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1016fb3
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
mov eax, 0x101e655
call fcn.0101caf8
sub esp, 0x50
push ebx
push esi
push edi
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::CString_1
and dword [ebp - 4], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
xor eax, eax
inc eax
cmp dword [ebp - 0x48], eax
mov dword [ebp - 0x14], eax
mov ebx, 0x143
jb 0x101702d
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push 0x10039ac
push eax
call sub.MFC42u.DLL_CString::Format_1
mov eax, dword [ebp - 0x10]
add esp, 0xc
push 0x11b
push dword [eax + 4]
call edi
push dword [ebp - 0x18]
push 0
push ebx
push eax
call esi
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x48]
jbe 0x1016ff8
mov eax, dword [ebp - 0x10]
push 0x1004100
push 0
push ebx
push 0x11c
push dword [eax + 4]
call edi
push eax
call esi
mov eax, dword [ebp - 0x10]
push 0x10040f4
push 0
push ebx
push 0x11c
push dword [eax + 4]
call edi
push eax
call esi
mov eax, dword [ebp - 0x10]
push 0x10040e8
push 0
push ebx
push 0x11c
push dword [eax + 4]
call edi
push eax
call esi
mov eax, dword [ebp - 0x10]
push 0x10040dc
push 0
push ebx
push 0x11c
push dword [eax + 4]
call edi
push eax
call esi
mov eax, dword [ebp - 0x10]
push 0x1003f48
push 0
push ebx
push 0x11c
push dword [eax + 4]
call edi
push eax
call esi
mov eax, dword [ebp - 0x10]
push 0x10040d4
push 0
push ebx
push 0x120
push dword [eax + 4]
call edi
push eax
call esi
mov eax, dword [ebp - 0x10]
push 0x10040c8
push 0
push ebx
push 0x120
push dword [eax + 4]
call edi
push eax
call esi
mov eax, dword [ebp - 0x10]
push 0x10040bc
push 0
push ebx
push 0x120
push dword [eax + 4]
call edi
push eax
call esi
mov eax, dword [ebp - 0x10]
push 0x10040b0
push 0
push ebx
push 0x120
push dword [eax + 4]
call edi
push eax
call esi
mov eax, dword [ebp - 0x10]
push 0x10040a4
push 0
push ebx
push 0x120
push dword [eax + 4]
call edi
push eax
call esi
mov eax, dword [ebp - 0x10]
push 0x1004098
push 0
push ebx
push 0x120
push dword [eax + 4]
call edi
push eax
call esi
mov eax, dword [ebp - 0x10]
push 0x100408c
push 0
push ebx
push 0x120
push dword [eax + 4]
call edi
push eax
call esi
mov eax, dword [ebp - 0x10]
push 0x1004080
push 0
push ebx
push 0x120
push dword [eax + 4]
call edi
push eax
call esi
push 0x1004070
push 0
push ebx
mov ebx, dword [ebp - 0x10]
push 0x120
push dword [ebx + 4]
call edi
push eax
call esi
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
fild dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
test eax, eax
jge 0x1017197
fadd qword [0x1004068]
fmul qword [0x1004060]
push ecx
push ecx
fstp qword [esp]
call dword [sym.imp.msvcrt.dll_ceil]
pop ecx
pop ecx
call sub.msvcrt.dll__ftol
mov ecx, ebx
mov dword [ebx + 0x20], eax
call fcn.010171e5
mov ecx, ebx
call fcn.01016313
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x1018c93
Capabilities:
Create directory
Query environment variable

Disassembly:
mov eax, 0x101e88b
call fcn.0101caf8
sub esp, 0x22c
mov eax, dword [0x1023fb4]
and dword [ebp - 0x22c], 0
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x230], eax
mov eax, dword [0x1024190]
cmp dword [eax - 8], 0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x238], edi
mov esi, 0x1024190
jne 0x1018d1d
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x10045f0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x104
jae 0x1018d1d
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::operator_1
push esi
call fcn.0101870c
test eax, eax
jne 0x1018d1d
push eax
push dword [0x1024190]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
lea ecx, [ebp - 0x21c]
call sub.MFC42u.DLL_CString::CString_2
xor ebx, ebx
inc ebx
push 0x5c
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::ReverseFind
inc eax
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x21c]
call sub.MFC42u.DLL_CString::Mid
push 0x1001c40
push esi
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_operator_2
lea ecx, [ebp - 0x224]
push ecx
push eax
lea eax, [ebp - 0x228]
push eax
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_operator
push dword [ebp - 0x230]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x220]
push eax
call sub.MFC42u.DLL_operator
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 7
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_CString::CString
lea eax, [ebp - 0x220]
push eax
mov ecx, edi
call fcn.0101c24c
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x22c], ebx
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0101bddf
leave
ret 0xc