joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c62f
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x10322da
call fcn.0102edc8
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x18], esi
mov dword [esi], 0x10021d4
mov dword [ebp - 4], 8
call fcn.0100b8a8
cmp dword [esi + 0x184], 0
je 0x100c686
lea ecx, [esi + 0x194]
call fcn.01028301
push 0x1388
push dword [esi + 0x188]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100c67f
push 0
push dword [esi + 0x184]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [esi + 0x184], 0
mov eax, dword [esi + 0x188]
test eax, eax
je 0x100c697
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [esi + 0x274]
push eax
call edi
lea eax, [esi + 0x658]
push eax
call edi
lea eax, [esi + 0x14c]
push eax
call edi
lea eax, [esi + 0x164]
push eax
call edi
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call sub.MFC42u.DLL_CString::CString_3
push 0xc36e
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call sub.MFC42u.DLL_CString::LoadStringW
push 0xc36f
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::LoadStringW
call sub.MFC42u.DLL_AfxGetModuleState
push dword [esi + 0x2ac]
mov eax, dword [eax + 4]
push dword [ebp - 0x10]
mov ecx, eax
push dword [ebp - 0x14]
call sub.MFC42u.DLL_CWinApp::WriteProfileInt
push 0xc371
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::LoadStringW
call sub.MFC42u.DLL_AfxGetModuleState
push dword [esi + 0x2b0]
mov eax, dword [eax + 4]
push dword [ebp - 0x10]
mov ecx, eax
push dword [ebp - 0x14]
call sub.MFC42u.DLL_CWinApp::WriteProfileInt
push 0xc436
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::LoadStringW
push 0xc437
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::LoadStringW
call sub.MFC42u.DLL_AfxGetModuleState
push dword [esi + 0x64c]
mov eax, dword [eax + 4]
push dword [ebp - 0x10]
mov ecx, eax
push dword [ebp - 0x14]
call sub.MFC42u.DLL_CWinApp::WriteProfileInt
call sub.MFC42u.DLL_AfxOleUnlockApp
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.0102d8a6
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.0102d8a6
lea ecx, [esi + 0x2b4]
mov byte [ebp - 4], 7
call fcn.01027bd8
lea ecx, [esi + 0x290]
mov byte [ebp - 4], 6
call fcn.0102db16
lea ecx, [esi + 0x234]
mov byte [ebp - 4], 5
call fcn.0101591d
lea ecx, [esi + 0x1d8]
mov byte [ebp - 4], 4
call fcn.0102886d
lea ecx, [esi + 0x194]
mov byte [ebp - 4], 3
call fcn.01028397
mov byte [ebp - 4], 2
lea ecx, [esi + 0x130]
call fcn.0102db16
lea ecx, [esi + 0xc4]
mov byte [ebp - 4], 1
call fcn.0101c158
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CDialog::CDialog
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0102db22
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x100d120
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x26
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
je 0x100d24b
push esi
lea ecx, [ebp - 0x24]
call fcn.0100c040
test eax, eax
je 0x100d24b
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [ebp + 0xc], eax
add eax, 0x12c
mov dword [ebp - 8], eax
call edi
cmp eax, dword [ebp - 8]
jae 0x100d24b
mov edi, 0x12c
mov ecx, dword [esi]
mov ebx, eax
sub ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x24]
sub eax, ecx
imul eax, ebx
cdq
mov ecx, edi
idiv ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 8], ebx
sub ecx, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 4]
sub eax, ecx
imul eax, ebx
cdq
mov ecx, edi
idiv ecx
mov ecx, dword [ebp - 0x20]
sub ecx, eax
mov eax, dword [esi]
sub eax, dword [esi + 8]
mov dword [ebp - 0x10], ecx
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
add eax, ecx
imul eax, ebx
cdq
mov ebx, edi
idiv ebx
mov ebx, dword [ebp - 0x18]
sub ecx, eax
mov eax, dword [esi + 4]
sub eax, dword [esi + 0xc]
sub ecx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], ecx
add eax, ebx
imul eax, dword [ebp - 8]
cdq
mov ecx, edi
idiv ecx
sub ebx, eax
sub ebx, dword [ebp - 0x20]
cmp dword [ebp + 0x10], 0
mov eax, dword [sym.imp.MFC42u.DLL_CWndconstCWnd::wndTopMost]
jne 0x100d20b
mov eax, dword [sym.imp.MFC42u.DLL_CWndconstCWnd::wndNoTopMost]
push 0x10
push ebx
push dword [ebp - 0xc]
mov ebx, dword [ebp + 8]
push dword [ebp - 0x10]
mov ecx, ebx
push dword [ebp - 0x14]
push eax
call sub.MFC42u.DLL_CWnd::SetWindowPos
push 0x105
push 0
push 0
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_RedrawWindow]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0xc]
add ecx, 0x12c
cmp eax, ecx
jb 0x100d18b
mov eax, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi]
push 0x10
sub edx, eax
push edx
mov edx, dword [esi + 8]
sub edx, ecx
push edx
push eax
push ecx
push dword [sym.imp.MFC42u.DLL_CWndconstCWnd::wndTopMost]
mov ecx, ebx
call sub.MFC42u.DLL_CWnd::SetWindowPos
xor edi, edi
cmp dword [ebp + 0x10], edi
jne 0x100d296
mov eax, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi]
push 0x10
sub edx, eax
push edx
mov edx, dword [esi + 8]
sub edx, ecx
push edx
push eax
push ecx
push dword [sym.imp.MFC42u.DLL_CWndconstCWnd::wndNoTopMost]
mov ecx, ebx
call sub.MFC42u.DLL_CWnd::SetWindowPos
push 0x105
push edi
push edi
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_RedrawWindow]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100e99e
Capabilities:
Delete file

Disassembly:
mov eax, 0x1032455
call fcn.0102edc8
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x658]
push edi
push eax
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call sub.MFC42u.DLL_AfxGetModuleState
mov edi, dword [eax + 4]
lea ecx, [ebp - 0x1c]
call sub.MFC42u.DLL_CString::CString_3
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::CString_3
push 0xc422
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::LoadStringW
push 0xc426
lea ecx, [ebp - 0x1c]
call sub.MFC42u.DLL_CString::LoadStringW
push 0x1e
push dword [ebp - 0x1c]
mov ecx, edi
push dword [ebp - 0x18]
call sub.MFC42u.DLL_CWinApp::GetProfileIntW
lea ecx, [ebp - 0x14]
mov edi, eax
call sub.MFC42u.DLL_CString::CString_3
push 0xc44e
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.0102b123
lea ecx, [ebp - 0x38]
call fcn.0102d9ba
push ebx
push 0x7022
push dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CFile::Open
test eax, eax
je 0x100eb0c
lea eax, [ebp - 0x24]
push eax
push edi
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
mov dword [ebp - 0x20], 1
call fcn.0100da4f
test eax, eax
je 0x100eb04
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_3
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 4
call fcn.0102b274
test eax, eax
je 0x100eaf3
push ebx
push dword [ebp - 0x24]
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x10]
mov ecx, esi
call fcn.0100bdc3
test eax, eax
je 0x100eaf3
lea ecx, [ebp - 0x38]
call sub.MFC42u.DLL_CFile::Close
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x20], ebx
call fcn.0102d9ba
push ebx
push 0x4022
push dword [ebp - 0x10]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CFile::Open
test eax, eax
je 0x100eae7
push 1
push ebx
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.0100bdc3
lea ecx, [ebp - 0x48]
call sub.MFC42u.DLL_CFile::Close
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CFile::CFile
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0102d8a6
cmp dword [ebp - 0x20], ebx
je 0x100eb0c
lea ecx, [ebp - 0x38]
call sub.MFC42u.DLL_CFile::Close
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CFile::CFile
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0102d8a6
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0102d8a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0102d8a6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x100f313
Capabilities:
Create thread

Disassembly:
mov eax, 0x1032380
call fcn.0102edc8
sub esp, 0x58
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 0xc4]
call fcn.0101c765
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_3
push 0xc44f
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0102b123
lea ecx, [ebp - 0x20]
call fcn.0102d9ba
push ebx
push 0x20
push dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CFile::Open
test eax, eax
je 0x100f3bc
push ebx
push 0x1000
push 3
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x64]
call fcn.0102dc1e
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], ebx
call sub.MFC42u.DLL_CFile::GetLength
test eax, eax
je 0x100f3a0
mov eax, dword [esi]
lea ecx, [ebp - 0x64]
push ecx
mov ecx, esi
call dword [eax + 0xb8]
lea ecx, [ebp - 0x64]
call sub.MFC42u.DLL_CArchive::Close
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CFile::Close
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CArchive::CArchive
lea eax, [esi + 0x184]
push eax
push ebx
push esi
push 0x100f2d3
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x100f3dd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x1d8]
call fcn.010288e5
call fcn.0100bdab
cmp eax, ebx
je 0x100f3fc
call fcn.0100bdab
mov dword [esi + 0x230], eax
mov ecx, esi
call fcn.0100e99e
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CFile::CFile
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0102d8a6
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x1010297
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov eax, 0x103257a
call fcn.0102edc8
push ecx
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
xor ebx, ebx
call sub.MFC42u.DLL_CString::CString_3
push 0x87
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::LoadStringW
mov esi, dword [ebp - 0x10]
call sub.MFC42u.DLL_AfxGetModuleState
push dword [ebp - 0x10]
mov edi, dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
push esi
push 1
push edi
mov esi, 0x80000000
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
jne 0x10102fb
mov bl, 1
call sub.MFC42u.DLL_AfxGetModuleState
push dword [eax + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0102d8a6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x10138ed
Capabilities:
Capture screenshot

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.01014480
Function at 0x1013d33
Capabilities:
Capture screenshot

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x1013d51
xor eax, eax
jmp 0x1013e4e
push ebx
push edi
xor edi, edi
push edi
push edi
push edi
push 0x100330c
call dword [sym.imp.GDI32.dll_CreateDCW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp + 8], ebx
je 0x1013dfa
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, edi
mov dword [ebp - 0x10], eax
jne 0x1013d87
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x1013dfa
mov eax, dword [esi]
mov edi, dword [esi + 8]
push 8
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov esi, dword [esi + 0xc]
push ebx
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 4], eax
call ebx
push 0xa
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call ebx
xor ecx, ecx
cmp dword [ebp - 8], ecx
jge 0x1013db7
mov dword [ebp - 8], ecx
cmp dword [ebp - 4], ecx
jge 0x1013dbf
mov dword [ebp - 4], ecx
cmp edi, dword [ebp - 0xc]
jle 0x1013dc7
mov edi, dword [ebp - 0xc]
cmp esi, eax
jle 0x1013dcd
mov esi, eax
sub esi, dword [ebp - 4]
sub edi, dword [ebp - 8]
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
test ebx, ebx
jne 0x1013dfe
push dword [ebp - 0x10]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push dword [ebp + 8]
call esi
xor eax, eax
jmp 0x1013e4c
mov edi, dword [ebp - 0x10]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ebx
push edi
call esi
push 0xcc0020
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
push dword [ebp + 8]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x10]
push edi
call esi
push dword [ebp + 8]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
mov ebx, eax
call esi
push edi
call esi
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x10141c4
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x10141dd
mov ax, 0x14
jmp 0x10142dd
push ebx
push 0x8000080
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x1014206
mov ax, 4
jmp 0x10142dd
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
cmp esi, ebx
jne 0x101422b
mov bx, 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, bx
jmp 0x10142dc
cmp dword [esi], 0x28
je 0x101423b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x101421a
push edi
push esi
mov word [ebp - 0x14], 0x4d42
call fcn.01013ea4
movzx edi, ax
mov eax, dword [esi + 0x10]
add edi, dword [esi]
cmp eax, 1
je 0x1014276
cmp eax, 2
je 0x1014276
movzx eax, word [esi + 0xe]
imul eax, dword [esi + 4]
add eax, 0x1f
shr eax, 5
imul eax, dword [esi + 8]
shl eax, 2
add edi, eax
mov dword [esi + 0x14], eax
jmp 0x1014279
add edi, dword [esi + 0x14]
lea eax, [edi + 0xe]
push esi
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], bx
mov word [ebp - 0xc], bx
call fcn.01013ea4
mov ecx, dword [esi]
movzx eax, ax
lea eax, [eax + ecx + 0xe]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xa], eax
lea eax, [ebp - 4]
push eax
push 0xe
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call ebx
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [ebp + 0xc]
call ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10175f7
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x1032dec
call fcn.0102edc8
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 4], 0
je 0x1017612
xor eax, eax
jmp 0x10177ed
push edi
lea edi, [ebx + 8]
cmp dword [edi], 0
jne 0x10177e9
push 0x1003afc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [edi], eax
je 0x10177e3
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1003af4
push eax
call esi
test eax, eax
mov dword [ebx + 0xc], eax
je 0x1017761
push 0x1003aec
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x10], eax
je 0x1017761
push 0x1003ae4
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x14], eax
je 0x1017761
push 0x1003ad8
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x18], eax
je 0x1017761
push 0x1003ad0
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x1c], eax
je 0x1017761
push 0x1003ac4
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x20], eax
je 0x1017761
push 0x1003abc
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x24], eax
je 0x1017761
push 0x1003aac
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x28], eax
je 0x1017761
push 0x1003a9c
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x2c], eax
je 0x1017761
push 0x1003a84
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x30], eax
je 0x1017761
push 0x1003a70
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x34], eax
je 0x1017761
push 0x1003a5c
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x38], eax
je 0x1017761
push 0x1003a44
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x3c], eax
je 0x1017761
push 0x1003a30
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x40], eax
je 0x1017761
push 0x1003a1c
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x44], eax
je 0x1017761
push 0x1003a08
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x48], eax
je 0x1017761
mov dword [ebx + 4], 1
cmp dword [ebx + 4], 0
pop esi
je 0x101778b
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push 0
push eax
push 0x108
call dword [ebx + 0xc]
test eax, eax
mov dword [ebx + 0x4c], eax
jne 0x1017785
and dword [ebx + 4], eax
cmp dword [ebx + 4], 0
jne 0x10177e9
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x11
xor eax, eax
cmp dword [ebp + 8], eax
pop ecx
rep stosd dword es:[edi], eax
je 0x10177e9
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_3
and dword [ebp - 4], 0
push 0x7a74
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::LoadStringW
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
push 4
push 0x80004005
push 0x1001e40
push dword [ebp - 0x10]
call fcn.0100c924
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0102d8a6
jmp 0x10177e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebx + 4]
pop edi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x101c25e
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x64], edi
mov byte [esi + 0x60], 1
je 0x101c2c1
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x3a98
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x101c2b5
push edi
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x68]
cmp eax, edi
je 0x101c2b5
mov ecx, dword [eax + 0x24]
cmp ecx, edi
je 0x101c2a7
push dword [eax + 0x1c]
call ecx
mov ecx, dword [esi + 0x68]
cmp ecx, edi
je 0x101c2b5
mov eax, dword [ecx]
push 1
call dword [eax + 4]
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x64], edi
push ebx
lea ebx, [esi + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x48], edi
je 0x101c2f6
lea ecx, [esi + 0x44]
call sub.MFC42u.DLL_CPtrList::RemoveHead
mov edi, eax
mov eax, dword [edi + 0x24]
test eax, eax
je 0x101c2e7
push dword [edi + 0x1c]
call eax
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
cmp dword [esi + 0x48], 0
jne 0x101c2d1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x40]
test eax, eax
pop ebx
je 0x101c313
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x101c321
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esi + 0x20]
test esi, esi
je 0x101c32f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret

Function at 0x101c765
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
call fcn.0101cf36
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
je 0x101c796
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push esi
push 0x101c71d
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x64], eax
mov byte [esi + 0x1c], bl
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x101c7a4
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x103c3d0]
push ebx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x428], ecx
xor eax, eax
mov ecx, 0x82
lea edi, [ebp - 0x20c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x418]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1004e68
push 0x80000002
mov dword [ebp - 0x41c], 5
mov dword [ebp - 0x418], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101c87c
push esi
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
push 0x1001e40
push dword [ebp - 0x418]
mov esi, 0x104
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x424], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x101c87b
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
mov word [ebp - 6], bx
pop esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
jbe 0x101c897
lea eax, [ebp - 0x20c]
push eax
jmp 0x101c89c
push 0x1004e54
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
je 0x101c8d2
push 0x1004e4c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x101c8d2
mov ecx, dword [ebp - 0x428]
push ebx
push ebx
lea edx, [ecx + 0x10]
push edx
add ecx, 0xc
push ecx
call eax
test eax, eax
jne 0x101c8d2
mov dword [ebp - 0x41c], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x41c]
pop edi
pop ebx
call fcn.0102d566
leave
ret

Function at 0x1022b37
Capabilities:
Create thread

Disassembly:
mov eax, 0x1033b6f
call fcn.0102edc8
push ecx
push ecx
push esi
push 8
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x1022b62
call fcn.0102218c
mov esi, eax
jmp 0x1022b64
xor esi, esi
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1022bad
push dword [ebp + 8]
mov ecx, esi
call sub.MFC42u.DLL_CString::operator
push dword [ebp + 0xc]
lea ecx, [esi + 4]
call sub.MFC42u.DLL_CString::operator
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x10225e9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1022ba4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1022bad
push 1
mov ecx, esi
call fcn.010225c3
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x1024a6d
Capabilities:
Delete file

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.010239cf
test eax, eax
je 0x1024a8a
mov ecx, esi
call fcn.010239cf
mov ecx, eax
pop esi
jmp fcn.0100e99e
pop esi
ret

Function at 0x1024a6f
Capabilities:
Delete file

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.010239cf
test eax, eax
je 0x1024a8a
mov ecx, esi
call fcn.010239cf
mov ecx, eax
pop esi
jmp fcn.0100e99e
pop esi
ret